General discussion

Locked

Visual Basic Question

By gary.wong ·
I have a project and form in vb that I made not visible. I set the On Mouse Down event to send a message via the msgbox.

I made this vb as an .exe and run it from the start button on the window. I don't see the message from on the on mouse downevent.

Does the Form neets to be visible for it to work or can it be invisible??? I want the run this vb.exe and detect a mouse down event?

Any suggestions?

Thanks,

Gary

This conversation is currently closed to new comments.

9 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Visual Basic Question

by j.a.lawrence In reply to Visual Basic Question

I don't think that approach is going to work. Best bet is look at intercepting the mousepress thru an API call in VB.

Collapse -

Visual Basic Question

by gary.wong In reply to Visual Basic Question

The question was auto-closed by TechRepublic

Collapse -

Visual Basic Question

by R. A. Caluste In reply to Visual Basic Question

mouse events take effect only after the control has focus. you CANNOT have focus when the form is not visible.

hope this helps.

Collapse -

Visual Basic Question

by gary.wong In reply to Visual Basic Question

The question was auto-closed by TechRepublic

Collapse -

Visual Basic Question

by sl-campbell In reply to Visual Basic Question

Check ot this site(remove any spaces in the URL first):
http://www.codeguru.com/vb/

I believe there are some examples in the Miscellaneous section.

Collapse -

Visual Basic Question

by gary.wong In reply to Visual Basic Question

The question was auto-closed by TechRepublic

Collapse -

Visual Basic Question

by RRV In reply to Visual Basic Question

Invisible controls do not receive mousemove or any mouse events. So idea is ruled out. to achieve this in the form load event get the background color and set the form color as the background color.[you can even simulate a transparent form]. set thecontrol box as false for the form. so the form is visible but totally transparent. now you can do mouse move event...
All the best
RV

Collapse -

Visual Basic Question

by gary.wong In reply to Visual Basic Question

The question was auto-closed by TechRepublic

Collapse -

Visual Basic Question

by gary.wong In reply to Visual Basic Question

This question was auto closed due to inactivity

Back to Web Development Forum
9 total posts (Page 1 of 1)  

Related Discussions

Related Forums