|
WinForms MDI parent form menu system (MenuStrip and ToolStripMenuItem's) created in designer.
ToolStripMenuItems items have text, image properties and onclick event set.
At application startup, toolbar should created automatically from specified menu items.
Users can select the menu items which are available in toolbar.
Anu idea how to implement such toolbar ?
Andrus
|
|
|
|
|
you must create that toolbars at runtime with different tag for each item,
but have some single onclick event, than you can manage that known tag to execute another handler,
for detailed information search how to create controls at runtime.
hope it helps
dhaim
programming is a hobby that make some money as side effect
|
|
|
|
|
Where to find example for this ?
Every menu item Tag property contains unique name.
List of selected toolbar buttons should be stored in user settings or in isolated storage.
Probably in form load some code should create this toolbar by retrieving text from menu and setting button onclick method to execute PerformClick for forresponding menu item.
Andrus
|
|
|
|
|
how to create 2d dynamic array in c#. for 1d we have arraylist. is there same thing for 2d
|
|
|
|
|
Hashtable may help you
|
|
|
|
|
Nested lists would do the job:
List<List<T>> list = new List<List<T>>();
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Is there any Sample Code to use this?
|
|
|
|
|
It's just a list of lists, nothing complicated about it.
Here's an example:
List<List<int>> list = new List<List<int>>();
list.Add(new List<int>());
list.Add(new List<int>());
list.Add(new List<int>());
list[0].Add(1);
list[0].Add(2);
list[0].Add(3);
list[1].Add(4);
list[1].Add(5);
list[1].Add(6);
list[2].Add(7);
list[2].Add(8);
list[2].Add(9);
regards
modified on Friday, August 8, 2008 7:10 AM
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Greeeg wrote: list[3].Add(8);
KABOOM!
Greeeg wrote: list[4].Add(9);
KABOOM! (i am sure it was just a typo from your side)
|
|
|
|
|
Yeah doing this sort of stuff while watching TV doesn't work. Multitasking is fine for operating systems, but not for men.
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Your answer/excuse is acceptable!
|
|
|
|
|
string[,] names = new string[5,4];
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
But i want a dynamic array
|
|
|
|
|
Ohhh a growable/dynamic array...
I was thinking dynamically allocated array
Never mind then.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
I want to use mxCreateCellArray, mxSetCell and so on to connect matlab and c# in order to use some functions programmed with matlab.
but I am not clear how to do it. Anyone has some experience for it? if some example can be given, that would be perfect.
thank you very much for your help.
|
|
|
|
|
I am sure MatLab has a support site.
|
|
|
|
|
Hi all,
I need to create a checkbox icon of own. Can somebody help
Thanks in advance
|
|
|
|
|
sanjeevmedhi wrote: I need to create a checkbox icon of own
Can you be more up to point?
|
|
|
|
|
Hi
I have a custom treeview class. Now i want to add checkboxes in that treeview. for checkbox button i need to create a icon because i didnot found any checkbox button icon in SystemIcons.
this.StateImageList = new ImageList();
this.StateImageList.Images.Add(SystemIcons.Application);
Thanks
|
|
|
|
|
sanjeevmedhi wrote: for checkbox button i need to create a icon
First of all, checkbox dont have an icon.
Do you want to give another look to the standard checkbox?
|
|
|
|
|
I want to creat that rectangular box and then insert by the side of the node
Thanks
|
|
|
|
|
Why don't you just set the CheckBoxes property to true to enable checkboxes?
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Can anyone please tell me how to delete WebBrowser control's cookie? Suppose I visited www.gmail.com through my application using webbrowser control. Now after visiting I want to delete the cookies stored by www.gmail.com .
I want to know how to sort out this problem? I have searched the net a lot, but no help, all methods like
webbrowserCtl.Document.Cookies = "" or null doesnot serve the purpose at all.
Please help me.
|
|
|
|
|
this is showing one project but how can download it, i want this project please give me suggestions.
i can't find download link any where
http://www.pudn.com/downloads94/sourcecode/app/detail372992.html
This is haneef.............................................................
|
|
|
|
|
haneef wrote: i can't find download link any where
Me neither
|
|
|
|