Click here to Skip to main content
15,918,808 members
Home / Discussions / C#
   

C#

 
Questionwhat is the problem with this GetDIBits invoke? Pin
fu011-May-04 16:42
fu011-May-04 16:42 
AnswerRe: what is the problem with this GetDIBits invoke? Pin
Christian Graus11-May-04 18:21
protectorChristian Graus11-May-04 18:21 
AnswerRe: what is the problem with this GetDIBits invoke? Pin
Roman Rodov11-May-04 19:07
Roman Rodov11-May-04 19:07 
AnswerRe: what is the problem with this GetDIBits invoke? Pin
fu012-May-04 0:14
fu012-May-04 0:14 
GeneralRe: what is the problem with this GetDIBits invoke? Pin
Heath Stewart12-May-04 3:03
protectorHeath Stewart12-May-04 3:03 
GeneralRe: what is the problem with this GetDIBits invoke? Pin
RobbKirk13-Jul-11 10:27
RobbKirk13-Jul-11 10:27 
GeneralInitial Positioning Pin
Wackatronic11-May-04 15:24
Wackatronic11-May-04 15:24 
GeneralRe: Initial Positioning Pin
Heath Stewart11-May-04 16:30
protectorHeath Stewart11-May-04 16:30 
You mean docked to a container, like a Form? See the Dock property, which can be set in the constructor.

Also, you can support initialization after instantiation by implementing the ISupportInitialize interface. The VS.NET designer will automatically call the BeginInit method after instantiating your control, and will call EndInit when done in the InitializeComponent call (you can do this yourself, too - I'm just telling you how VS.NET handles controls that implement this interface).

This way, in your implementation of the EndInit interface, you should have a valid Parent reference (so long as your control was added to the parent's Controls collection property) and can do what you need to. Implementing this interface is a great way to suport initialization of your control in steps.

PS: You could do this using your own implementation without implementing the interface, but VS.NET won't care. Implementing the ISupportInitialize interface is a good way to add designer support for your control. There are other designer-oriented things you can do, which are handy for a lot of programmers. Read Enhancing Design-Time Support[^] in the .NET Framework SDK for more information.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Initial Positioning Pin
Wackatronic12-May-04 7:09
Wackatronic12-May-04 7:09 
GeneralRe: Initial Positioning Pin
Meysam Mahfouzi11-May-04 16:34
Meysam Mahfouzi11-May-04 16:34 
GeneralNeed Help to link Nero Solution with C# Pin
GegoTheWizard11-May-04 12:49
GegoTheWizard11-May-04 12:49 
GeneralRe: Need Help to link Nero Solution with C# Pin
Heath Stewart11-May-04 16:25
protectorHeath Stewart11-May-04 16:25 
GeneralRe: Need Help to link Nero Solution with C# Pin
GegoTheWizard12-May-04 12:54
GegoTheWizard12-May-04 12:54 
GeneralRe: Need Help to link Nero Solution with C# Pin
Heath Stewart12-May-04 12:56
protectorHeath Stewart12-May-04 12:56 
GeneralCustomizing Windows Form - IE capabilities. Pin
stan2811-May-04 10:17
stan2811-May-04 10:17 
GeneralRe: Customizing Windows Form - IE capabilities. Pin
Heath Stewart11-May-04 11:01
protectorHeath Stewart11-May-04 11:01 
Generalserialization Pin
cristina_tudor11-May-04 10:15
cristina_tudor11-May-04 10:15 
GeneralRe: serialization Pin
Heath Stewart11-May-04 11:04
protectorHeath Stewart11-May-04 11:04 
GeneralQuery, DateTime Pin
DougW4811-May-04 10:15
DougW4811-May-04 10:15 
GeneralRe: Query, DateTime Pin
Michael P Butler11-May-04 10:25
Michael P Butler11-May-04 10:25 
GeneralRe: Query, DateTime Pin
DougW4811-May-04 13:16
DougW4811-May-04 13:16 
GeneralRe: Query, DateTime Pin
Heath Stewart11-May-04 11:07
protectorHeath Stewart11-May-04 11:07 
GeneralRe: Query, DateTime Pin
DougW4811-May-04 15:02
DougW4811-May-04 15:02 
GeneralRe: Query, DateTime Pin
Heath Stewart11-May-04 16:21
protectorHeath Stewart11-May-04 16:21 
GeneralRe: Query, DateTime Pin
DougW4811-May-04 16:47
DougW4811-May-04 16:47 

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.