How to stop app from closing and minimize it instead..
Heres your chance to share your own tutorials with the community. Just post them on here. If your lucky they may even be posted on the main site.
7 posts
Page 1 of 1
If you have skype, when you click x button app minimizes insted..
So how to do it?
1. You need FormClosing event and put this:
So how to do it?
1. You need FormClosing event and put this:
Code: Select all
That's all Hope u like it Private Sub FormClosing(ByVal sender As System.Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles Me.Closing
e.Cancel = True
Me.WindowState = FormWindowState.Minimized
End Sub

CodenStuff wrote:Nope, it's just your sick and dirty mind. You sick twisted warped little pervo![]()
Very Good Keep Up The Good Work
From,
Acem
Acem
In the FormClosing event, write this code:
e.Cancel = True
Me.WindowState = FormWindowState.Minimized
That'll stop the form from closing and minimize it instead. Hope this helps...
e.Cancel = True
Me.WindowState = FormWindowState.Minimized
That'll stop the form from closing and minimize it instead. Hope this helps...
Maybe you should use Me.Hide() instead minimize, you could add a notify icon - minimize it to system tray 

7 posts
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023