|
-
Aug 21st, 2000, 12:47 AM
#1
Thread Starter
New Member
I am a total VB newbie and I'm trying to get the hang of it. Some of the articals just don't help pure newbies. And basicaly I'm looking for a webpage or a Abode Acrobat file on the pure basics. I'm looking for a page that will have how to make a Message Box appear when you select a drop down menu item. How to link it so if I click on a command button text will appear in a text box. All that good stuff
And maybe a big list of all the basic really common, useful, and basic commands.
I will be awaiting for the aid of a fellow CPU nerd!
Thanks
-
Aug 21st, 2000, 01:08 AM
#2
Hyperactive Member
I keep informing people they best way to learn is to grab the help files and get in there and try things.
Thought the help files aren't that good in explaining things they do give you start points.
Do a search on the MsgBox and have a look at what it says... there are basic examples in there which you can try and then develop it from there.
-
Aug 21st, 2000, 01:11 AM
#3
Fanatic Member
Thissite will show you the basics of visual basic...ignore the "Visual Basic5" that stuff will work for VB6 also.
Gl,
D!m
-
Aug 21st, 2000, 01:17 AM
#4
Lively Member
Go to this site. I used this book when I started, and I got it right away. You could also buy the hardcopy of the book, but that is like $50 to $60. Hope this helps!
-
Aug 21st, 2000, 01:17 AM
#5
here is the first part of the first page of the first chapter of the first VB Tutorial I am writing 
Message Boxes
Message Boxes are very useful, and very easy to use.
Here is an example of how to use a Message Box to say “Hello World”:
MsgBox (“Hello World”, , “Hello”)
Go ahead, try, it, I dare ya!
It makes a Message Box popup with the Text of “Hello World” and the Blue Bar at the top will say “Hello”.
Here is the whole MsgBox function.
MsgBox(prompt[, buttons] [, title] [, helpfile, context])
As you can see, we used the Prompt, and the Title, the ones in square brackets [ ] are optional.
that looks crappy without all the fancy MSWord formatting
-
Aug 21st, 2000, 01:22 AM
#6
Frenzied Member
just think of it like this for now. VB is just lots of changes in property values, such as image placement, sizes, captions etc. Play around wth that thought for a little while...
-
Aug 21st, 2000, 01:23 AM
#7
Thread Starter
New Member
Wow!
Thanks for all the help so far to the people who replyed! This board is great, I wrote this message like half an hours ago and theres like 3 or 4 replys already! Keep em coming!
-
Aug 21st, 2000, 01:28 AM
#8
-
Aug 21st, 2000, 01:32 AM
#9
Q How to link it so if I click on a command button text will appear in a text box
Code:
'Requirements: Command Button, Textbox
Private Sub Command1_Click()
Text1.text = "Words of Wisdom"
End Sub
Q I'm looking for ..... that will have how to make a Message Box appear when you select a drop down menu item.
Code:
'Requirements: ComboBox, Command Button
Private Sub Form_Load()
For i = 0 To 5
Combo1.AddItem i
Next i
End Sub
Private Sub Combo1_Change()
Combo1_Click
End Sub
Private Sub Combo1_Click()
MsgBox Combo1.List(Combo1.ListIndex) 'selected item
End Sub
'You can also do it this way:
Private Sub Combo1_Click()
MsgBox Combo1.Text
End Sub
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|