Making a close form button in visual basic 6

Closed
gurumanyu Posts 2 Registration date Monday October 26, 2015 Status Member Last seen October 26, 2015 - Oct 26, 2015 at 07:19 AM
EdoubleU Posts 109 Registration date Friday August 28, 2015 Status Contributor Last seen November 3, 2015 - Oct 26, 2015 at 07:36 AM
Hello,
i have been writing a programme that will be able to keep, add, edit and delete hospital records here at KIBABII UNIVERSITY but i have failed to write a code for a close form button. Please hep me do this


Related:

1 response

EdoubleU Posts 109 Registration date Friday August 28, 2015 Status Contributor Last seen November 3, 2015 109
Oct 26, 2015 at 07:29 AM
All you should have to do is write this in the event handler for your your button.


this.Close();
0
EdoubleU Posts 109 Registration date Friday August 28, 2015 Status Contributor Last seen November 3, 2015 109
Oct 26, 2015 at 07:36 AM
sorry, i should've read the subject header. hope this helps.


Private Sub BtnClose_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnClose.Click Me.Close() End Sub
0