Click here to Skip to main content
15,890,336 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Newbie here Pin
Nguyen Dinh Quy24-Jul-05 21:01
Nguyen Dinh Quy24-Jul-05 21:01 
GeneralRe: Newbie here Pin
Yulianto.24-Jul-05 21:06
Yulianto.24-Jul-05 21:06 
GeneralRe: Newbie here Pin
Nguyen Dinh Quy24-Jul-05 22:07
Nguyen Dinh Quy24-Jul-05 22:07 
GeneralRe: Newbie here Pin
Yulianto.24-Jul-05 22:23
Yulianto.24-Jul-05 22:23 
GeneralRe: Newbie here Pin
Nguyen Dinh Quy24-Jul-05 22:50
Nguyen Dinh Quy24-Jul-05 22:50 
GeneralRe: Newbie here Pin
Yulianto.24-Jul-05 23:06
Yulianto.24-Jul-05 23:06 
GeneralRe: Newbie here Pin
Nguyen Dinh Quy24-Jul-05 23:17
Nguyen Dinh Quy24-Jul-05 23:17 
GeneralRe: Newbie here Pin
Anonymous25-Jul-05 4:06
Anonymous25-Jul-05 4:06 
The following code will handle copying of any file extension.

<br />
Dim FileDialog As New OpenFileDialog<br />
'FileInfo class has <br />
Dim myFile as System.IO.FileInfo<br />
<br />
With FileDialog<br />
if .ShowDialog() = DialogResults.Ok then<br />
'create FileInfo instance where .Filename is the fullpath of source <br />
'file. For example: C:\Example.txt<br />
myFile = new System.IO.FileInfo(.Filename)<br />
<br />
'FileInfo.Name property indicates the file name<br />
'For example: If the source file is C:\Example.txt than the FileInfo.Name<br />
'property is Example.txt<br />
myFile.CopyTo("D:\" & myFile.Name, false)<br />
<br />
'syntax: FileInfo.CopyTo(destfilename as String, forceoverwrite as Boolean)<br />
<br />
End If<br />
End With


I hope this makes sense Big Grin | :-D

A.S.
Generaladd and remove rows in datagrid. Pin
ra-rag24-Jul-05 14:13
ra-rag24-Jul-05 14:13 
GeneralRe: add and remove rows in datagrid. Pin
thealca24-Jul-05 16:35
thealca24-Jul-05 16:35 
GeneralPlatform Invoke Pin
lagumaster24-Jul-05 13:27
lagumaster24-Jul-05 13:27 
GeneralRe: Platform Invoke Pin
Dave Kreskowiak24-Jul-05 15:21
mveDave Kreskowiak24-Jul-05 15:21 
GeneralRemove a Directory and its contents. Pin
Brad Fackrell24-Jul-05 10:44
Brad Fackrell24-Jul-05 10:44 
GeneralRe: Remove a Directory and its contents. Pin
progload24-Jul-05 11:42
progload24-Jul-05 11:42 
GeneralRe: Remove a Directory and its contents. Pin
Brad Fackrell24-Jul-05 12:21
Brad Fackrell24-Jul-05 12:21 
GeneralSniffing &quot;Submit&quot; Buttons in HTML pages Pin
Anonymous24-Jul-05 8:45
Anonymous24-Jul-05 8:45 
GeneralRe: Sniffing &quot;Submit&quot; Buttons in HTML pages Pin
madfiddlerchris24-Jul-05 23:09
madfiddlerchris24-Jul-05 23:09 
Generallocking folder and files Pin
Member 213961924-Jul-05 7:46
Member 213961924-Jul-05 7:46 
GeneralRe: locking folder and files Pin
progload24-Jul-05 11:51
progload24-Jul-05 11:51 
GeneralRe: locking folder and files Pin
Dave Kreskowiak24-Jul-05 15:19
mveDave Kreskowiak24-Jul-05 15:19 
GeneralReply to dave only: locking folder and files Pin
Member 213961925-Jul-05 5:56
Member 213961925-Jul-05 5:56 
GeneralActiveX Exe Registeration Pin
MohammadAmiry24-Jul-05 7:29
MohammadAmiry24-Jul-05 7:29 
GeneralRe: ActiveX Exe Registeration Pin
progload24-Jul-05 11:32
progload24-Jul-05 11:32 
GeneralRe: ActiveX Exe Registeration Pin
Dave Kreskowiak24-Jul-05 15:16
mveDave Kreskowiak24-Jul-05 15:16 
GeneralTo Dave and progload Pin
MohammadAmiry25-Jul-05 10:41
MohammadAmiry25-Jul-05 10:41 

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.