Click here to Skip to main content
16,006,341 members
Home / Discussions / C#
   

C#

 
GeneralRe: Listview - bold font Pin
SandeepN7-Oct-04 12:24
SandeepN7-Oct-04 12:24 
QuestionHow to exit Excel? Pin
Jeremy Ouellette7-Oct-04 9:56
Jeremy Ouellette7-Oct-04 9:56 
AnswerRe: How to exit Excel? Pin
Alex Korchemniy7-Oct-04 13:54
Alex Korchemniy7-Oct-04 13:54 
AnswerRe: How to exit Excel? Pin
Heath Stewart7-Oct-04 22:04
protectorHeath Stewart7-Oct-04 22:04 
GeneralShared c#.cs file among several projects Pin
tlongman7-Oct-04 9:27
tlongman7-Oct-04 9:27 
GeneralRe: Shared c#.cs file among several projects Pin
Alex Korchemniy7-Oct-04 9:59
Alex Korchemniy7-Oct-04 9:59 
GeneralRe: Shared c#.cs file among several projects Pin
Matt Gerrans7-Oct-04 13:34
Matt Gerrans7-Oct-04 13:34 
GeneralRe: Shared c#.cs file among several projects Pin
Salil Khedkar7-Oct-04 21:01
Salil Khedkar7-Oct-04 21:01 
I guess many people coming from a C++ background try to do this thing. I wanted to do it myself, when I started with my first C# project.

After a few trials and errors and a little reading I found the following most logical way out:

(1) The code which you want to make common should either be a base class or a utility class.
(2) If not, make it so. Then you will have either BaseClass.cs or UtilityClass.cs file. Have a project for this class.
(3) Now I don’t know your case but typically, you have a single solution with multiple projects. Whichever projects require the BaseClass or UtilityClass functionality, do an ‘Add reference’ of the BaseClass or UtilityClass.

This works for me, do let me know your experience. Wink | ;)

GeneralRe: Shared c#.cs file among several projects Pin
benjymous7-Oct-04 22:14
benjymous7-Oct-04 22:14 
GeneralExporting data to Excel or Word Pin
IronSnake7-Oct-04 8:42
IronSnake7-Oct-04 8:42 
GeneralRe: Exporting data to Excel or Word Pin
Alex Korchemniy7-Oct-04 17:27
Alex Korchemniy7-Oct-04 17:27 
GeneralRe: Exporting data to Excel or Word Pin
sreejith ss nair20-Nov-04 19:36
sreejith ss nair20-Nov-04 19:36 
GeneralRemote Application (Proxy) Pin
Wender Oliveira7-Oct-04 7:00
Wender Oliveira7-Oct-04 7:00 
GeneralRe: Remote Application (Proxy) Pin
Heath Stewart7-Oct-04 7:58
protectorHeath Stewart7-Oct-04 7:58 
GeneralRe: Remote Application (Proxy) Pin
Wender Oliveira7-Oct-04 9:00
Wender Oliveira7-Oct-04 9:00 
GeneralRe: Remote Application (Proxy) Pin
Heath Stewart7-Oct-04 17:25
protectorHeath Stewart7-Oct-04 17:25 
GeneralShutDown Process Pin
Zamolxes7-Oct-04 6:24
Zamolxes7-Oct-04 6:24 
GeneralRe: ShutDown Process Pin
Heath Stewart7-Oct-04 7:33
protectorHeath Stewart7-Oct-04 7:33 
GeneralAdding user defined buttons to Messagebox Pin
jagan797-Oct-04 6:16
jagan797-Oct-04 6:16 
GeneralRe: Adding user defined buttons to Messagebox Pin
Heath Stewart7-Oct-04 7:48
protectorHeath Stewart7-Oct-04 7:48 
GeneralRe: Adding user defined buttons to Messagebox Pin
Dave Kreskowiak7-Oct-04 7:55
mveDave Kreskowiak7-Oct-04 7:55 
General"Embedding" a form in a form Pin
LannieK7-Oct-04 5:58
LannieK7-Oct-04 5:58 
GeneralRe: "Embedding" a form in a form Pin
Steve Maier7-Oct-04 7:11
professionalSteve Maier7-Oct-04 7:11 
GeneralCrytographic Question Pin
Hawaii_Yin7-Oct-04 5:06
sussHawaii_Yin7-Oct-04 5:06 
GeneralRe: Crytographic Question Pin
Dave Kreskowiak7-Oct-04 5:57
mveDave Kreskowiak7-Oct-04 5:57 

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.