Click here to Skip to main content
15,887,683 members
Home / Discussions / C#
   

C#

 
GeneralRe: Adding number and letters on a form like a phone. Pin
Giorgi Dalakishvili14-Mar-08 9:41
mentorGiorgi Dalakishvili14-Mar-08 9:41 
GeneralRe: Adding number and letters on a form like a phone. Pin
martin_hughes14-Mar-08 11:43
martin_hughes14-Mar-08 11:43 
GeneralDebug mode error and exe problem Pin
aximum14-Mar-08 7:21
aximum14-Mar-08 7:21 
GeneralRe: Debug mode error and exe problem Pin
Luc Pattyn14-Mar-08 10:37
sitebuilderLuc Pattyn14-Mar-08 10:37 
GeneralFormatting data in DataGridViewCell Pin
t4ure4n14-Mar-08 5:44
t4ure4n14-Mar-08 5:44 
GeneralRe: Formatting data in DataGridViewCell Pin
Xmen Real 14-Mar-08 16:10
professional Xmen Real 14-Mar-08 16:10 
AnswerRe: Formatting data in DataGridViewCell Pin
buchstaben15-Mar-08 6:14
buchstaben15-Mar-08 6:14 
GeneralGeneric toolbox component [modified] Pin
hain14-Mar-08 5:32
hain14-Mar-08 5:32 
I have written a generic (i.e., having a type parameter) undo-redo component that I would like to add to the toolbox. The problem is, how can I drag this component to the component tray, and specify the type (of objects on the undo stack). I can't just make the component use system.object, since the objects must be ICloneable (and that would not be "generic" anyway).

When the component is dragged onto the component tray, an instance of the component is created, so it needs to know its type. Perhaps, the initial type could be system.object (how would you specify this for the drag?), and then the actual type could be be given as a property of the component, and changed when the property is changed? (How would you do this?)

Interesting/challenging problem, huh? (...well, perhaps not for the gurus).
Does anyone have an elegant solution?
Thanks,
Tom

modified on Friday, March 14, 2008 11:46 AM

GeneralRe: Generic toolbox component Pin
led mike14-Mar-08 7:26
led mike14-Mar-08 7:26 
GeneralRe: Generic toolbox component Pin
hain14-Mar-08 11:04
hain14-Mar-08 11:04 
GeneralDatabinding on ComboBox Pin
guidoursus14-Mar-08 4:43
guidoursus14-Mar-08 4:43 
GeneralRe: Databinding on ComboBox Pin
Rob Philpott14-Mar-08 4:49
Rob Philpott14-Mar-08 4:49 
GeneralRe: Databinding on ComboBox Pin
Gareth H14-Mar-08 5:24
Gareth H14-Mar-08 5:24 
GeneralRe: Databinding on ComboBox Pin
guidoursus14-Mar-08 5:29
guidoursus14-Mar-08 5:29 
QuestionConsole application with args: Is there a way to pass args from VS when debugging? Pin
Frankidoze14-Mar-08 4:37
Frankidoze14-Mar-08 4:37 
AnswerRe: Console application with args: Is there a way to pass args from VS when debugging? Pin
laserbaronen14-Mar-08 4:39
laserbaronen14-Mar-08 4:39 
AnswerRe: Console application with args: Is there a way to pass args from VS when debugging? Pin
Rob Philpott14-Mar-08 4:39
Rob Philpott14-Mar-08 4:39 
GeneralBusiness entities and unique identifiers. Pin
matbuk14-Mar-08 4:08
matbuk14-Mar-08 4:08 
GeneralRe: Business entities and unique identifiers. Pin
Rob Philpott14-Mar-08 4:23
Rob Philpott14-Mar-08 4:23 
GeneralRe: Business entities and unique identifiers. Pin
matbuk14-Mar-08 4:38
matbuk14-Mar-08 4:38 
GeneralRe: Business entities and unique identifiers. Pin
Rob Philpott14-Mar-08 4:45
Rob Philpott14-Mar-08 4:45 
GeneralRe: Business entities and unique identifiers. Pin
matbuk14-Mar-08 4:50
matbuk14-Mar-08 4:50 
QuestionHow to view PDF in C# (Window forms) Pin
Khaleek Ahmad14-Mar-08 2:11
Khaleek Ahmad14-Mar-08 2:11 
AnswerRe: How to view PDF in C# (Window forms) Pin
C1AllenS14-Mar-08 3:18
C1AllenS14-Mar-08 3:18 
Generalmaintain back the combobox item Pin
angels77714-Mar-08 1:57
angels77714-Mar-08 1:57 

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.