Keep going backwards in the code. Where did the valuve of "floor" come from? It had to be passed in from some other method that called ViewSelectedDevice. This is where looking at the Stack Trace comes in handy.
I'm assuming that it came from your constructor when you "New"d up a new instance of this class. In the constructor, you have this:
Public Sub New()
MyBase.New()
Me.InitializeComponent()
devloc= udt_config.kiosklevel
ViewSelectedDeviceLoc(devloc, 100)
End Sub
So, why is "devloc" Nothing when it makes the call to ViewSelectedDeviceLoc? What does the
udt_config.kiosklevel
code do that makes it return Nothing?