Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Simple things you should know[Some code and advice]
#1
[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.
[Image: iTijPACh1qYlA.png]
Personal Blog | Forever and Always <3 Mell
Reply
#2
Wow thanks man, really helpful, i will be using Application.Exit() for now on (:
[Image: 2laa4ac.png]
Reply
#3
Those are nice tips. One day I'll start doing .net coding.
Superman I am here to rescue you.
This is Support Forums not Support PMs.  Do not PM me for support unless it's private and site related.
Reply
#4
Small but still a good little source of information. Thank you Xypher. I look forward to reading more.
Reply
#5
Useful tips. I didn't even know you could use Application.Exit() rather than Me.Close(). You learn something new everyday.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Get Country Code In 1 Line Of Code. wchar_t 13 4,011 11-28-2012, 06:49 AM
Last Post: Cubs

Forum Jump:


Users browsing this thread: 1 Guest(s)