child form with another form - where is the cursor

  • Thread starter Thread starter andreas
  • Start date Start date
A

andreas

Hi,
A button in a child form creates another form with a textbox showing with
show.
I set the taborder on first on this textbox in the design and set even the
focus by loading but i see no cursor.
I see the cursor only when i click in the textbox.
Why and what to do for to see immediately the cursor in the textbox ?
 
Hi Andreas
With a window forms textbox you can do
textbox1.focus = true
as last event in your form load

I hope this helps?

Cor
 
Hi,
Thanks for your response but :
As I mentioned, i already put this statement in the load sub (
textbox1.text.focus for basic.net) without result
 
Hi Andreas,

Private Sub Form1_Activated _
(ByVal sender As Object, ByVal e As System.EventArgs) _
Handles MyBase.Activated
Me.TextBox1.Focus()
End Sub

Can you try this, I assume this works?

Cor
 
Hi Cor,
I tried your solution but no cursor.
It's a mystery ( for me).
Must be a cursor in the form by loading and so yes where is he ?
Who helps ?
 
Hi Andreas,

I tested it this time, I assume you mean the cursor from the textbox and not
the mouse cursor?

Cor
 
I have designed a new form with the same properties and there is no problem.
Maybe the form was corrupted in some way.
I found that de position of the cursor ( cursor.postion) was always changing
but cursor itself was not visble.
Thanks any way Cor.
 
Back
Top