Click here to Skip to main content
15,895,256 members
Home / Discussions / C#
   

C#

 
GeneralRe: using windows service to copy file through network(LAN) [modified] Pin
ctlqt1226-Nov-06 3:31
ctlqt1226-Nov-06 3:31 
GeneralRe: using windows service to copy file through network(LAN) Pin
Weckmann27-Nov-06 4:11
Weckmann27-Nov-06 4:11 
Questionctrl.BackgroundImage vs. clientRectangle in paint event... Pin
new_phoenix25-Nov-06 10:35
new_phoenix25-Nov-06 10:35 
Questionmulti threading Pin
sorayya_sk25-Nov-06 9:56
sorayya_sk25-Nov-06 9:56 
QuestionSelected TreeView Item Pin
Alan Martinis25-Nov-06 9:24
Alan Martinis25-Nov-06 9:24 
AnswerRe: Selected TreeView Item Pin
Rob Graham25-Nov-06 10:47
Rob Graham25-Nov-06 10:47 
AnswerRe: Selected TreeView Item Pin
beatles169225-Nov-06 22:53
beatles169225-Nov-06 22:53 
QuestionSelected TreeView Item [modified] Pin
Alan Martinis25-Nov-06 9:22
Alan Martinis25-Nov-06 9:22 
Hi,

please help me if you know how…
Something is bothering me - something that I didn't know how to handle it using Visual C++, therefore I don't know how to do it now with C#.

Description:
I have form with SplitContainer control on it, where on the left side I have TreeView control, and on the right side, I would like (depending on selected item in TreeView ctrl) to have different set of other controls (buttons, editBox,…etc.)

Correct me if I'm wrong – the only easiest way that came up my mind is PANNEL control.
Number of panels should be the same as number of items in the TreeView control.
After on in the application, depending of selected item, I can use method .Hide() or .Show() to manipulate those panels.

Example
For example I have 20 items in TreeView control, therefore I should have 20 different panels.
Furthermore, when I have 20 panels on the same form, and each of them is covering right side of SplitContainer (complete area), the only panel I can see is the latest one (twentieth).
With this „panel“ concept, issue I found here is in the case if I have to change something on the third panel (e.g. to add new checkBox on it) .
How to reach third panel?
Do I have to move 17 panels to one side in order to reach third one (to be visible to work on it)?

I believe that there should be something more elegantly – but I don't know what?
I use SharpDevelop, but if you know that solution for my problem have solution in Visual Studio, please suggest!

Great example will be Computer Management Console. If you click on “Removable Storage” or “Disk Defragmenter” or any other item in TreeView control, depending on it on the right side you will have respectively related set of controls.

Thanks,




Alan


-- modified at 2:01 Sunday 26th November, 2006
AnswerRe: Selected TreeView Item Pin
Bassam Saoud25-Nov-06 22:12
Bassam Saoud25-Nov-06 22:12 
GeneralRe: Selected TreeView Item Pin
Alan Martinis26-Nov-06 12:48
Alan Martinis26-Nov-06 12:48 
GeneralRe: Selected TreeView Item Pin
Scott Dorman27-Nov-06 4:51
professionalScott Dorman27-Nov-06 4:51 
AnswerRe: Selected TreeView Item Pin
darkelv26-Nov-06 15:57
darkelv26-Nov-06 15:57 
QuestionAdding new items to TreeView Pin
Mark F.25-Nov-06 8:53
Mark F.25-Nov-06 8:53 
AnswerRe: Adding new items to TreeView Pin
Not Active25-Nov-06 10:28
mentorNot Active25-Nov-06 10:28 
GeneralRe: Adding new items to TreeView Pin
Mark F.25-Nov-06 11:22
Mark F.25-Nov-06 11:22 
GeneralRe: Adding new items to TreeView Pin
Not Active25-Nov-06 14:11
mentorNot Active25-Nov-06 14:11 
QuestioncrystalReport Pin
aPerfectCircle25-Nov-06 8:18
aPerfectCircle25-Nov-06 8:18 
Questionbubble and quick method Pin
sapnju_fejinja25-Nov-06 7:33
sapnju_fejinja25-Nov-06 7:33 
QuestionRe: bubble and quick method Pin
CPallini25-Nov-06 8:50
mveCPallini25-Nov-06 8:50 
AnswerRe: bubble and quick method Pin
sapnju_fejinja25-Nov-06 9:47
sapnju_fejinja25-Nov-06 9:47 
GeneralRe: bubble and quick method Pin
Rob Graham25-Nov-06 10:38
Rob Graham25-Nov-06 10:38 
GeneralRe: bubble and quick method Pin
Paul Conrad25-Nov-06 11:28
professionalPaul Conrad25-Nov-06 11:28 
GeneralRe: bubble and quick method Pin
CPallini25-Nov-06 10:41
mveCPallini25-Nov-06 10:41 
QuestionPoint Of Sale Project Pin
Waskira25-Nov-06 7:06
Waskira25-Nov-06 7:06 
QuestionOut-of-memory Exception Pin
yonidebest25-Nov-06 5:57
yonidebest25-Nov-06 5:57 

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.