Click here to Skip to main content
15,923,142 members
Home / Discussions / C#
   

C#

 
GeneralTreeNode.Text Pin
Serge R9-May-02 15:56
Serge R9-May-02 15:56 
GeneralRe: TreeNode.Text Pin
James T. Johnson9-May-02 18:10
James T. Johnson9-May-02 18:10 
GeneralRe: TreeNode.Text Pin
Serge R10-May-02 0:41
Serge R10-May-02 0:41 
GeneralRe: TreeNode.Text Pin
James T. Johnson10-May-02 2:03
James T. Johnson10-May-02 2:03 
GeneralRe: TreeNode.Text Pin
Eric Gunnerson (msft)10-May-02 7:43
Eric Gunnerson (msft)10-May-02 7:43 
GeneralRe: TreeNode.Text Pin
Serge R10-May-02 8:47
Serge R10-May-02 8:47 
GeneralRe: TreeNode.Text Pin
10-May-02 9:11
suss10-May-02 9:11 
GeneralRe: TreeNode.Text Pin
Serge R10-May-02 9:04
Serge R10-May-02 9:04 
GeneralRe: TreeNode.Text Pin
Eric Gunnerson (msft)10-May-02 9:07
Eric Gunnerson (msft)10-May-02 9:07 
GeneralRe: TreeNode.Text Pin
Nick Parker9-May-02 18:24
protectorNick Parker9-May-02 18:24 
GeneralRe: TreeNode.Text Pin
Serge R10-May-02 1:17
Serge R10-May-02 1:17 
GeneralRe: TreeNode.Text Pin
James T. Johnson10-May-02 14:45
James T. Johnson10-May-02 14:45 
GeneralDisplaying REG_MULTI_SZ from teh Registry Pin
KobyBoy9-May-02 12:01
KobyBoy9-May-02 12:01 
GeneralRe: Displaying REG_MULTI_SZ from teh Registry Pin
Neil Van Note9-May-02 12:16
Neil Van Note9-May-02 12:16 
GeneralRe: Displaying REG_MULTI_SZ from teh Registry Pin
Nick Parker9-May-02 18:55
protectorNick Parker9-May-02 18:55 
GeneralRe: Displaying REG_MULTI_SZ from teh Registry Pin
James T. Johnson10-May-02 1:42
James T. Johnson10-May-02 1:42 
GeneralRe: Displaying REG_MULTI_SZ from teh Registry Pin
Nick Parker10-May-02 4:28
protectorNick Parker10-May-02 4:28 
QuestionHow to make ctrl+C (copy), ctrl+V(Paste) work in winforms Pin
9-May-02 10:44
suss9-May-02 10:44 
AnswerRe: How to make ctrl+C (copy), ctrl+V(Paste) work in winforms Pin
Nick Parker9-May-02 11:48
protectorNick Parker9-May-02 11:48 
GeneralRe: How to make ctrl+C (copy), ctrl+V(Paste) work in winforms Pin
9-May-02 17:58
suss9-May-02 17:58 
QuestionHow to create a Collection Property? Pin
Zombies with Coffee, LLC9-May-02 9:24
professionalZombies with Coffee, LLC9-May-02 9:24 
AnswerRe: How to create a Collection Property? Pin
David Wengier9-May-02 13:10
David Wengier9-May-02 13:10 
GeneralC# Color Coding Format Pin
Nick Parker9-May-02 9:21
protectorNick Parker9-May-02 9:21 
GeneralForm Designer Pin
BLaZiNiX8-May-02 17:04
BLaZiNiX8-May-02 17:04 
GeneralRe: Form Designer Pin
James T. Johnson8-May-02 18:06
James T. Johnson8-May-02 18:06 
BLaZiNiX wrote:
I want to create something similar to the C# Form Designer include in the C# IDE but not too advanced, I just want to know how can I lock a Form in my Main Application Window, anybody know how to make something like this ?

From what I can tell the VS.NET forms designer actually loads the form up into a temporary app domain and displays it in the window. To display a Form inside another form use this bit of code.

Form childForm = GetFormToDisplay();
 
childForm.TopLevel = false;
childForm.Location = GetLocation();
 
this.Controls.Add(childForm);
You'll also have to hook several messages using Application.AddMessageFilter so that the child form can't be moved around (NCHITTEST plus some WM_SYSCOMMAND).

I have another message here that explains how to use Application.AddMessageFilter

James

Simplicity Rules!

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.