Click here to Skip to main content
15,924,679 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionHow do you print? Pin
Shrex21-Dec-04 7:59
Shrex21-Dec-04 7:59 
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 
hi all,

trying to understand classes but come up with this problem Confused | :confused:

'how can i access this class, without putting a timer of the form, i.e the control has its own timer

Private Class clock
Inherits Timer

PublicFunction systemtime()
If Me.Enabled = FalseThen ' enable timer if not already
Me.Interval = 500 ' 1/2 secs
Me.Enabled = True
EndIf
systemtime = Now.Second 'get system second, cant be anthing just example.
EndFunction


PrivateSub Test_Tick(ByVal sender AsObject, ByVal e As System.EventArgs) HandlesMyBase.Tick ' on tick run the function

systemtime()

End Sub

End Class

Friend Class Count

Dim test As New clock

Dim timer1 As New clock

Public Function displaytime() As String

displaytime = timer1.systemtime

End Function

End Class

PrivateSub Form1_Load(ByVal sender AsObject, ByVal e As System.EventArgs) HandlesMyBase.Load

Dim test As New Count
'********* problem here************ Cry | :((
'because this is only run once
Label1.Text = test.displaytime() 'this only happens once

End Sub

EndClass

'is there a way of running this class and passing the data to the label withing the timer class?






Happy Xmas to all!

From

Shortcircuit Software!





GeneralRe: class problem Pin
Tom John21-Dec-04 4:19
Tom John21-Dec-04 4:19 
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 

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.