Re: Disabling Button Focus
Have you tried setting focus to another control via ActiveControl = SomeControl ?
Re: Disabling Button Focus
Kevin - I appreciate your input - unfortunately, that didnt work.
Ideally, once a search button is pressed, I'd like to focus on the window that displays all of the search results.
I've tried:
Code:
ActiveControl = SearchWindow
So will this only work if I select another control for the focus - ie, one of the other buttons?
Re: Disabling Button Focus
Guess I misunderstood you, I was thinking you wanted to set focus to a control and not a window.
Re: Disabling Button Focus
Quote:
Originally Posted by
kevininstructor
Guess I misunderstood you, I was thinking you wanted to set focus to a control and not a window.
Are these 'windows' forms? If so just bring the search form to the front and select the appropriate control.
Re: Disabling Button Focus
Well if you are using default controls and no custom code for highlighting then it should be as simple as
Control.Focus
That said you have not given us much to go on, we don;t even know what kind of app you are talking about here
Re: Disabling Button Focus
There is a note here http://msdn.microsoft.com/en-us/libr...vs.100%29.aspx that says, "Focus is a low-level method intended primarily for custom control authors. Instead, application programmers should use the Select method or the ActiveControl property for child controls, or the Activate method for forms."
Re: Disabling Button Focus
hmm I had not saw that, I do mostly mobile apps in Vb.Net and have been using the .Focus method for years under VB 2003, 2005 and 2008 never had any issues with it.
Re: Disabling Button Focus
Quote:
Originally Posted by
DataMiser
hmm I had not saw that, I do mostly mobile apps in Vb.Net and have been using the .Focus method for years under VB 2003, 2005 and 2008 never had any issues with it.
Maybe a CYMSA.