Hello everyone,
Let me start by saying that this is my first C# application, so I don't know all the windows quirks. Secondly, I hope I'm posting in the right forum! Mods: feel free to move this if it's in the wrong spot.
Setup:
VS2008, win XP, .NET 3.5
Brief Description:
I wrote a Windows Form application in VS2008 and used the VS installer. These projects compiled fine. The installer adds a system registry to auto start my application once a user logs in. My application checks if a config.xml file exists on Form_Load(). If it exists, it continues loading the main application. If config.xml doesn't exist, it prompts for values from a user via a windows form. These values are stored into the xml file and the program continues to load.
The Problem:
If the program is ran normally, it runs as expected (prompts only if the xml file is not there). If the program is auto started when the user logs in, the application always prompts for values to place into the config file - even if a xml file exists. I'm stumped on this one.
If anyone has any ideas, I would love to hear them!
-Tim
Loading
harika mPosted Nov 22, 2008, 1:33 AM
hi buddy..
sorry frnd, i too not getting where u r down. the code is right, but.. i am not getting, if u solved plz let me know.. all the best
tim WithersPosted Nov 20, 2008, 2:40 PM
private void Form1_Load(object sender, EventArgs e)
{
//take care of the form
this.Resize += new EventHandler(Form1_Resize);
notifyIcon1.Visible = true;
//name of the config file to use
config = "config.xml";
if (!File.Exists(config))
{
ConfigForm confgform = new ConfigForm();
data = confgform.GetPrompt(); //returns -1 on abort
}
}
harika mPosted Nov 20, 2008, 7:09 AM
Hi buddy,
Can i know wat code u hav written for chking the data with xml. So that i may know wat exactly happens