Issue with pushbutton in VS2017 |
Post Reply |
Author | |
Ron
Newbie Joined: 29 July 2015 Status: Offline Points: 11 |
Post Options
Thanks(1)
Posted: 10 May 2018 at 4:26pm |
I have encountered a major issue with adding controls suite 18.3.0 (but also 17.1.0) as the pushbutton is not providing a click event. The click event as well as the 'clickevent' event are not triggering.
Normal forms buttons are fine. The axhost says that the click event for example is not available. When I add a pushbutton, it looks fine but as soon as I click it opens the designer code for a 'dropdown' event! And that is not even triggering when clicking the button. I can not do anything more than I have done. 1. Add a reference to the xtremesuitecontrols 18.3 (registered) 2. Add the controls to the toolbar 3. Select the pushbutton 4. Click on it to get the code for the click event opened. ... Can anyone tell me what I do wrong here? I am programming for over 30 years and experienced in .NET but i have not seen this behavior before. Thanks, Ronald |
|
olebed
Admin Group Joined: 01 July 2014 Location: Ukraine Status: Offline Points: 841 |
Post Options
Thanks(0)
|
Hello Ron,
PushButton don't exist for CommandBar/Ribbon, maybe you mean xtpControlButton ? Such button's clicking is handled in CommandBars_Execute method, see our C# RibbonSample
Regards, Oleksandr Lebed |
|
Ron
Newbie Joined: 29 July 2015 Status: Offline Points: 11 |
Post Options
Thanks(0)
|
Hello,
I am talking about the XtremeSuiteControls, not the commandbars. The axPushbutton is causing the issue. So please review your answer. Thank you
|
|
olebed
Admin Group Joined: 01 July 2014 Location: Ukraine Status: Offline Points: 841 |
Post Options
Thanks(0)
|
Hello Ron,
I have confused buttons because seen "toolbar" but it is toolbar of VisualStudio. So I investigated this question and can confirm that problem exists. In C# VS solution you can choose method for Click event in appropriate tab Events of pane Properties. But default event for PushButton in designer is DropDown. I can't find how to fix it now. I've found solution for controls which written on C# , but our ActiveX library written on C++. I have added this task in our task base. Regards, Oleksandr Lebed |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |