473,394 Members | 1,746 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

child form with another form - where is the cursor

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 ?

Nov 20 '05 #1
12 1105
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
Nov 20 '05 #2
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
Nov 20 '05 #3
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" <no**********@planet.nl> schreef in bericht
news:u4**************@TK2MSFTNGP10.phx.gbl...
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

Nov 20 '05 #4
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" <no**********@planet.nl> schreef in bericht
news:u4**************@TK2MSFTNGP10.phx.gbl...
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

Nov 20 '05 #5
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
Nov 20 '05 #6
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
Nov 20 '05 #7
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" <no**********@planet.nl> schreef in bericht
news:eK**************@TK2MSFTNGP10.phx.gbl...
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

Nov 20 '05 #8
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" <no**********@planet.nl> schreef in bericht
news:eK**************@TK2MSFTNGP10.phx.gbl...
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

Nov 20 '05 #9
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" <an*****@pandora.be> schreef in bericht
news:c8*********************@phobos.telenet-ops.be...
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" <no**********@planet.nl> schreef in bericht
news:eK**************@TK2MSFTNGP10.phx.gbl...
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


Nov 20 '05 #10
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" <an*****@pandora.be> schreef in bericht
news:c8*********************@phobos.telenet-ops.be...
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" <no**********@planet.nl> schreef in bericht
news:eK**************@TK2MSFTNGP10.phx.gbl...
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


Nov 20 '05 #11
Hi Andreas,

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

Cor
Nov 20 '05 #12
Hi Andreas,

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

Cor
Nov 20 '05 #13

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: James Spibey | last post by:
Hi, I have an MDI application which has aboout 10 child windows. The way the app needs to work is that only one window should be visible at a time and it should be maximized within the parent...
18
by: Colin McGuire | last post by:
Hi - this was posted last weekend and unfortunately not resolved. The solutions that were posted almost worked but after another 5 days of working on the code everynight, I am not further ahead....
2
by: QT | last post by:
Dear Sirs, I made a MDI Parent form and two MDI child form. I can open MDI child form from MDI parent form with; Dim UserChangePassword_Form As New UserChangePassword 'Set the Parent Form of...
12
by: andreas | last post by:
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...
10
by: Charles Law | last post by:
For some reason, when I click the X to close my MDI parent form, the action appears to be re-directed to one of the MDI child forms, and the parent remains open. I am then unable to close the...
0
by: Bruin | last post by:
Hi All, I'm having a problem with MDI child forms when the reference to the MDI Parent is set in a Control library. (Sorry for the long post) I have an control library assembly which holds all...
3
by: Smokey Grindel | last post by:
What is the best way to do this? I want to have a child form in an MDI window that can only ever have one instance of open... if one is already opened I want to use that form and not make...
6
by: =?Utf-8?B?QVRU?= | last post by:
Hi, My MDI (Parentform) form can have 2 two type of forms (Datagridform and graphicform). When users create a new form, they have to pick either child form. When those child forms are created...
2
by: =?Utf-8?B?U2FuZHk=?= | last post by:
Hi everyone Some help pls. 1. MDI Parent Form Have a variable Public TestVariable As String = "AAA" In the Load procedure TestVariable = "BBB" 2. MDI Child Form
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.