I get the idea people just wait to see how often I'll Reply to myself.
Here's the code I came up with to replace that one line of code. If anybody knows a better method - say, using a different Type than "ToolStripDropDownItem " in my foreach loop - please feel free to let me know.
privatevoid miImport_DropDownOpening(object sender, EventArgs e)<br />
foreach (object item in miImport.DropDownItems)<br />
Type typ = item.GetType();<br />
if (typ == typeof(ToolStripMenuItem))<br />
ToolStripMenuItem mi = (ToolStripMenuItem)item;<br />
mi.Enabled = myFlag;<br />
I have an application that cycles through Directories and finds Duplicate Image files (By Name).
It shows the original file name (FileInfo.Name) and the possible Duplicate (FileInfo.FullName) in the a CheckedListBox container on the form
What I want to do next is create a MouseHover Event that will show a form a bit like a tooltip with a preview of both Pictures in it.
I suppose I have a few questions.
1. Is a CheckedListBox the best solution for this to show the data? As the code runs through I store them in a List<listviewitem> which I then convert to an Array and AddRange onto the container.
2. What is the best way to get the preview to come up? I want it to dissapear as the user moves from one ListItem to another. The other issue is how can I get the MouseHover event to tell me which index I am on so I can retrieve the file paths to the imagine.
Suggestions greatly appreciated, and pointing to other online info that could me also greatly appreciated.
Bear in mind, he's asking for "ideas" rather than solutions. What's to say there's no creative process in being given an idea, or even just a title, and running with that to make it your own. I was given a title for my project of "A webcam security camera". Rest assured that although I was given the title, I consider the entire creative process to be my own since the method I used and the approach I took was certainly not what would be expected from the title.
Also, the project itself is to create a solution. As a student it's incredibly hard to find a problem to solve if you have no starting point, but that isn't really the intended technical challenge of doing a computer science degree now is it? Mostly it's the people doing day to day work in the field that will have ideas for really interesting personal projects that would be possible with todays tech, but won't have the time to actually do them.
Granted, that is the case, but you should (at least) be considered a good programmer inside of your environment (aka: big fish in a little pond). Then you have the rude awakening of the corporate world, where you realize everything you learned was just a rudimentary part of the ongoing learning process.
I learned C# in order to do my final year project - very rewarding. My project was a webcam security camera - to be implemented in whatever fashion or means I saw fit.
Other interesting ideas for projects I've heard along the way:
Nanite simulator (how would they communicate, create large scale structures with simple instructions)
Remote control helicopter controller (you might need an expensive toy for that one though)
Any of those are feasible projects and should give you plenty to study, write about and actually implement - there's a lot of real world and computer science theory to be studied and learned in the implementation of any of them