May 28th, 2011, 02:25 PM
VB2010 Me.Focused = True
Is there anyway for a form to become in focus.. basically something like Me.inFocused = True
In order to print a form, it must be visible and in focus, so I need to focus on it without the user having to click it so that I can send the form to a printer
May 28th, 2011, 04:15 PM
Re: VB2010 Me.Focused = True
Hi ablaty, the only place I could actually see results was in the Form1_Shown Sub.
I tried most the routines, but Shown was the only one that worked in the way I wanted.
Private Sub Form1_Shown(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Shown
If Me.CanFocus Then
Debug.Print("I got the focus in From1_Shown Sub")
Tags for this Thread
Click Here to Expand Forum to Full Width
Survey posted by VBForums.