Making a close form button in visual basic 6

Closed
gurumanyu Posts 2 Registration date Monday 26 October 2015 Status Member Last seen 26 October 2015 - 26 Oct 2015 à 07:19
EdoubleU Posts 109 Registration date Friday 28 August 2015 Status Contributor Last seen 3 November 2015 - 26 Oct 2015 à 07:36
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 28 August 2015 Status Contributor Last seen 3 November 2015 109
26 Oct 2015 à 07:29
All you should have to do is write this in the event handler for your your button.


this.Close();
EdoubleU Posts 109 Registration date Friday 28 August 2015 Status Contributor Last seen 3 November 2015 109
26 Oct 2015 à 07:36
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