Click here to Skip to main content
15,886,026 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to create a tree node with menu, submenu, child, item Pin
OriginalGriff10-Jun-19 3:45
mveOriginalGriff10-Jun-19 3:45 
GeneralRe: How to create a tree node with menu, submenu, child, item Pin
BillWoodruff10-Jun-19 6:59
professionalBillWoodruff10-Jun-19 6:59 
GeneralRe: How to create a tree node with menu, submenu, child, item Pin
Samiul0710-Jun-19 12:27
Samiul0710-Jun-19 12:27 
GeneralRe: How to create a tree node with menu, submenu, child, item Pin
Samiul0710-Jun-19 12:44
Samiul0710-Jun-19 12:44 
GeneralRe: How to create a tree node with menu, submenu, child, item Pin
BillWoodruff10-Jun-19 17:05
professionalBillWoodruff10-Jun-19 17:05 
GeneralRe: How to create a tree node with menu, submenu, child, item Pin
BillWoodruff11-Jun-19 0:53
professionalBillWoodruff11-Jun-19 0:53 
GeneralRe: How to create a tree node with menu, submenu, child, item Pin
Samiul0711-Jun-19 5:31
Samiul0711-Jun-19 5:31 
AnswerRe: How to create a tree node with menu, submenu, child, item Pin
#realJSOP10-Jun-19 4:37
mve#realJSOP10-Jun-19 4:37 
Overly simplified:
C#
public class MyMenuItem
{
    public MyMenuItem       Parent   { get; set; }
    public string           Header   { get; set; }
    public List<MyMenuItem> Children { get; set; }

    public MyMenuItem(string header, MyMenuItem parent=null)
    {
        this.Parent   = parent;
        this.Header   = header;
        this.Children = new List<MyMenuItem>();
    }
}

List<MyMenuItem> MenuItems = new List<MyMenuITem>();


Populate the MenuItems appropriately, and have a ball. I'm not sure why you're putting menu items into comboboxes, but whatever...
".45 ACP - because shooting twice is just silly" - JSOP, 2010
-----
You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
-----
When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

GeneralRe: How to create a tree node with menu, submenu, child, item Pin
Richard MacCutchan10-Jun-19 4:49
mveRichard MacCutchan10-Jun-19 4:49 
GeneralRe: How to create a tree node with menu, submenu, child, item Pin
#realJSOP10-Jun-19 4:57
mve#realJSOP10-Jun-19 4:57 
GeneralRe: How to create a tree node with menu, submenu, child, item Pin
Gerry Schmitz10-Jun-19 5:40
mveGerry Schmitz10-Jun-19 5:40 
GeneralRe: How to create a tree node with menu, submenu, child, item Pin
#realJSOP10-Jun-19 9:17
mve#realJSOP10-Jun-19 9:17 
GeneralRe: How to create a tree node with menu, submenu, child, item Pin
Gerry Schmitz10-Jun-19 10:04
mveGerry Schmitz10-Jun-19 10:04 
QuestionHow to clean all the installers? Pin
_Q12_7-Jun-19 3:55
_Q12_7-Jun-19 3:55 
AnswerRe: How to clean all the installers? Pin
OriginalGriff7-Jun-19 4:05
mveOriginalGriff7-Jun-19 4:05 
PraiseRe: How to clean all the installers? Pin
Richard Deeming7-Jun-19 4:56
mveRichard Deeming7-Jun-19 4:56 
GeneralRe: How to clean all the installers? Pin
OriginalGriff7-Jun-19 5:06
mveOriginalGriff7-Jun-19 5:06 
GeneralRe: How to clean all the installers? Pin
_Q12_7-Jun-19 19:40
_Q12_7-Jun-19 19:40 
GeneralRe: How to clean all the installers? Pin
OriginalGriff7-Jun-19 20:11
mveOriginalGriff7-Jun-19 20:11 
GeneralRe: How to clean all the installers? Pin
_Q12_8-Jun-19 8:24
_Q12_8-Jun-19 8:24 
AnswerRe: How to clean all the installers? Pin
Gerry Schmitz7-Jun-19 6:31
mveGerry Schmitz7-Jun-19 6:31 
AnswerRe: How to clean all the installers? Pin
Eddy Vluggen7-Jun-19 8:38
professionalEddy Vluggen7-Jun-19 8:38 
AnswerRe: How to clean all the installers? Pin
Dave Kreskowiak7-Jun-19 14:39
mveDave Kreskowiak7-Jun-19 14:39 
AnswerRe: How to clean all the installers? Pin
#realJSOP10-Jun-19 2:26
mve#realJSOP10-Jun-19 2:26 
QuestionIndex was Outside the range of the Array in Cryptography App Pin
Member 140791596-Jun-19 2:15
Member 140791596-Jun-19 2:15 

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.