Click here to Skip to main content
15,898,947 members

Comments by David J Perez (Top 13 by date)

David J Perez 2-Feb-12 12:11pm View    
I tried this except for the ToolboxBitmap decoration because I don't have a bitmap and it did not work. Seems like it should. It compiled fine but the balloon does not show the Display Name or Description.
David J Perez 4-Nov-11 18:35pm View    
I guess what I am referring to is the fact that there is not a single collection that has all of them. I am coming from the VB6 world where if I wanted to find any control on my form I would check Me.Controls collection and everything was in there, timers and non-timers. Looks like some kind of kludge to have a Components collection along side the Controls collection. And to have it in a section of code that I don't have control over makes it even more suspect.

Plus, right now I am unable to get Components[i].Name because the .Name property does not exist for the Timer or the Component object.
David J Perez 4-Nov-11 18:21pm View    
Thanks, that's exactly what I needed. Not sure what's going on back there in xxx.Designer.cs but if I want to find non-timer controls I will use this.Controls and if I don't find it there I will try this.components.Components. Very intuitive :)

Thanks again!
David J Perez 4-Nov-11 18:08pm View    
Just tried it and got the same result. I do not believe Timers are in the Controls collection because Timers do not inherit from the Controls class. But I am not sure where to get a collection of them.
David J Perez 4-Nov-11 14:59pm View    
I've gone through your procedure and I did learn something about the Load event that may prove useful in the future but I don't see how it could help in this situation. This solution requires a reference to an event handler and the only way I, a newbie, know to do this is by writing code. Either I do it or I add the [attribute] and have the IDE/Compiler do it. It cannot be programmed through the Load event but I wish it could be.