Click here to Skip to main content
15,909,199 members
Home / Discussions / C#
   

C#

 
JokeRe: Combining in and like Pin
Alexander Wiseman6-Jul-06 10:36
Alexander Wiseman6-Jul-06 10:36 
GeneralRe: Combining in and like Pin
Dustin Metzgar6-Jul-06 11:18
Dustin Metzgar6-Jul-06 11:18 
GeneralRe: Combining in and like Pin
Vikram A Punathambekar6-Jul-06 20:50
Vikram A Punathambekar6-Jul-06 20:50 
GeneralRe: Combining in and like Pin
Blake Miller7-Jul-06 3:47
Blake Miller7-Jul-06 3:47 
GeneralRe: Combining in and like Pin
DontSailBackwards7-Jul-06 21:22
DontSailBackwards7-Jul-06 21:22 
AnswerRe: Combining in and like Pin
ToddHileHoffer6-Jul-06 9:09
ToddHileHoffer6-Jul-06 9:09 
AnswerRe: Combining in and like Pin
NRavep9-Jul-06 20:55
NRavep9-Jul-06 20:55 
QuestionPassing a Class as a method parameter? Pin
joshp12176-Jul-06 8:40
joshp12176-Jul-06 8:40 
I mean be an idiot for asking this question too but is there a way to pass a class as a parameter of a method i.e.

I have a repeated block of code like this:
class pTermsEditor;
pTermsEditor = new class();
pnlViews.Controls.Add(pTermsEditor);
pTermsEditor.Dock = DockStyle.Fill;

This Block of code is repeated many times but the class type may and almose always does change, so I want to control it more by putting it into a method something like this:

myMethod(class)
{
class x;
x = new class();
//blah blah blah
}
Any help or even a better solution what be greatly appreciated
AnswerRe: Passing a Class as a method parameter? [modified] Pin
ToddHileHoffer6-Jul-06 8:51
ToddHileHoffer6-Jul-06 8:51 
AnswerRe: Passing a Class as a method parameter? Pin
Josh Smith6-Jul-06 9:04
Josh Smith6-Jul-06 9:04 
GeneralRe: Passing a Class as a method parameter? Pin
Judah Gabriel Himango6-Jul-06 9:29
sponsorJudah Gabriel Himango6-Jul-06 9:29 
GeneralRe: Passing a Class as a method parameter? Pin
Jun Du6-Jul-06 12:10
Jun Du6-Jul-06 12:10 
AnswerRe: Passing a Class as a method parameter? Pin
Jun Du6-Jul-06 9:05
Jun Du6-Jul-06 9:05 
Questionadding icon to systemtray Pin
Mridang Agarwalla6-Jul-06 7:41
Mridang Agarwalla6-Jul-06 7:41 
AnswerRe: adding icon to systemtray Pin
Stefan Troschuetz6-Jul-06 8:15
Stefan Troschuetz6-Jul-06 8:15 
GeneralRe: adding icon to systemtray Pin
Mridang Agarwalla6-Jul-06 17:15
Mridang Agarwalla6-Jul-06 17:15 
GeneralRe: adding icon to systemtray Pin
Stefan Troschuetz6-Jul-06 20:56
Stefan Troschuetz6-Jul-06 20:56 
QuestionCopying UserControl Variables to another instance of the UserControl [modified] Pin
TheBlindWatchmaker6-Jul-06 7:39
TheBlindWatchmaker6-Jul-06 7:39 
AnswerRe: Copying UserControl Variables to another instance of the UserControl Pin
Dustin Metzgar6-Jul-06 7:55
Dustin Metzgar6-Jul-06 7:55 
GeneralRe: Copying UserControl Variables to another instance of the UserControl Pin
TheBlindWatchmaker6-Jul-06 8:13
TheBlindWatchmaker6-Jul-06 8:13 
GeneralRe: Copying UserControl Variables to another instance of the UserControl Pin
Dustin Metzgar6-Jul-06 8:28
Dustin Metzgar6-Jul-06 8:28 
QuestionTransferring data from database to database Pin
Stephen Hurt6-Jul-06 6:27
Stephen Hurt6-Jul-06 6:27 
AnswerRe: Transferring data from database to database Pin
led mike6-Jul-06 6:40
led mike6-Jul-06 6:40 
AnswerRe: Transferring data from database to database Pin
BambooMoon6-Jul-06 7:09
BambooMoon6-Jul-06 7:09 
Questionif/else statement for command button; object reference not set to an instance error Pin
leckey6-Jul-06 6:15
leckey6-Jul-06 6:15 

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.