mladost1
-
Total Posts
:
4
- Scores: 0
-
Reward points
:
0
- Joined: 6/23/2008
-
Status: offline
|
Button Creation in VB
Friday, June 27, 2008 10:37 PM
( permalink)
Dim Button As New Windows.Forms.Button() Button.Location.X.Equals(100) Button.Location.Y.Equals(100) Button.Enabled = True Button.Visible = True Button.Text = "ASD" Button.BackColor = Color.Coral Button.CreateControl() MessageBox.Show(Convert.ToString(Button), "topic", 0) This does not show a button...don't know why. It is in a onLoad fucntion so i am sure it is called. Help please
|
|
|
|
dm_4ever
-
Total Posts
:
3687
- Scores: 82
-
Reward points
:
0
- Joined: 6/29/2006
- Location: Orange County, California
-
Status: offline
|
RE: Button Creation in VB
Saturday, June 28, 2008 4:28 AM
( permalink)
This looks more like VB than VBScript which is why I moved your post. I haven't played with VB, but I think that if you want your button to appear on your form, you would need to add it as a control to that form....just a thought Dim Button As New Windows.Forms.Button() Button.Location.X.Equals(100) Button.Location.Y.Equals(100) Button.Enabled = True Button.Visible = True Button.Text = "ASD" Button.BackColor = Color.Coral Me.Controls.Add(Button)
|
|
|
|