Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Application Settings unavailable in Forms?

Status
Not open for further replies.

j0em0mma

Programmer
Jul 31, 2003
131
US
I have created two string application settings for DatabaseName and DatabaseServer by right clicking the project, choosing properties then settings. I have saved and rebuilt the project. I then enter the following code:

Code:
dim strDBName as string = my.settings.

into the load section of my login form (I want to move this to the DAL, but trying to test it first) None of the settings I've set appear when I type the period following "My.settings". Am I missing something? Also, I notice that when I do this in the DAL, I get an larger selection of properties and methods, but still not my settings.

2nd part of question: If I define application settings in my main project, will they be accessible to referenced projects like the DAL, assuming I can even get the original project to recognize them?
 
Welp, Visual Studio just doesn't appear to be that "Intellisensible." I just removed the 2nd setting, rebuilt, added it back, rebuilt again and now I get the proper list of My.Settings properties and methods. Pretty Screwy...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top