Click here to Skip to main content
15,561,246 members
Home / Discussions / C#
   

C#

 
GeneralRe: Open Form Incide another Form Pin
CristianConrads1-Mar-09 4:22
CristianConrads1-Mar-09 4:22 
GeneralRe: Open Form Incide another Form Pin
Henry Minute1-Mar-09 8:16
Henry Minute1-Mar-09 8:16 
GeneralRe: Open Form Incide another Form Pin
Henry Minute1-Mar-09 8:30
Henry Minute1-Mar-09 8:30 
AnswerRe: Open Form Incide another Form Pin
Peter_Weber1-Mar-09 3:37
Peter_Weber1-Mar-09 3:37 
GeneralRe: Open Form Incide another Form Pin
CristianConrads1-Mar-09 4:00
CristianConrads1-Mar-09 4:00 
GeneralRe: Open Form Incide another Form Pin
Peter_Weber1-Mar-09 4:15
Peter_Weber1-Mar-09 4:15 
AnswerRe: Open Form Incide another Form Pin
Eddy Vluggen1-Mar-09 7:39
professionalEddy Vluggen1-Mar-09 7:39 
AnswerRe: Open Form Incide another Form [modified] Pin
0x3c01-Mar-09 8:06
0x3c01-Mar-09 8:06 
Perhaps you could use the NativeWindow class, passing a CreateParams structure with its Parent property set to the Handle property of the right handle Panel. Then, display the form and use the SetParent PInvoke call to make it a child window of the parent

Pseudocode:
NativeWindow wnd = new NativeWindow(new CreateParams()
    {
        Parent = rightHandPanel.Handle,
        Height = rightHandPanel.Height,
        Width = rightHandPanel.Width,
        X = Y = 0
    }
Form display = formYouWantToDisplay;

wnd.CreateHandle();
display.Show(wnd);    //This works because NativeWindow implements IWin32Window

This would require quite a bit of research to work properly I think. Are you sure you don't just want to have an MDI parent, and dock a panel containing a treeview to the left hand side?

modified on Sunday, March 1, 2009 1:54 PM

AnswerRe: Open Form Incide another Form Pin
Luis Alonso Ramos1-Mar-09 13:59
Luis Alonso Ramos1-Mar-09 13:59 
AnswerSolution [modified] Pin
CristianConrads2-Mar-09 13:59
CristianConrads2-Mar-09 13:59 
QuestionDesktop Calender Repost Pin
WinSolution1-Mar-09 0:22
WinSolution1-Mar-09 0:22 
AnswerRe: Desktop Calender Repost Pin
0x3c01-Mar-09 0:30
0x3c01-Mar-09 0:30 
GeneralRe: Desktop Calender Repost Pin
WinSolution1-Mar-09 1:04
WinSolution1-Mar-09 1:04 
GeneralRe: Desktop Calender Repost Pin
0x3c01-Mar-09 1:22
0x3c01-Mar-09 1:22 
GeneralRe: Desktop Calender Repost Pin
WinSolution1-Mar-09 3:32
WinSolution1-Mar-09 3:32 
GeneralRe: Desktop Calender Repost Pin
0x3c01-Mar-09 7:27
0x3c01-Mar-09 7:27 
AnswerRe: Desktop Calender Repost Pin
AKNR Chandra Sekhar19-Mar-09 9:47
AKNR Chandra Sekhar19-Mar-09 9:47 
QuestionSaving User and Application Settings in WinForms Pin
Sokka9328-Feb-09 22:29
Sokka9328-Feb-09 22:29 
AnswerRe: Saving User and Application Settings in WinForms Pin
ABitSmart1-Mar-09 1:30
ABitSmart1-Mar-09 1:30 
GeneralRe: Saving User and Application Settings in WinForms Pin
Sokka931-Mar-09 1:54
Sokka931-Mar-09 1:54 
AnswerRe: Saving User and Application Settings in WinForms Pin
Henry Minute1-Mar-09 2:23
Henry Minute1-Mar-09 2:23 
QuestionFile Not Found Exception Handling Pin
Lim Yuxuan28-Feb-09 22:29
Lim Yuxuan28-Feb-09 22:29 
AnswerRe: File Not Found Exception Handling Pin
0x3c01-Mar-09 0:16
0x3c01-Mar-09 0:16 
GeneralRe: File Not Found Exception Handling Pin
Lim Yuxuan1-Mar-09 2:27
Lim Yuxuan1-Mar-09 2:27 
Questionbuilding network in form of a graph Pin
sunnyk8628-Feb-09 21:52
sunnyk8628-Feb-09 21:52 

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.