Results 1 to 9 of 9

Thread: Totaly VB Newbie

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2000
    Location
    Canada
    Posts
    6

    Exclamation

    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
    Travis {Deftoners}

  2. #2
    Hyperactive Member
    Join Date
    Mar 2000
    Posts
    461
    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.

  3. #3
    Fanatic Member Dim's Avatar
    Join Date
    Jul 2000
    Posts
    620
    Thissite will show you the basics of visual basic...ignore the "Visual Basic5" that stuff will work for VB6 also.

    Gl,
    D!m
    Dim

  4. #4
    Lively Member
    Join Date
    Jun 2000
    Posts
    122
    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!

  5. #5
    Guest
    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

  6. #6
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800
    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...

  7. #7

    Thread Starter
    New Member
    Join Date
    Aug 2000
    Location
    Canada
    Posts
    6

    Talking 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!
    Travis {Deftoners}

  8. #8
    Guest
    yeah this forum is great I learned over half of what I know about programming here....

    I would have known about this place soooner, but my banner filter'er filtered out all the posts, and that kept me from being here for about 2 months....

    but thats a different story

    there is always somebody here at this board, so you will almost immediatly get an answer.



    Good luck in learning!

  9. #9
    Guest
    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
  •  



Click Here to Expand Forum to Full Width