I also tried to inherit an own class from ListViewItemCollection and raise a Changed event if any item were added or removed, but i don't know how to set the inherited class to the ListView.Items collection. Therefore i inherit an own ListView2 from the ListView class and tried to set the Items: base.Items = new ListViewItemCollection2(); But base.Items is readonly...
Not sure if you can, or if you have to have one for each architecture.
"I guess it's what separates the professionals from the drag and drop, girly wirly, namby pamby, wishy washy, can't code for crap types." - Pete O'Hanlon
Don't forget to dispose of the Graphics object you just created. It's a very common mistake that leads to resource leaks.
Regards, mav -- Black holes are the places where God divided by 0...
I would think this is ok, and you can decide how often you poll, just don't do it all the time. You may use a flag for poll-only mode which reduces the polling period and disables the FileSystemWatcher, which would make it kind of universal. You could even call the same callback.
This explains quite well that if you perform toolTip.SetToolTip(targetControl, caption); and the control already has a caption, then this will be overwrote. It will not just add a new one. http://msdn.microsoft.com/en-us/library/system.windows.forms.tooltip.settooltip.aspx[^]
You have to use a great function provided by the Graphic class named: MeasureString. I use that to write text in my chart webcomponent... check this article: http://www.codeproject.com/cs/media/measurestring.asp La Richesse & la Gloire ne griseront jamais que les temples
i think you have to derive your own datagrid column class from the ones already available and add the control you want. I think there are plenty of tutorials around to show how to achieve this with a combobox.
Hi Here is another way to do the same thing. If I'm right it's one of the refactoring practices. Use an object instead of a struct(int,string,...) You can have a parameter class: ------------- Parameter ------------- +Name:string +Value:object ------------- ------------- Then one may write Parameter param1=new Parameter("abc",0); Parameter param2=new Parameter("anotherParam",1); and later: string paramName=param1.Name; I prefer this method because my intention is implied(Everyone can look at the class interface and see what's going on) Regards