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

C#

 
AnswerRe: how to pass variable between classes in window application Pin
Guffa15-Jul-07 0:11
Guffa15-Jul-07 0:11 
GeneralRe: how to pass variable between classes in window application Pin
mhp13015-Jul-07 0:13
mhp13015-Jul-07 0:13 
AnswerRe: how to pass variable between classes in window application Pin
Muhammad Gouda15-Jul-07 0:17
Muhammad Gouda15-Jul-07 0:17 
GeneralRe: how to pass variable between classes in window application Pin
Colin Angus Mackay15-Jul-07 1:15
Colin Angus Mackay15-Jul-07 1:15 
GeneralRe: how to pass variable between classes in window application Pin
Muhammad Gouda15-Jul-07 1:30
Muhammad Gouda15-Jul-07 1:30 
GeneralRe: how to pass variable between classes in window application Pin
Luc Pattyn15-Jul-07 1:47
sitebuilderLuc Pattyn15-Jul-07 1:47 
GeneralRe: how to pass variable between classes in window application Pin
Colin Angus Mackay15-Jul-07 2:05
Colin Angus Mackay15-Jul-07 2:05 
GeneralRe: how to pass variable between classes in window application Pin
Colin Angus Mackay15-Jul-07 1:08
Colin Angus Mackay15-Jul-07 1:08 
mhp130 wrote:
but in general, how do I pass variables between classes in a window application?


Regardless of application type you can pass variables through constructor parameters, method parameters or properties.


mhp130 wrote:
or there are some namespace level variable I can use?


Good grief no! That is extremely bad practice.


mhp130 wrote:
I was a VB programmer so I've been spoiled that there are always application level variables to use.


That's not being spoiled, that's picking up bad habits... Which I suppose happens if you get spoiled also..


Upcoming events:
* Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ...

"I wouldn't say boo to a goose. I'm not a coward, I just realise that it would be largely pointless."

Ready to Give up - Your help will be much appreciated.


My website

QuestionWindows Form in web form Pin
ankit_mait14-Jul-07 23:03
ankit_mait14-Jul-07 23:03 
AnswerRe: Windows Form in web form Pin
Manas Bhardwaj14-Jul-07 23:28
professionalManas Bhardwaj14-Jul-07 23:28 
GeneralRe: Windows Form in web form Pin
Christian Graus15-Jul-07 6:19
protectorChristian Graus15-Jul-07 6:19 
GeneralRe: Windows Form in web form Pin
ankit_mait16-Jul-07 6:26
ankit_mait16-Jul-07 6:26 
AnswerRe: Windows Form in web form Pin
WillemM14-Jul-07 23:40
WillemM14-Jul-07 23:40 
Questionbutton appearance Pin
Maddie from Dartford14-Jul-07 22:02
Maddie from Dartford14-Jul-07 22:02 
AnswerRe: button appearance Pin
mav.northwind14-Jul-07 22:18
mav.northwind14-Jul-07 22:18 
GeneralRe: button appearance Pin
Maddie from Dartford14-Jul-07 22:28
Maddie from Dartford14-Jul-07 22:28 
Questionabout using dataset.xsd Pin
abstar14-Jul-07 20:31
abstar14-Jul-07 20:31 
AnswerRe: about using dataset.xsd Pin
mav.northwind14-Jul-07 22:20
mav.northwind14-Jul-07 22:20 
GeneralRe: about using dataset.xsd Pin
abstar15-Jul-07 9:02
abstar15-Jul-07 9:02 
GeneralRe: about using dataset.xsd Pin
mav.northwind15-Jul-07 9:52
mav.northwind15-Jul-07 9:52 
GeneralRe: about using dataset.xsd Pin
Paul Conrad15-Jul-07 10:02
professionalPaul Conrad15-Jul-07 10:02 
QuestionHTML to XML, using C#? Pin
turoi14-Jul-07 18:20
turoi14-Jul-07 18:20 
AnswerRe: HTML to XML, using C#? Pin
Steve Echols14-Jul-07 18:39
Steve Echols14-Jul-07 18:39 
GeneralRe: HTML to XML, using C#? Pin
DavidNohejl15-Jul-07 2:42
DavidNohejl15-Jul-07 2:42 
AnswerRe: HTML to XML, using C#? Pin
DavidNohejl15-Jul-07 2:43
DavidNohejl15-Jul-07 2: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.