Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / Design Time / July 2007

Tip: Looking for answers? Try searching our database.

App.config settings not available for user controls at design time

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Paul - 02 Jul 2007 12:34 GMT
vs2005:

I am finding that the app.config settings are not being read by user
controls on a form at design time. The designer can't load in this case
and throws up it's error message. There are a few other threads on this
 but none seem to have an answer. For example:

http://groups.google.com/group/microsoft.public.dotnet.languages.vb/browse_threa
d/thread/74039dbbe18e0e79/4a4b69799a7ff0d8?lnk=st&q=&rnum=23&hl=en#4a4b69799a7ff
0d8


It's very annoying. At run time the program is ok, the settings are
read. Is there a fix for this? The only thing I can do now is test for
DesignMode in the user control and skip certain lines of code.
Paul - 03 Jul 2007 18:16 GMT
> vs2005:
>
[quoted text clipped - 8 lines]
> read. Is there a fix for this? The only thing I can do now is test for
> DesignMode in the user control and skip certain lines of code.

I am wrong. It appears that OnLoad is only called for usercontrols when
using the forms designer, not for the main form? App.config settings are
not available in the designer period, AFAIK. I need a good backgrounder
on the details for this.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.