![]() |
First-time setup of application
I want to have my program check to see if certain information has been setup up, like server address, etc. I want the application to check and if this information hasn't been setup, then it will prompt the user to enter this information for first-time setup. I tried putting this in the first form load event, but it doesn't do what I want. Can somebody point me in the right direction?
|
Re: First-time setup of application
How about in the Form_Load, you check for values in the registry that indicate if the information has previously been provided?
|
Re: First-time setup of application
I'm not that sophisticated yet Recursion; my information is held in .txt files. I tried putting my check in the main form load event, but it ignores it. I'd like to do my checks before the main form loads, but don't know how.
|
Re: First-time setup of application
Show us some code, Jabo.
|
Re: First-time setup of application
The code that I tried is the first IF statement. I realize that the form hasn't loaded yet and can't be hid, but why wouldn't it show my other form? How can I do this better?
Also, frommail is a string that has been assigned a filepath. It was declared publicly. :
|
Re: First-time setup of application
Basically, this program needs an email server to send to, a From: email address and some other text files with specific information that the program needs to work properly. I don't want the program to crash on somebody on first use, which it has been doing until those files are created. After the files are there, program works fine. I guess what I'm looking for is the VB equivalent of preprocessor directives such as #ifdef and #ifndef.
I had all that information hard-coded into the program for work use, but they changed our domain on our emails, which meant I had to go back and change the information then recompile. I want my program more robust than that so I'm removing the key elements being hard-coded into the program. |
Re: First-time setup of application
Seems the problem is with this line:
:
:
|
Re: First-time setup of application
I'll give it a try, thanks for the suggest Ooble
|
| All times are GMT -5. The time now is 1:14 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC