UI problem
-
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
-
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
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
-
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
It works fine with a new project. I must have screwed up somewhere, I will look for the source of this abnormality. Thanks!
-
It works fine with a new project. I must have screwed up somewhere, I will look for the source of this abnormality. Thanks!
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
-
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
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.
-
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.
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
-
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
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?
-
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?
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