Hi Bob,
What is the "proper" way to display a form even if it is minimized,
hidden, or obscured by other windows, without giving the form input focus?
I am sorry that I couldn't understand what you mean by 'even if it is
minimized, hidde, or obscrured by other windows' in the above sentence.
Could you explain it more and tell me why you want that behavior?
When we show a form by calling the Show method, the form gets focused after
it is shown. If you'd like not to give the focus to the form, I think a
simple way is to set the focus to other window or control.
Let's say that there're two forms called Form1 and Form2. Form1 has a
button on it. When we click the button on Form1, Form2 is shown. To get the
focus from Form2, we could set the focus to the button.
The following is the sample code.
Dim frm as New Form2
frm.Show()
Button1.Focus()
Hope this helps.
If my suggestion is not appropriate to your practice, please feel free to
let me know.
Sincerely,
Linda Liu
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.