Click here to Skip to main content
15,893,622 members
Home / Discussions / C#
   

C#

 
GeneralRe: Add a Form to TabControl Pin
Martin#17-Apr-07 20:45
Martin#17-Apr-07 20:45 
QuestionHow to get parent process id of a process Pin
lchild38517-Apr-07 16:23
lchild38517-Apr-07 16:23 
AnswerRe: How to get parent process id of a process Pin
Dave Kreskowiak17-Apr-07 17:03
mveDave Kreskowiak17-Apr-07 17:03 
GeneralRe: How to get parent process id of a process Pin
lchild38518-Apr-07 2:42
lchild38518-Apr-07 2:42 
QuestionDetect up/down pressed for NumericUpDown class Pin
bankai12317-Apr-07 15:51
bankai12317-Apr-07 15:51 
AnswerRe: Detect up/down pressed for NumericUpDown class Pin
sujithkumarsl17-Apr-07 19:55
sujithkumarsl17-Apr-07 19:55 
GeneralRe: Detect up/down pressed for NumericUpDown class Pin
sivakarthick17-Apr-07 20:26
sivakarthick17-Apr-07 20:26 
QuestionCollection of Objects Pin
sreecahitu17-Apr-07 12:45
sreecahitu17-Apr-07 12:45 
AnswerRe: Collection of Objects Pin
Christian Graus17-Apr-07 13:04
protectorChristian Graus17-Apr-07 13:04 
AnswerRe: Collection of Objects Pin
sujithkumarsl17-Apr-07 19:57
sujithkumarsl17-Apr-07 19:57 
GeneralRe: Collection of Objects [modified] Pin
sreecahitu18-Apr-07 5:26
sreecahitu18-Apr-07 5:26 
GeneralRe: Collection of Objects Pin
sujithkumarsl18-Apr-07 22:34
sujithkumarsl18-Apr-07 22:34 
QuestionMultiple Generic Constraint Syntax? Pin
mike montagne17-Apr-07 12:36
mike montagne17-Apr-07 12:36 
AnswerRe: Multiple Generic Constraint Syntax? Pin
Dave Doknjas17-Apr-07 13:29
Dave Doknjas17-Apr-07 13:29 
GeneralRe: Multiple Generic Constraint Syntax? Pin
mike montagne17-Apr-07 18:25
mike montagne17-Apr-07 18:25 
QuestionDataRowState Not Working Pin
polishprogrammer17-Apr-07 11:56
polishprogrammer17-Apr-07 11:56 
AnswerRe: DataRowState Not Working Pin
kragan17-Apr-07 12:44
kragan17-Apr-07 12:44 
GeneralRe: DataRowState Not Working Pin
polishprogrammer18-Apr-07 5:51
polishprogrammer18-Apr-07 5:51 
QuestionPageSetupDialog Customization Pin
Wolfram Steinke17-Apr-07 11:19
Wolfram Steinke17-Apr-07 11:19 
Questionusing arrow key in a richtextbox Pin
dino209417-Apr-07 10:10
dino209417-Apr-07 10:10 
AnswerRe: using arrow key in a richtextbox Pin
il_masacratore17-Apr-07 21:16
il_masacratore17-Apr-07 21:16 
QuestionVirtual base class?? Pin
cbin17-Apr-07 9:30
cbin17-Apr-07 9:30 
Hi, the term is probably wrong, but this is what I need to do.

I want to make a base class that I cannot create instances of, but holds the prototypes for a bunch of functions. I will subclass from this later and make a real class. is an "interface" what I am looking to use?

For example: I have a method (call it "DoStuff") in a library that takes a "Surface" as one of its arguments. within that method I will evaluate a point on that surface, so "Surface" contains a method GetPoint(u,v). The surface class cannot do any evaluation because it could be a NURBS surface, or maybe an explicit surface, or any other kind that will evaluate differently, so to prevent a runtime bug, I want to prevent anyone from making an instance of "Surface". Instead, I want to create a subclass NurbsSurf : Surface that will know how to evaluate itself at u and v, and I will pass a "NurbsSurf" to "DoStuff", but the "DoStuff" method also needs to accept any other kind of surface that I might create.

Sorry, I know that this is probably a pretty basic question.

Thanks for any help

cb
AnswerRe: Virtual base class?? Pin
Pete O'Hanlon17-Apr-07 9:36
mvePete O'Hanlon17-Apr-07 9:36 
AnswerRe: Virtual base class?? Pin
Dan Neely17-Apr-07 9:49
Dan Neely17-Apr-07 9:49 
GeneralRe: Virtual base class?? Pin
cbin17-Apr-07 11:26
cbin17-Apr-07 11:26 

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.