Click here to Skip to main content
15,915,093 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
Question.net framework1.1 Pin
dimuthuvbnet26-Oct-07 0:08
dimuthuvbnet26-Oct-07 0:08 
AnswerRe: .net framework1.1 Pin
Dave Kreskowiak26-Oct-07 2:32
mveDave Kreskowiak26-Oct-07 2:32 
AnswerRe: .net framework1.1 Pin
Paul Conrad27-Oct-07 8:44
professionalPaul Conrad27-Oct-07 8:44 
QuestionTextbox Borderstyle Bug? Pin
Th0rian25-Oct-07 11:09
Th0rian25-Oct-07 11:09 
AnswerRe: Textbox Borderstyle Bug? Pin
Th0rian26-Oct-07 5:17
Th0rian26-Oct-07 5:17 
QuestionManaging Configuration Pin
MCEdwards24-Oct-07 23:05
MCEdwards24-Oct-07 23:05 
AnswerRe: Managing Configuration Pin
Pete O'Hanlon24-Oct-07 23:36
mvePete O'Hanlon24-Oct-07 23:36 
Question.net 2.0 to .net 1.1 Pin
Bad Programmer24-Oct-07 6:34
Bad Programmer24-Oct-07 6:34 
AnswerRe: .net 2.0 to .net 1.1 Pin
Dave Kreskowiak24-Oct-07 7:06
mveDave Kreskowiak24-Oct-07 7:06 
AnswerRe: .net 2.0 to .net 1.1 Pin
Pete O'Hanlon24-Oct-07 8:55
mvePete O'Hanlon24-Oct-07 8:55 
GeneralRe: .net 2.0 to .net 1.1 Pin
Dave Kreskowiak24-Oct-07 9:19
mveDave Kreskowiak24-Oct-07 9:19 
GeneralRe: .net 2.0 to .net 1.1 Pin
Pete O'Hanlon24-Oct-07 21:49
mvePete O'Hanlon24-Oct-07 21:49 
GeneralRe: .net 2.0 to .net 1.1 Pin
Bad Programmer25-Oct-07 3:10
Bad Programmer25-Oct-07 3:10 
AnswerRe: .net 2.0 to .net 1.1 Pin
Paul Conrad27-Oct-07 8:45
professionalPaul Conrad27-Oct-07 8:45 
AnswerRe: .net 2.0 to .net 1.1 Pin
Nouman Bhatti28-Oct-07 21:38
Nouman Bhatti28-Oct-07 21:38 
QuestionClick on disabled control Pin
topcatalpha24-Oct-07 4:29
topcatalpha24-Oct-07 4:29 
AnswerRe: Click on disabled control Pin
Dave Kreskowiak24-Oct-07 7:07
mveDave Kreskowiak24-Oct-07 7:07 
GeneralRe: Click on disabled control Pin
topcatalpha24-Oct-07 20:35
topcatalpha24-Oct-07 20:35 
GeneralRe: Click on disabled control Pin
Dave Kreskowiak25-Oct-07 1:45
mveDave Kreskowiak25-Oct-07 1:45 
GeneralRe: Click on disabled control Pin
topcatalpha25-Oct-07 2:07
topcatalpha25-Oct-07 2:07 
GeneralRe: Click on disabled control Pin
Dave Kreskowiak25-Oct-07 13:01
mveDave Kreskowiak25-Oct-07 13:01 
It sounds like you're trying to put your entire app on one form, which is not a good idea. If you do any data binding of controls, you'll find that becomes a headache in an environment like this.

If this is true and you are putting every on a single form, you've increased the time is takes to create that form. There's nothing you can do about it. Creating a control is a very expensive process. Multiple that by a couple of hundred times and it takes forever.

Also, I see no reason to use UserControls. It's probably the second most abused class next to a PictureBox control. UserControl is designed to make it easier to make "composite" controls. Say a TextBox and a Button combine to make something like a Browse control. You can either type a path in the TextBox or click the Button to browser for a filepath.

Did you know that the Form class derives from Control?? Yes, you can treat a Form just like any other control, like a TextBox or Button. Design each "page" of your notebook as a seperate form, setting the FormBorderStyle to None to get rid of the title bar. Then you from your TreeView you can create and destroy each form and place it in the right side of your screen just like placing a control. When you click a new item in the TreeView, Dispose the last form created and create a new one. Just remember to set the Form's TopLevel property to False before you add it to a container controls collection.


A guide to posting questions on CodeProject[^]

Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007


GeneralRe: Click on disabled control Pin
topcatalpha25-Oct-07 21:06
topcatalpha25-Oct-07 21:06 
GeneralRe: Click on disabled control Pin
Dave Kreskowiak26-Oct-07 2:27
mveDave Kreskowiak26-Oct-07 2:27 
GeneralRe: Click on disabled control Pin
topcatalpha26-Oct-07 2:55
topcatalpha26-Oct-07 2:55 
GeneralRegEx Question: Matching a Quoted String Pin
Brady Kelly24-Oct-07 1:01
Brady Kelly24-Oct-07 1:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.