Click here to Skip to main content
16,005,181 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questioncheck box Pin
Anonymous7-Oct-05 10:17
Anonymous7-Oct-05 10:17 
AnswerRe: check box Pin
Richard_Wolf7-Oct-05 10:25
Richard_Wolf7-Oct-05 10:25 
GeneralRe: check box Pin
Anonymous7-Oct-05 10:34
Anonymous7-Oct-05 10:34 
GeneralRe: check box Pin
Richard_Wolf7-Oct-05 10:43
Richard_Wolf7-Oct-05 10:43 
GeneralRe: check box Pin
Anonymous7-Oct-05 10:49
Anonymous7-Oct-05 10:49 
GeneralRe: check box Pin
Steve Pullan9-Oct-05 14:36
Steve Pullan9-Oct-05 14:36 
AnswerRe: check box Pin
maxiachun9-Oct-05 16:19
maxiachun9-Oct-05 16:19 
QuestionTracking the control a mouse is over Pin
No-e7-Oct-05 9:39
No-e7-Oct-05 9:39 
Upgrading VB6 to .NET has been so pleasant.... NOT

In VB6 I could make a control array, when an operator clicked on an element I could set a variable that told me which control it was then I could pop up a menu where the user selected a menu item. When they did I looked at the control they were pointing to and did what I needed to do. (I have 100+ slots and the user needs to be able to look an a particular one, each of which is represented as a label or text box on screen)

OK in .NET, no control arrays, so I build 100+ controls manually, then I arrange them on screen (each configuration could be different), once again hundreds of lines of code as there are no arrays, then I try to trap the one clicked for the popup menu, my next joy has arrived....

I was hoping that someting like this would work:

Private Sub lblSlots5_MouseEnter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles lblSlots5.Click
g_selectedslot = 5
End Sub

The hope being I would set g_selectedSlot before the menu pops up... for some reason it does not seem to work that way.

Yes, I did try MouseHover and MouseDown.

any ideas?

Thanks in advance, the rest of my bottle of Advil to anyone who can help...
AnswerRe: Tracking the control a mouse is over Pin
Richard_Wolf7-Oct-05 10:11
Richard_Wolf7-Oct-05 10:11 
AnswerRe: Tracking the control a mouse is over Pin
Anonymous7-Oct-05 11:20
Anonymous7-Oct-05 11:20 
GeneralRe: Tracking the control a mouse is over Pin
No-e10-Oct-05 3:29
No-e10-Oct-05 3:29 
QuestionI need to get my Object Pin
erikkl20007-Oct-05 7:38
erikkl20007-Oct-05 7:38 
Questionwmi classes Pin
anniez7-Oct-05 5:27
anniez7-Oct-05 5:27 
AnswerRe: wmi classes Pin
enjoycrack7-Oct-05 14:39
enjoycrack7-Oct-05 14:39 
QuestionNeed assistance with rectangles Pin
codecreeper7-Oct-05 5:11
codecreeper7-Oct-05 5:11 
AnswerRe: Need assistance with rectangles Pin
enjoycrack7-Oct-05 14:35
enjoycrack7-Oct-05 14:35 
AnswerRe: Need assistance with rectangles Pin
sumod_madhavan9-Oct-05 9:56
sumod_madhavan9-Oct-05 9:56 
QuestionOPC apps/compos Pin
Marc Soleda7-Oct-05 4:55
Marc Soleda7-Oct-05 4:55 
QuestionOut Of Memory Pin
Greeky7-Oct-05 4:50
Greeky7-Oct-05 4:50 
AnswerRe: Out Of Memory Pin
enjoycrack7-Oct-05 14:32
enjoycrack7-Oct-05 14:32 
AnswerRe: Out Of Memory Pin
Dave Kreskowiak7-Oct-05 16:38
mveDave Kreskowiak7-Oct-05 16:38 
QuestionC DLL Pin
peter12345677-Oct-05 2:09
peter12345677-Oct-05 2:09 
Questioncan anyone help me implement arrows pls? Pin
codecreeper6-Oct-05 22:06
codecreeper6-Oct-05 22:06 
AnswerRe: can anyone help me implement arrows pls? Pin
Briga7-Oct-05 0:21
Briga7-Oct-05 0:21 
GeneralRe: can anyone help me implement arrows pls? Pin
codecreeper7-Oct-05 1:16
codecreeper7-Oct-05 1:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.