473,320 Members | 1,612 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

wordwrap a text with stringtrimming does not work properly (bug?)!

Hi,

when drawing text onto a form i want to draw it where the text is trimmed by
character base.
however when using the code below the text is drawn as trimmed by word.
Only the last items that do not fit the rectangle are trimmed properly.
Lines before that one are somehow trimmed by word, not character!
Is this a bug?

Regards, Willie.

Dim Sf As New StringFormat
Sf.Trimming = StringTrimming.Character

Dim Fnt as Font = New Font("arial", 25, FontStyle.Regular,
GraphicsUnit.Pixel)

Dim Rect as new rectangle(0,0,150,200)

SomeBitmapGraphics.DrawString("AHS hgdsh kasdhkjhjksfd hsjdk hsdkh dskh
gfdsjh gsjg dsjg dsjg dskghreu skh dskj", Fnt, SomeSolidBrush, Rect, Sf)


Nov 20 '05 #1
0 871

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Pierre Jelenc | last post by:
I need to wrap text with a negative indent, that is this: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad...
9
by: arenaTR | last post by:
I'd like to put a logo in the titlebar of my webpage. The one I'm talking about is the one that's next to the URL in the address bar in both netscape and IE. Just so I'm clear, for example, on...
13
by: Richard Hollenbeck | last post by:
To prevent future apostrophe bugs and errors, isn't it just simpler to forbid an apostrophe from being entered into a text field? For example, couldn't "Alice's Restaurant" be changed to "Alices...
0
by: Mike | last post by:
Hi All, I mistakenly just posted this to the VB group. Sorry for the cross-post. I am working with a textbox in C# which pulls a set of lines (stored in the database as text_type,...
3
by: Benjamin Gavin | last post by:
Hi all, I recently stumbled upon a bug in the ASP.NET framework handling of ImageButton based postbacks. The issues derives from the fact that IE and Mozilla handle the case of a missing image...
1
by: Cesar Ronchese | last post by:
Hi! I'm using a DataGridView to show a datatable that have many columns. When it displays data, the lines are applying wordwrap in some cells, because the grid is too wider to page. I'm...
0
by: Brian Keating | last post by:
Hi there, I'm trying to draw a string in a listview. However when i set the StringTrimming to None, it trims to a word! I think this is a bug because there is StringTrimming.Word option too and...
0
by: Kevin | last post by:
I've got a textbox on a Form in my Windows Forms program. It's Multiline and Wordwrap properties are both set to True, but the text is not wrapping. Is this a bug or is there some other setting...
48
by: Nathan Sokalski | last post by:
Ever since I found out that they didn't give us a way to install both IE6 and IE7 on the same machine, I have been more frustrated and annoyed with Microsoft than I ever have been with any company...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.