Notifications
Clear all
[Closed] TabStop in dotnet controls
Dec 22, 2009 11:20 pm
Hi, i would like to switch from one control to another by using the Tab Key.
There is a property wich allows that :
http://msdn.microsoft.com/en-us/library/system.windows.forms.control.tabstop.aspx
All my controls have their “TabStop” property set to true.
here is an example :
(
maxForm = dotNetObject "MaxCustomControls.MaxForm"
maxForm.Size = dotNetObject "System.Drawing.Size" 200 100
Tbox1 = dotnetobject "System.Windows.Forms.TextBox"
Tbox1.Location = DotNetObject "System.Drawing.Point" 8 8
Tbox1.Size = DotNetObject "System.Drawing.Size" 48 20
Tbox1.TabIndex = 1
Tbox1.TabStop = true
maxForm.Controls.Add(Tbox1)
Tbox2 = dotnetobject "System.Windows.Forms.TextBox"
Tbox2.Location = DotNetObject "System.Drawing.Point" 60 8
Tbox2.Size = DotNetObject "System.Drawing.Size" 48 20
Tbox2.TabIndex = 2
Tbox2.TabStop = true
maxForm.Controls.Add(Tbox2)
maxForm.showmodeless()
)
I Tryed the same thing with a standard dotnet form, its the same.
Trying a similar example In Microsoft Visual Studio, it works perfectly.
Any clues ? Thank you