G grafsoft Well-Known Member Licensed User Longtime User Apr 19, 2014 #1 Hi, I create a button with the designer, use tools / generate emenbers to create the click method and set its properties in Basic. This always works, but with one button it does not work. Why? How can I test or find the error? Code: Copy Sub Bmainmenu_Click mainmenu.Show(Sender) ' this line is never reached End Sub
Hi, I create a button with the designer, use tools / generate emenbers to create the click method and set its properties in Basic. This always works, but with one button it does not work. Why? How can I test or find the error? Code: Copy Sub Bmainmenu_Click mainmenu.Show(Sender) ' this line is never reached End Sub
stevel05 Expert Licensed User Longtime User Apr 19, 2014 #2 Without seeing the code it's guessing, but have you changed the EventName in the designer? Upvote 0
mangojack Expert Licensed User Longtime User Apr 19, 2014 #3 I think I've seen a similar post .. The remedy was delete button and associated event code. Regenerating a new button and event code solved the problem. Maybe save and restart your project after the first change ? Upvote 0
I think I've seen a similar post .. The remedy was delete button and associated event code. Regenerating a new button and event code solved the problem. Maybe save and restart your project after the first change ?
LucaMs Expert Licensed User Longtime User Apr 19, 2014 #4 Check if the event name for that button in the Designer: it should be "Bmainmenu" Upvote 0
G grafsoft Well-Known Member Licensed User Longtime User Apr 19, 2014 #5 The event name is correct. Upvote 0
DonManfred Expert Licensed User Longtime User Apr 19, 2014 #6 grafsoft said: The event name is correct. Click to expand... stevel05 said: Without seeing the code it's guessing Click to expand... +1 Upvote 0
grafsoft said: The event name is correct. Click to expand... stevel05 said: Without seeing the code it's guessing Click to expand... +1
klaus Expert Licensed User Longtime User Apr 19, 2014 #7 So you need to post your project as a zip file so we could exactly see what you have done and how ! Last edited: Apr 21, 2014 Upvote 0
G grafsoft Well-Known Member Licensed User Longtime User Apr 20, 2014 #8 Here it is, thank you for your trouble. The activity "Touch" (touch.bal) has 4 buttons. The 2 with text "Manu" do not work. The click subs are at the end of the code of "Touch". Attachments proj.zip proj.zip 94.7 KB · Views: 277 Upvote 0
Here it is, thank you for your trouble. The activity "Touch" (touch.bal) has 4 buttons. The 2 with text "Manu" do not work. The click subs are at the end of the code of "Touch".
klaus Expert Licensed User Longtime User Apr 20, 2014 #9 The problem is your Panel pnl which is covering the buttons ! In Debug mode, set a breakpoint in the pnl_Touch routine you'll see that this routine is run when you click on the buttons ! And pnl_Touch consumes the event and it is not transmitted to the buttons ! Upvote 0
The problem is your Panel pnl which is covering the buttons ! In Debug mode, set a breakpoint in the pnl_Touch routine you'll see that this routine is run when you click on the buttons ! And pnl_Touch consumes the event and it is not transmitted to the buttons !
G grafsoft Well-Known Member Licensed User Longtime User Apr 20, 2014 #10 Thank you! Bringtofront - and it works! Upvote 0