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