Results 1 to 2 of 2

Thread: VB.Net GUI - Sort Object Dropdown

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2001
    Location
    Devon, UK
    Posts
    181

    VB.Net GUI - Sort Object Dropdown

    At the top left hand corner of the code window in Forms is the object dropdown with all the controls on the form. How do you sort this??
    It appears to add them in the order that you add them to your form. I have a highly graphically intense app with 300+ controls and its a nightmare finding them so i can access their events/methods etc.
    The class view shows me all these events/methods but doesn't let me add them to my code.

    Any ideas
    Cheers
    Wind and waves resolves all problems.

  2. #2
    Fanatic Member
    Join Date
    Sep 2002
    Posts
    518
    The stuff in the "Windows Forms Designer generated code" region of a file is the code for all the controls and whatnot that you placed via the GUI. It's all sorted in the order you place it with the GUI (as you correctly surmised). While there doesn't seem to be an automatic way to reorder this stuff, you can do it by hand with just cut and paste, if you're careful. The order they appear in the section does matter though, as this seems to determine docking behavior at the very least, possibly other things too.

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