Click here to Skip to main content
15,910,981 members
Home / Discussions / C#
   

C#

 
QuestionEnable and Disable Certain cells in the WPF DataGrid Pin
chetanN21-Nov-08 2:33
chetanN21-Nov-08 2:33 
QuestionOpening large files to edit Pin
Matjaz-xyz21-Nov-08 1:27
Matjaz-xyz21-Nov-08 1:27 
AnswerRe: Opening large files to edit Pin
Pedram Behroozi21-Nov-08 1:31
Pedram Behroozi21-Nov-08 1:31 
AnswerRe: Opening large files to edit Pin
HosamAly21-Nov-08 8:19
HosamAly21-Nov-08 8:19 
QuestionMDI - Kinda... [modified] Pin
#realJSOP21-Nov-08 0:26
professional#realJSOP21-Nov-08 0:26 
AnswerRe: MDI - Kinda... Pin
Luc Pattyn21-Nov-08 2:52
sitebuilderLuc Pattyn21-Nov-08 2:52 
AnswerRe: MDI - Kinda... Pin
Mycroft Holmes21-Nov-08 13:49
professionalMycroft Holmes21-Nov-08 13:49 
AnswerRe: MDI - Kinda... Pin
Scott Dorman22-Nov-08 2:40
professionalScott Dorman22-Nov-08 2:40 
It really does sound like what you want is a tabbed interface (TDI) as opposed to MDI. The best third-party control I've found for this is the one from Divelements called SandDock. It has a really simple but powerful API behind and allows you a lot of flexibility. As long as you are using .NET 2.0 or later you can hook into some of the tab events to do menu merging (almost identical to MDI, except you have to do it yourself) using the ToolStripManager.Merge and ToolStripManager.RevertMerge functions. I've done this many times before and it works great.

One option would be to make your forms user controls instead of forms and then add them to the controls collection (controls[0]) of the tabbed window when it loads. The other option is to derive your forms from the tabbed window control itself, which means that they become tabbed windows in their own right. (It does get a bit more involved than that, but I've done this a lot using SandDock so I can answer questions offline as well.)

Scott Dorman
Microsoft® MVP - Visual C# | MCPD
President - Tampa Bay IASA

[Blog][Articles][Forum Guidelines]
Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai

QuestionOpen Excel with C#.NET Pin
chirag.3g20-Nov-08 23:31
chirag.3g20-Nov-08 23:31 
AnswerRe: Open Excel with C#.NET Pin
Giorgi Dalakishvili20-Nov-08 23:59
mentorGiorgi Dalakishvili20-Nov-08 23:59 
Questionreports: 'Format' style of textbox item Pin
klok_@20-Nov-08 23:00
klok_@20-Nov-08 23:00 
QuestionDispose() Pin
Member 78161020-Nov-08 22:52
Member 78161020-Nov-08 22:52 
AnswerRe: Dispose() Pin
JoeSharp20-Nov-08 23:03
JoeSharp20-Nov-08 23:03 
GeneralRe: Dispose() Pin
Scott Dorman22-Nov-08 2:47
professionalScott Dorman22-Nov-08 2:47 
AnswerRe: Dispose() [modified] Pin
Thomas Weller20-Nov-08 23:18
Thomas Weller20-Nov-08 23:18 
GeneralRe: Dispose() Pin
Mirko198021-Nov-08 0:26
Mirko198021-Nov-08 0:26 
GeneralRe: Dispose() Pin
Le centriste21-Nov-08 6:38
Le centriste21-Nov-08 6:38 
GeneralRe: Dispose() Pin
Scott Dorman22-Nov-08 2:42
professionalScott Dorman22-Nov-08 2:42 
AnswerRe: Dispose() Pin
Guffa21-Nov-08 5:32
Guffa21-Nov-08 5:32 
AnswerRe: Dispose() Pin
Scott Dorman22-Nov-08 2:45
professionalScott Dorman22-Nov-08 2:45 
QuestionCrystal report error.......?? Pin
Hum Dum20-Nov-08 20:03
Hum Dum20-Nov-08 20:03 
QuestionForm (8 UserControl + 1 StatusStrip + 1 ToolStrip): error? where? it works!!! Pin
nelsonpaixao20-Nov-08 13:27
nelsonpaixao20-Nov-08 13:27 
AnswerRe: Form (8 UserControl + 1 StatusStrip + 1 ToolStrip): error? where? it works!!! Pin
Christian Graus20-Nov-08 13:39
protectorChristian Graus20-Nov-08 13:39 
GeneralRe: Form (8 UserControl + 1 StatusStrip + 1 ToolStrip): error? where? it works!!! Pin
nelsonpaixao20-Nov-08 13:56
nelsonpaixao20-Nov-08 13:56 
GeneralRe: Form (8 UserControl + 1 StatusStrip + 1 ToolStrip): error? where? it works!!! Pin
Christian Graus20-Nov-08 15:12
protectorChristian Graus20-Nov-08 15:12 

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.