restoring ui settings c# winforms - eventuality respond to?
when repremand revive ui plans settings system.windows.forms.control?
i attempted this:
foobargadget control = new foobargadget();
parent.controls.add(control);
control.fobnicatorwidth = lastlayoutsettings.fobwidth;
no cigar. reason? control isn't finished laying out the internals; it's the default distance 100x100 pixels after construction. once it's finished loading indeed displays ui, 500x500 pixels. therefore, sourroundings fobnicatorwidth 200 pixels fails; it's incomparable control.
is there control.loaded eventuality - somwehere where i revive saved ui settings?
Comments
Post a Comment