Click here to Skip to main content
15,894,106 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: VB6 Extend maximum height of PictureBox Pin
Bob Hiller3-Apr-10 5:31
Bob Hiller3-Apr-10 5:31 
GeneralRe: VB6 Extend maximum height of PictureBox Pin
Dave Kreskowiak3-Apr-10 5:52
mveDave Kreskowiak3-Apr-10 5:52 
Generalwinmm Pin
FlavioAR2-Apr-10 12:26
FlavioAR2-Apr-10 12:26 
GeneralRe: winmm - cross post Pin
Mycroft Holmes2-Apr-10 23:30
professionalMycroft Holmes2-Apr-10 23:30 
GeneralRe: winmm - cross post Pin
FlavioAR4-Apr-10 4:09
FlavioAR4-Apr-10 4:09 
GeneralRe: winmm - cross post Pin
riced4-Apr-10 4:50
riced4-Apr-10 4:50 
QuestionFormatting Text with VB [modified] Pin
lodogg1-Apr-10 17:26
lodogg1-Apr-10 17:26 
AnswerRe: Formatting Text with VB Pin
Luc Pattyn1-Apr-10 17:49
sitebuilderLuc Pattyn1-Apr-10 17:49 
Hi,

1.
your code would be easier to read when presented inside PRE tags (instead of CODE tags); you could still edit your existing post.

2.
this looks like VB, not VB.NET; are you sure you want to use an ancient and obsolete language? converting it to VB.NET wouldn't take much effort and make implementing the new functionality a lot easier.

3.
you should decide for yourself how fancy a result you want.
Here are some possibilities:
- put all the body text in PRE tags, that would automatically result in a non-proportional font and somewhat more of a tabular look;
- or create a real table, using TABLE, TR and TD tags

4.
your ReadFile function is reading a text file line by line and concatenating all; your HTML formatting would probably need the individual lines, so you would have to break it up again, unless you:
- either merge the reading and the formatting code in one function;
- or have ReadFile return a list of text lines.

5.
In order to generate a perfect table, your code would have to split each text line into its fields, as indicated by your header line. That would require locating some comma's and spaces (outside quoted strings only). Not hard at all.

6.
the easiest first step would be changing
txtTemp = txtTemp & txtBody & vbCrLf

to
txtTemp = txtTemp & "<PRE>" & txtBody & "</PRE>" & vbCrLf

which adds the PRE tags.

Smile | :)

GeneralRe: Formatting Text with VB Pin
lodogg1-Apr-10 18:15
lodogg1-Apr-10 18:15 
GeneralRe: Formatting Text with VB Pin
Luc Pattyn1-Apr-10 18:42
sitebuilderLuc Pattyn1-Apr-10 18:42 
GeneralRe: Formatting Text with VB Pin
lodogg2-Apr-10 8:35
lodogg2-Apr-10 8:35 
GeneralRe: Formatting Text with VB Pin
Luc Pattyn2-Apr-10 15:31
sitebuilderLuc Pattyn2-Apr-10 15:31 
GeneralRe: Formatting Text with VB Pin
Dalek Dave2-Apr-10 15:39
professionalDalek Dave2-Apr-10 15:39 
GeneralRe: Formatting Text with VB Pin
Luc Pattyn2-Apr-10 15:50
sitebuilderLuc Pattyn2-Apr-10 15:50 
GeneralRe: Formatting Text with VB Pin
Dalek Dave2-Apr-10 15:58
professionalDalek Dave2-Apr-10 15:58 
GeneralRe: Formatting Text with VB Pin
Luc Pattyn2-Apr-10 16:20
sitebuilderLuc Pattyn2-Apr-10 16:20 
GeneralRe: Formatting Text with VB Pin
lodogg2-Apr-10 18:06
lodogg2-Apr-10 18:06 
GeneralRe: Formatting Text with VB Pin
lodogg2-Apr-10 18:04
lodogg2-Apr-10 18:04 
GeneralRe: Formatting Text with VB Pin
Luc Pattyn2-Apr-10 18:23
sitebuilderLuc Pattyn2-Apr-10 18:23 
QuestionPipes and Files - making it work Pin
LurkingGryphon1-Apr-10 11:09
LurkingGryphon1-Apr-10 11:09 
AnswerRe: Pipes and Files - making it work Pin
Mycroft Holmes2-Apr-10 23:41
professionalMycroft Holmes2-Apr-10 23:41 
GeneralRe: Pipes and Files - making it work Pin
LurkingGryphon6-Apr-10 3:41
LurkingGryphon6-Apr-10 3:41 
GeneralRe: Pipes and Files - making it work Pin
Mycroft Holmes6-Apr-10 11:52
professionalMycroft Holmes6-Apr-10 11:52 
AnswerRe: Pipes and Files - making it work Pin
Gideon Engelberth3-Apr-10 6:09
Gideon Engelberth3-Apr-10 6:09 
GeneralRe: Pipes and Files - making it work Pin
LurkingGryphon6-Apr-10 3:45
LurkingGryphon6-Apr-10 3:45 

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.