View Single Post
Old 12-05-2016, 03:55 PM
PlausiblyDamp's Avatar
PlausiblyDamp PlausiblyDamp is offline
Ultimate Contributor

Forum Leader
* Expert *
Join Date: Nov 2003
Location: Newport, Wales
Posts: 2,058

I would assume that the problem is the bit of code
  Dim mw As New MainWindow()

    If theButton.caption = "CLOSE" Then
        mw.TopFlyoutCloseButtonOnClick(Nothing, Nothing)
    End If
In that routine you are creating a new instance of the MainWindow class and trying to close it's Flyout rather than the Flyout on the existing MainWindow instance.
Intellectuals solve problems; geniuses prevent them.
-- Albert Einstein

Posting Guidelines Forum Rules Use the code tags
Reply With Quote