Click here to Skip to main content
15,900,461 members
Home / Discussions / C#
   

C#

 
GeneralRe: Phone Calls Pin
Bismark Appah21-Oct-09 22:05
Bismark Appah21-Oct-09 22:05 
QuestionCut and Paste Attachements from Outlook Pin
werner2721-Oct-09 10:26
werner2721-Oct-09 10:26 
QuestionHow To Make A Data Bound Control Pin
Kevin Marois21-Oct-09 10:15
professionalKevin Marois21-Oct-09 10:15 
AnswerRe: How To Make A Data Bound Control [modified] Pin
Eddy Vluggen21-Oct-09 11:26
professionalEddy Vluggen21-Oct-09 11:26 
GeneralRe: How To Make A Data Bound Control Pin
Kevin Marois21-Oct-09 13:52
professionalKevin Marois21-Oct-09 13:52 
Questionis it possible to scroll Microsoft Word, Excel? Pin
venkat S0721-Oct-09 7:24
venkat S0721-Oct-09 7:24 
Questionis it possible to get the scrollbar info from IE via user32.dll or any provider? how? Pin
venkat S0721-Oct-09 7:19
venkat S0721-Oct-09 7:19 
QuestionConverting to WMF Pin
mypicturefaded21-Oct-09 5:31
mypicturefaded21-Oct-09 5:31 
AnswerRe: Converting to WMF Pin
Richard MacCutchan21-Oct-09 5:39
mveRichard MacCutchan21-Oct-09 5:39 
GeneralRe: Converting to WMF Pin
mypicturefaded21-Oct-09 5:45
mypicturefaded21-Oct-09 5:45 
GeneralRe: Converting to WMF PinPopular
mypicturefaded21-Oct-09 5:52
mypicturefaded21-Oct-09 5:52 
GeneralRe: Converting to WMF Pin
Richard MacCutchan21-Oct-09 5:53
mveRichard MacCutchan21-Oct-09 5:53 
GeneralRe: Converting to WMF Pin
mypicturefaded21-Oct-09 9:01
mypicturefaded21-Oct-09 9:01 
GeneralRe: Converting to WMF Pin
Richard MacCutchan21-Oct-09 11:10
mveRichard MacCutchan21-Oct-09 11:10 
AnswerRe: Converting to WMF Pin
Luc Pattyn21-Oct-09 11:22
sitebuilderLuc Pattyn21-Oct-09 11:22 
QuestionWhat is the best way to call methods in a commom class? Pin
CBenac21-Oct-09 5:04
CBenac21-Oct-09 5:04 
I want to create an UtilLib class to contain commonly used methods (business logic, etc...) that are called from different modules inside the application.

So far, I know of 2 ways of doing it and would like to find out which one is better, or the advantages of each one.

1. Create an instance of the class (Inside the method that calls it) then call the desired method. I know the instance will be disposed once the calling method ends, or goes out of scope and the GC quicks in.

2. Make the class and all the methods static and call the method directly.
(Less code to write)

NOTE: The UtilLib will contain mostly simple methods. nothing too complex.
AnswerRe: What is the best way to call methods in a commom class? Pin
Luc Pattyn21-Oct-09 5:07
sitebuilderLuc Pattyn21-Oct-09 5:07 
GeneralRe: What is the best way to call methods in a commom class? Pin
CBenac21-Oct-09 13:36
CBenac21-Oct-09 13:36 
GeneralRe: What is the best way to call methods in a commom class? Pin
Luc Pattyn21-Oct-09 13:43
sitebuilderLuc Pattyn21-Oct-09 13:43 
GeneralRe: What is the best way to call methods in a commom class? Pin
CBenac22-Oct-09 2:49
CBenac22-Oct-09 2:49 
AnswerRe: What is the best way to call methods in a commom class? Pin
dan!sh 21-Oct-09 5:32
professional dan!sh 21-Oct-09 5:32 
GeneralRe: What is the best way to call methods in a commom class? Pin
Not Active21-Oct-09 5:48
mentorNot Active21-Oct-09 5:48 
GeneralRe: What is the best way to call methods in a commom class? Pin
dan!sh 21-Oct-09 5:55
professional dan!sh 21-Oct-09 5:55 
GeneralRe: What is the best way to call methods in a commom class? Pin
Not Active21-Oct-09 6:28
mentorNot Active21-Oct-09 6:28 
GeneralRe: What is the best way to call methods in a commom class? Pin
dan!sh 21-Oct-09 7:26
professional dan!sh 21-Oct-09 7: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.