Click here to Skip to main content
15,916,293 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralPrint All - ICON Pin
Andy H8-Dec-03 0:05
Andy H8-Dec-03 0:05 
GeneralRe: Print All - ICON Pin
Ian Darling8-Dec-03 0:10
Ian Darling8-Dec-03 0:10 
QuestionString to button????? Pin
KwGuy7-Dec-03 20:47
KwGuy7-Dec-03 20:47 
AnswerRe: String to button????? Pin
cnurse8-Dec-03 0:37
cnurse8-Dec-03 0:37 
GeneralToolbox icons for multiple controls in windows control library (.NET) Pin
cnurse7-Dec-03 13:50
cnurse7-Dec-03 13:50 
GeneralRe: Toolbox icons for multiple controls in windows control library (.NET) Pin
J. Dunlap7-Dec-03 14:43
J. Dunlap7-Dec-03 14:43 
Generalbanging my head Pin
cnurse7-Dec-03 16:06
cnurse7-Dec-03 16:06 
GeneralHelp needed re: printing .txt file Pin
Fionn7-Dec-03 13:42
Fionn7-Dec-03 13:42 
Hi, I'm really new to coding etc (have only had Visual Basic.Net for about two weeks now).

I'm trying to put together a little quiz programme for a friend of mine ( sort of combination of helping him out whilst giving myself something constructive to do to force me to learn the language).

Anyways, I've gotten to the point where I can transition between forms, have varied responses based on the questions the students give and have an output whereby I put their score and some other details ( name, dob correct answers to the questions they got wrong etc) into a text file.

So far all of that works just fine. My problem is that I want the text file to be printed. It is just a simple file called "script.txt" in the bin folder. Anyways, I have two books which purport to teach one how to learn Visual Basic but NEITHER of them actually gives an example of "How to cause a given text file to be printed when a user presses button x."

Could anyone help me out?

I'm currently looking at some sort of horrible workaround where I try to get the .txt file to FileStream into a RichTextBox and then print the text content of the RichTextBox but I know there must be some other way.

ANY help would be hugely appreciated. I've spent a day banging my head against this particular wall and I'd like to learn the answer for next time.
GeneralRe: Help needed re: printing .txt file Pin
Colin Angus Mackay7-Dec-03 14:41
Colin Angus Mackay7-Dec-03 14:41 
GeneralRe: Help needed re: printing .txt file Pin
Fionn9-Dec-03 13:10
Fionn9-Dec-03 13:10 
GeneralRe: Help needed re: printing .txt file Pin
Dave Kreskowiak9-Dec-03 13:24
mveDave Kreskowiak9-Dec-03 13:24 
GeneralExcel Wksheet Using Visual Basic Pin
EZ-V7-Dec-03 5:29
EZ-V7-Dec-03 5:29 
GeneralRe: Excel Wksheet Using Visual Basic Pin
Dave Kreskowiak7-Dec-03 14:43
mveDave Kreskowiak7-Dec-03 14:43 
GeneralRe: Excel Wksheet Using Visual Basic Pin
EZ-V9-Dec-03 16:35
EZ-V9-Dec-03 16:35 
GeneralRe: Excel Wksheet Using Visual Basic Pin
Dave Kreskowiak11-Dec-03 1:48
mveDave Kreskowiak11-Dec-03 1:48 
GeneralDealing with dbnulls after joins Pin
JimWDurbin6-Dec-03 10:17
JimWDurbin6-Dec-03 10:17 
GeneralRe: Dealing with dbnulls after joins Pin
Colin Angus Mackay7-Dec-03 6:06
Colin Angus Mackay7-Dec-03 6:06 
Generalvb script/connecting to an as400 session Pin
Buuldawg6-Dec-03 4:32
Buuldawg6-Dec-03 4:32 
GeneralRe: vb script/connecting to an as400 session Pin
Dave Kreskowiak6-Dec-03 5:06
mveDave Kreskowiak6-Dec-03 5:06 
Generalopen mdb file Pin
meirav6-Dec-03 3:35
meirav6-Dec-03 3:35 
GeneralRe: open mdb file Pin
Dave Kreskowiak6-Dec-03 5:02
mveDave Kreskowiak6-Dec-03 5:02 
GeneralRe: open mdb file Pin
meirav6-Dec-03 18:37
meirav6-Dec-03 18:37 
GeneralRe: open mdb file Pin
meirav8-Dec-03 0:41
meirav8-Dec-03 0:41 
GeneralRe: open mdb file Pin
Cliff Wellman8-Dec-03 2:43
Cliff Wellman8-Dec-03 2:43 
GeneralRe: open mdb file Pin
meirav8-Dec-03 2:58
meirav8-Dec-03 2:58 

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.