Mohammadreza Member Nov 3, 2015 #1 Hi I want my button do same job as my label when clicked. ( I Can't use another Sub because I get the text from label.text but sender in sub_clicked.) I used this: Code: Copy Sub Button2Score_MouseClicked (EventData As MouseEvent) Label1Score_MouseClicked(EventData) End Sub But its wrong. How to do it?
Hi I want my button do same job as my label when clicked. ( I Can't use another Sub because I get the text from label.text but sender in sub_clicked.) I used this: Code: Copy Sub Button2Score_MouseClicked (EventData As MouseEvent) Label1Score_MouseClicked(EventData) End Sub But its wrong. How to do it?
Erel B4X founder Staff member Licensed User Longtime User Nov 4, 2015 #2 This code will correctly call the Label1Score_MouseClicked sub. You can put a breakpoint to see it. Upvote 0