Click here to Skip to main content
15,891,529 members
Home / Discussions / C#
   

C#

 
AnswerRe: C# UnPacking Executables Pin
Dave Kreskowiak14-Nov-09 18:09
mveDave Kreskowiak14-Nov-09 18:09 
Questionconnect clients using share host callback Pin
doronpp14-Nov-09 13:25
doronpp14-Nov-09 13:25 
QuestionStoring Data Pin
_Q12_14-Nov-09 12:18
_Q12_14-Nov-09 12:18 
AnswerRe: Storing Data Pin
Luc Pattyn14-Nov-09 12:57
sitebuilderLuc Pattyn14-Nov-09 12:57 
GeneralRe: Storing Data Pin
Not Active14-Nov-09 13:27
mentorNot Active14-Nov-09 13:27 
AnswerRe: Storing Data Pin
Not Active14-Nov-09 13:25
mentorNot Active14-Nov-09 13:25 
GeneralRe: Storing Data Pin
Luc Pattyn14-Nov-09 14:03
sitebuilderLuc Pattyn14-Nov-09 14:03 
GeneralRe: Storing Data Pin
_Q12_14-Nov-09 21:33
_Q12_14-Nov-09 21:33 
yeee I find it and it does a great job indeed.
ha. I must now find a way to integrate an array there.

Here is How To Save Inside Your App !

1. select a button in the designer, open Properties for it, and see the first property named "ApplicationSettings". Click on the + sign to open his sub-properties. At the "text" property click the down arrow and it appear a little box-window. There inside click on the "(New...)".
2. At this stage, you should see a window named "New Application Setting". Change the name to "mySetting", Scope = User, Default Value = "aha". Click Ok.
3. (optional) To verify if all is how you want to be, open Solution Explorer - Properties-Settings.settings. A new window appear and open the Settings tab from the left. You will see there all your custom settings.
A little advice: select the button in the designer, go to it's properties again, and at it's Name property verify if it has the "aha" value there. It must be there, because you set it in the Default Value, last time. Wink | ;)
4. In the code for that button, write this:

private void buttonSave_Click(object sender, EventArgs e)
        {
            if (buttonRestore.Text == "aha" )
            {
                buttonRestore.Text = "-!aha!-";
            }
            else
            {
                buttonRestore.Text = "aha";
            }
          Properties.Settings.Default.Save();
        }



5. Run your app, click the button to change it's appearance, and restart app.
VOILA! Smile | :)
GeneralRe: Storing Data Pin
_Q12_14-Nov-09 22:53
_Q12_14-Nov-09 22:53 
GeneralRe: Storing Data Pin
OriginalGriff14-Nov-09 23:13
mveOriginalGriff14-Nov-09 23:13 
QuestionTimer in C# - Tick not available Pin
Femtofarad14-Nov-09 11:31
Femtofarad14-Nov-09 11:31 
AnswerRe: Timer in C# - Tick not available Pin
Luc Pattyn14-Nov-09 11:43
sitebuilderLuc Pattyn14-Nov-09 11:43 
GeneralRe: Timer in C# - Tick not available Pin
Femtofarad14-Nov-09 11:50
Femtofarad14-Nov-09 11:50 
GeneralRe: Timer in C# - Tick not available Pin
Luc Pattyn14-Nov-09 11:52
sitebuilderLuc Pattyn14-Nov-09 11:52 
GeneralRe: Timer in C# - Tick not available Pin
Femtofarad14-Nov-09 11:57
Femtofarad14-Nov-09 11:57 
AnswerRe: Timer in C# - Tick not available Pin
Shameel14-Nov-09 22:32
professionalShameel14-Nov-09 22:32 
AnswerRe: Timer in C# - Tick not available Pin
Femtofarad15-Nov-09 0:48
Femtofarad15-Nov-09 0:48 
QuestionThread problem... Pin
Mc_Topaz14-Nov-09 11:14
Mc_Topaz14-Nov-09 11:14 
AnswerRe: Thread problem... Pin
kstls14-Nov-09 11:40
kstls14-Nov-09 11:40 
GeneralRe: Thread problem... Pin
Mc_Topaz14-Nov-09 12:29
Mc_Topaz14-Nov-09 12:29 
AnswerRe: Thread problem... Pin
Luc Pattyn14-Nov-09 11:45
sitebuilderLuc Pattyn14-Nov-09 11:45 
AnswerRe: Thread problem... Pin
Shameel14-Nov-09 22:39
professionalShameel14-Nov-09 22:39 
Questionquery: how to include only specific players Pin
rooster215414-Nov-09 10:25
rooster215414-Nov-09 10:25 
Questionvideo clip in c# Pin
rizwana rashid14-Nov-09 10:14
rizwana rashid14-Nov-09 10:14 
AnswerRe: video clip in c# Pin
Dave Kreskowiak14-Nov-09 11:18
mveDave Kreskowiak14-Nov-09 11:18 

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.