Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. UI problem

UI problem

Scheduled Pinned Locked Moved Visual Basic
helpquestioncsharpvisual-studiodesign
8 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Nick_Kisialiou
    wrote on last edited by
    #1

    Hello, I am developing a GUI prototype in the VB which comes with Visual Studio 2005. I am new with VB, so I believe it's a newbie question. Everything goes fine until I press "Rebuild All". When I press it, VB drops all my settings of anchors, docking etc. and centers everything. As a result, the main menu, toolbars, status bars all get centered instead of where I chose to dock them. I also tried to select "lock = true" hoping it will stop this behavior, but it does not help. There must be some way to keep the selected alignment properties, but how? Would appreciate any help. Thank you! Nick Kisialiou

    D 1 Reply Last reply
    0
    • N Nick_Kisialiou

      Hello, I am developing a GUI prototype in the VB which comes with Visual Studio 2005. I am new with VB, so I believe it's a newbie question. Everything goes fine until I press "Rebuild All". When I press it, VB drops all my settings of anchors, docking etc. and centers everything. As a result, the main menu, toolbars, status bars all get centered instead of where I chose to dock them. I also tried to select "lock = true" hoping it will stop this behavior, but it does not help. There must be some way to keep the selected alignment properties, but how? Would appreciate any help. Thank you! Nick Kisialiou

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      The question should be what's causing it to center everything. This is most definately NOT normal behavior. Does it do this if you create a new project and then just put couple of buttons on the form? RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

      N 1 Reply Last reply
      0
      • D Dave Kreskowiak

        The question should be what's causing it to center everything. This is most definately NOT normal behavior. Does it do this if you create a new project and then just put couple of buttons on the form? RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

        N Offline
        N Offline
        Nick_Kisialiou
        wrote on last edited by
        #3

        It works fine with a new project. I must have screwed up somewhere, I will look for the source of this abnormality. Thanks!

        D 1 Reply Last reply
        0
        • N Nick_Kisialiou

          It works fine with a new project. I must have screwed up somewhere, I will look for the source of this abnormality. Thanks!

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          Did you use any custom controls or non-standard controls not normally supplied by the ToolBox? RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

          N 1 Reply Last reply
          0
          • D Dave Kreskowiak

            Did you use any custom controls or non-standard controls not normally supplied by the ToolBox? RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

            N Offline
            N Offline
            Nick_Kisialiou
            wrote on last edited by
            #5

            No, everything comes from the toolbox. Although this new toolbox in VS2005 is larger than that in VS.NET and offers some new properties. I have used lots of Table Layout Panels and Split Containers, also I use my own graphical resources, jpg files created in photoshop for backgrounds. I have also noticed that at some point VB became very slow while I was modifying the UI, it may be because of graphics though, need to check on it.

            D 1 Reply Last reply
            0
            • N Nick_Kisialiou

              No, everything comes from the toolbox. Although this new toolbox in VS2005 is larger than that in VS.NET and offers some new properties. I have used lots of Table Layout Panels and Split Containers, also I use my own graphical resources, jpg files created in photoshop for backgrounds. I have also noticed that at some point VB became very slow while I was modifying the UI, it may be because of graphics though, need to check on it.

              D Offline
              D Offline
              Dave Kreskowiak
              wrote on last edited by
              #6

              RainbowWyrm wrote:

              I have used lots of Table Layout Panels and Split Containers

              Define "lots"... All on one form?? Is there a form with "lots" of controls on it? RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

              N 1 Reply Last reply
              0
              • D Dave Kreskowiak

                RainbowWyrm wrote:

                I have used lots of Table Layout Panels and Split Containers

                Define "lots"... All on one form?? Is there a form with "lots" of controls on it? RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

                N Offline
                N Offline
                Nick_Kisialiou
                wrote on last edited by
                #7

                The main dialog form represents the main window and so far contains (this is the back bone without small components which I have not placed yet): 1) 1 Main menu, 2) 2 Main toolbars and 1 toolbar in a child window, 3) 5 Table Layout Panels - to position child windows properly, to separate labels from toolbars from work area windows, 4) 2 Split Containers, 5) 1 Status bar, 6) 3 Tab controls (1-3 tabs in each), 7) 1 Tree View. I don't think it is "lots", at least I would assume that VB should be able to handle it. Maybe it is the inserted images that cause such behavior?

                D 1 Reply Last reply
                0
                • N Nick_Kisialiou

                  The main dialog form represents the main window and so far contains (this is the back bone without small components which I have not placed yet): 1) 1 Main menu, 2) 2 Main toolbars and 1 toolbar in a child window, 3) 5 Table Layout Panels - to position child windows properly, to separate labels from toolbars from work area windows, 4) 2 Split Containers, 5) 1 Status bar, 6) 3 Tab controls (1-3 tabs in each), 7) 1 Tree View. I don't think it is "lots", at least I would assume that VB should be able to handle it. Maybe it is the inserted images that cause such behavior?

                  D Offline
                  D Offline
                  Dave Kreskowiak
                  wrote on last edited by
                  #8

                  The .NET Framework can handle this number of controls easily. The question becomes is the layout being setup correctly in your code? What the designer lays out when you drop the controls in place, visually might look OK, but in fact, your control is actually not in the container that you dropped it on. You might want to go through your designer generated code and follow it step-by-step to see which containers your controls are actually ending up in. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups