Click here to Skip to main content
15,903,203 members
Home / Discussions / C#
   

C#

 
Questionduplicate items in treeview [modified] Pin
lushgrass26-May-06 0:34
lushgrass26-May-06 0:34 
QuestionShowing and hiding controls [modified] Pin
travellermania26-May-06 0:27
travellermania26-May-06 0:27 
AnswerRe: Showing and hiding controls Pin
Larantz26-May-06 0:34
Larantz26-May-06 0:34 
GeneralRe: Showing and hiding controls Pin
travellermania26-May-06 0:49
travellermania26-May-06 0:49 
GeneralRe: Showing and hiding controls Pin
Robert Rohde26-May-06 1:46
Robert Rohde26-May-06 1:46 
GeneralRe: Showing and hiding controls [modified] Pin
travellermania26-May-06 21:43
travellermania26-May-06 21:43 
AnswerRe: Showing and hiding controls [modified] Pin
Robert Rohde26-May-06 0:41
Robert Rohde26-May-06 0:41 
AnswerRe: Showing and hiding controls [modified] Pin
LongRange.Shooter26-May-06 4:06
LongRange.Shooter26-May-06 4:06 
It's hard to explain...but I get a bad feeling about what you are trying to do here. If you want to have an area that dynamically changes, I'd recommend a somewhat different approach that more cleanly fits into the windows paradygm.

What I would do is to have a single panel. Each set of controls would be removed from the form and created as individual UserControl objects. When the need comes to show the different view, clear the controls in the panel and create/add the required user controls. You can modify the constructor of the controls passing whatever data is needed to initialize the view.

If you find that the controls don't sit just right in the panel you can add some logic such as this:
panel.Controls.Add( functionControl );
functionControl.Docking = Docking.Full;
form1.Invalidate();


So you add the control, dock it so it fills the panel, then invalidate the form to get the new control visible.
QuestionSelected a listviewitem Pin
NewbieDude25-May-06 23:56
NewbieDude25-May-06 23:56 
AnswerRe: Selected a listviewitem Pin
Ed.Poore26-May-06 0:21
Ed.Poore26-May-06 0:21 
Questionhowto get data in datatable ? Pin
cmpeng3425-May-06 23:38
cmpeng3425-May-06 23:38 
AnswerRe: howto get data in datatable ? Pin
albCode25-May-06 23:52
albCode25-May-06 23:52 
GeneralMessage Closed Pin
25-May-06 23:57
cmpeng3425-May-06 23:57 
GeneralRe: howto get data in datatable ? [modified] Pin
Larantz26-May-06 0:17
Larantz26-May-06 0:17 
QuestionHelp with calling NetFileEnum from NetApi32.dll Pin
dlaw148925-May-06 23:05
dlaw148925-May-06 23:05 
Questiona question about displaying time ? help ... Pin
cmpeng3425-May-06 23:05
cmpeng3425-May-06 23:05 
AnswerRe: a question about displaying time ? help ... Pin
_AK_25-May-06 23:14
_AK_25-May-06 23:14 
AnswerRe: a question about displaying time ? help ... Pin
rah_sin25-May-06 23:21
professionalrah_sin25-May-06 23:21 
GeneralRe: a question about displaying time ? help ... [modified] Pin
albCode25-May-06 23:28
albCode25-May-06 23:28 
GeneralMessage Closed Pin
26-May-06 0:06
cmpeng3426-May-06 0:06 
GeneralRe: a question about displaying time ? help ... Pin
Stefan Troschuetz26-May-06 0:18
Stefan Troschuetz26-May-06 0:18 
GeneralRe: a question about displaying time ? help ... Pin
rah_sin26-May-06 0:23
professionalrah_sin26-May-06 0:23 
AnswerRe: a question about displaying time ? help ... Pin
J4amieC26-May-06 0:38
J4amieC26-May-06 0:38 
QuestionSQL Netowrk Interfaces, error:26 - Error locating Server/Instance specified.) Pin
emran83425-May-06 22:43
emran83425-May-06 22:43 
AnswerRe: SQL Netowrk Interfaces, error:26 - Error locating Server/Instance specified.) Pin
Larantz26-May-06 0:29
Larantz26-May-06 0:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.