|
-
Mar 13th, 2013, 04:47 AM
#1
Thread Starter
Hyperactive Member
Form.ShowDialog() Hidding problem
i have a form called FrmPtnSrch for search employees
i am call the form in the following manner from other form as modal
Private Sub BtnSearch_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnSearch.Click
Try
Dim objFrmSrch As New FrmPtnSrch
objFrmSrch.ShowDialog()
If intSrchPtnNo <> 0 Then
txtPtnNo.Text = intSrchPtnNo
txtPtnNm.Text = StrPtnInfo.PName
objFrmSrch.Dispose()
objFrmSrch.Close()
End If
Catch ex As Exception
MsgBox(ex.Message)
End Try
end sub
i have a button on the fromSrch for searching the employee into the table
and listing them in listview on the FrmSrch form
it is searching the talble and also listing them in the listvew through a private method
after listing it is getting hide or desposing off
i have all ther code i have not writter any were for disposing/closing after listing
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|