Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Controls
  New Posts New Posts RSS Feed - Issue with pushbutton in VS2017
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Issue with pushbutton in VS2017

 Post Reply Post Reply
Author
Message
Ron View Drop Down
Newbie
Newbie


Joined: 29 July 2015
Status: Offline
Points: 11
Post Options Post Options   Thanks (1) Thanks(1)   Quote Ron Quote  Post ReplyReply Direct Link To This Post Topic: Issue with pushbutton in VS2017
    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

Back to Top
olebed View Drop Down
Admin Group
Admin Group


Joined: 01 July 2014
Location: Ukraine
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote olebed Quote  Post ReplyReply Direct Link To This Post Posted: 12 May 2018 at 3:48pm
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
private void CommandBars_Execute(object eventSender, AxXtremeCommandBars._DCommandBarsEvents_ExecuteEvent eventArgs)
    {
        switch (eventArgs.control.Id)
        {

Regards,
 Oleksandr Lebed

Back to Top
Ron View Drop Down
Newbie
Newbie


Joined: 29 July 2015
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ron Quote  Post ReplyReply Direct Link To This Post Posted: 12 May 2018 at 4:05pm
Hello,

I am talking about the XtremeSuiteControls, not the commandbars. The axPushbutton is causing the issue. So please review your answer.

Thank you
Back to Top
olebed View Drop Down
Admin Group
Admin Group


Joined: 01 July 2014
Location: Ukraine
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote olebed Quote  Post ReplyReply Direct Link To This Post Posted: 13 May 2018 at 4:29pm
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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.