Click here to Skip to main content
15,886,963 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: trojans? Pin
Wes Aday28-Jun-12 10:35
professionalWes Aday28-Jun-12 10:35 
GeneralRe: trojans? Pin
Abhinav S28-Jun-12 17:36
Abhinav S28-Jun-12 17:36 
AnswerRe: trojans? Pin
Bernhard Hiller28-Jun-12 21:16
Bernhard Hiller28-Jun-12 21:16 
GeneralRe: trojans? Pin
No-e29-Jun-12 5:19
No-e29-Jun-12 5:19 
QuestionEvent on Scrolling to the end in flowlayoutpanel Pin
Ammar_Ahmad28-Jun-12 7:14
Ammar_Ahmad28-Jun-12 7:14 
AnswerRe: Event on Scrolling to the end in flowlayoutpanel Pin
Nick Otten29-Jun-12 1:06
Nick Otten29-Jun-12 1:06 
GeneralRe: Event on Scrolling to the end in flowlayoutpanel Pin
Ammar_Ahmad29-Jun-12 1:44
Ammar_Ahmad29-Jun-12 1:44 
GeneralRe: Event on Scrolling to the end in flowlayoutpanel Pin
Nick Otten29-Jun-12 1:54
Nick Otten29-Jun-12 1:54 
Perhaps its not as MS once intended it. or perhaps it is...but the scrolling and value changed are two differed events.

if you press one of the scrolls arrows the program will make it scroll in that direction once. and then change the value. but when you drag the bar you scroll every time you move a little...but the value is only changed upon the key release.

a easy thing to do is to declare a private boolean (outside the event). and switch it true/false so the message box only displays once.

VB
Private ScrollingMessage as Boolean = true 'I know not the right place to declare it... put it with your other declarations

'put this below into your event
 If e.NewValue = e.OldValue and ScrollingMessage Then
            MsgBox("hi")
            ScrollingMessage = false
 elseif e.NewValue <> e.OldValue then
            scrollingmessage = true
 End If

GeneralRe: Event on Scrolling to the end in flowlayoutpanel Pin
Ammar_Ahmad29-Jun-12 2:03
Ammar_Ahmad29-Jun-12 2:03 
GeneralRe: Event on Scrolling to the end in flowlayoutpanel Pin
Nick Otten29-Jun-12 2:54
Nick Otten29-Jun-12 2:54 
GeneralRe: Event on Scrolling to the end in flowlayoutpanel Pin
Ammar_Ahmad29-Jun-12 8:27
Ammar_Ahmad29-Jun-12 8:27 
GeneralRe: Event on Scrolling to the end in flowlayoutpanel Pin
Nick Otten1-Jul-12 21:37
Nick Otten1-Jul-12 21:37 
GeneralRe: Event on Scrolling to the end in flowlayoutpanel Pin
Ammar_Ahmad2-Jul-12 13:29
Ammar_Ahmad2-Jul-12 13:29 
GeneralRe: Event on Scrolling to the end in flowlayoutpanel Pin
Nick Otten2-Jul-12 20:36
Nick Otten2-Jul-12 20:36 
GeneralRe: Event on Scrolling to the end in flowlayoutpanel Pin
Ammar_Ahmad2-Jul-12 23:57
Ammar_Ahmad2-Jul-12 23:57 
GeneralRe: Event on Scrolling to the end in flowlayoutpanel Pin
Nick Otten3-Jul-12 0:16
Nick Otten3-Jul-12 0:16 
GeneralRe: Event on Scrolling to the end in flowlayoutpanel Pin
Ammar_Ahmad3-Jul-12 13:36
Ammar_Ahmad3-Jul-12 13:36 
GeneralRe: Event on Scrolling to the end in flowlayoutpanel Pin
Nick Otten4-Jul-12 1:01
Nick Otten4-Jul-12 1:01 
GeneralRe: Event on Scrolling to the end in flowlayoutpanel Pin
Ammar_Ahmad6-Jul-12 13:24
Ammar_Ahmad6-Jul-12 13:24 
GeneralRe: Event on Scrolling to the end in flowlayoutpanel Pin
Nick Otten8-Jul-12 20:38
Nick Otten8-Jul-12 20:38 
GeneralRe: Event on Scrolling to the end in flowlayoutpanel Pin
Ammar_Ahmad10-Jul-12 2:32
Ammar_Ahmad10-Jul-12 2:32 
GeneralRe: Event on Scrolling to the end in flowlayoutpanel Pin
Nick Otten10-Jul-12 3:13
Nick Otten10-Jul-12 3:13 
GeneralRe: Event on Scrolling to the end in flowlayoutpanel Pin
Ammar_Ahmad10-Jul-12 15:15
Ammar_Ahmad10-Jul-12 15:15 
GeneralRe: Event on Scrolling to the end in flowlayoutpanel Pin
Nick Otten10-Jul-12 20:41
Nick Otten10-Jul-12 20:41 
AnswerRe: Event on Scrolling to the end in flowlayoutpanel Pin
Luc Pattyn29-Jun-12 2:56
sitebuilderLuc Pattyn29-Jun-12 2:56 

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.