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

C#

 
QuestionAppend new node to XML file Pin
saud_a_k15-Jul-07 1:34
saud_a_k15-Jul-07 1:34 
AnswerRe: Append new node to XML file Pin
mav.northwind15-Jul-07 2:18
mav.northwind15-Jul-07 2:18 
GeneralRe: Append new node to XML file Pin
saud_a_k15-Jul-07 19:25
saud_a_k15-Jul-07 19:25 
Questionhow to pass variable between classes in window application Pin
mhp13015-Jul-07 0:00
mhp13015-Jul-07 0:00 
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 
Mohammed Gouda wrote:
Just make it public


Make what public? A field on the class. That is extremely bad practice: see Why make fields in a class private, why not just make them public?[^] and The public fields debate again[^]


Mohammed Gouda wrote:
You can make it static to pass it through the class name


And what happens when you have many instances of the same class? You pass the value to the static field and then you immediately affect all instances of the class rather than the one you are interested in.


Mohammed Gouda wrote:
you can create an instance from class2 into class1 to access non static members


I just don't understand where you are going with that.


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

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 
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 

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.