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

Visual Basic

 
GeneralRe: run macro from commandline Please help !!!!!! Pin
Dave Kreskowiak21-Nov-07 7:42
mveDave Kreskowiak21-Nov-07 7:42 
GeneralRe: run macro from commandline Please help !!!!!! Pin
vivek_luke21-Nov-07 7:58
vivek_luke21-Nov-07 7:58 
QuestionCombo Box Pin
roger689720-Nov-07 9:19
roger689720-Nov-07 9:19 
AnswerRe: Combo Box Pin
The ANZAC20-Nov-07 11:42
The ANZAC20-Nov-07 11:42 
Questionconnection/disconnection of LAN network in vb Pin
haggenx20-Nov-07 8:11
haggenx20-Nov-07 8:11 
AnswerRe: connection/disconnection of LAN network in vb Pin
Dave Kreskowiak21-Nov-07 15:51
mveDave Kreskowiak21-Nov-07 15:51 
QuestionHIde the courser over a control Pin
nishkarsh_k20-Nov-07 5:42
nishkarsh_k20-Nov-07 5:42 
AnswerRe: HIde the courser over a control Pin
Ajay.k_Singh20-Nov-07 17:37
Ajay.k_Singh20-Nov-07 17:37 
If you want to allow user to do free drawing in that case instead of hiding mouse cursor you should use a cursor like Cross, this can be done by simply setting cursor property of the picture box-

PictureBox1.Cursor = Cursors.Cross

However if you do not want to see any cursor when mouse comes over picture box control, you will need to use API function.

Following code should give you the desired result-

-------------------------Code Start------------------------------------

Private Declare Function ShowCursor Lib "user32" (ByVal bShow As Long) As Long

Dim Show As Boolean

Private Sub PictureBox1_MouseEnter(ByVal sender As Object, ByVal e As System.EventArgs) Handles PictureBox1.MouseEnter

Show = False
ShowCursor(Show)

End Sub

Private Sub PictureBox1_MouseLeave(ByVal sender As Object, ByVal e As System.EventArgs) Handles PictureBox1.MouseLeave

Show = True
ShowCursor(Show)

End Sub
----------------------------Code End------------------------------------------

I hope this helpsSmile | :) .

-Dave.

Dave Traister,
ComponentOne LLC.
www.componentone.com

AnswerRe: HIde the courser over a control Pin
MohammadAmiry20-Nov-07 17:42
MohammadAmiry20-Nov-07 17:42 
QuestionHow to get the no of records in random acccess files Pin
Amer Rehman20-Nov-07 5:33
Amer Rehman20-Nov-07 5:33 
AnswerRe: How to get the no of records in random acccess files Pin
Dave Kreskowiak21-Nov-07 5:03
mveDave Kreskowiak21-Nov-07 5:03 
QuestionVB.NET 2006 Radio button becomes checked when previous button depressed Pin
QuickBooksDev20-Nov-07 2:12
QuickBooksDev20-Nov-07 2:12 
AnswerRe: VB.NET 2006 Radio button becomes checked when previous button depressed Pin
Dave Kreskowiak21-Nov-07 4:50
mveDave Kreskowiak21-Nov-07 4:50 
QuestionSHChangeNotifyRegister problem with file create Pin
sprice8620-Nov-07 2:12
professionalsprice8620-Nov-07 2:12 
QuestionPagesetup & PrintPreview Pin
MrFulvio20-Nov-07 1:07
MrFulvio20-Nov-07 1:07 
AnswerRe: Pagesetup & PrintPreview Pin
nishkarsh_k20-Nov-07 17:50
nishkarsh_k20-Nov-07 17:50 
GeneralRe: Pagesetup & PrintPreview Pin
MrFulvio20-Nov-07 20:37
MrFulvio20-Nov-07 20:37 
QuestionFile copy in vb6 Pin
w20919-Nov-07 22:25
w20919-Nov-07 22:25 
AnswerRe: File copy in vb6 Pin
Alex Feature19-Nov-07 22:44
Alex Feature19-Nov-07 22:44 
GeneralRe: File copy in vb6 Pin
w20919-Nov-07 23:21
w20919-Nov-07 23:21 
GeneralRe: File copy in vb6 Pin
ChandraRam21-Nov-07 0:54
ChandraRam21-Nov-07 0:54 
QuestionUpdate database from Datagrid Pin
matjame19-Nov-07 20:09
matjame19-Nov-07 20:09 
AnswerRe: Update database from Datagrid Pin
Alex Feature19-Nov-07 21:27
Alex Feature19-Nov-07 21:27 
GeneralRe: Update database from Datagrid Pin
matjame19-Nov-07 21:30
matjame19-Nov-07 21:30 
GeneralRe: Update database from Datagrid Pin
Vimalsoft(Pty) Ltd21-Nov-07 19:14
professionalVimalsoft(Pty) Ltd21-Nov-07 19:14 

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.