Support Forums

Full Version: Simple things you should know[Some code and advice]
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
[1] Always use Application.Exit() instead of things like End, me.close, and any other variation of those.
End is like holding down the power button and can cause errors.
Me.close does not always work properly.
Application.Exit() is what the normal x button uses.

[2] Use Messagebox.Show() instead of msgbox...
MsgBox is imported from Visual Basic 6 and actually uses up more memory than Messagebox.show() does.
-Credits to Vorfin for telling me that.

[3] To open up another form use the code formname.show.
Replace formname with the name of your form.

[4] Do not use code to do something that can be done in the properties.


I will continue to update this with new things.
Wow thanks man, really helpful, i will be using Application.Exit() for now on (:
Those are nice tips. One day I'll start doing .net coding.
Small but still a good little source of information. Thank you Xypher. I look forward to reading more.
Useful tips. I didn't even know you could use Application.Exit() rather than Me.Close(). You learn something new everyday.