Click here to Skip to main content
15,913,115 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: How to create composite key in a table using VB.NET? Pin
Dave Kreskowiak19-Jun-09 1:16
mveDave Kreskowiak19-Jun-09 1:16 
GeneralRe: How to create composite key in a table using VB.NET? Pin
sivakumar.mariappan19-Jun-09 1:37
sivakumar.mariappan19-Jun-09 1:37 
GeneralRe: How to create composite key in a table using VB.NET? Pin
Dave Kreskowiak19-Jun-09 4:28
mveDave Kreskowiak19-Jun-09 4:28 
AnswerRe: How to create composite key in a table using VB.NET? Pin
riced19-Jun-09 5:06
riced19-Jun-09 5:06 
GeneralRe: How to create composite key in a table using VB.NET? Pin
sivakumar.mariappan19-Jun-09 19:42
sivakumar.mariappan19-Jun-09 19:42 
QuestionPrinter Status Pin
specialdreamsin18-Jun-09 23:46
specialdreamsin18-Jun-09 23:46 
AnswerRe: Printer Status Pin
Christian Graus18-Jun-09 23:51
protectorChristian Graus18-Jun-09 23:51 
GeneralRe: Printer Status Pin
Dave Kreskowiak19-Jun-09 1:05
mveDave Kreskowiak19-Jun-09 1:05 
GeneralRe: Printer Status Pin
Nagy Vilmos19-Jun-09 1:08
professionalNagy Vilmos19-Jun-09 1:08 
QuestionRe: Printer Status Pin
nlarson1119-Jun-09 4:19
nlarson1119-Jun-09 4:19 
AnswerRe: Printer Status Pin
Christian Graus19-Jun-09 11:23
protectorChristian Graus19-Jun-09 11:23 
AnswerRe: Printer Status Pin
nlarson1119-Jun-09 3:51
nlarson1119-Jun-09 3:51 
AnswerRe: Printer Status Pin
specialdreamsin20-Jun-09 0:25
specialdreamsin20-Jun-09 0:25 
QuestionCreate Table in Microsoft Access database (Visual basic 2008 express Edition) Pin
helen0018-Jun-09 18:35
helen0018-Jun-09 18:35 
AnswerRe: Create Table in Microsoft Access database (Visual basic 2008 express Edition) Pin
Steven J Jowett18-Jun-09 23:17
Steven J Jowett18-Jun-09 23:17 
GeneralRe: Create Table in Microsoft Access database (Visual basic 2008 express Edition) Pin
helen0020-Jun-09 0:38
helen0020-Jun-09 0:38 
GeneralRe: Create Table in Microsoft Access database (Visual basic 2008 express Edition) Pin
programmervb.netc++24-Jun-09 21:08
programmervb.netc++24-Jun-09 21:08 
QuestionThis program has potentially unwanted behavior. Pin
Anubhava Dimri18-Jun-09 18:25
Anubhava Dimri18-Jun-09 18:25 
AnswerRe: This program has potentially unwanted behavior. Pin
Christian Graus18-Jun-09 19:32
protectorChristian Graus18-Jun-09 19:32 
AnswerRe: This program has potentially unwanted behavior. Pin
Dave Kreskowiak19-Jun-09 1:03
mveDave Kreskowiak19-Jun-09 1:03 
GeneralRe: This program has potentially unwanted behavior. Pin
TheMrProgrammer21-Jun-09 5:50
TheMrProgrammer21-Jun-09 5:50 
GeneralRe: This program has potentially unwanted behavior. Pin
Dave Kreskowiak21-Jun-09 7:56
mveDave Kreskowiak21-Jun-09 7:56 
Questionminimode windows application Pin
samvaidy18-Jun-09 12:05
samvaidy18-Jun-09 12:05 
AnswerRe: minimode windows application Pin
Christian Graus18-Jun-09 19:33
protectorChristian Graus18-Jun-09 19:33 
QuestionStatusStrip is not updating from a class. Pin
Musa Biralo18-Jun-09 11:51
Musa Biralo18-Jun-09 11:51 
I searched and tried several answer from yesterday but i could not solve this yet... Frown | :( Other thing is i am a beginner...

I am trying to update the StatusStrip from a class but it's not updating... Here's my code.

This is my Form1----------
Public Class Form1

    Public trash As New Class1

    Private WithEvents eventsUpdateSSclass1 As UpdateStatusStrip.Class1

    Private Sub UpdateStatusStrip(ByVal msg As String, ByVal color As Color) Handles ventsUpdateSSclass1.UpdateStatusStrip

        Me.ToolStripStatusLabel1.Text = msg
        Me.ToolStripStatusLabel1.BackColor = color
        Me.StatusStrip1.Refresh()

    End Sub

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

End Class 

This is my Class ------------
Public Class Class1

    Public Sub New()
    End Sub

    Public Event UpdateStatusStrip(ByVal msg As String, ByVal color As Color)

    Public Sub runRunRun()
        Dim k As Integer = 0
        For i As Integer = 1 To 100
            For j As Integer = 1 To 1000
                k = j + i
                RaiseEvent UpdateStatusStrip(CStr(k), Color.Orange)
                'call UpdateStatusStrip(CStr(k), Color.Orange) is not working.

            Next
        Next
        RaiseEvent UpdateStatusStrip(String.Empty, Nothing) 'to check
    End Sub

End Class 

I will really really appreciate your help.

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.