Click here to Skip to main content
15,920,438 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Can i create an ARRAY of TextBox??? Pin
IBetNoBodyWillHaveThisNameOrAlias28-Mar-06 6:55
IBetNoBodyWillHaveThisNameOrAlias28-Mar-06 6:55 
GeneralRe: Can i create an ARRAY of TextBox??? Pin
NatBest28-Mar-06 9:08
NatBest28-Mar-06 9:08 
GeneralRe: Can i create an ARRAY of TextBox??? Pin
IBetNoBodyWillHaveThisNameOrAlias28-Mar-06 9:19
IBetNoBodyWillHaveThisNameOrAlias28-Mar-06 9:19 
QuestionObject pooling Pin
Choks28-Mar-06 4:02
Choks28-Mar-06 4:02 
QuestionCopy Media File To ClipBoard Pin
IBetNoBodyWillHaveThisNameOrAlias28-Mar-06 3:30
IBetNoBodyWillHaveThisNameOrAlias28-Mar-06 3:30 
AnswerRe: Copy Media File To ClipBoard Pin
ADY00729-Mar-06 6:52
ADY00729-Mar-06 6:52 
QuestionRe: Copy Media File To ClipBoard Pin
StewBob10-Jul-06 4:43
StewBob10-Jul-06 4:43 
AnswerRe: Copy Media File To ClipBoard Pin
IBetNoBodyWillHaveThisNameOrAlias10-Jul-06 6:23
IBetNoBodyWillHaveThisNameOrAlias10-Jul-06 6:23 
Hello Stew Scott,

Well, I used "FileDrop" option of ClipBoard.

Here is the code:


Imports System.IO

'Declaration
Dim obj As New DataObject()
Dim tarFile() As String

'If anyTxtBox is a text box, which contains the exact path to the tarFile then
If anyTxtBox.Text <> "" And File.Exists(anyTxtBox.Text) Then

'Assign data to string
tarFile = Split(anyTxtBox.Text, vbCrlf)

'Set this string to DataObject as FileDrop Object
obj.SetData(System.Windows.Forms.DataFormat.FileDrop, tarFile)

'Set this DataObject to ClipBoard
ClipBoard.SetDataObject(obj)

'The Clipboard will have the required file as long as another clipboard
'copy function is performed. You may paste that file any where now.

End If



--------- :->
Good Day.




End Less Loop
GeneralRe: Copy Media File To ClipBoard Pin
StewBob10-Jul-06 7:32
StewBob10-Jul-06 7:32 
Questionhow to Stop running when form open. Pin
campbells28-Mar-06 2:46
campbells28-Mar-06 2:46 
AnswerRe: how to Stop running when form open. Pin
IBetNoBodyWillHaveThisNameOrAlias28-Mar-06 7:03
IBetNoBodyWillHaveThisNameOrAlias28-Mar-06 7:03 
GeneralRe: how to Stop running when form open. Pin
campbells28-Mar-06 20:39
campbells28-Mar-06 20:39 
GeneralRe: how to Stop running when form open. Pin
Chatura Dilan28-Mar-06 21:24
Chatura Dilan28-Mar-06 21:24 
GeneralRe: how to Stop running when form open. Pin
campbells29-Mar-06 0:32
campbells29-Mar-06 0:32 
GeneralRe: how to Stop running when form open. Pin
Chatura Dilan29-Mar-06 0:58
Chatura Dilan29-Mar-06 0:58 
GeneralRe: how to Stop running when form open. Pin
campbells29-Mar-06 1:50
campbells29-Mar-06 1:50 
Questionhow to close entire system properly? Pin
campbells28-Mar-06 2:27
campbells28-Mar-06 2:27 
AnswerRe: how to close entire system properly? Pin
FeRtoll28-Mar-06 4:55
FeRtoll28-Mar-06 4:55 
GeneralRe: how to close entire system properly? Pin
campbells28-Mar-06 5:54
campbells28-Mar-06 5:54 
GeneralRe: how to close entire system properly? Pin
FeRtoll28-Mar-06 9:31
FeRtoll28-Mar-06 9:31 
QuestionRemove the last "add line" from Datagrid Pin
Izak -28-Mar-06 2:22
Izak -28-Mar-06 2:22 
AnswerRe: Remove the last "add line" from Datagrid Pin
Dean_SF29-Mar-06 4:15
Dean_SF29-Mar-06 4:15 
QuestionMedia File Cutting and Trimming Pin
shreyash_parihar28-Mar-06 2:05
shreyash_parihar28-Mar-06 2:05 
QuestionHotkey Tab Control Pin
paas28-Mar-06 1:14
paas28-Mar-06 1:14 
AnswerRe: Hotkey Tab Control Pin
paas3-Apr-06 1:52
paas3-Apr-06 1:52 

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.