Click here to Skip to main content
15,927,514 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: problem using LVM_SETTEXTBKCOLOR to change color of listview text Pin
method0077-Jul-06 10:41
method0077-Jul-06 10:41 
GeneralRe: problem using LVM_SETTEXTBKCOLOR to change color of listview text Pin
Dave Kreskowiak8-Jul-06 4:59
mveDave Kreskowiak8-Jul-06 4:59 
QuestionMultiple Hashtable Pin
BlueKooZZZZZZZZ7-Jul-06 5:01
BlueKooZZZZZZZZ7-Jul-06 5:01 
QuestionRe: Multiple Hashtable Pin
BlueKooZZZZZZZZ7-Jul-06 6:20
BlueKooZZZZZZZZ7-Jul-06 6:20 
AnswerRe: Multiple Hashtable Pin
Jun Du7-Jul-06 7:23
Jun Du7-Jul-06 7:23 
AnswerRe: Multiple Hashtable Pin
Guffa7-Jul-06 13:16
Guffa7-Jul-06 13:16 
QuestionMouse position information Pin
normschaef7-Jul-06 4:29
normschaef7-Jul-06 4:29 
AnswerRe: Mouse position information Pin
Wooster20067-Jul-06 6:34
Wooster20067-Jul-06 6:34 
You could add a handler in your form for the controls when you add them. Something like this:

Public Sub AddControl(ByVal Control as UserControl)
AddHandler Control.MouseMove, AddressOf HandleMouseMove

Me.Controls.Add(Control)
End Sub

Private Sub HandleMouseMove(ByVal sender As Object, ByVal e As MouseEventArgs)
'handle your mouse move stuff
End Sub

Hope this helps. As well, don't forget that if you use AddHandler to add an event handler, always have a RemoveHandler when you close your form, otherwise your application will have a memory leak.

Public Sub RemoveAllControlHandlers()
For Each Control as Control In Me.Controls
RemoveHandler Control.MouseMove, AddresOf HandleMouseMove
Next
End Sub
QuestionConnection with MySql [modified] Pin
Pushkarr7-Jul-06 3:22
Pushkarr7-Jul-06 3:22 
AnswerRe: Connection with MySql Pin
Paul Conrad7-Jul-06 17:42
professionalPaul Conrad7-Jul-06 17:42 
QuestionRe: Connection with MySql For Crystal Report Pin
Pushkarr8-Jul-06 1:32
Pushkarr8-Jul-06 1:32 
QuestionHow to bind each combobox of grid with different values? Pin
rameshn.gopal7-Jul-06 3:21
rameshn.gopal7-Jul-06 3:21 
Questionusing information from others forms Pin
Wael Hawari7-Jul-06 2:38
Wael Hawari7-Jul-06 2:38 
AnswerRe: using information from others forms Pin
sa_runner10-Jul-06 10:07
sa_runner10-Jul-06 10:07 
GeneralRe: using information from others forms Pin
Wael Hawari10-Jul-06 10:38
Wael Hawari10-Jul-06 10:38 
Questionconnecting SQL Server 2000 with VB.Net Pin
vengaqua7-Jul-06 2:19
vengaqua7-Jul-06 2:19 
AnswerRe: connecting SQL Server 2000 with VB.Net Pin
Dave Sexton7-Jul-06 3:00
Dave Sexton7-Jul-06 3:00 
QuestionProblem in "Importing XML into Excel with Automation" [modified] Pin
changeez7-Jul-06 1:23
changeez7-Jul-06 1:23 
AnswerRe: Problem in "Importing XML into Excel with Automation" [modified] Pin
Dave Kreskowiak7-Jul-06 1:39
mveDave Kreskowiak7-Jul-06 1:39 
QuestionSecurity Exception wasn’t treated Pin
lewib7-Jul-06 0:16
lewib7-Jul-06 0:16 
AnswerRe: Security Exception wasn’t treated Pin
Dave Kreskowiak7-Jul-06 1:37
mveDave Kreskowiak7-Jul-06 1:37 
QuestionShort Word Pin
Socheat.Net6-Jul-06 21:31
Socheat.Net6-Jul-06 21:31 
AnswerRe: Short Word Pin
Dave Sexton6-Jul-06 22:54
Dave Sexton6-Jul-06 22:54 
GeneralRe: Short Word Pin
Socheat.Net6-Jul-06 23:04
Socheat.Net6-Jul-06 23:04 
GeneralRe: Short Word Pin
Dave Sexton7-Jul-06 0:45
Dave Sexton7-Jul-06 0:45 

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.