how to shift controls from one tabpage to another at runtime c# Windows -
i using windows form. in there tab command , 3 tab pages. in first tab page have combobox. loads info database. need utilize combobox in tabpage 2 , 3 . when user select tabpage 2 combobox should visible. how can accomplish this.
there 2 solutions can think of.
move combobox out of tab control. since tabs utilize same combobox anyway serves non-tab specific functionality. design wise, makes sense avoid redundancy between 3 comboboxes.
create 3 separate comboboxes each tab , create each combobox reference same collection. don't forget update selected item of 3 comboboxes 1 time item chosen user. take not require more code changes first solution.
c#
No comments:
Post a Comment