Click here to Skip to main content
15,921,577 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: How to import VB forms in VC++ program? Pin
Christian Graus5-Sep-05 16:07
protectorChristian Graus5-Sep-05 16:07 
GeneralRe: How to import VB forms in VC++ program? Pin
ladyscarlet995-Sep-05 16:38
ladyscarlet995-Sep-05 16:38 
GeneralRe: How to import VB forms in VC++ program? Pin
Christian Graus5-Sep-05 16:56
protectorChristian Graus5-Sep-05 16:56 
QuestionSynchronise day and time Pin
Zakiro5-Sep-05 15:17
Zakiro5-Sep-05 15:17 
AnswerRe: Synchronise day and time Pin
Dave Kreskowiak5-Sep-05 17:42
mveDave Kreskowiak5-Sep-05 17:42 
GeneralRe: Synchronise day and time Pin
Christian Graus5-Sep-05 17:57
protectorChristian Graus5-Sep-05 17:57 
GeneralRe: Synchronise day and time Pin
Dave Kreskowiak6-Sep-05 6:45
mveDave Kreskowiak6-Sep-05 6:45 
QuestionSharing data between Windows forms Pin
roraima5-Sep-05 12:17
roraima5-Sep-05 12:17 
Hi All:

I would like to share data between two Windows forms in this manner:

- Form 1 browses for the name of a text file, stores the name in a string variable (strTextFile), and calls Form 2 with the Form2.Show() command

- Form 2 has one button to display this text file in a text window called txtDocument.Text using My.Computer.FileSystem.ReadAllText(strTextFile), and two others to do Printer Setup and Print, respectively

My question is: how do I pass the name of the text file from Form 1 to Form 2? I am new to VB.NET, so please bear with me.

Thanks.


DERECK R. PRINCE
President
Roraima Technologies, Inc.
"Customizing Technology for ALL Your Business Needs!"
Saint Louis, Missouri, USA
Phone: 1-314-569-9035
AnswerRe: Sharing data between Windows forms Pin
Christian Graus5-Sep-05 12:18
protectorChristian Graus5-Sep-05 12:18 
GeneralRe: Sharing data between Windows forms Pin
roraima5-Sep-05 12:23
roraima5-Sep-05 12:23 
GeneralRe: Sharing data between Windows forms Pin
Christian Graus5-Sep-05 12:35
protectorChristian Graus5-Sep-05 12:35 
GeneralRe: Sharing data between Windows forms Pin
roraima5-Sep-05 14:14
roraima5-Sep-05 14:14 
AnswerRe: Sharing data between Windows forms Pin
_mubashir6-Sep-05 2:38
_mubashir6-Sep-05 2:38 
AnswerRe: Sharing data between Windows forms Pin
korso_rogan6-Sep-05 9:08
korso_rogan6-Sep-05 9:08 
AnswerRe: Sharing data between Windows forms Pin
eagertolearn8-Sep-05 8:59
eagertolearn8-Sep-05 8:59 
AnswerRe: Sharing data between Windows forms Pin
roraima14-Sep-05 7:24
roraima14-Sep-05 7:24 
QuestionIntelligent Datagrid Pin
| Muhammad Waqas Butt |5-Sep-05 6:05
professional| Muhammad Waqas Butt |5-Sep-05 6:05 
AnswerRe: Intelligent Datagrid Pin
mikone5-Sep-05 10:16
mikone5-Sep-05 10:16 
QuestionOpen default mail client with attachments Pin
marowle5-Sep-05 4:19
marowle5-Sep-05 4:19 
QuestionListview selects? Pin
dave@ennead5-Sep-05 3:26
dave@ennead5-Sep-05 3:26 
AnswerRe: Listview selects? Pin
dave@ennead5-Sep-05 3:35
dave@ennead5-Sep-05 3:35 
QuestionSlow WMI-Query, what reason? Pin
mikone5-Sep-05 3:26
mikone5-Sep-05 3:26 
AnswerRe: Slow WMI-Query, what reason? Pin
progload6-Sep-05 9:41
progload6-Sep-05 9:41 
GeneralRe: Slow WMI-Query, what reason? Pin
mikone7-Sep-05 21:28
mikone7-Sep-05 21:28 
QuestionT-SQL Clause Pin
Greeky5-Sep-05 3:17
Greeky5-Sep-05 3:17 

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.