Click here to Skip to main content
15,889,724 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: XML to DataTable/DataGrid Pin
Simon_Whale31-Aug-11 13:43
Simon_Whale31-Aug-11 13:43 
QuestionAnimation effect by changing colors Pin
Razanust29-Aug-11 18:38
Razanust29-Aug-11 18:38 
AnswerMessage Removed Pin
29-Aug-11 21:17
professionalWayne Gaylard29-Aug-11 21:17 
GeneralRe: Animation effect by changing colors Pin
Dave Kreskowiak30-Aug-11 4:57
mveDave Kreskowiak30-Aug-11 4:57 
GeneralRe: Animation effect by changing colors Pin
Wayne Gaylard30-Aug-11 22:04
professionalWayne Gaylard30-Aug-11 22:04 
AnswerRe: Animation effect by changing colors Pin
Dave Kreskowiak30-Aug-11 5:06
mveDave Kreskowiak30-Aug-11 5:06 
GeneralRe: Animation effect by changing colors Pin
Luc Pattyn30-Aug-11 7:20
sitebuilderLuc Pattyn30-Aug-11 7:20 
AnswerRe: Animation effect by changing colors Pin
Wayne Gaylard30-Aug-11 22:02
professionalWayne Gaylard30-Aug-11 22:02 
You will need to change the colour back using a separate thread. Something like this:

VB
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

        Dim newThread As New Threading.Thread(New Threading.ThreadStart(AddressOf ChangeBGColour))
        newThread.Start()
        Label1.BackColor = Color.Red

    End Sub

    Delegate Sub changeLabelColour()

    Private Sub ChangeBGColour()

        Threading.Thread.Sleep(3000)
        If Me.Label1.InvokeRequired Then
            Dim c As New changeLabelColour(AddressOf ChangeBGColour)
            Me.Invoke(c)
        Else
            Label1.BackColor = Color.Yellow
        End If

    End Sub


I added proper UI thread access . My apologies for the basic thread error.


Hope this helps
Live for today. Plan for tomorrow. Party tonight!

GeneralRe: Animation effect by changing colors Pin
Dalek Dave31-Aug-11 12:30
professionalDalek Dave31-Aug-11 12:30 
GeneralRe: Animation effect by changing colors Pin
Wayne Gaylard31-Aug-11 20:01
professionalWayne Gaylard31-Aug-11 20:01 
GeneralPNG Based File Compression in .NET Pin
James Garner (jadaradix)29-Aug-11 16:27
James Garner (jadaradix)29-Aug-11 16:27 
QuestionCreating Multi-user db application Pin
Gagan.2029-Aug-11 4:25
Gagan.2029-Aug-11 4:25 
AnswerRe: Creating Multi-user db application Pin
ekolis29-Aug-11 8:32
ekolis29-Aug-11 8:32 
AnswerRe: Creating Multi-user db application Pin
Wayne Gaylard29-Aug-11 21:53
professionalWayne Gaylard29-Aug-11 21:53 
AnswerRe: Creating Multi-user db application Pin
Bert Mitton30-Aug-11 6:02
professionalBert Mitton30-Aug-11 6:02 
QuestionScreening programmers skills Pin
MadMax201128-Aug-11 22:40
MadMax201128-Aug-11 22:40 
AnswerRe: Screening programmers skills Pin
DaveAuld28-Aug-11 23:58
professionalDaveAuld28-Aug-11 23:58 
AnswerRe: Screening programmers skills Pin
Eddy Vluggen29-Aug-11 6:36
professionalEddy Vluggen29-Aug-11 6:36 
Questionproblems add new record on entity framework Pin
dcode2528-Aug-11 12:32
dcode2528-Aug-11 12:32 
QuestionParsing XML in VB.NET using XMLDocument Pin
Jaggernaut28-Aug-11 12:01
Jaggernaut28-Aug-11 12:01 
AnswerRe: Parsing XML in VB.NET using XMLDocument Pin
Eddy Vluggen29-Aug-11 6:29
professionalEddy Vluggen29-Aug-11 6:29 
GeneralRe: Parsing XML in VB.NET using XMLDocument Pin
Jaggernaut29-Aug-11 23:11
Jaggernaut29-Aug-11 23:11 
QuestionSliding effect issue in VB.NET Pin
Razanust26-Aug-11 17:15
Razanust26-Aug-11 17:15 
AnswerRe: Sliding effect issue in VB.NET Pin
Simon_Whale27-Aug-11 22:10
Simon_Whale27-Aug-11 22:10 
QuestionDataset or Entity Framework ? Pin
progal2225-Aug-11 5:16
progal2225-Aug-11 5:16 

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.