A
Ahmed
Hello everyone,
I am trying to create a "ReadOnly" Combobox. I know I can disable the
combobox but it will be unreadable for our users. So, I decided to
extend the built in combobox and I succeeded in building what I want.
The only problem is when the combobox is read only the mouse up event
does not get fired.
Here is mycode.
Protected Overrides Sub WndProc(ByRef m As Message)
If m_ReadOnly = True Then
'ignore the WM_LBUTTONDOWN and WM_LBUTTONDBLCLK
If m.Msg = &H201 Or m.Msg = &H203 Then
Return
'This is for debugging purposes: the WM_LBUTTONUP is
'Captured
ElseIf m.Msg = &H202 Then
Dim i As Integer = 1
End If
End If
'Call base method so delegates receive event
MyBase.WndProc(m)
End Sub
if the LBUTTONUP is captured why the mouseup event is not fired?
Thanks
Ahmed
I am trying to create a "ReadOnly" Combobox. I know I can disable the
combobox but it will be unreadable for our users. So, I decided to
extend the built in combobox and I succeeded in building what I want.
The only problem is when the combobox is read only the mouse up event
does not get fired.
Here is mycode.
Protected Overrides Sub WndProc(ByRef m As Message)
If m_ReadOnly = True Then
'ignore the WM_LBUTTONDOWN and WM_LBUTTONDBLCLK
If m.Msg = &H201 Or m.Msg = &H203 Then
Return
'This is for debugging purposes: the WM_LBUTTONUP is
'Captured
ElseIf m.Msg = &H202 Then
Dim i As Integer = 1
End If
End If
'Call base method so delegates receive event
MyBase.WndProc(m)
End Sub
if the LBUTTONUP is captured why the mouseup event is not fired?
Thanks
Ahmed