Click here to Skip to main content
15,903,175 members
Home / Discussions / C#
   

C#

 
QuestionIterate through form controls C# Pin
Kasic Slobodan15-Sep-06 11:00
Kasic Slobodan15-Sep-06 11:00 
AnswerRe: Iterate through form controls C# Pin
ystl15-Sep-06 11:11
ystl15-Sep-06 11:11 
GeneralRe: Iterate through form controls C# [modified] Pin
Kasic Slobodan15-Sep-06 11:29
Kasic Slobodan15-Sep-06 11:29 
QuestionPort 80 Pin
AAndrews15-Sep-06 10:21
AAndrews15-Sep-06 10:21 
AnswerRe: Port 80 Pin
User 665815-Sep-06 11:21
User 665815-Sep-06 11:21 
AnswerRe: Port 80 [modified] Pin
AAndrews16-Sep-06 1:46
AAndrews16-Sep-06 1:46 
QuestionCalling Method Problem, using this in Methods-calls, HELP pls Pin
blackoasis@googlemail.com15-Sep-06 9:57
blackoasis@googlemail.com15-Sep-06 9:57 
AnswerRe: Calling Method Problem, using this in Methods-calls, HELP pls Pin
Stefan Troschuetz15-Sep-06 20:40
Stefan Troschuetz15-Sep-06 20:40 
app = (Appointment)session.Load(typeof(Appointment), appId);

This line assigns a new object to the app variable which doesn't reflect outside the method unless you use the ref keyword. You have differentiate between changes to the state of an object and assigning a completly new object. The first case would require no extra work as Appointment is a reference type, but the second case require use of ref keyword. Change the method signature and call as follows:
appData.GetAppointment(ref this);

public void GetAppointment(ref Appointment app)


That's how it generally works, but I'm not sure if it works if you pass in this. Maybe you have no other chance than making some refactoring which maybe isn't that bad cause in my opinion your code is a bit strange (creating an appointment that creates an appointmentdata which then loads an appointment).


"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook

www.troschuetz.de

QuestionHow to Create a Custom Line Object Control Pin
ystl15-Sep-06 9:35
ystl15-Sep-06 9:35 
AnswerRe: How to Create a Custom Line Object Control Pin
mav.northwind15-Sep-06 21:56
mav.northwind15-Sep-06 21:56 
GeneralRe: How to Create a Custom Line Object Control Pin
ystl18-Sep-06 4:58
ystl18-Sep-06 4:58 
Questionactive directory "DirectorySearcher" security Pin
WetRivrRat15-Sep-06 9:06
WetRivrRat15-Sep-06 9:06 
QuestionError installing COM component in system32 Pin
Abbas8215-Sep-06 8:21
Abbas8215-Sep-06 8:21 
QuestionWebservice C# [modified] Pin
acardeiradias15-Sep-06 8:00
acardeiradias15-Sep-06 8:00 
AnswerRe: Webservice C# Pin
Stefan Troschuetz15-Sep-06 20:44
Stefan Troschuetz15-Sep-06 20:44 
GeneralRe: Webservice C# Pin
acardeiradias15-Sep-06 23:28
acardeiradias15-Sep-06 23:28 
Questionerratic NaN's in a C# program Pin
davidmakovoz15-Sep-06 6:26
davidmakovoz15-Sep-06 6:26 
AnswerRe: erratic NaN's in a C# program Pin
Not Active15-Sep-06 6:40
mentorNot Active15-Sep-06 6:40 
AnswerRe: erratic NaN's in a C# program Pin
leppie15-Sep-06 12:42
leppie15-Sep-06 12:42 
QuestionModeless Form Pin
zaboboa15-Sep-06 6:16
zaboboa15-Sep-06 6:16 
AnswerRe: Modeless Form Pin
Not Active15-Sep-06 6:31
mentorNot Active15-Sep-06 6:31 
GeneralRe: Modeless Form Pin
zaboboa15-Sep-06 6:37
zaboboa15-Sep-06 6:37 
GeneralRe: Modeless Form Pin
Not Active15-Sep-06 6:42
mentorNot Active15-Sep-06 6:42 
GeneralRe: Modeless Form Pin
zaboboa15-Sep-06 6:44
zaboboa15-Sep-06 6:44 
Question IE Extension: How to add a button to the status bar? Pin
rryyjw15-Sep-06 6:09
rryyjw15-Sep-06 6:09 

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.