Erikvandervelde
Newcomer
- Joined
- May 23, 2003
- Messages
- 11
Hi there!
I'm trying to write a kind of simple textwriter in VB.NET
In visual basic 6, this whas quite easy!
But in VB.NET i noticed that the bold property of the selectionfont is readony...
I know I can set the font like this:
Dim Myfont As New Font("Tahoma", FontStyle.Bold)
But in this case, if the font was underlined as well, the underline is gone!
So I have to check, all the applied font-styles, before i could set the font!
I wrote some code, which processed 1 character at a time.
That works, but very, very slow!
Does anyone knows some code, to help me out???
Thanks!
Greets,
Erik van der Velden.
Holland
I'm trying to write a kind of simple textwriter in VB.NET
In visual basic 6, this whas quite easy!
But in VB.NET i noticed that the bold property of the selectionfont is readony...
I know I can set the font like this:
Dim Myfont As New Font("Tahoma", FontStyle.Bold)
But in this case, if the font was underlined as well, the underline is gone!
So I have to check, all the applied font-styles, before i could set the font!
I wrote some code, which processed 1 character at a time.
That works, but very, very slow!
Does anyone knows some code, to help me out???
Thanks!
Greets,
Erik van der Velden.
Holland