[Help]Copy and replacing files

Posts 16–21 of 21 · Page 2 of 2
Dude dont worry about creating threads. questions are welcome here. everyone wants to help (espically nextgen)

I opened like 5 threads in one day before, so your good
In button Click Event
Repalce textbox1 with your textbox

[php]
Clipboard.Clear()
Clipboard.SetText(textbox1.text)
[/php]
Quote Originally Posted by NextGen1 View Post
Top Of my head

It should be

Code:
 Dim filetr As New FileInfo("Dsetup.dll")
   
   filetr .MoveTo("Dsetup.bak")

Sleep (500) ' Remember in order for this to work you need to add the sleep code from the snippets form, otherwise you can use threading.sleep, but I don't recommend it.
 
 Dim filetm As New FileInfo("C:\Location\Dsetup.dll") ' Your location = wherever file is located
   
   filetm .MoveTo("Wherever you want it\Dsetup.dll")  ' Wherever it is this file needs to go
Other way to sleep without declare:

[php]threading.thread.sleep(500)[/php]
Thread.Sleep Method (Int32) (System.Threading)
Yes hejsan, I suggested it, I just don't like it because if you are not familiar with multi threading, you will sleep the whole system, the sleep method uses application do events to allow the application to continue processing other tasks


But it is the better alternative if you don't plan on your application doing anything else during the process.

Quote Originally Posted by NextGen1 View Post
Yes hejsan, I suggested it, I just don't like it because if you are not familiar with multi threading, you will sleep the whole system, the sleep method uses application do events to allow the application to continue processing other tasks

But it is the better alternative if you don't plan on your application doing anything else during the process.

The sleep codes seems helpful to me so I'll stick to both of the codes. *pressed thanks*

btw. What I mean to my other problem is the button will copy the contents of the textbox by using a button
which you will not press "Ctrl + c" anymore to the contents of it.

so, when I pressed the button, I'll not pressing "Ctrl + c" anymore.
and I'll just press "Ctrl + v" in where will I paste it.

maybe you can help me with it.. since it might be easy for you..

[sorry if I didn't post this to a new thread since i'm busy at my works for now.]
On a button click event, use the code I added above,
Posts 16–21 of 21 · Page 2 of 2
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us