Results 1 to 3 of 3

Thread: Help please

  1. #1

    Thread Starter
    Lively Member DeBauer's Avatar
    Join Date
    May 2001
    Location
    Mako Reactor #7
    Posts
    123

    Question Help please

    I was wondering. I'm going to have lots of options in a program i'm making and I don't want it in a menu. I want it on the form. But theres going to be different categoreys, so the options on the form will change when you click them. And the only way I know how to do this is like Label1.visible = true or false, and arange them how you want on the form. But it will get really clutterd for me to work with, in vb like that because they would be on top of each other. And I was wondering is there a way to have sperate forms for each categorey and have the main form get the position of the labels and everything from the other forms containing the category and have it show up on the main form? It would be much easier for me to edit like that.


    Thanks

  2. #2
    Fanatic Member rudvs2's Avatar
    Join Date
    Mar 2001
    Location
    NZ
    Posts
    935
    There are two options for you here

    If you want to go down the label path I would make your projects main form an MDI form

    Then all your catagories could be MDI Child forms and you just display the approipriate child form when a Topic is clicked

    The other option is to use something like the treeview control

    And display all your options as subnodes on that

    hope this has helped

  3. #3
    PowerPoster beachbum's Avatar
    Join Date
    Jul 2001
    Location
    Wollongong, NSW, Australia
    Posts
    2,274
    Or u could have ur separate 'topics' in frames or picture box controls and make them visible (and ZOrder to front if necessary) as an option is selected. Frames are much less hungry for mem than forms and so may be a lower 'cost' option.

    An other way may be to dynamically create the labels based on what the user selects. So say Option 1 is to pick ur favourite animal.. u may have 3 option boxes for a) Dog b) Cat c) Gerbil

    If the user selects Dog u may dynamically change the Labels and option boxes of the next category eg... What sort of dog is it? a) Smelly b) Eats poo c) Needs a seeing eye man or d) did i press dog? But if was a cat u could change to "Best ways to desex cats" a) Semi Trailer b) Lightning rod etc

    So, it really depends on the amount of coding u want to do and the amount of memory u want to consume
    Regards
    Stuart
    Stuart Laidlaw
    Brightspark Financial Software
    http://www.gstsmartbook.com

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