Click here to Skip to main content
16,013,918 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: AddHandler Arguments? Pin
Dave Kreskowiak17-Sep-08 10:17
mveDave Kreskowiak17-Sep-08 10:17 
GeneralRe: AddHandler Arguments? Pin
nlarson1117-Sep-08 10:28
nlarson1117-Sep-08 10:28 
GeneralRe: AddHandler Arguments? Pin
Saul Johnson20-Sep-08 6:25
Saul Johnson20-Sep-08 6:25 
QuestionHow to stop FLICKERING -> Listview -> OwnderDraw Pin
jesus.online17-Sep-08 2:13
jesus.online17-Sep-08 2:13 
AnswerRe: How to stop FLICKERING -> Listview -> OwnderDraw Pin
Thomas Stockwell17-Sep-08 6:02
professionalThomas Stockwell17-Sep-08 6:02 
GeneralRe: How to stop FLICKERING -> Listview -> OwnderDraw Pin
jesus.online17-Sep-08 9:24
jesus.online17-Sep-08 9:24 
GeneralRe: How to stop FLICKERING -> Listview -> OwnderDraw Pin
jesus.online17-Sep-08 9:46
jesus.online17-Sep-08 9:46 
QuestionHow to find creation date of an exe Pin
AR Reddy17-Sep-08 1:57
AR Reddy17-Sep-08 1:57 
I want to find the creation date of an exe. I am using the following code.

Public Declare Function CreateFile Lib "kernel32.dll" Alias "CreateFileA" (ByVal lpFileName As String, ByVal dwDesiredAccess As Integer, ByVal dwShareMode As Integer, ByVal lpSecurityAttributes As Integer, ByVal dwCreationDisposition As Integer, ByVal dwFlagsAndAttributes As Integer, ByVal hTemplateFile As Integer) As Integer

Dim fHandle As Integer
fHandle = CreateFile(FileName, GENERIC_READ, 0, 0, OPEN_EXISTING, 0, 0)

Using this handle, with some more code we can find the creation date.

This is working fine in VB. But not working in VB.net. CreateFile is returning -1 in VB.net.

Could anyone of you please tell me why it is not working in VB.net and is there any other way(methods) to find the creation date of an vb.exe file.

Thanks in advance,

AR Reddy

AnswerRe: How to find creation date of an exe Pin
Tom Deketelaere17-Sep-08 2:26
professionalTom Deketelaere17-Sep-08 2:26 
AnswerRe: How to find creation date of an exe Pin
Thomas Stockwell17-Sep-08 6:03
professionalThomas Stockwell17-Sep-08 6:03 
AnswerRe: How to find creation date of an exe Pin
User 81152324-Sep-08 19:01
User 81152324-Sep-08 19:01 
QuestionCopying Directory In Faster Way Pin
sumit703417-Sep-08 0:32
sumit703417-Sep-08 0:32 
AnswerRe: Copying Directory In Faster Way Pin
jzonthemtn17-Sep-08 7:09
jzonthemtn17-Sep-08 7:09 
GeneralRe: Copying Directory In Faster Way Pin
sumit703417-Sep-08 20:05
sumit703417-Sep-08 20:05 
QuestionMSFlexgrid (help me on my source code) Pin
barakulyo17-Sep-08 0:13
barakulyo17-Sep-08 0:13 
QuestionHow to show Text File in PrintPreviewDialog in vb.net (WinForm) Pin
kedarrkulkarni16-Sep-08 21:06
kedarrkulkarni16-Sep-08 21:06 
QuestionAnti Spyware Pin
pavanip16-Sep-08 20:46
pavanip16-Sep-08 20:46 
AnswerRe: Anti Spyware Pin
Ashfield16-Sep-08 21:10
Ashfield16-Sep-08 21:10 
AnswerRe: Anti Spyware Pin
Tom Deketelaere16-Sep-08 23:12
professionalTom Deketelaere16-Sep-08 23:12 
QuestionWeird TabControl binding error Pin
Mycroft Holmes16-Sep-08 16:37
professionalMycroft Holmes16-Sep-08 16:37 
QuestionPinvoke DLL Pin
SUperbom16-Sep-08 10:21
SUperbom16-Sep-08 10:21 
AnswerRe: Pinvoke DLL Pin
Ajay.k_Singh16-Sep-08 23:03
Ajay.k_Singh16-Sep-08 23:03 
AnswerRe: Pinvoke DLL Pin
Gideon Engelberth18-Sep-08 5:46
Gideon Engelberth18-Sep-08 5:46 
QuestionAdding Event Handlers At Runtime? Pin
Saul Johnson16-Sep-08 10:12
Saul Johnson16-Sep-08 10:12 
AnswerRe: Adding Event Handlers At Runtime? Pin
Dave Kreskowiak16-Sep-08 11:39
mveDave Kreskowiak16-Sep-08 11:39 

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.