Any other suggestions? Object, ByVal e As System. EventArgs Handles TextBox1. Handle Then My. Thank you. NET VB. Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation.
This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.
Remember Me? Advertiser Disclosure. August 20th, , AM 8. Thanks all for your help. January 28th, , AM 9. Join Date Jan Posts Re: How can I tell if a Form has the focus. Originally Posted by roadrunner Is there a way to tell? January 29th, , AM Re: How can I tell if a Form has the focus This thread was dead for almost 15 years. I'm pretty sure the poster got the answer back then. January 29th, , PM Originally Posted by DataMiser.
This thread was dead for almost 15 years. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. How to check if a Form has focus? Ask Question. Asked 3 years, 2 months ago. Active 3 years, 1 month ago. Viewed times. I have two WinForm s.
Let's say MainForm and ChildForm. Here is my code : AddHandler Me. Activated, Sub Me. Deactivate, Sub If Not Me. Focused Then Me. Can anyone know how to achieve that please? Improve this question. Hello Jercook, In my project exercising the PrintDocument Control, I want to set the font of one of 5 text boxes, Print location, etc depending upon which textbox has focus.
Jerry in adding to Frank's correct response , If you have text boxes on the form you can perform an iteration and to identify which of the text box there and the fiery active, see example below. Object, e As System.
EventArgs Handles Button1. Proposed as answer by Frank L. Hello Jercook, Thanks for the two suggestions. You're Welcome. Best Regards.
0コメント