Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form Location not working
Message
 
 
To
All
General information
Forum:
ASP.NET
Category:
Forms
Title:
Form Location not working
Miscellaneous
Thread ID:
00812222
Message ID:
00812222
Views:
46
I want to create a form at a specific location.
Here is the code I am using, but the form does not show at the location I spoecified?
Dim xBalloon As Integer
Dim yBalloon As Integer
xBalloon = 0
yBalloon = 192

' create a form
Dim frm As Form
frm = New Form()
frm.Size = New Size(200, 100)
frm.Location = New Point(xBalloon, yBalloon)

' create a label for the form
Dim lbl As Label
lbl = New Label()
lbl.Text = Field.HelpText
lbl.Location = New Point(10, 10)

' add the label to the forms control collection
frm.Controls.Add(lbl)
frm.ShowDialog()
But it does not seem to take the frm.location settings.
What am I doing wrong?
thanks in advance.
- jim durkin

"The universe is a big place, perhaps the biggest." Kurt Vonnegut
Next
Reply
Map
View

Click here to load this message in the networking platform