VS 2019 button events do not fire

Answered
0
0

Hi,

I am with visuals studio 2019.

I have button custom control. And event click do not work. Breakpoint do not hit, code do not execute.

I am with the latest visej version – 2.5.18

What to do?

Public Class CButton_WhiteBorder_LightBlue
Inherits Button

Public Sub New()
Me.Font = New Font(Me.Font.Name, 17, FontStyle.Bold)
Me.Text = CLocalization.FStrings(InOStrObjectID)
Me.Name = InOStrObjectID
Me.Dock = DockStyle.None
Me.AutoSize = True
Me.BackColor = CColors.OCOlorLightBlue
Me.ForeColor = CColors.OCOlorWhite
Me.CssStyle = “border:1px solid rgb(255,255,255)”
Me.TextAlign = ContentAlignment.MiddleCenter
End Sub
Private Sub CButton_WhiteBorder_LightBlue_Click(sender As Object, e As EventArgs) Handles Me.Click

‘do not works

End Sub

End Class

  • You must to post comments
Best Answer
0
0

Hi Luca,

It is from the browser. Google chrome. I changed to EDGE and events are fine.

Thank you and sorry for the time you spend on this case.

  • You must to post comments
0
0

It do not fire events and in VS2015.

It worked fine a month ago.

What it can be and what I can do for that?

Thank you!

 

  • You must to post comments
0
0

Checking your sample, the button event fire ok. but there are a bug on your side in this line in the pic

HTH, regards

  • mgmst
    • mgmst
    • Oct 20, 2021 - 5:27 pm
    what kind of bug?
  • You must to post comments
0
0

Thank you!

Please find the project attached

 

Attachment
  • You must to post comments
0
0

Cannot reproduce. If you attach a small runnable test case that shows the issue we can see what’s wrong with the code.

  • You must to post comments
Showing 5 results
Your Answer

Please first to submit.