:):):):):):):):):):):):):):)
:) How do I use Visual Basic? :)
:):):):):):):):):):):):):):)
Printable View
:):):):):):):):):):):):):):)
:) How do I use Visual Basic? :)
:):):):):):):):):):):):):):)
Perhaps you could be a little more specific?
What a question!!!
- Open vesual basic
- creat a new form (defult)
- add a comman button from the toolbar at your left hand (double click its icon)
- double click the command1 newly created on the form
- right this line: MsgBox "This is a ??? question to ask"
- click run
- click the Command1 button
Tell me what you got!!!.
CooL!Code:MsgBox "This is a ??? question to ask"
You should look in your VB help file. Whether it's MSDN Libary or a regular help file, you will be able to find a lot of information which will help you with your programming :rolleyes:.Quote:
Originally posted by anonymoshe
CooL!Code:MsgBox "This is a ??? question to ask"
You can do more with a msgbox too.
Code:Msgbox "Hi!", 16
Msgbox "Hi!", 32
Msgbox "Hi!", 48
Msgbox "Hi!", 64
Msgbox "Hi!", 4
Code:'to learn anything you have to get in there and do it
'
Option Explicit
Private Sub Form_Load()
Dim Question As String, Answer As Integer
Question = "Am I sure that I really want to know how to use VB?"
Answer = MsgBox(Question, vbYesNo, "The Answer Is Here")
If Answer = 6 Then
Dim msg As String
msg = "Get busy, there are tons of code samples on this site alone" & vbCrLf
msg = msg & "Start something: when you get stuck ask for help." & vbCrLf
MsgBox msg, vbCritical, "Put some effort into it."
Else
msg = "Maybe I won't try some of these samples on the site and see!" & vbCrLf
msg = msg & """Maybe""" & vbCrLf
msg = msg & "I'll just ask someone to give me the world on a platter."
MsgBox msg, vbExclamation, "The ball is in your court!"
End If
End Sub