Click here to Skip to main content
13,048,584 members (92,395 online)
Rate this:
Please Sign up or sign in to vote.
See more:
I want the user to be able to edit everything in the window eg, press button1 and label2.text = "World of warcraft"; and if button2 is pressed label2.text = "Portal 2";
and then I can turn the whole program into a exe that has been saved, just like you save a txt file in C# can anyone please help me?

So yeh it kinda saves it self and turns its self into another exe of its self
Posted 22-Apr-11 0:31am
Richard MacCutchan 22-Apr-11 6:40am
So how much have you already completed, and which part(s) are you actually having difficulty with?
systemerror121 22-Apr-11 6:48am
0% im having difficulty with all of it
Richard MacCutchan 22-Apr-11 6:53am
Then you have a long task ahead of you! Seriously, no-one here has the time to produce a complete system for you. Try reading some of the CodeProject articles and use the samples to get started.

systemerror121 22-Apr-11 7:04am
You wanna give me some of them then?
Richard MacCutchan 22-Apr-11 12:29pm
Some of what, are you incapable of doing anything for yourself?
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

You should store all the UI labels and captions in a config file. And provide another dialog/form that allows the user to change these text values and save them. And during app startup, assign these labels from the config file to the appropriate UI controls. If the config file is missing or corrupt, you should have default fall-back values to use.
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Pick the text from a resource file (XML for example)
Olivier Levrey 22-Apr-11 7:56am
This answer doesn't deserve 1.
I will vote 5 because it is actually the cleanest and best way to do it.
CodingLover 26-Apr-11 2:46am
I just gave the best solution, but not the complete. I cannot answers exactly what OP wants to do without knowing what he has done so far.
SAKryukov 22-Apr-11 22:16pm
I agree with Olivier, also voted 5.
All this attempts to play with "saving executable" are not impossible, but completely pointless and poorly maintainable if not to say dirty. (However, the request from OP also makes little sense.)
It's also required to safe data to XML, which is not a problem.
CodingLover 26-Apr-11 2:51am
I'm waiting a OPs' response to help on this. :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 22 Apr 2011
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100