Click here to Skip to main content
15,887,435 members
Home / Discussions / C#
   

C#

 
AnswerRe: Call one function from another Pin
Amar Chaudhary24-Nov-06 13:21
Amar Chaudhary24-Nov-06 13:21 
AnswerRe: Call one function from another Pin
Karthik Kalyanasundaram24-Nov-06 17:19
Karthik Kalyanasundaram24-Nov-06 17:19 
AnswerRe: Call one function from another Pin
Guffa24-Nov-06 23:19
Guffa24-Nov-06 23:19 
QuestionConnection String Pin
btota24-Nov-06 12:47
btota24-Nov-06 12:47 
AnswerRe: Connection String Pin
Andrei Ungureanu24-Nov-06 13:10
Andrei Ungureanu24-Nov-06 13:10 
AnswerRe: Connection String Pin
Dominic Pettifer24-Nov-06 13:47
Dominic Pettifer24-Nov-06 13:47 
QuestionHow to use multiple panels in a windows form Pin
Sonu.T24-Nov-06 12:38
Sonu.T24-Nov-06 12:38 
AnswerRe: How to use multiple panels in a windows form Pin
S. Senthil Kumar24-Nov-06 19:51
S. Senthil Kumar24-Nov-06 19:51 
Sonu.T wrote:
what i want is, on clicking the menuitem of each of the child nodes, a different panel should be displayed each time. for this, i need to have 3 panels, one for each childnode. when one panel is being displayed, others should be hidden. my requirement is something similar to the WindowsExplorer, but iam not able to generate the desired o/p.


How have you implemented it currently and what happens if you click on a child node? Simply setting the Visible property of the panel to be hidden to false and sending it to the back of the ZOrder using SendToBack should work fine, I think. Another approach would be to have a single panel, but different UserControl derived classes. That way, designing the UI would be easier.


Sonu.T wrote:
Also, when i right-click on any of the node, the contextmenu is displayed, but after clicking the desired menuitem, the contextmenu just doesnt disappear.

I'm surprised that you even get the context menu. This[^] KB article shows how to add multiple context menus for different nodes to treeviews. Basically, you subscribe to the MouseUp event, get the point where the mouse was clicked, use the GetNodeAt method to get the TreeNode at that point and then show the appropriate popup menu.

Regards
Senthil [MVP - Visual C#]
_____________________________
My Blog | My Articles | My Flickr | WinMacro

GeneralRe: How to use multiple panels in a windows form Pin
Sonu.T25-Nov-06 21:12
Sonu.T25-Nov-06 21:12 
GeneralRe: How to use multiple panels in a windows form Pin
S. Senthil Kumar26-Nov-06 1:22
S. Senthil Kumar26-Nov-06 1:22 
Questionopen form at runtime Pin
lamtuanduc24-Nov-06 12:27
lamtuanduc24-Nov-06 12:27 
AnswerRe: open form at runtime Pin
Amar Chaudhary24-Nov-06 13:20
Amar Chaudhary24-Nov-06 13:20 
AnswerRe: open form at runtime Pin
S. Senthil Kumar24-Nov-06 20:31
S. Senthil Kumar24-Nov-06 20:31 
GeneralRe: open form at runtime Pin
lamtuanduc24-Nov-06 22:05
lamtuanduc24-Nov-06 22:05 
GeneralRe: open form at runtime Pin
S. Senthil Kumar25-Nov-06 1:42
S. Senthil Kumar25-Nov-06 1:42 
QuestionRe: open form at runtime Pin
a-erfani2-Aug-12 22:49
a-erfani2-Aug-12 22:49 
Questionrandom number genration problem Pin
Amar Chaudhary24-Nov-06 12:21
Amar Chaudhary24-Nov-06 12:21 
AnswerRe: random number genration problem Pin
S. Senthil Kumar24-Nov-06 20:23
S. Senthil Kumar24-Nov-06 20:23 
QuestionCoding Equals Operator Pin
Tom Moore24-Nov-06 9:02
Tom Moore24-Nov-06 9:02 
AnswerRe: Coding Equals Operator Pin
Nick Parker24-Nov-06 9:32
protectorNick Parker24-Nov-06 9:32 
GeneralRe: Coding Equals Operator Pin
Tom Moore25-Nov-06 3:49
Tom Moore25-Nov-06 3:49 
AnswerRe: Coding Equals Operator Pin
Scott Dorman27-Nov-06 5:07
professionalScott Dorman27-Nov-06 5:07 
QuestionHow to copy a datarow from myDataTable to another datatable ? Pin
hdv21224-Nov-06 8:16
hdv21224-Nov-06 8:16 
QuestionThreading Question Pin
Tristan Rhodes24-Nov-06 6:43
Tristan Rhodes24-Nov-06 6:43 
AnswerRe: Threading Question Pin
Not Active24-Nov-06 7:05
mentorNot Active24-Nov-06 7:05 

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.