form return problem!
-
Hi folks, Here's my problem: (and the source of my frustrations) I'm writing an app to control a service.. Now, the settings of this service are kept in a serialized file, which is the serialized form of my configuration - object... The user should be able to specify certain settings by pressing a button, so what I do is passing an instance of the configuration class to the SettingsForm. e.g. frmSettings formsettings = new frmSettings(myConfiguration); now for the big question: How can that frmSettings RETURN the modified myConfiguration to the parentform without having to go to the trouble of serializing the stuff, writing it to the disk and deserializing it again in the parent form... Thank you very much for your response! A young c# programmer:)
-
Hi folks, Here's my problem: (and the source of my frustrations) I'm writing an app to control a service.. Now, the settings of this service are kept in a serialized file, which is the serialized form of my configuration - object... The user should be able to specify certain settings by pressing a button, so what I do is passing an instance of the configuration class to the SettingsForm. e.g. frmSettings formsettings = new frmSettings(myConfiguration); now for the big question: How can that frmSettings RETURN the modified myConfiguration to the parentform without having to go to the trouble of serializing the stuff, writing it to the disk and deserializing it again in the parent form... Thank you very much for your response! A young c# programmer:)
Read this article on how to pass values between forms[^].
Upcoming events: * Edinburgh: Web Security Conference Day for Windows Developers (12th April) * Glasgow: Introduction to AJAX (2nd May), SQL Server, Mock Objects My website
-
Read this article on how to pass values between forms[^].
Upcoming events: * Edinburgh: Web Security Conference Day for Windows Developers (12th April) * Glasgow: Introduction to AJAX (2nd May), SQL Server, Mock Objects My website
-
I don't see the solution here on first sight.. I'm really trying to return an instance of an object (not a value) when the user chooses to commit the changes...
motojojo wrote:
I'm really trying to return an instance of an object
Yes, and a value is.... an instance of an object.
Upcoming events: * Edinburgh: Web Security Conference Day for Windows Developers (12th April) * Glasgow: Introduction to AJAX (2nd May), SQL Server, Mock Objects My website