in my program I run
Public Class TestTemplate inherits ListPanel Public sub New() myBase.New() 'setup visible buttons Me.AddUserAction(BaseAction.Open, True, True, "&Open". True, My.Resources.Open.item. "Open Selected Item", False, True, False, Keys.None) end sub Protect Overrides ReadOnly Property selectCommand() as String sharedvar.Selectfile = "Select * from File where index = 'A'" return sharedvar.selectfile end Property Private sub OpenItem() sharedvar.Selecteditem = Me.SelectedItemKey.tostring end sub end class
the selection.SelectFile and selection.Selecteditem are setup as
private sub mSelectButton_Click(byVal Sender as System.object, byVal e as System.EventArgs) Handles mButton.click dim alist as new testtemplate alist.showdialog('Test Template", me.company, true, 800, 300) ' This shows a list from file with index = 'A' ' When they double click on the list openitem() is triggered in the TestTemplate end sub
My question is how to Close or Hide the alist from the user after the selected record is double clicked
Pubic Class selection public shared selectfile as String = "" public shared selectedItem as Integer end Class
From novice to tech pro — start learning today.