|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Creating an event by force.Hello,
I want to create an event by force. How can I do that ? (for example : ToolStrip.ItemClicked event) Thanks :) On 6/10/2010 6:06 PM, Mr. X. wrote:
> Hello, Do you mean SomeToolstrip.Items (0).PerformClick()?> I want to create an event by force. > How can I do that ? > > (for example : ToolStrip.ItemClicked event) > > Thanks :) -- Mike Thanks,
specific, this help. I need more generic solution (I would like to do any event, not only the PerformClick event). Thanks :) Show quoteHide quote "Family Tree Mike" <FamilyTreeM***@ThisOldHouse.com> wrote in message news:OYJxZvOCLHA.2012@TK2MSFTNGP02.phx.gbl... > On 6/10/2010 6:06 PM, Mr. X. wrote: >> Hello, >> I want to create an event by force. >> How can I do that ? >> >> (for example : ToolStrip.ItemClicked event) >> >> Thanks :) > > Do you mean SomeToolstrip.Items (0).PerformClick()? > > -- > Mike On 11/06/2010 10:53, Mr. X. wrote:
> I need more generic solution (I would like to do any event, not only the If a class doesn't provide you with a method to do something, then > PerformClick event). perhaps it's something that you shouldn't do? Why do you want to fire off any event from any control? Regards, Phill W. Am 11.06.2010 00:06, schrieb Mr. X.:
> Hello, You are taking the wrong approach. If you want> I want to create an event by force. > How can I do that ? > > (for example : ToolStrip.ItemClicked event) > > Thanks :) to do something, call a method. If you want the same thing to be done if the item is clicked, call the same method from the click event handler. -- Armin
Make a component on runtime.
Inheritance and COM checking whether the current object is a specific class. Datagridview selected rows ToolStrip - how I can make rectangle on the last selected item ? ToolStrip. VS 2008 Windows Forms project will not start How to make a DLL usable from VB6 Reading from LDAP searchresults what font it is ? |
|||||||||||||||||||||||