Windows Develop Bookmark and Share   
 index > Windows Forms Designer > Windows forms panel and tab orders becoming messy
 

Windows forms panel and tab orders becoming messy

Hi,

I am working on version 2 of my application now. I am designing interfaces now and am running into a little trouble. Maybe some kind person can answer this question please.

I am using Visual Studio 2005 Professional and started my project as a Windows Form application. My application requires LOTS of different screens. I discovered the Panel form of grouping controls together and started designing each page I required on individual panels which I could then make visible/invisible as and when I needed to as the user selected various parts of the application. The only problem I am facing now is every time I go to edit the tab order, all the tab ordersfrom previously designed panels in the background are becoming visible and it is very messy to sort out what tab orders I am editing.

How can I overcome this problem so I see only the tab orders for the panel I am working with? When I design a new panel, I have just been overlaying the new panels on top, bring them to the front and edit the controls there, but maybe this is the wrong way to go about this.

Kind regards,

Sean
Sean Connolly  Monday, June 22, 2009 10:49 AM
Hi Sean,

On the top of PropertyGrid, you can see a ComboBox control, you can select the very panel object for edit.

Actually, you can use TabControl to group the controls. At design time, we can layout the controls with visual clues of the TabHeader. At run time, we can easily hide the tabHeaders, and display the current selected tabpage. As for how to achieve it, you can refer to our FAQ.

If you have anything unclear, please feel free to let me know.

Best regards,
Bruce Zhou
Please mark the replies as answers if they help and unmark if they don't.
Bruce.Zhou  Tuesday, June 23, 2009 2:33 AM
Hi Sean,

On the top of PropertyGrid, you can see a ComboBox control, you can select the very panel object for edit.

Actually, you can use TabControl to group the controls. At design time, we can layout the controls with visual clues of the TabHeader. At run time, we can easily hide the tabHeaders, and display the current selected tabpage. As for how to achieve it, you can refer to our FAQ.

If you have anything unclear, please feel free to let me know.

Best regards,
Bruce Zhou
Please mark the replies as answers if they help and unmark if they don't.
Bruce.Zhou  Tuesday, June 23, 2009 2:33 AM
Hi Bruce,

Thanks for your answer. I have used tab controls before so am a little familiar with them. I didn't think about this as I haven't hidden the tabs before, though I've played about with orders, removing and adding tabs and changing their text properties too.

I think I'll re-design the interface to use these instead.

Kind regards,

Sean
Sean Connolly  Tuesday, June 23, 2009 8:35 AM

You can use google to search for other answers

Custom Search

More Threads

• Hiding the Script Combobox in FONT Dialog
• CollectionEditor does not allowing editing of events for components
• Form dispaly area to bitmap?
• is there any way to force a control to receive focus?
• Windows Form Designer generated code
• Property overide sets default property value to overided value.
• Display Smart tag at runtime
• Is a seperate DLL required for Designer support
• What is the ideal way to open and close form in windows application?
• How to make a Label to re-adjust its own Font.Size based on its Size and its Text length.