Click here to Skip to main content
15,910,123 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionREGEX issue Pin
ant1xxx17-Aug-07 5:04
ant1xxx17-Aug-07 5:04 
GeneralRe: REGEX issue Pin
Guffa17-Aug-07 7:47
Guffa17-Aug-07 7:47 
QuestionOpen / Convert .DBF file [modified] Pin
New_Coder17-Aug-07 4:06
New_Coder17-Aug-07 4:06 
AnswerRe: Open / Convert .DBF file Pin
Vasudevan Deepak Kumar17-Aug-07 4:37
Vasudevan Deepak Kumar17-Aug-07 4:37 
GeneralRe: Open / Convert .DBF file Pin
New_Coder17-Aug-07 4:52
New_Coder17-Aug-07 4:52 
Questionconnecting to sql server in network environment Pin
raaman17-Aug-07 3:57
raaman17-Aug-07 3:57 
AnswerRe: connecting to sql server in network environment Pin
Dave Kreskowiak17-Aug-07 4:19
mveDave Kreskowiak17-Aug-07 4:19 
QuestionSetSystemTime() Pin
VIP-CoMmAnDo17-Aug-07 0:28
VIP-CoMmAnDo17-Aug-07 0:28 
hello,
I'm programming app to change the system time, but everytime I run this it only resets the time to "31/12/2007, 00:00"

can anyone take a look at my code and tell me where's my mistake?

Imports System.Runtime.InteropServices<br />
Public Class Form1<br />
    Private Structure SYSTEMTIME<br />
        Dim wYear As Integer<br />
        Dim wMonth As Integer<br />
        Dim wDayOfWeek As Integer<br />
        Dim wDay As Integer<br />
        Dim wHour As Integer<br />
        Dim wMinute As Integer<br />
        Dim wSecond As Integer<br />
        Dim wMilliseconds As Integer<br />
    End Structure<br />
<br />
    Private Declare Function SetSystemTime Lib "kernel32" _<br />
       (ByVal lpSystemTime As SYSTEMTIME) As Boolean<br />
<br />
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load<br />
        Dim NewTimeDate As SYSTEMTIME<br />
        NewTimeDate.wYear = 2006<br />
        NewTimeDate.wMonth = 10<br />
        NewTimeDate.wDay = 4<br />
        NewTimeDate.wHour = 5<br />
        NewTimeDate.wMinute = 5<br />
        NewTimeDate.wSecond = 5<br />
        NewTimeDate.wMilliseconds = 5<br />
        If SetSystemTime(NewTimeDate) = True Then<br />
            MsgBox("Done")<br />
        End If<br />
    End Sub<br />
End Class


thanks.
AnswerRe: SetSystemTime() Pin
Luc Pattyn17-Aug-07 1:52
sitebuilderLuc Pattyn17-Aug-07 1:52 
GeneralRe: SetSystemTime() Pin
VIP-CoMmAnDo17-Aug-07 4:03
VIP-CoMmAnDo17-Aug-07 4:03 
Generalnot DWORD Pin
Luc Pattyn17-Aug-07 4:28
sitebuilderLuc Pattyn17-Aug-07 4:28 
AnswerRe: SetSystemTime() Pin
Dave Kreskowiak17-Aug-07 4:25
mveDave Kreskowiak17-Aug-07 4:25 
GeneralRe: SetSystemTime() Pin
VIP-CoMmAnDo17-Aug-07 7:06
VIP-CoMmAnDo17-Aug-07 7:06 
Questionhwo can i get amout of sapce remaining on my HDD using VB6 Pin
koolprasad200316-Aug-07 23:13
professionalkoolprasad200316-Aug-07 23:13 
AnswerRe: hwo can i get amout of sapce remaining on my HDD using VB6 Pin
Luc Pattyn17-Aug-07 1:58
sitebuilderLuc Pattyn17-Aug-07 1:58 
GeneralRe: hwo can i get amout of sapce remaining on my HDD using VB6 Pin
koolprasad200317-Aug-07 20:23
professionalkoolprasad200317-Aug-07 20:23 
GeneralRe: hwo can i get amout of sapce remaining on my HDD using VB6 Pin
Luc Pattyn17-Aug-07 23:55
sitebuilderLuc Pattyn17-Aug-07 23:55 
GeneralRe: hwo can i get amout of sapce remaining on my HDD using VB6 Pin
Thomas Krojer23-Aug-07 1:28
Thomas Krojer23-Aug-07 1:28 
QuestionQuick launch by defining the hot keys Pin
Rupesh Kumar Swami16-Aug-07 20:56
Rupesh Kumar Swami16-Aug-07 20:56 
AnswerRe: Quick launch by defining the hot keys Pin
Dave Kreskowiak17-Aug-07 4:27
mveDave Kreskowiak17-Aug-07 4:27 
Questiondetermine all user on system Pin
Rupesh Kumar Swami16-Aug-07 20:28
Rupesh Kumar Swami16-Aug-07 20:28 
AnswerRe: determine all user on system Pin
Dave Kreskowiak17-Aug-07 4:36
mveDave Kreskowiak17-Aug-07 4:36 
QuestionBuilding a Gantt Chart Component.. Pin
jensenx16-Aug-07 20:27
jensenx16-Aug-07 20:27 
AnswerRe: Building a Gantt Chart Component.. Pin
Dave Kreskowiak17-Aug-07 1:59
mveDave Kreskowiak17-Aug-07 1:59 
Questioncan we use vb.net crystal report to vb 6.0 Pin
hk7792116-Aug-07 20:21
hk7792116-Aug-07 20:21 

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.