Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#
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 1:31am
Comments
Richard MacCutchan at 22-Apr-11 6:40am
   
So how much have you already completed, and which part(s) are you actually having difficulty with?
systemerror121 at 22-Apr-11 6:48am
   
0% im having difficulty with all of it
Richard MacCutchan at 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 at 22-Apr-11 7:04am
   
You wanna give me some of them then?
Richard MacCutchan at 22-Apr-11 12:29pm
   
Some of what, are you incapable of doing anything for yourself?
Rate this: bad
good
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.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Pick the text from a resource file (XML for example)
  Permalink  
Comments
Olivier Levrey at 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 at 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 at 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.
--SA
CodingLover at 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
0 OriginalGriff 7,903
1 Sergey Alexandrovich Kryukov 7,142
2 DamithSL 5,604
3 Manas Bhardwaj 4,986
4 Maciej Los 4,820


Advertise | Privacy | Mobile
Web01 | 2.8.1411023.1 | Last Updated 22 Apr 2011
Copyright © CodeProject, 1999-2014
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