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 / December 2004

Tip: Looking for answers? Try searching our database.

Design Time Inheriting of forms

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Roger Webb - 04 Dec 2004 17:44 GMT
I'm trying to inherit from a form I've got.  Seems easy enough, however, in
the base form's Load Event I have something that runs off to a config file
on disk (To set the runtime control values).  When I inherit this form, it
tells me it had an error in creating it because the file doesnt exist and it
actually says the config files name.  How do you inherit from a form that
references a config file (during RunTime) so that you can change it in
design time. Why is it trying to run the Form_Load event during designtime
anyway?

Does this make sense?

- Roger
joeycalisay - 06 Dec 2004 01:40 GMT
Form Load loading from a config file should only be executed at run time, it
should be enclosed in a block like this:

if (!DesignMode)
{
}

> I'm trying to inherit from a form I've got.  Seems easy enough, however, in
> the base form's Load Event I have something that runs off to a config file
[quoted text clipped - 8 lines]
>
> - Roger

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.