Morning Silence

Open Horizon, Brightly Shine

How to assign the value to button in VB?

Posted by Oudom on November 2, 2009

Dim aButton As New System.Windows.Forms.Button()
‘ Add the button to the collection’s internal list.
Me.List.Add(aButton)
‘ Add the button to the controls collection of the form
‘ referenced by the HostForm field.
HostStorePanel.Controls.Add(aButton)
‘ Set intial properties for the button object.
‘ aButton.Top = Count * 25
‘ aButton.Left = 100

aButton.Location = New Point(x, y)
aButton.Size = New Size(130, 45)
aButton.BackgroundImage = Image.FromFile(buttonImage)

aButton.Tag = “2008″ ‘”Here I put 2008 as The value of this button. so after the button is click we can get the value of the button.

aButton.Text =” What ever you want”

Posted in Uncategorized | Leave a Comment »

How to get Window Media player and Flash in your Visual Basic Studio?

Posted by Oudom on November 2, 2009

To be completed

Posted in Uncategorized | Leave a Comment »

How to conncet of Dabase in VB Studio?

Posted by Oudom on November 2, 2009

To be completed

Posted in Uncategorized | Leave a Comment »

How to deal with File in VB?

Posted by Oudom on November 2, 2009

To be completed

Posted in Uncategorized | Leave a Comment »

How to deal with Listbox object in VB?

Posted by Oudom on November 2, 2009

To be completed

Posted in Uncategorized | Leave a Comment »

How to use SQL in ADO VB?

Posted by Oudom on November 2, 2009

To be completed

Posted in Uncategorized | Leave a Comment »

How to connect to Database in ADO in VB?

Posted by Oudom on November 2, 2009

To be completed

Posted in Uncategorized | Leave a Comment »

How to create one even handler that could handle array of buttons in VB?

Posted by Oudom on November 2, 2009

To be completed

Posted in Uncategorized | Leave a Comment »

How to rename file in VB?

Posted by Oudom on November 2, 2009

To be completed

Posted in Uncategorized | Leave a Comment »

How to fire a procedure when n seconds completed in VB?

Posted by Oudom on November 2, 2009

To be completed

Posted in Uncategorized | Leave a Comment »