Click here to Skip to main content
15,921,990 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Plz Help me to fix overflow error Pin
Murtuza Husain Miyan Patel16-Aug-04 20:05
professionalMurtuza Husain Miyan Patel16-Aug-04 20:05 
GeneralRe: Plz Help me to fix overflow error Pin
Dave Kreskowiak18-Aug-04 1:42
mveDave Kreskowiak18-Aug-04 1:42 
GeneralRe: Plz Help me to fix overflow error Pin
Murtuza Husain Miyan Patel18-Aug-04 4:12
professionalMurtuza Husain Miyan Patel18-Aug-04 4:12 
Generaladding a form to windows service project Pin
Vineet Rajan2-Aug-04 18:31
Vineet Rajan2-Aug-04 18:31 
GeneralNetworked Application Pin
Alejandro K.2-Aug-04 5:05
Alejandro K.2-Aug-04 5:05 
GeneralRe: Networked Application Pin
Dave Kreskowiak2-Aug-04 10:58
mveDave Kreskowiak2-Aug-04 10:58 
GeneralConverting System Time to milliseconds Pin
Simon Kearn2-Aug-04 4:33
sussSimon Kearn2-Aug-04 4:33 
GeneralRe: Converting System Time to milliseconds Pin
Dave Kreskowiak3-Aug-04 5:45
mveDave Kreskowiak3-Aug-04 5:45 
VB6 doesn't return the time using a milliseconds field, so you'll have to call into the Win32 API to get the time.

GetLocalTime[^] will get the system time in the local timezone.
GetSystemTime[^] will return the system time in UTC.
Both of these functions will require you to pass in a SYSTEMTIME[^] structure (ByRef) to get the time out of the function. The actual return value will tell you if the call failed or not.
The declare for both functions:
Declare Sub GetLocalTime Lib "kernel32" Alias "GetLocalTime" (lpSystemTime As SYSTEMTIME)
Declare Sub GetSystemTime Lib "kernel32" Alias "GetSystemTime" (lpSystemTime As SYSTEMTIME)
Private Type SYSTEMTIME
    wYear As Integer
    wMonth As Integer
    wDayOfWeek As Integer
    wDay As Integer
    wHour As Integer
    wMinute As Integer
    wSecond As Integer
    wMilliseconds As Integer
End Type



RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

GeneralRe: Converting System Time to milliseconds Pin
Simon Kearn5-Aug-04 0:05
sussSimon Kearn5-Aug-04 0:05 
GeneralRe: Converting System Time to milliseconds Pin
Dave Kreskowiak7-Aug-04 6:22
mveDave Kreskowiak7-Aug-04 6:22 
GeneralData Dictionary Pin
Britnt72-Aug-04 3:07
Britnt72-Aug-04 3:07 
Generalediting XML config file from within executing program Pin
Vineet Rajan2-Aug-04 1:57
Vineet Rajan2-Aug-04 1:57 
GeneralRe: editing XML config file from within executing program Pin
Member 9041222-Aug-04 2:48
Member 9041222-Aug-04 2:48 
GeneralRe: editing XML config file from within executing program Pin
Vineet Rajan2-Aug-04 3:09
Vineet Rajan2-Aug-04 3:09 
GeneralDatagrid row color Pin
benjj1-Aug-04 7:40
benjj1-Aug-04 7:40 
GeneralRe: Datagrid row color Pin
Jay Shankar2-Aug-04 16:31
Jay Shankar2-Aug-04 16:31 
GeneralRe: Datagrid row color Pin
partt3-Aug-04 11:50
partt3-Aug-04 11:50 
GeneralExcel Report Created in VB.Net Pin
lxhan1-Aug-04 5:00
lxhan1-Aug-04 5:00 
QuestionHow to Hide Application from Task Manager Pin
Murtuza Husain Miyan Patel1-Aug-04 4:37
professionalMurtuza Husain Miyan Patel1-Aug-04 4:37 
AnswerRe: How to Hide Application from Task Manager Pin
Dave Kreskowiak1-Aug-04 17:04
mveDave Kreskowiak1-Aug-04 17:04 
AnswerRe: How to Hide Application from Task Manager Pin
s1ihome1-Aug-04 20:21
s1ihome1-Aug-04 20:21 
GeneralPlz Help me how to Hide Application from Task Manager Pin
Murtuza Husain Miyan Patel1-Aug-04 4:36
professionalMurtuza Husain Miyan Patel1-Aug-04 4:36 
GeneralRe: Plz Help me how to Hide Application from Task Manager Pin
Colin Angus Mackay1-Aug-04 22:31
Colin Angus Mackay1-Aug-04 22:31 
GeneralRe: Plz Help me how to Hide Application from Task Manager Pin
Tahseen Zindani2-Aug-04 23:33
sussTahseen Zindani2-Aug-04 23:33 
GeneralFile Download Trap Pin
Mega131-Jul-04 13:16
Mega131-Jul-04 13: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.