Click here to Skip to main content
15,891,253 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: adding rotation to a custom control Pin
Dave Kreskowiak3-Oct-07 4:44
mveDave Kreskowiak3-Oct-07 4:44 
AnswerRe: adding rotation to a custom control Pin
diebugger4-Oct-07 21:33
diebugger4-Oct-07 21:33 
QuestionVisual Basic and MS Access Pin
Support1233-Oct-07 0:18
Support1233-Oct-07 0:18 
AnswerRe: Visual Basic and MS Access Pin
Support1233-Oct-07 0:41
Support1233-Oct-07 0:41 
QuestionMake Panel scrollable with mouse wheel VB 2005 ? Pin
nishkarsh_k3-Oct-07 0:17
nishkarsh_k3-Oct-07 0:17 
AnswerRe: Make Panel scrollable with mouse wheel VB 2005 ? Pin
JoeSharp3-Oct-07 4:02
JoeSharp3-Oct-07 4:02 
GeneralRe: Make Panel scrollable with mouse wheel VB 2005 ? Pin
nishkarsh_k3-Oct-07 4:14
nishkarsh_k3-Oct-07 4:14 
GeneralRe: Make Panel scrollable with mouse wheel VB 2005 ? Pin
JoeSharp3-Oct-07 22:58
JoeSharp3-Oct-07 22:58 
hi
a little example

Public Class MyControl
Inherits System.Windows.Forms.UserControl

Protected Overrides Sub OnMouseWheel(ByVal e As System.Windows.Forms.MouseEventArgs)
If e.Delta <> 0 Then 'has wheel been moved?
'The .NET docs suggest that e.Delta returns the actual number of notches
'the mouse wheel has been rotated, but in actuality each roll of the mouse wheel
'returns a value of +/- 120 (depending on the direction of rotation).
'120 is actually a system constant, and therefore there is a possibility that it could
'change to allow for higher-resolution mouse wheels.

'check out <http: msdn.microsoft.com="" library="" en-us="" winui="" windowsuserinterface="" userinput="" mouseinput="" mouseinputreference="" mouseinputmessages="" wm_mousewheel.asp="">
'for more information
Dim zoomIn As Boolean = (e.Delta < 0)

End Sub

Protected Overrides Sub OnPaint(ByVal e As PaintEventArgs)
' Overriden Paint Methode
' Do your paint stuff in this methode, such as draw images or draw text
End Sub

End Class

regards
QuestionBlock Installation Pin
SamRST2-Oct-07 23:53
SamRST2-Oct-07 23:53 
AnswerRe: Block Installation Pin
Christian Graus2-Oct-07 23:57
protectorChristian Graus2-Oct-07 23:57 
GeneralRe: Block Installation Pin
SamRST3-Oct-07 0:06
SamRST3-Oct-07 0:06 
GeneralRe: Block Installation Pin
nishkarsh_k3-Oct-07 0:16
nishkarsh_k3-Oct-07 0:16 
QuestionHow to get the control properties into xml file [modified] Pin
VB 8.02-Oct-07 23:42
VB 8.02-Oct-07 23:42 
AnswerRe: How to get the control properties into xml file Pin
Tom Deketelaere3-Oct-07 0:18
professionalTom Deketelaere3-Oct-07 0:18 
AnswerRe: How to get the control properties into xml file Pin
Dave Kreskowiak3-Oct-07 3:58
mveDave Kreskowiak3-Oct-07 3:58 
GeneralRe: How to get the control properties into xml file Pin
VB 8.05-Oct-07 0:26
VB 8.05-Oct-07 0:26 
Questionwindows service Pin
IETaxguard2-Oct-07 23:31
IETaxguard2-Oct-07 23:31 
AnswerRe: windows service Pin
Dave Kreskowiak3-Oct-07 3:48
mveDave Kreskowiak3-Oct-07 3:48 
GeneralRe: windows service Pin
IETaxguard3-Oct-07 4:03
IETaxguard3-Oct-07 4:03 
GeneralRe: windows service Pin
Dave Kreskowiak3-Oct-07 4:29
mveDave Kreskowiak3-Oct-07 4:29 
QuestionEunice Pin
Eunice (VB junior)2-Oct-07 23:23
Eunice (VB junior)2-Oct-07 23:23 
AnswerRe: Eunice Pin
Christian Graus2-Oct-07 23:41
protectorChristian Graus2-Oct-07 23:41 
Generalrandom bug.... how to solve? Pin
Eunice (VB junior)3-Oct-07 14:27
Eunice (VB junior)3-Oct-07 14:27 
QuestionWhere's Refractor? Pin
blackjack21502-Oct-07 23:06
blackjack21502-Oct-07 23:06 
AnswerRe: Where's Refractor? Pin
Christian Graus2-Oct-07 23:19
protectorChristian Graus2-Oct-07 23:19 

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.