RE: Need Help VB.NET GDI+ 04-11-2013, 06:54 AM
#11
(04-11-2013, 05:36 AM)Coder-san Wrote:(04-10-2013, 11:59 PM)ArkPhaze Wrote: This thread shows how you can just assign handlers to events for the button methods: http://www.hackcommunity.com/Thread-Tuto...ton-easilyI would like to know a better way of doing that actually.
Not the way I would do it myself or recommend. Plus you're just drawing over the button there...
Quote:This thread will also teach very bad habits: http://www.hackcommunity.com/Thread-VB-N...ng-loadingYeah, old thread. I had problems in disposing objects, so I acted lazy.
1. CheckForIllegalCrossThreadCalls = False
2. No point in threading anyways
3. You're using assigned event handlers
4. Empty try catch block for exceptions
And you also haven't been keen on disposing of the objects used to draw for creating a new instance everytime.
I lost some of my good projects I worked hard on unfortunately, otherwise I would've loved some solutions for the problems I was facing.
We didn't have many programmers back in the days.
I realize that no worries, but as he's just learning I thought I would point those out so that he is not learning from old code that might not be your best work.
ArkPhaze
"Object oriented way to get rich? Inheritance"
Getting Started: C/C++ | Common Mistakes
[ Assembly / C++ / .NET / Haskell / J Programmer ]
"Object oriented way to get rich? Inheritance"
Getting Started: C/C++ | Common Mistakes
[ Assembly / C++ / .NET / Haskell / J Programmer ]


![[+]](https://sinister.li/images/modern/collapse_collapsed.png)