Results 1 to 4 of 4

Thread: List Boxes and Buttons

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2013
    Posts
    2

    List Boxes and Buttons

    Im kinda new to this Visual Basic 2010..
    The program asks for the user to select an option in a listbox
    Can someone tell me how to hide all buttons and labels in the form until the user
    clicks on his/her option and when the user clicks on an option the buttons and labels appear...



    much appreciated

  2. #2
    PowerPoster dunfiddlin's Avatar
    Join Date
    Jun 2012
    Posts
    8,245

    Re: List Boxes and Buttons

    Yes. I can. But as it involves two of the most simple and fundamental principles of VB, responding to an event and changing the values of a property, I'm almost certainly not going to. Being new to VB is not an excuse to bypass learning. To do so would be to ensure that you are never anything more than 'new to this'.
    As the 6-dimensional mathematics professor said to the brain surgeon, "It ain't Rocket Science!"

    Reviews: "dunfiddlin likes his DataTables" - jmcilhinney

    Please be aware that whilst I will read private messages (one day!) I am unlikely to reply to anything that does not contain offers of cash, fame or marriage!

  3. #3

    Thread Starter
    New Member
    Join Date
    May 2013
    Posts
    2

    Re: List Boxes and Buttons

    spank you very much...

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: List Boxes and Buttons

    dunfiddlin is correct that what you're asking for is very fundamental and will be covered quite early in any beginners tutorial. If you're in a class or working through a book then it's unlikely that you'd have been asked to create an app that does that without having covered setting properties and handling events already. I suggest that you work your way through the tutorial below and then you'll have enough information to answer your own question and more besides.

    http://www.homeandlearn.co.uk/NET/vbNet.html

    If you're not 100% sure which event to handle and which property to set then there are easy ways to find out. For a start, you can use the Help menu to open the MSDN documentation. You can then read what events a ListBox has and what each one is for to determine which event to handle. You can also read what properties a Button or Label has and what each one is for to determine which one to set. Being a beginner means you don;t know things but it doesn't mean that you can't find things out. Sometimes we don't know where to look though. Now you do.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

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