I think this is a simple question just not finding the right answer.
I have an application that leverages containers that have a few simple controls. Depending on what the user needs to view they will click a menu option. This will cause DialogWindow to appear. The window will show a list of jobs in a listbox, Refresh button to refersh the data if it has changed and a cancle button to close the dialog window.
All work fine except the cancel button. I have tried various ways to close the dialog window to no luck.
I can put the button in the DialogWindow itself to execute a self.close that is not desirable for my needs. I need to do this from within the container control itself. Below is the code to fshow the DialogWindow and I am sure its simple to do.
Thanks, in advanced.
Var dialog As New DialogWindow
Var tc As New JobsList //Container that has a Listbox, refersh and close button
dialog.Width = 1040
dialog.Height = 500
dialog.Title = Main.cbx_Companies.SelectedRowText + " Job Listing"
dialog.HasCloseButton = False
dialog.HasFullScreenButton = False
dialog.HasMaximizeButton = False
dialog.HasMinimizeButton = False
tc.EmbedWithin(dialog, 20, 20, 1000,400)
If Not tc.get_Jobs Then
MessageBox(“Error getting jobs”)
Return False
End If
dialog.ShowModal
'txt_Status.Text = dialog.SelectedName
Return True
7 posts - 4 participants