DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Mon, 02 Jul 2007 05:34:26 -0600,    posted on: microsoft.public.dotnet.framework.windowsforms.designtime        back       

Thread Index
  1    Paul
          2    Paul


App.config settings not available for user controls at design time   
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_thread/thread/74039dbbe18e0e79/4a4b69799a7ff0d8?lnk=st&q=&rnum=23&hl=en#4a4b69799a7ff0d8


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.
Date:Mon, 02 Jul 2007 05:34:26 -0600   Author:  

Re: App.config settings not available for user controls at design time   
Paul wrote:

> 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_thread/thread/74039dbbe18e0e79/4a4b69799a7ff0d8?lnk=st&q=&rnum=23&hl=en#4a4b69799a7ff0d8 
> 
> 
> 
> 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.


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.
Date:Tue, 03 Jul 2007 11:16:26 -0600   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us