Click here to Skip to main content
15,925,895 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to dispaly "Systeminformation" dialog? Pin
Chris Rickard26-Jun-02 4:54
Chris Rickard26-Jun-02 4:54 
GeneralRe: How to dispaly "Systeminformation" dialog? Pin
Feng Qin26-Jun-02 16:21
Feng Qin26-Jun-02 16:21 
GeneralCustom web control Pin
25-Jun-02 15:46
suss25-Jun-02 15:46 
GeneralRe: Custom web control Pin
Rocky Moore25-Jun-02 17:10
Rocky Moore25-Jun-02 17:10 
GeneralTimeZone Pin
Chris Melinn25-Jun-02 13:45
Chris Melinn25-Jun-02 13:45 
GeneralRe: TimeZone Pin
Chris Rickard25-Jun-02 14:58
Chris Rickard25-Jun-02 14:58 
GeneralResource files and user types Pin
25-Jun-02 0:18
suss25-Jun-02 0:18 
GeneralRe: Resource files and user types Pin
Chris Rickard26-Jun-02 4:41
Chris Rickard26-Jun-02 4:41 
I'll help with the 2nd question:

If the parameter is of different types you can overload the method, just declare the same method with all the different paramaters.

If thats not really what you want your best bet is to use an enumerated type like so:

public enum UsrActions
{
    Walk,
    Run,
    Jump,
    Skip
}

And your method
private void SomeMethod(UsrActions usrAction)
{
    switch(usrAction)
    {
        case UsrActions.Jump:...
        case UsrActions.Walk:...
        ...
    }
}

Then when using the method if you're in Visual Studio you get to this point
someObject.SomeMethod(

Intellisense will pop-up with letting you know its expecting a type UsrAction, just type UsrAction. and up pops the list of UsrAction s to choose from.
GeneralThanks! Pin
3-Jul-02 7:32
suss3-Jul-02 7:32 
GeneralUsing Interfaces with .NET Remoting Pin
tmagoo24-Jun-02 19:34
tmagoo24-Jun-02 19:34 
GeneralRe: Figured it out Using Interfaces with .NET Remoting Pin
tmagoo25-Jun-02 18:38
tmagoo25-Jun-02 18:38 
GeneralRan into a problem Pin
Brian Olej24-Jun-02 12:11
Brian Olej24-Jun-02 12:11 
GeneralRe: Ran into a problem Pin
Rama Krishna Vavilala24-Jun-02 12:29
Rama Krishna Vavilala24-Jun-02 12:29 
GeneralRe: Ran into a problem Pin
Brian Olej24-Jun-02 12:33
Brian Olej24-Jun-02 12:33 
GeneralCopying object data Pin
Zombies with Coffee, LLC24-Jun-02 9:49
professionalZombies with Coffee, LLC24-Jun-02 9:49 
GeneralRe: Copying object data Pin
Chris Rickard25-Jun-02 14:19
Chris Rickard25-Jun-02 14:19 
GeneralRe: Copying object data Pin
Zombies with Coffee, LLC25-Jun-02 16:50
professionalZombies with Coffee, LLC25-Jun-02 16:50 
GeneralRe: Copying object data Pin
Chris Rickard26-Jun-02 4:11
Chris Rickard26-Jun-02 4:11 
GeneralRe: Copying object data Pin
Zombies with Coffee, LLC26-Jun-02 4:19
professionalZombies with Coffee, LLC26-Jun-02 4:19 
GeneralPassing a ref of a form Pin
24-Jun-02 9:29
suss24-Jun-02 9:29 
GeneralRe: Passing a ref of a form Pin
Chris Rickard24-Jun-02 9:37
Chris Rickard24-Jun-02 9:37 
GeneralWhat about now?? Pin
24-Jun-02 10:53
suss24-Jun-02 10:53 
GeneralRe: What about now?? Pin
Chris Rickard24-Jun-02 12:41
Chris Rickard24-Jun-02 12:41 
GeneralHi again >:) Pin
24-Jun-02 23:58
suss24-Jun-02 23:58 
GeneralI've got it Pin
25-Jun-02 0:22
suss25-Jun-02 0:22 

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.