Click here to Skip to main content
16,020,459 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: How to make a button that will copy two files and put them somewhere else Pin
Richard MacCutchan24-Aug-10 2:56
mveRichard MacCutchan24-Aug-10 2:56 
AnswerRe: How to make a button that will copy two files and put them somewhere else PinPopular
Tom Deketelaere24-Aug-10 3:22
professionalTom Deketelaere24-Aug-10 3:22 
QuestionRe: How to make a button that will copy two files and put them somewhere else [modified] Pin
mshome7724-Aug-10 5:31
mshome7724-Aug-10 5:31 
GeneralRe: How to make a button that will copy two files and put them somewhere else Pin
spencepk25-Aug-10 2:42
spencepk25-Aug-10 2:42 
AnswerRe: How to make a button that will copy two files and put them somewhere else PinPopular
johannesnestler24-Aug-10 5:22
johannesnestler24-Aug-10 5:22 
GeneralRe: How to make a button that will copy two files and put them somewhere else Pin
mshome7724-Aug-10 7:40
mshome7724-Aug-10 7:40 
GeneralRe: How to make a button that will copy two files and put them somewhere else Pin
hahanottelling24-Aug-10 21:13
hahanottelling24-Aug-10 21:13 
GeneralRe: How to make a button that will copy two files and put them somewhere else Pin
johannesnestler24-Aug-10 22:28
johannesnestler24-Aug-10 22:28 
Ok: First use the "code block"-tag in your messages on codeproject - this will format your code in a readable way.
@Copy: You didn't get my hint about File.Copy? WTF | :WTF: Open VisualStudio-Help type File.Copy into the index-search field.
You will find examples for every .NET language...
I did it for you, and here is the example from VS-Help:
Imports System
Imports System.IO

Public Class Test
    Public Shared Sub Main()
        ' Specify the directories you want to manipulate.
        Dim path As String = "c:\temp\MyTest.txt"
        Dim path2 As String = path + "temp"

        Try
            Dim fs As FileStream = File.Create(path)
            fs.Close()
            ' Ensure that the target does not exist.
            File.Delete(path2)

            ' Copy the file.
            File.Copy(path, path2)
            Console.WriteLine("{0} copied to {1}", path, path2)

            ' Try to copy the same file again, which should fail.
            File.Copy(path, path2)
            Console.WriteLine("The second Copy operation succeeded, which was not expected.")

        Catch e As Exception
            Console.WriteLine("The second Copy operation failed, as expected.")
        End Try
    End Sub
End Class


So If you don't know how to use the framework and language - first figure out where to find documentation or help (day 1). Try to experiment with your code, and you will learn a lot by "doing". Here on codeproject you can find "real experts", they will help you if you have a real problem (even if it is a "beginner-problem"), but not doing your "homework" will not help you to get good answeres here. The question-style: "I want you to solve my problem" doesn't work here! Rose | [Rose]
Edit: Correction: Ok sometimes it works - Tom Foswick had compassion with you - and gave you a perfect answer while I wrote this. Smile | :)
AnswerRe: How to make a button that will copy two files and put them somewhere else PinPopular
Tom Foswick24-Aug-10 21:58
Tom Foswick24-Aug-10 21:58 
GeneralRe: How to make a button that will copy two files and put them somewhere else Pin
mshome7725-Aug-10 2:18
mshome7725-Aug-10 2:18 
AnswerRe: How to make a button that will copy two files and put them somewhere else Pin
Phan7om26-Aug-10 23:19
Phan7om26-Aug-10 23:19 
Questionget the IDLE time [Solved] Pin
εїзεїзεїз23-Aug-10 23:04
εїзεїзεїз23-Aug-10 23:04 
AnswerRe: get the IDLE time Pin
Nuri Ismail23-Aug-10 23:28
Nuri Ismail23-Aug-10 23:28 
GeneralRe: get the IDLE time Pin
εїзεїзεїз23-Aug-10 23:49
εїзεїзεїз23-Aug-10 23:49 
GeneralRe: get the IDLE time Pin
Nuri Ismail24-Aug-10 0:04
Nuri Ismail24-Aug-10 0:04 
QuestionHow to make the VB6 and MS-Access project Centralised? Pin
kokilag23-Aug-10 20:24
kokilag23-Aug-10 20:24 
AnswerRe: How to make the VB6 and MS-Access project Centralised? Pin
_Damian S_23-Aug-10 20:41
professional_Damian S_23-Aug-10 20:41 
GeneralRe: How to make the VB6 and MS-Access project Centralised? Pin
kokilag24-Aug-10 19:31
kokilag24-Aug-10 19:31 
GeneralRe: How to make the VB6 and MS-Access project Centralised? Pin
_Damian S_24-Aug-10 20:38
professional_Damian S_24-Aug-10 20:38 
GeneralRe: How to make the VB6 and MS-Access project Centralised? Pin
kokilag25-Aug-10 18:36
kokilag25-Aug-10 18:36 
GeneralRe: How to make the VB6 and MS-Access project Centralised? Pin
kokilag27-Aug-10 0:37
kokilag27-Aug-10 0:37 
QuestionMessage Removed Pin
23-Aug-10 11:37
kereljansen23-Aug-10 11:37 
AnswerRe: sql string Pin
Wes Aday23-Aug-10 12:32
professionalWes Aday23-Aug-10 12:32 
AnswerRe: sql string Pin
Luc Pattyn23-Aug-10 12:39
sitebuilderLuc Pattyn23-Aug-10 12:39 
GeneralRe: sql string Pin
Richard A. Dalton23-Aug-10 13:31
Richard A. Dalton23-Aug-10 13:31 

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.