|
The Menu is a class, it has a collection of items, which are also a class ( which can contain a new list of menu items ). So, you just need to insert your items into the menu, by creating them one at a time.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
Have a look at the menu-related code generated by Visual Designer,
it shows you how uou can do exactly the same in your code...
Luc Pattyn
|
|
|
|
|
Hello,
how do I restrict the ComboBox control in VisualStudio so that the user can't select any value outside of the values listed in the combo box drop-down list?
Is that at all possible?
Thank you,
Michal
|
|
|
|
|
change the style to list view
|
|
|
|
|
Thanks!
DropDownStyle = DropDownList is it!
I couldn't find it.
Thanks,
Michal
|
|
|
|
|
|
|
Make your variable protected, and use a public property without a get part.
Luc Pattyn
|
|
|
|
|
protected int _myAge;
public int MyAge
{
get { return _myAge; }
private set { _myAge = value; }
}
The private setter is not needed ( and only works in .NET 2.0 ). but it does allow you to use the same name internally, if you wanted to for some reason. You could also make the var private and the property protected, if you wanted to. protected is needed only so that the variable is visible to derived classes, otherwise, private is fine.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
Oh, OK, thanks! ;)
Windows Calculator told me I will die at 28.
|
|
|
|
|
Hello,
I want to write a program that detects patterns from a pool of numbers imputed...
Thanks,
The Devil Lives in all of us, It's up to you to let HIM/HER out!!!!!
|
|
|
|
|
Be more specific please, numbers are a huge topic, a pool of numbers is presumably even bigger than just numbers. Come on even mathematicians havn't yet decided where the numbers end so how can we provide a solution for such a general problem.
If we could do that we could solve world peace
I have no idea what I just said. But my intentions were sincere.
Poore Design
|
|
|
|
|
ok, fair enough...
all i want to do is to have a table or grid with about 100 to 200 numbers,
have a user input any number from 1-100...have the program read a pattern if any and display it and if possible based on that pattern found, predict numbers that a user may place in the grid or table....
can that be done?
Thanks
The Devil Lives in all of us, It's up to you to let HIM/HER out!!!!!
|
|
|
|
|
The best I can offer at the moment is that I once looked through the source code of Graph[^] and used that code to predict create a curve which fitted the current results.
I suppose if you could model the existing data on an curve then you can predict any value.
Might be completely the wrong method but a possibility none the less, I stand to be corrected.
I have no idea what I just said. But my intentions were sincere.
Poore Design
|
|
|
|
|
It may be a good ideea to start with learning how to build connections between the concrete model(s) and the numerical patterns or functional relationships observed in the data you have. Then writing some piece of code is not that much of a deal.
You may want to read this[^] first.
SkyWalker
|
|
|
|
|
I don't know how to set the desktop wallpaper.
Help.
Vasildb
|
|
|
|
|
Solution a (simplest): Right click desktop -> Properties -> WallPaper -> Select Wallpaper -> Click OK.
Solution b (presumably you posted this in the c# forum for a reason): Heard of Google[^]?
I have no idea what I just said. But my intentions were sincere.
Poore Design
|
|
|
|
|
this guy maybe want to know how to programming to solve this problem
I think therefore I am
--~--~---------~--~----~------------~-------~--~----~
My Blog and Website:
http://www.cnblogs.com/pinzui/
http://www.pinzui.cn
http://jnlinux.org
--~--~---------~--~----~------------~-------~--~----~
|
|
|
|
|
That guy should maybe click on the Google link Ed provided. Or maybe he should even have thought to search there first...
|
|
|
|
|
Thanks for saving me the effort of getting all worked up
I have no idea what I just said. But my intentions were sincere.
Poore Design
|
|
|
|
|
Can you give me a simple code please.
Vasildb
|
|
|
|
|
Um take a look at the first three results returned by Google they provide all the information you need, even the code
I have no idea what I just said. But my intentions were sincere.
Poore Design
|
|
|
|
|
We can get all processes running in system by calling:
Process.GetProcesses();
For each process, how to get the name of the file, that was executed to start this process?
thank you very much in advance
|
|
|
|
|
For each Process object in the collection returned by Process.GetProcesses() , use the MainModule property.
A process module represents a.dll or .exe file that is loaded into a particular process. The MainModule property lets you view information about the executable used to start the process, including the module name, file name, and module memory details.
SkyWalker
|
|
|
|
|
Thanks a lot! This was it
|
|
|
|