Skip to Content
.NET Windows Forms in a Nutshell
book

.NET Windows Forms in a Nutshell

by Ian Griffiths, Matthew Adams
March 2003
Intermediate to advanced
896 pages
32h 35m
English
O'Reilly Media, Inc.
Content preview from .NET Windows Forms in a Nutshell

Name

CreateParams

Synopsis

This class wraps the set of parameters passed to a Win32 window in its CreateWindow() or CreateWindowEx() function. If you are wrapping a Win32 control with your own managed Control, you can override the Control.CreateParams member to return a modified set of creation attributes. You should not use this class under any other circumstances.


public class CreateParams {

// Public Constructors

   public CreateParams();

// Public Instance Properties

   public string Caption{set; get; }

   public string ClassName{set; get; }

   public int ClassStyle{set; get; }

   public int ExStyle{set; get; }

   public int Height{set; get; }

   public object Param{set; get; }

   public IntPtr Parent{set; get; }

   public int Style{set; get; }

   public int Width{set; get; }

   public int X{set; get; }

   public int Y{set; get; }

// Public Instance Methods

   public override string ToString();  // overrides object

}

Returned By

Control.CreateParams

Passed To

NativeWindow.CreateHandle()

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Windows Forms 2.0 Programming

Windows Forms 2.0 Programming

Chris Sells, Michael Weinhardt
Pro C# 7: With .NET and .NET Core

Pro C# 7: With .NET and .NET Core

Andrew Troelsen, Philip Japikse

Publisher Resources

ISBN: 0596003382Supplemental ContentCatalog PageErrata