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

C#

 
GeneralRe: 2d graphics with Direct3D 9 Pin
Christian Graus7-Sep-04 15:20
protectorChristian Graus7-Sep-04 15:20 
GeneralRe: 2d graphics with Direct3D 9 Pin
Judah Gabriel Himango7-Sep-04 15:27
sponsorJudah Gabriel Himango7-Sep-04 15:27 
GeneralRe: 2d graphics with Direct3D 9 Pin
Christian Graus7-Sep-04 15:42
protectorChristian Graus7-Sep-04 15:42 
Generale.g. 4th root of a number Pin
harrior7-Sep-04 6:04
harrior7-Sep-04 6:04 
GeneralRe: e.g. 4th root of a number Pin
Colin Angus Mackay7-Sep-04 6:16
Colin Angus Mackay7-Sep-04 6:16 
GeneralRe: e.g. 4th root of a number Pin
Anonymous7-Sep-04 6:50
Anonymous7-Sep-04 6:50 
GeneralCustom Control and GUI Designer Pin
Andy H7-Sep-04 5:34
Andy H7-Sep-04 5:34 
GeneralRe: Custom Control and GUI Designer Pin
Heath Stewart7-Sep-04 7:48
protectorHeath Stewart7-Sep-04 7:48 
Read Enhancing Design-Time Support[^] about how to use UITypeEditors, TypeConverters, and more (like the CodeDomSerializer) to enhance the design-time control over your component.

IIRC, however, the designer requires a default constructor becuase it handles instantiation of certain controls (i.e., the ones you dropped onto the surface). Those controls can further use the CodeDomSerializer (see the DesignerSerializerAttribute documentation) to serialize code that they use (like style objects)) and control how they interact with the designer, but the default constructor is serialized by the designer (ex: Visual Studio) itself.

Consider another approach, however. The designer supports the ISupportInitialize interface. Implement that interface on your component. By the time EndInit is called, a property (that you're currently implementing through a constructor parameter) better be set or you throw the appropriate exception. That's actually a more common approach (but you can implement and use the ISupportInitialize for other purposes as well).

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles]
AnswerRe: How does one access the AutoIncrementCurrent Value Pin
Jo Develper7-Sep-04 5:01
Jo Develper7-Sep-04 5:01 
QuestionAllowing access to an internal ArrayList through IEnumerator? Pin
matthias s.7-Sep-04 4:30
matthias s.7-Sep-04 4:30 
AnswerRe: Allowing access to an internal ArrayList through IEnumerator? Pin
sreejith ss nair7-Sep-04 5:09
sreejith ss nair7-Sep-04 5:09 
QuestionHow does one access the AutoIncrementCurrent Value Pin
Anonymous7-Sep-04 4:26
Anonymous7-Sep-04 4:26 
GeneralHi! I need help on custom user control Pin
Member 13210317-Sep-04 4:25
Member 13210317-Sep-04 4:25 
GeneralRe: Hi! I need help on custom user control Pin
Heath Stewart7-Sep-04 7:42
protectorHeath Stewart7-Sep-04 7:42 
GeneralWord 2002 interop Pin
rommie27-Sep-04 4:03
rommie27-Sep-04 4:03 
GeneralRe: Word 2002 interop Pin
mav.northwind7-Sep-04 4:25
mav.northwind7-Sep-04 4:25 
GeneralRe: Word 2002 interop Pin
rommie28-Sep-04 4:45
rommie28-Sep-04 4:45 
Questionhow to use mask in c# Pin
sssa20007-Sep-04 3:59
sssa20007-Sep-04 3:59 
AnswerRe: how to use mask in c# Pin
Christian Graus7-Sep-04 12:15
protectorChristian Graus7-Sep-04 12:15 
GeneralRe: how to use mask in c# Pin
sssa20007-Sep-04 20:03
sssa20007-Sep-04 20:03 
GeneralCalendar/ Grid suggestions Pin
Michael P Butler7-Sep-04 3:52
Michael P Butler7-Sep-04 3:52 
GeneralSaving Stream object Pin
Den2Fly7-Sep-04 3:42
Den2Fly7-Sep-04 3:42 
GeneralRe: Saving Stream object Pin
matthias s.7-Sep-04 4:35
matthias s.7-Sep-04 4:35 
GeneralRe: Saving Stream object Pin
Heath Stewart7-Sep-04 7:08
protectorHeath Stewart7-Sep-04 7:08 
QuestionHow to Zip/UnZip files thru C# code Pin
nacp7-Sep-04 2:02
nacp7-Sep-04 2:02 

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.