>' In your Form's constructor >AddHandler Paint, AddressOf Me.Form1_Paint > > > ' Then, the EventHandler itself > Private Sub Form1_Paint(ByVal sender As Object, ByVal e As PaintEventArgs) > Me.txtDescription.Focus > RemoveHandler , AddressOf Me.Form1_Paint > End Sub >>
>>// In your Form's constructor >>this.Paint += new PaintEventHandler(Form1_Paint); >> >>// Then, the EventHandler itself >>private void Form1_Paint(object sender, PaintEventArgs e) >>{ >> this.txtDescription.Focus(); >> this.Paint -= new PaintEventHandler(Form1_Paint); >>} >>