Click here to Skip to main content
16,007,443 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Suggestions On how to get better performance from InitializeComponent Pin
programmervb.netc++12-Mar-10 19:03
programmervb.netc++12-Mar-10 19:03 
QuestionHow to create a relational query? Pin
robert0012-Mar-10 2:18
robert0012-Mar-10 2:18 
AnswerRe: How to create a relational query? Pin
Dave Kreskowiak12-Mar-10 3:12
mveDave Kreskowiak12-Mar-10 3:12 
GeneralRe: How to create a relational query? Pin
robert0012-Mar-10 17:23
robert0012-Mar-10 17:23 
GeneralRe: How to create a relational query? Pin
Steven J Jowett13-Mar-10 0:16
Steven J Jowett13-Mar-10 0:16 
GeneralRe: How to create a relational query? Pin
Dave Kreskowiak13-Mar-10 2:20
mveDave Kreskowiak13-Mar-10 2:20 
Questionprinter from file [modified] ... resolved Pin
Daniel Engelkes11-Mar-10 14:41
Daniel Engelkes11-Mar-10 14:41 
AnswerRe: printer from file Pin
Luc Pattyn11-Mar-10 15:01
sitebuilderLuc Pattyn11-Mar-10 15:01 
Hi,

1.
Daniel Engelkes wrote:
It does not print the in the same way on how it looks in notepad


is not a symptom we can work on. What does it do, and how is that different from what you want/expect?

2.
A do-loop containing printfile.ReadToEnd will iterate only once. Your first line goes to "menuitem", everything else goes to "DrawString", there isn't a second iteration.

3.
Most often, the correct way to print a number of lines is by having a loop, where each iteration prints one line of text, at a different location; so you need to have coordinates (x,y) which change as you iterate your loop.

4.
Very likely, I haven't checked that part of your code: in order to write a number of strings to a text file, there is no need to concatenate the text and write all in one go. One can:
- either use a FileStream and the WriteLine method;
- or fill a string array and use File.WriteAllLines().

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]

I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that.

AnswerRe: printer from file [modified] Pin
Andy_L_J11-Mar-10 18:11
Andy_L_J11-Mar-10 18:11 
AnswerRe: printer from file Pin
The Man from U.N.C.L.E.12-Mar-10 8:35
The Man from U.N.C.L.E.12-Mar-10 8:35 
GeneralRe: printer from file Pin
Daniel Engelkes12-Mar-10 14:54
Daniel Engelkes12-Mar-10 14:54 
GeneralRe: printer from file Pin
Luc Pattyn12-Mar-10 15:50
sitebuilderLuc Pattyn12-Mar-10 15:50 
GeneralRe: printer from file Pin
Wayne Gaylard12-Mar-10 17:00
professionalWayne Gaylard12-Mar-10 17:00 
GeneralRe: printer from file Pin
Luc Pattyn12-Mar-10 18:43
sitebuilderLuc Pattyn12-Mar-10 18:43 
QuestionCode Question Pin
derekzundl11-Mar-10 8:20
derekzundl11-Mar-10 8:20 
AnswerRe: Code Question Pin
Smithers-Jones11-Mar-10 9:33
Smithers-Jones11-Mar-10 9:33 
Questionwriting to text file [modified] ... resolved Pin
Daniel Engelkes11-Mar-10 7:39
Daniel Engelkes11-Mar-10 7:39 
AnswerRe: writing to text file Pin
David Mujica11-Mar-10 7:45
David Mujica11-Mar-10 7:45 
AnswerRe: writing to text file Pin
Dave Kreskowiak11-Mar-10 9:08
mveDave Kreskowiak11-Mar-10 9:08 
Questioncodin prblm Pin
gcina11-Mar-10 2:35
gcina11-Mar-10 2:35 
RantRe: codin prblm Pin
Smithers-Jones11-Mar-10 3:00
Smithers-Jones11-Mar-10 3:00 
AnswerRe: codin prblm Pin
JHizzle11-Mar-10 3:11
JHizzle11-Mar-10 3:11 
GeneralRe: codin prblm Pin
εїзεїзεїз11-Mar-10 4:50
εїзεїзεїз11-Mar-10 4:50 
GeneralRe: codin prblm Pin
Dave Kreskowiak11-Mar-10 5:02
mveDave Kreskowiak11-Mar-10 5:02 
GeneralRe: codin prblm Pin
εїзεїзεїз11-Mar-10 5:16
εїзεїзεїз11-Mar-10 5:16 

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.