
How to Raise/Simluate an Event via Code for a existing Control
Hey Ho Armin thanx for help.
I understand what you mean but that is no solution for my Problem.
I have no influence of the Code...... I can not write something in the Form.
The Code is written by someone else and I can only Access the DLL.
And that is the Problem.......
I want to Raise the Event only by having the Button Object..........
Thanx anyway and Cherrio
Quote:
> > I have Access to a Button but not to the Button_Click Event
> > Routine of the Form because the
> > Button_Click Event Routine is private and the Button Public.
> > I am shure it is hard to understand what I want
> > but I hav no Access to the Code in which the Button is declared.
> > I only have Access to the Button Object !!
> > I searching for a way that I can Raise a Button_Click Event
> > only with having the Button Object. (No Access to the Routine !!)
> But you have a reference to the Form? Something like
> TheForm.Button1.PerformClick?
> For example, if the Button is a "Save"-Button:
> In the Form:
> private sub button_click(bla)
> Save
> end sub
> public Sub Save
> 'Save here
> end sub
> Now you can call TheForm.Save from outside the form.
> Does this help?
> Armin