Click here to Skip to main content
15,905,607 members
Home / Discussions / C#
   

C#

 
GeneralRe: Dont know how to create a storage procedure to Pin
paddymega16-Aug-12 6:00
paddymega16-Aug-12 6:00 
AnswerRe: Dont know how to create a storage procedure to Pin
Eddy Vluggen16-Aug-12 6:20
professionalEddy Vluggen16-Aug-12 6:20 
GeneralRe: Dont know how to create a storage procedure to Pin
paddymega16-Aug-12 7:29
paddymega16-Aug-12 7:29 
AnswerRe: Dont know how to create a storage procedure to Pin
Eddy Vluggen16-Aug-12 8:30
professionalEddy Vluggen16-Aug-12 8:30 
GeneralRe: Dont know how to create a storage procedure to Pin
paddymega16-Aug-12 8:36
paddymega16-Aug-12 8:36 
GeneralRe: Dont know how to create a storage procedure to Pin
Eddy Vluggen16-Aug-12 8:37
professionalEddy Vluggen16-Aug-12 8:37 
AnswerRe: Dont know how to create a storage procedure to Pin
Eddy Vluggen16-Aug-12 1:59
professionalEddy Vluggen16-Aug-12 1:59 
Questionhow to how message from window serviece Pin
ashjassi16-Aug-12 1:27
ashjassi16-Aug-12 1:27 
AnswerRe: how to how message from window serviece Pin
Eddy Vluggen16-Aug-12 1:34
professionalEddy Vluggen16-Aug-12 1:34 
AnswerRe: how to how message from window serviece Pin
Wes Aday16-Aug-12 1:35
professionalWes Aday16-Aug-12 1:35 
AnswerRe: how to how message from window serviece Pin
Shameel16-Aug-12 1:47
professionalShameel16-Aug-12 1:47 
AnswerRe: how to how message from window serviece Pin
Vijay Selvaraj26-Aug-12 22:03
Vijay Selvaraj26-Aug-12 22:03 
Questionauto sleep/wakeup windows 7 at specified times Pin
lordrt15-Aug-12 10:04
lordrt15-Aug-12 10:04 
AnswerRe: auto sleep/wakeup windows 7 at specified times Pin
Wes Aday15-Aug-12 11:13
professionalWes Aday15-Aug-12 11:13 
NewsRe: auto sleep/wakeup windows 7 at specified times Pin
Eddy Vluggen15-Aug-12 11:41
professionalEddy Vluggen15-Aug-12 11:41 
AnswerRe: auto sleep/wakeup windows 7 at specified times Pin
OriginalGriff15-Aug-12 20:42
mveOriginalGriff15-Aug-12 20:42 
AnswerRe: auto sleep/wakeup windows 7 at specified times Pin
lordrt16-Aug-12 5:38
lordrt16-Aug-12 5:38 
QuestionHaving Problem with small Function Pin
computerpublic15-Aug-12 8:11
computerpublic15-Aug-12 8:11 
AnswerRe: Having Problem with small Function Pin
Dave Kreskowiak15-Aug-12 8:14
mveDave Kreskowiak15-Aug-12 8:14 
GeneralRe: Having Problem with small Function Pin
computerpublic15-Aug-12 9:06
computerpublic15-Aug-12 9:06 
GeneralRe: Having Problem with small Function Pin
Wes Aday15-Aug-12 9:43
professionalWes Aday15-Aug-12 9:43 
GeneralRe: Having Problem with small Function Pin
harold aptroot15-Aug-12 10:20
harold aptroot15-Aug-12 10:20 
AnswerRe: Having Problem with small Function PinPopular
Bernhard Hiller15-Aug-12 22:54
Bernhard Hiller15-Aug-12 22:54 
AnswerRe: Having Problem with small Function Pin
DaveyM6916-Aug-12 1:37
professionalDaveyM6916-Aug-12 1:37 
I think it's been explained pretty well already, but just in case...

static methods are available without an instance of the class. Non static methods are only available through an instance of the class.

This gives you two options in your case. Either
1. Make the Test method static
C#
public static Double Test(Double Val1, Double Val2, Double Val3)

or

2. Create a new instance of the class that holds the method (Program in this case).
C#
Double Result = new Program().Test(A,B,C);

alternative
C#
Program program = new Program();
Double Result = program.Test(A,B,C);

Dave

Binging is like googling, it just feels dirtier.
Please take your VB.NET out of our nice case sensitive forum.
Astonish us. Be exceptional. (Pete O'Hanlon)

BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)



QuestionDelegate w/ Lambda Pin
Herrwolf115-Aug-12 4:43
Herrwolf115-Aug-12 4:43 

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.