vb.net-2010

Visual Basic 2010: How do I reference one of many objects through an additional object? (Pointer-like behaviour?)

Hi, I am writing an application in Visual Basic 2010 Express. I have two objects of a class from a driver DLL that is provided to me. They have some of their own subroutines that I'd like to call, and I'd like an easy way to toggle between them. Instead of writing a whole bunch of code like this: selected = x ... If selected = x then ...

Can a Visual Basic (.NET / 2010) file be split up for readability?

I'm writing a program in Visual Basic 2010. It's a HMI (Human-Machine Interface) and therefore has a whole whack of buttons that just send commands to other devices. As a result, there are a huge pile of event handlers for clicking buttons that can't really be broken down into modules (unless my understanding of modules is wrong). Essen...