title: How to Focus a TextBox VB.Net
body: <p>I have a text box in my form. When clicking the tray icon the form is shown and on form load I have written the code to focus on the text box. But it's not pointing the text box. 
  Let I have 2 forms formB and formC I am calling formC from formB so that I doesn't getting the focus. how to give focus to the second form?
  I have find the solution to this problem . we have to overwrite the show method. Let's say formA and formB. Then FormB is in focus now. </p>
  
  
  
  <pre><code>Private Sub FormB_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
      Me.Timer1.Enabled = True
      Me.Timer1.Interval = 2000
  End Sub`
  
  Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
      Timer1.Enabled = False
      Dim frmquickListPHD1 As New FormC()
      frmquickListPHD1.Show(CallingForm, CallingControl, Me)
  End Sub
  
     Overloads Sub Show(ByVal f1 As Form, ByVal c As Control, ByVal f2 As Form)
      callingform = f1
      MenuForm = f2
      callingcontrol = c
      Show()
  End Sub
  Private Sub FormC_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
      Me.TextBox1.Focus()
  End Sub`
  </code></pre>