Unregistered Avatar

Reply

[visualBasic6] tutorial-Making a messagebox


 
LinkBack Thread Tools Display Modes

  #1 (permalink)  

Old 03-03-2005, 08:20 AM

[visualBasic6] tutorial-Making a messagebox

Hey everyone, I'm going to teach you how to make a simple vb program.
Excuse me if this isnt the best tutorial, Im at school and I can't remember coding very well.
Step one- Make two command buttons, click on one, and change the 'caption' to Button one, and the other button two.
Step Two- Click on your form, change the caption to whatever you want the title to be.
Step Three- Double click on a button, and then type in

Code:
Dim press
press = MsgBox("You pressed button one!",65,"Title")
Change the word 'title' to whatever the title of your form you want it to be, and "you pressed button..." to whatever you want the message to say.
Now, repeat the same thing with button 2, except change
Code:
Dim Press
to
Code:
dim press2
and the other press to press 2.
To view your program in action, click run>Start and click one of the buttons!
To make your program an exe, go to file>make project1.exe

Thankee

And another feature that you could use is
Code:
<html>
<body>
<script type="text/vbscript">
Dim press
press = MsgBox("You pressed button one!",65,"Title")
</script>
</body>
</html>
Which makes a pop-up on your webpage, not of much use though.

Last edited by Chrisw : 03-03-2005 at 08:41 AM.

Chrisw is offline registered.

Chrisw's Avatar

Join Date: Feb 2005

Posts: 35

  #2 (permalink)  

Old 03-03-2005, 02:16 PM

pop ups on web pages are useful for validating forms

missionsix is offline loves you.

missionsix's Avatar

Join Date: Feb 2004

Location: under you.

Posts: 4,784

Send a message via AIM to missionsix Send a message via MSN to missionsix
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tutorial Request, by me. FishDynasty Request Content 21 04-01-2005 08:33 PM
Making your Renders more 3d [Easy] Beer Slut Tutorial Comment Forum 13 02-06-2005 08:13 AM
Game In the Making -.- FuLouZero Digital Art Showcase 3 07-18-2004 12:26 PM
SpinEffect Tutorial Fluffy_monkey User Submitted Tutorials 1 06-03-2004 04:59 PM


All times are GMT -7. The time now is 09:35 PM.