Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Button Creation in VB

 
Logged in as: Guest
arrSession:exec spGetSession 2,7,61944
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [General Forum] >> Other Programming/Scripting Languages >> Button Creation in VB
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Button Creation in VB - 6/27/2008 9:37:49 PM   
  mladost1

 

Posts: 4
Score: 0
Joined: 6/23/2008
Status: offline
       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
 
 
Post #: 1
 
 RE: Button Creation in VB - 6/28/2008 3:28:05 AM   
  dm_4ever


Posts: 2414
Score: 38
Joined: 6/29/2006
From: Orange County, California
Status: offline
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)

_____________________________

dm_4ever

My philosophy: K.I.S.S - Keep It Simple Stupid
Read Me: http://www.visualbasicscript.com/m_24727/tm.htm
Frequently Asked Stuff: http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to mladost1)
 
 
Post #: 2
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [General Forum] >> Other Programming/Scripting Languages >> Button Creation in VB Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts