windows - C# WinForms: On New Form Load Choose Tab Visibility -


i'm having trouble setting visibility of tab when file loaded in application. when user launches app displays welcome tab, i'm trying when user selects file -> open loads file in new editor form fine can't seem figure out how make load form , set visibility of editor tab.

          if (this.openeditordialog.showdialog(this) == dialogresult.ok && editform != null)         {             editform.close();             editform = new editorform(this);             editform.openfile(this.openeditordialog.filename);             editform.closing += new canceleventhandler(editorform_closing);             editform.show();         } 

i've tried doing editform.editortab.show(); activecontrol = editform.editortab no avail. many in advance.

the tabcontrol has selectedtab property: check msdn that. know have sample, need find it.

...oops, selecttab: here on msdn

void setvisibletab(tabpage tabpage) {    mytabcontrol.selecttab(tabpage); } 

Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -