[SOLVED] Persistent userPopup only works once?

Answered
0
0

Please let me know if I’m doing this wrong.

Popup only shows once. I’m trying to have a persistent popup form on a normal form. upMCIF is a popup declared in the calling form:

Public upMCIF As New upMobileCCPissuesFilter

Private Sub frmMobileCCPissues_Load(sender As Object, e As EventArgs) Handles Me.Load
  upMCIF.frmMCCP = Me
End Sub

Button to show popup:

Private Sub btnFilter_Click(sender As Object, e As EventArgs) Handles btnFilter.Click
  upMCIF.Focus()
  upMCIF.ShowPopup(8, Me.Panel1.Height)
End Sub

I have registered the “Escape” Popup.Accelerator in designer, and set event code

Public Class upMobileCCPissuesFilter
  Public frmMCCP As frmMobileCCPissues

Private Sub btnXtoclose_Click(sender As Object, e As EventArgs) Handles btnXtoclose.Click
   ClosePanel()
 End Sub

Public Sub ClosePanel()
   frmMCCP.SetFilters() 'calls refresh
   Close()
 End Sub

Private Sub upMobileCCPissuesFilter_Accelerator(sender As Object, e As AcceleratorEventArgs) Handles MyBase.Accelerator
  If e.KeyCode = Keys.Escape Then ClosePanel()
End Sub

End Class

This closes the popup and works, but it only works once. Subsequent button clicks do not register any breakpoints. The btnFilter_Click event doesn’t get called again! I can still perform other events on the calling form, just not have any code fire when I click the filter button.

 

A sample is attached.

1. Click button
2. Close popup
3. Click button
4. BUG: button click event does not fire! Popup only works once!

 

  • You must to post comments
Best Answer
1
0

Hi Andrew,

#1931 is fixed in latest Wisej build (2.0.32).

Best regards
Frank

  • You must to post comments
0
0

Andrew,

logged as #1931.

Workaround is to set the UserPopup.AutoValidate to Disable.

We´ll inform when a fix is available.

Best regards
Frank

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.