PC Review


Reply
Thread Tools Rate Thread

child form with another form - where is the cursor

 
 
andreas
Guest
Posts: n/a
 
      9th Apr 2004
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 ?



 
Reply With Quote
 
 
 
 
Cor Ligthert
Guest
Posts: n/a
 
      9th Apr 2004
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


 
Reply With Quote
 
andreas
Guest
Posts: n/a
 
      9th Apr 2004
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



"Cor Ligthert" <(E-Mail Removed)> schreef in bericht
news:(E-Mail Removed)...
> 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
>
>



 
Reply With Quote
 
Cor Ligthert
Guest
Posts: n/a
 
      10th Apr 2004
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


 
Reply With Quote
 
andreas
Guest
Posts: n/a
 
      10th Apr 2004
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 ?


"Cor Ligthert" <(E-Mail Removed)> schreef in bericht
news:(E-Mail Removed)...
> 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
>
>



 
Reply With Quote
 
Cor Ligthert
Guest
Posts: n/a
 
      10th Apr 2004
Hi Andreas,

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

Cor


 
Reply With Quote
 
andreas
Guest
Posts: n/a
 
      10th Apr 2004
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.



"andreas" <(E-Mail Removed)> schreef in bericht
news:c8Tdc.66548$(E-Mail Removed)...
> 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 ?
>
>
> "Cor Ligthert" <(E-Mail Removed)> schreef in bericht
> news:(E-Mail Removed)...
> > 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
> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
vs2005 - Open a child form based on selected record parent form's dgv - how? dbuchanan Microsoft Dot NET Framework Forms 2 19th Dec 2005 10:52 PM
Cursor does not change to WaitCursor over ListView when using delegate in C# MDI child form. Vladimir.Sakharuk@gmail.com Microsoft Dot NET Framework Forms 2 2nd Nov 2005 08:08 PM
A problem to opem MDI child form from another MDI child form Herfried K. Wagner [MVP] Microsoft VB .NET 2 26th Dec 2003 09:30 PM
setting 2nd form as a child form, from first child form Rat Microsoft VB .NET 2 1st Dec 2003 11:17 AM
Updating Control on Main Form form Child Form Microsoft Dot NET 1 17th Nov 2003 07:38 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:02 AM.