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

Visual Basic

 
GeneralRe: ListViews Pin
H@is@here11-Mar-05 12:14
H@is@here11-Mar-05 12:14 
GeneralMS Speech SDK 5.1 Problem-EMERGENCY! Pin
ZisisSim8-Mar-05 3:36
ZisisSim8-Mar-05 3:36 
GeneralGetting Context Menu to close if already open Pin
7-Mar-05 23:43
suss7-Mar-05 23:43 
GeneralRe: Getting Context Menu to close if already open Pin
Computer_Guy25-May-06 15:17
Computer_Guy25-May-06 15:17 
QuestionCalling DLL functions using relative paths? Pin
Axonn Echysttas7-Mar-05 22:18
Axonn Echysttas7-Mar-05 22:18 
AnswerRe: Calling DLL functions using relative paths? Pin
Dave Kreskowiak8-Mar-05 3:02
mveDave Kreskowiak8-Mar-05 3:02 
GeneralRe: Calling DLL functions using relative paths? Pin
Axonn Echysttas8-Mar-05 8:10
Axonn Echysttas8-Mar-05 8:10 
GeneralWord Wrapping with Draw String Pin
Chaos Machine7-Mar-05 12:52
Chaos Machine7-Mar-05 12:52 
Hello everybody. I'm trying to make the contents of a textbox, if they don't fit in a page to wrap and use the line underneath etc etc.

So far i can clip the string in the given rectangle i have indicate with the setclip command. Other than that i can't make it work. Here is a part of the code:

'Create string to draw.
Dim drawString As String = txtComment.Text
Dim drawString1 As String = imageToLoad

Dim drawFont As New Font("Arial", 0.4, FontStyle.Regular, GraphicsUnit.Millimeter)
Dim drawFont1 As New Font("Arial", 0.6, FontStyle.Regular, GraphicsUnit.Millimeter)
Dim drawBrush As New SolidBrush(Color.Black)
' print filename
Dim drawPoint As New PointF(0.0F, -27.0F)
'print comments
Dim drawPoint1 As New PointF(0.0F, 90.0F)

If chkComment.Checked = True Then
e.Graphics.SetClip(New Rectangle(0, 0, 100, 100))
e.Graphics.DrawString(drawString, drawFont1, drawBrush, drawPoint1)
End If

e.Graphics.DrawString(drawString1, drawFont, drawBrush, drawPoint)
' There are no more pages.
e.HasMorePages = False

The textbox in question is the txtComment.Text. Any help please?
Thank you
Smile | :)


Still trying to find the way
GeneralRe: Word Wrapping with Draw String Pin
Christian Graus7-Mar-05 12:55
protectorChristian Graus7-Mar-05 12:55 
GeneralRe: Word Wrapping with Draw String Pin
Chaos Machine7-Mar-05 13:55
Chaos Machine7-Mar-05 13:55 
QuestionHow to save the state of TreeView Pin
ac_vbdeveloper7-Mar-05 11:04
ac_vbdeveloper7-Mar-05 11:04 
Generalvb .net and fox Pro Pin
Anonymous7-Mar-05 10:57
Anonymous7-Mar-05 10:57 
QuestionHow can I hide a column value from view in my Datagrid Pin
Lisana7-Mar-05 8:31
Lisana7-Mar-05 8:31 
AnswerRe: How can I hide a column value from view in my Datagrid Pin
Jim Matthews7-Mar-05 10:12
Jim Matthews7-Mar-05 10:12 
GeneralRe: How can I hide a column value from view in my Datagrid Pin
Lisana7-Mar-05 10:36
Lisana7-Mar-05 10:36 
GeneralRe: How can I hide a column value from view in my Datagrid Pin
Jim Matthews8-Mar-05 7:05
Jim Matthews8-Mar-05 7:05 
GeneralRe: How can I hide a column value from view in my Datagrid Pin
Lisana8-Mar-05 10:47
Lisana8-Mar-05 10:47 
GeneralRe: How can I hide a column value from view in my Datagrid Pin
Anonymous9-Mar-05 20:44
Anonymous9-Mar-05 20:44 
AnswerRe: How can I hide a column value from view in my Datagrid Pin
westerdlyOne_void8-Mar-05 10:46
westerdlyOne_void8-Mar-05 10:46 
QuestionHow to access serial Com Port 1 for ASP.net / VB.NEt Pin
Member 11682817-Mar-05 4:55
Member 11682817-Mar-05 4:55 
AnswerRe: How to access serial Com Port 1 for ASP.net / VB.NEt Pin
Dave Kreskowiak7-Mar-05 7:07
mveDave Kreskowiak7-Mar-05 7:07 
General[ASP.NET / VB.NET] using Page Templates disables DataGrid events Pin
Mastakilla1237-Mar-05 0:57
Mastakilla1237-Mar-05 0:57 
GeneralRe: [ASP.NET / VB.NET] using Page Templates disables DataGrid events Pin
Mastakilla1237-Mar-05 4:02
Mastakilla1237-Mar-05 4:02 
QuestionHow to read a word under mouse cursor? Pin
RABEE SHAHEEN6-Mar-05 23:40
RABEE SHAHEEN6-Mar-05 23:40 
AnswerRe: How to read a word under mouse cursor? Pin
Dave Kreskowiak7-Mar-05 7:17
mveDave Kreskowiak7-Mar-05 7: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.