具有另一种形式的子表单 - 光标在哪里 [英] child form with another form - where is the cursor

查看:49
本文介绍了具有另一种形式的子表单 - 光标在哪里的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



子表单中的一个按钮创建另一个表单,其中一个文本框显示为

show。

我设置了taborder on首先在设计中的这个文本框中,通过加载设置甚至

焦点,但我看不到光标。

只有当我点击文本框时才能看到光标。 />
为什么以及如何立即查看文本框中的光标?

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 ?

推荐答案

嗨Andreas

使用窗口形式文本框,你可以做

textbox1.focus = true

作为表格载荷中的最后一个事件


我希望这有帮助吗?


Cor
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


嗨Andreas

带窗口形式文本框你可以做什么

textbox1.focus = true

作为表单中的最后一个事件


我希望这有帮助吗?


Cor
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




感谢您的回复,但是:

正如我所提到的,我已经pu了这个语句在load子(

textbox1.text.focus for basic.net)中没有结果


" Cor Ligthert" <无********** @ planet.nl> schreef in bericht

news:u4 ************** @ TK2MSFTNGP10.phx.gbl ...
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...
嗨Andreas
使用窗口形式文本框,您可以将
textbox1.focus = true
作为表单中的最后一个事件加载

我希望这有帮助吗?

Cor
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



这篇关于具有另一种形式的子表单 - 光标在哪里的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆