Click here to Skip to main content
16,005,141 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionmultiline in textboxes Pin
sixecho2-Aug-07 6:56
sixecho2-Aug-07 6:56 
AnswerRe: multiline in textboxes Pin
Luc Pattyn2-Aug-07 7:08
sitebuilderLuc Pattyn2-Aug-07 7:08 
AnswerRe: multiline in textboxes Pin
dptalt2-Aug-07 7:08
dptalt2-Aug-07 7:08 
GeneralRe: multiline in textboxes Pin
Colin Angus Mackay2-Aug-07 11:56
Colin Angus Mackay2-Aug-07 11:56 
Questionnotepad Pin
md_refay2-Aug-07 6:33
md_refay2-Aug-07 6:33 
AnswerRe: notepad Pin
kubben2-Aug-07 6:39
kubben2-Aug-07 6:39 
AnswerRe: notepad Pin
Luc Pattyn2-Aug-07 7:13
sitebuilderLuc Pattyn2-Aug-07 7:13 
Questionprint preview control Pin
md_refay2-Aug-07 6:31
md_refay2-Aug-07 6:31 
i read text file to view it in printpreview control
i use stream reader to read line by line and i use e.graphices.drawstring to draw line but i must give it font & brush to draw lines so i give them static lines like arial and blue color except of taken this line font and color
this is my code
---------------------
Private Shared filePath As String = Windows.Forms.Application.StartupPath & "\MyDoc.txt"
Private myFont As Font = New Font("Arial", 10)
Private myBrush As Brush = Brushes.Black
While currentLine < linesPerPage
textLine = streamToPrint.ReadLine()
If textLine Is Nothing Then
Exit While
End If
verticalPosition = topMargin + currentLine * myFont.GetHeight(e.Graphics)
e.Graphics.DrawString(textLine, myFont, myBrush, horizontalPosition, verticalPosition)
currentLine += 1
End While

md_refay

QuestionDataGridView Scrolling Column Index Pin
penguin50002-Aug-07 5:08
penguin50002-Aug-07 5:08 
QuestionWindows Control Panel Pin
faruk_ozturk2-Aug-07 4:27
faruk_ozturk2-Aug-07 4:27 
AnswerRe: Windows Control Panel Pin
Tom Deketelaere2-Aug-07 4:30
professionalTom Deketelaere2-Aug-07 4:30 
GeneralRe: Windows Control Panel Pin
faruk_ozturk2-Aug-07 4:35
faruk_ozturk2-Aug-07 4:35 
GeneralRe: Windows Control Panel Pin
Tom Deketelaere2-Aug-07 4:41
professionalTom Deketelaere2-Aug-07 4:41 
GeneralRe: Windows Control Panel Pin
faruk_ozturk2-Aug-07 4:44
faruk_ozturk2-Aug-07 4:44 
GeneralRe: Windows Control Panel Pin
Tom Deketelaere2-Aug-07 4:59
professionalTom Deketelaere2-Aug-07 4:59 
AnswerRe: Windows Control Panel Pin
Luc Pattyn2-Aug-07 7:16
sitebuilderLuc Pattyn2-Aug-07 7:16 
QuestionView binary equivalent to data variable Pin
Cory Kimble2-Aug-07 3:46
Cory Kimble2-Aug-07 3:46 
AnswerRe: View binary equivalent to data variable Pin
Luc Pattyn2-Aug-07 7:28
sitebuilderLuc Pattyn2-Aug-07 7:28 
GeneralRe: View binary equivalent to data variable Pin
Cory Kimble2-Aug-07 9:15
Cory Kimble2-Aug-07 9:15 
Questionshortcuts Pin
Tom Deketelaere2-Aug-07 3:19
professionalTom Deketelaere2-Aug-07 3:19 
AnswerRe: shortcuts Pin
Luc Pattyn2-Aug-07 7:34
sitebuilderLuc Pattyn2-Aug-07 7:34 
GeneralRe: shortcuts Pin
Tom Deketelaere2-Aug-07 8:01
professionalTom Deketelaere2-Aug-07 8:01 
GeneralRe: shortcuts Pin
Luc Pattyn2-Aug-07 8:07
sitebuilderLuc Pattyn2-Aug-07 8:07 
GeneralRe: shortcuts Pin
Tom Deketelaere2-Aug-07 9:53
professionalTom Deketelaere2-Aug-07 9:53 
Questioncount of rows in datarow Pin
SamRST2-Aug-07 3:17
SamRST2-Aug-07 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.