Click here to Skip to main content
15,894,720 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralTyped data sets Pin
bexarcounty21-Dec-04 4:44
bexarcounty21-Dec-04 4:44 
GeneralError while displaying combobox in datagrid Pin
Thirumalaraj21-Dec-04 2:32
Thirumalaraj21-Dec-04 2:32 
GeneralRe: Error while displaying combobox in datagrid Pin
mtone21-Dec-04 3:59
mtone21-Dec-04 3:59 
GeneralRe: Error while displaying combobox in datagrid Pin
Thirumalaraj21-Dec-04 16:46
Thirumalaraj21-Dec-04 16:46 
GeneralI use Winsock to make a simple chat program but!!! Pin
BlitzBall21-Dec-04 2:12
sussBlitzBall21-Dec-04 2:12 
GeneralRe: I use Winsock to make a simple chat program but!!! Pin
Dave Kreskowiak21-Dec-04 3:13
mveDave Kreskowiak21-Dec-04 3:13 
Generalclass problem Pin
Fu Manchu21-Dec-04 2:08
Fu Manchu21-Dec-04 2:08 
GeneralRe: class problem Pin
Tom John21-Dec-04 4:19
Tom John21-Dec-04 4:19 
You need to have an event that is fired by your class when the time changes or whatever it is you want to display, the form can then handle this and update the label:

Public Event UpdateTime As EventHandler

So to fire the event:

Protected Overrides Sub OnTick(e As EventArgs)
         Me.SystemTime

         'Some sort of test to see if you want to fire the event
         If IsChristmas Then
             RaiseEvent UpdateTime(me, EventArgs.Empty)
         End If
End Sub
Then in on the form:

Private Sub Clock_UpdateTime(e as EventArgs, sender as Object) Handles Clock.UpdateTime
    Label1.Text = Clock.DisplayTime
End Sub


Hope this helps

Tom
GeneralRe: class problem Pin
Fu Manchu21-Dec-04 22:52
Fu Manchu21-Dec-04 22:52 
QuestionHow to make cmdbuttons reacting on different PC? Pin
HuDcHeI21-Dec-04 2:04
sussHuDcHeI21-Dec-04 2:04 
QuestionHow to make cmdbuttons reacting on different PC? Pin
Anonymous21-Dec-04 2:04
Anonymous21-Dec-04 2:04 
AnswerRe: How to make cmdbuttons reacting on different PC? Pin
Dave Kreskowiak21-Dec-04 3:04
mveDave Kreskowiak21-Dec-04 3:04 
GeneralRe: How to make cmdbuttons reacting on different PC? Pin
HuDcHeIs22-Dec-04 5:08
sussHuDcHeIs22-Dec-04 5:08 
GeneralRe: How to make cmdbuttons reacting on different PC? Pin
Dave Kreskowiak22-Dec-04 11:57
mveDave Kreskowiak22-Dec-04 11:57 
GeneralFTP Pin
nitin_ion20-Dec-04 23:19
nitin_ion20-Dec-04 23:19 
Generaldataset to xmlfile Pin
Makniteasy20-Dec-04 19:57
Makniteasy20-Dec-04 19:57 
GeneralRe: dataset to xmlfile Pin
Tom John20-Dec-04 22:04
Tom John20-Dec-04 22:04 
GeneralDLL HELP Pin
Member 158672020-Dec-04 15:58
Member 158672020-Dec-04 15:58 
GeneralRe: DLL HELP Pin
Dave Kreskowiak21-Dec-04 1:11
mveDave Kreskowiak21-Dec-04 1:11 
GeneralDatagrid Pin
abo el ror20-Dec-04 15:01
abo el ror20-Dec-04 15:01 
GeneralRe: Datagrid Pin
Jay Shankar20-Dec-04 16:38
Jay Shankar20-Dec-04 16:38 
GeneralRe: Datagrid Pin
ScottSingleton21-Dec-04 8:10
ScottSingleton21-Dec-04 8:10 
GeneralVB6 Simple Question I think Pin
dougstratton20-Dec-04 10:56
dougstratton20-Dec-04 10:56 
GeneralRe: VB6 Simple Question I think Pin
Dave Kreskowiak21-Dec-04 1:06
mveDave Kreskowiak21-Dec-04 1:06 
GeneralRe: VB6 Simple Question I think Pin
dougstratton21-Dec-04 5:27
dougstratton21-Dec-04 5:27 

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.