Nothing going on here, move along…

Coding codes

Some simple coding codes.

The exit/close button (double click on the exit button)

To exit a a program insert the following code between the subs:

close

 

To clear a text box

txtName.Text = ” ”

 

To insert text into a text box when a button (e.g. display) is clicked. (double click the ‘display’ button) 

Enter the following code between the subs:

txtHello.Text= “your text here”

*This connects the display button to the text box, in this example the text box is named ‘txtHello’ and the ‘Text’ part is the information which will appear in the box when the (‘display’) button is clicked*

 

To  connect a scroll bar to text (text changes when scrollbar is moved):

lblNamehere.Text= Format(hsbScrollname.value, “0.0”)
 
To enter a calculation (E,g. to change celcius to farenheit):
lblFaren.Text= Format(9/5* hsbDegree.Value + 32, “0.0”)

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Tag Cloud

%d bloggers like this: