Click here to Skip to main content
15,904,287 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionRe: Problems with GetCaretPos API function Pin
Husam Burhan24-Apr-06 9:12
Husam Burhan24-Apr-06 9:12 
AnswerRe: Problems with GetCaretPos API function Pin
Dave Kreskowiak24-Apr-06 11:35
mveDave Kreskowiak24-Apr-06 11:35 
QuestionHow to set the the form owner to an application? Pin
cylix200023-Apr-06 17:31
cylix200023-Apr-06 17:31 
AnswerRe: How to set the the form owner to an application? Pin
Dave Kreskowiak24-Apr-06 5:29
mveDave Kreskowiak24-Apr-06 5:29 
QuestionHow to change the bold style for the text selection which consist of two or more font styles Pin
Chatura Dilan23-Apr-06 16:35
Chatura Dilan23-Apr-06 16:35 
AnswerRe: How to change the bold style for the text selection which consist of two or more font styles Pin
Dave Kreskowiak24-Apr-06 5:34
mveDave Kreskowiak24-Apr-06 5:34 
GeneralRe: How to change the bold style for the text selection which consist of two or more font styles Pin
Chatura Dilan24-Apr-06 15:03
Chatura Dilan24-Apr-06 15:03 
QuestionNeed help with Public Property Timer() Pin
Jirikub23-Apr-06 15:30
Jirikub23-Apr-06 15:30 
Following is from help file in my VB.net(2001):


ReadOnly Public Property Timer() As Double
Remarks
The Timer property returns both the seconds and the milliseconds since midnight. The seconds are in the integral part of the return value, and the milliseconds are in the fractional part.
Example
This example uses the Timer function to pause the application. It can perform other processing during the pause.
Dim Start, Finish, TotalTime As Double
If (MsgBox("Press Yes to pause for 5 seconds", MsgBoxStyle.YesNo)) = _
MsgBoxResult.Yes Then
Start = Timer ' Set start time (seconds).
Finish = Start + 5.0 ' Set end time for 5-second duration.
Do While Timer < Finish
' Do other processing while waiting for 5 seconds to elapse.
Loop
TotalTime = Timer - Start ' Calculate total time.
MsgBox "Paused for " & TotalTime & " seconds"
Else
End
End If


I cannot make it work in ay way.Timer always gets underlined and I get following message:

"Timer is a type and cannot be used for expression."

How does one get it work?
I will appreciate any help you can give me with this.
Thank you Jirka
AnswerRe: Need help with Public Property Timer() Pin
Steve Pullan23-Apr-06 15:51
Steve Pullan23-Apr-06 15:51 
GeneralRe: Need help with Public Property Timer() Pin
Jirikub24-Apr-06 4:47
Jirikub24-Apr-06 4:47 
GeneralRe: Need help with Public Property Timer() Pin
Dave Kreskowiak24-Apr-06 5:27
mveDave Kreskowiak24-Apr-06 5:27 
GeneralRe: Need help with Public Property Timer() Pin
Jirikub24-Apr-06 5:42
Jirikub24-Apr-06 5:42 
GeneralRe: Need help with Public Property Timer() Pin
Dave Kreskowiak24-Apr-06 5:53
mveDave Kreskowiak24-Apr-06 5:53 
GeneralRe: Need help with Public Property Timer() Pin
Jirikub25-Apr-06 5:31
Jirikub25-Apr-06 5:31 
QuestionHow to play music files in vb.net applications? Pin
KaKa'23-Apr-06 15:29
KaKa'23-Apr-06 15:29 
AnswerRe: How to play music files in vb.net applications? Pin
Yuvi Panda23-Apr-06 20:46
Yuvi Panda23-Apr-06 20:46 
QuestionTable Adapters Pin
lupa-nikki23-Apr-06 12:17
lupa-nikki23-Apr-06 12:17 
QuestionCall Java Code From VB.net ? Pin
ALQallaf23-Apr-06 11:48
ALQallaf23-Apr-06 11:48 
AnswerRe: Call Java Code From VB.net ? Pin
Dave Kreskowiak23-Apr-06 13:43
mveDave Kreskowiak23-Apr-06 13:43 
GeneralRe: Call Java Code From VB.net ? Pin
Christian Graus23-Apr-06 19:32
protectorChristian Graus23-Apr-06 19:32 
AnswerRe: Call Java Code From VB.net ? Pin
Yuvi Panda23-Apr-06 20:48
Yuvi Panda23-Apr-06 20:48 
GeneralRe: Call Java Code From VB.net ? Pin
ALQallaf24-Apr-06 4:26
ALQallaf24-Apr-06 4:26 
QuestionI need an advice from an expert Pin
JUNEYT23-Apr-06 8:22
JUNEYT23-Apr-06 8:22 
AnswerRe: I need an advice from an expert Pin
Dave Kreskowiak23-Apr-06 9:30
mveDave Kreskowiak23-Apr-06 9:30 
QuestionVisual Basic 6 to Visual Basic.Net Pin
ekowwillis23-Apr-06 6:43
ekowwillis23-Apr-06 6:43 

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.