Click here to Skip to main content
15,906,333 members
Home / Discussions / C#
   

C#

 
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!
GeneralRe: Form Designer Pin
BLaZiNiX8-May-02 18:15
BLaZiNiX8-May-02 18:15 
GeneralRe: Form Designer Pin
James T. Johnson8-May-02 18:33
James T. Johnson8-May-02 18:33 
GeneralRe: Form Designer Pin
Neil Van Note8-May-02 18:42
Neil Van Note8-May-02 18:42 
GeneralRe: Form Designer Pin
James T. Johnson8-May-02 19:10
James T. Johnson8-May-02 19:10 
GeneralRe: Form Designer Pin
Neil Van Note8-May-02 19:15
Neil Van Note8-May-02 19:15 
GeneralRe: Form Designer Pin
BLaZiNiX9-May-02 3:07
BLaZiNiX9-May-02 3:07 
GeneralRe: Form Designer Pin
Neil Van Note9-May-02 3:52
Neil Van Note9-May-02 3:52 
GeneralRe: Form Designer Pin
BLaZiNiX9-May-02 7:41
BLaZiNiX9-May-02 7:41 
GeneralRe: Form Designer Pin
Neil Van Note9-May-02 16:09
Neil Van Note9-May-02 16:09 
GeneralRe: Form Designer Pin
BLaZiNiX9-May-02 17:16
BLaZiNiX9-May-02 17:16 
GeneralRe: Form Designer Pin
Neil Van Note9-May-02 17:57
Neil Van Note9-May-02 17:57 
GeneralRe: Form Designer Pin
James T. Johnson8-May-02 18:24
James T. Johnson8-May-02 18:24 
GeneralDifference between Release and Debug Pin
8-May-02 16:39
suss8-May-02 16:39 
GeneralRe: Difference between Release and Debug Pin
James T. Johnson8-May-02 16:51
James T. Johnson8-May-02 16:51 
GeneralRe: Difference between Release and Debug Pin
Nish Nishant8-May-02 17:15
sitebuilderNish Nishant8-May-02 17:15 
GeneralRe: Difference between Release and Debug Pin
8-May-02 17:24
suss8-May-02 17:24 
GeneralRe: Difference between Release and Debug Pin
Nish Nishant8-May-02 17:44
sitebuilderNish Nishant8-May-02 17:44 

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.