Window Desktop Problem

1 reply. Last post: February 16, 2011 11:37 PM by Jimmy Petrus
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
danfrpa1Member

When I create a window from code behind, it works fine, when I close that window and try to create it again, the code functions without error but the window never appears.  Here is my code:

 

Private Sub btnMyDownloads_Click(ByVal sender As Object, ByVal e As System.Windows.RoutedEventArgs)      Dim axWindow As Intersoft.Client.UI.Aqua.UXDesktop.UXWindow
    
axWindow = uxDesktop1.FindWindow("wndMyDownload")
    
If axWindow Is Nothing Then
         
Dim aWindow As MyDownloads = New MyDownloads()
          aWindow.Width = 814
          aWindow.Height = 500
         
aWindow.Name = "wndMyDownloads"
         
aWindow.Show()
          aWindow.IsActive =
True
         
amaDesktop.uxDesktop1.ActivateWindow(aWindow)
          aWindow.BuildDownloads()
    
Else
         
Dim aWindow As MyDownloads = axWindow
          axWindow.Width = 814
          axWindow.Height = 500
          axWindow.Name =
"wndDownloads"
         
axWindow.Show()
          axWindow.IsActive =
True
         
amaDesktop.uxDesktop1.ActivateWindow(axWindow)
          aWindow.BuildDownloads()
    
End If
End Sub
All times are GMT -5. The time now is 8:20 AM.
Previous Next