Click here to Skip to main content
16,015,973 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionhow to save image in access Pin
areon2522-Jun-06 14:02
areon2522-Jun-06 14:02 
AnswerRe: how to save image in access Pin
Mekong River22-Jun-06 15:28
Mekong River22-Jun-06 15:28 
AnswerRe: how to save image in access Pin
Tiger Group23-Jun-06 0:04
Tiger Group23-Jun-06 0:04 
Questionhow to filter data Pin
areon2522-Jun-06 14:01
areon2522-Jun-06 14:01 
AnswerRe: how to filter data Pin
Mekong River22-Jun-06 15:33
Mekong River22-Jun-06 15:33 
Questionhow to edit the database.. Pin
areon2522-Jun-06 13:58
areon2522-Jun-06 13:58 
AnswerRe: how to edit the database.. Pin
Mekong River22-Jun-06 15:36
Mekong River22-Jun-06 15:36 
Questionsending data from VB to another open program Pin
maxious2222-Jun-06 5:19
maxious2222-Jun-06 5:19 
I’m using Visual basic to code a program tat is going to be used in conjunction with the company I’m working for's software. this will then return some data and is displayed in several (note not just 1 but in 5 different) text fields. but heres the hard part. i have an open notepad document untitled (its unsaved at the moment) and I want to past the data from the text fields into this open notepad. So far I have managed to output to a pre-safe .txt file which can be opened later and I have managed to copy all the information to clipboard to be pasted manually later (it was tricky to find out how to put a carriage return at the end of each field but i found the solution by using vbCrLf). but what I’m looking for is 2 things. first when i press the button i want it to copy and past the data straight into the notepad program with out any further intervention and second I want to try and us the tab command instead of the carriage return. Because later I want to use another program rather than notepad called HEAT. in this program ill be taking address lines 1 to 5 and so when the past command goes in it will put line 1 in first then tab to the second line to be pasted and then tab to the third line and so forth. but this is keeping in mind that the curser in HEAT is in the right place to start with.

so far hears my code for the button. When the button is clicked it will take the text of all the field label and then put them into a variable. this variable is then copied into the clipboard.

*********
Private Sub Command1_Click()
Dim alladdress As String
alladdress = ad1.Caption + vbCrLf + ad2.Caption + vbCrLf + ad3.Caption + vbCrLf + ad4.Caption + vbCrLf + pc.Caption
Clipboard.Clear
Clipboard.SetText (alladdress)

End Sub

*********

I know real easy this bit Smile | :)

but is their any one out there that can help me with the hard bit. Thanks

Maxious

P.S some one advised me to look up sendkey on msdn but its not installed on my computer and the website is not much help

AnswerRe: sending data from VB to another open program Pin
MarchJ30-Jun-06 12:21
MarchJ30-Jun-06 12:21 
QuestionSecuring a SQL Connection string [modified] Pin
Marcus J. Smith22-Jun-06 3:57
professionalMarcus J. Smith22-Jun-06 3:57 
AnswerRe: Securing a SQL Connection string Pin
mikanu22-Jun-06 5:42
mikanu22-Jun-06 5:42 
GeneralRe: Securing a SQL Connection string Pin
Marcus J. Smith22-Jun-06 7:35
professionalMarcus J. Smith22-Jun-06 7:35 
QuestionHTTPPost passing in username and password Pin
J Liang22-Jun-06 3:39
J Liang22-Jun-06 3:39 
QuestionFree Refactor! for VB Pin
Kevin McFarlane22-Jun-06 3:16
Kevin McFarlane22-Jun-06 3:16 
Questionproblem playing .wmv files Pin
seva0412197322-Jun-06 1:54
seva0412197322-Jun-06 1:54 
Questionconfig File Pin
Piwe22-Jun-06 0:29
Piwe22-Jun-06 0:29 
AnswerRe: config File Pin
Socheat.Net23-Jun-06 17:26
Socheat.Net23-Jun-06 17:26 
QuestionCancel command Pin
angelagke21-Jun-06 23:22
angelagke21-Jun-06 23:22 
AnswerRe: Cancel command Pin
Dave Kreskowiak22-Jun-06 8:17
mveDave Kreskowiak22-Jun-06 8:17 
QuestionHow to know if the image is valid Pin
mysterious3rd21-Jun-06 22:22
mysterious3rd21-Jun-06 22:22 
AnswerRe: How to know if the image is valid Pin
mikanu22-Jun-06 5:48
mikanu22-Jun-06 5:48 
QuestionMAPI Pin
eKuzu21-Jun-06 21:58
eKuzu21-Jun-06 21:58 
Questionread a wav file and write buffer into anothet wav file Pin
sihotamarpal21-Jun-06 20:54
sihotamarpal21-Jun-06 20:54 
QuestionRunning VB Application from CD Pin
abhaysurve21-Jun-06 20:36
abhaysurve21-Jun-06 20:36 
AnswerRe: Running VB Application from CD Pin
Dave Kreskowiak22-Jun-06 1:23
mveDave Kreskowiak22-Jun-06 1:23 

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.