Question : vb.net when close hide

hello there,
I would like to have a new form like (LiveUpdate) so when the software open for the first time it will show it..
so when I user click on the X to close the form instead of unloading it to hide.. how can I do that?

Answer : vb.net when close hide

Dear XK8ER,

try having this code in the Form_Closing event
This hides the form and then cancel the close event, and does the trick :-)

for example:

Private Sub frmMonthlyInvoices_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing

        Me.Hide() 'Hides the form
        e.Cancel = True 'Cancels the form_closing Event
    End Sub

Random Solutions  
 
programming4us programming4us