Hello

I upgraded a VB6 app to .net.

I'm in the process of removing all of the VB namespace stuff to get the app to pure .net.

I have a listbox that allows you to select multiple lines. In the mouse up event the upgrade wizard created these lines:
Code:
Dim Button As Short = eventArgs.Button \ &H100000
Dim Shift As Short = System.Windows.Forms.Control.ModifierKeys \ &H10000
Dim x As Single = VB6.PixelsToTwipsX(eventArgs.X)
Dim y As Single = VB6.PixelsToTwipsY(eventArgs.Y)
If I change it to this:
Code:
Dim Button As Short = eventArgs.Button \ &H100000
Dim Shift As Short = System.Windows.Forms.Control.ModifierKeys \ &H10000
Dim x As Single = eventArgs.X
Dim y As Single = eventArgs.Y
to remove the VB6 reference the mouse coordinates are not right and it messes everything up.

I've looked around to see of I can find some setting to fix it but I can't see anything that looks like it will help.

Any Ideas?

Thanks

David

Ps: 1 pixel = 15 Twips