473,320 Members | 1,848 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,320 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 1103
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: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.