Wiggster
02-01-2005, 08:01 PM
Well, not sure if anyone knows the answer, but with people like ctitanic and other wonderful coders here, I figure it's worth a shot.
I'm teaching myself C# within the .NET Compact Framework using VIsual Studio 2005 Beta, and I'm just trying out various programs that I think will help me learn enough to make decent freeware applications. The current one I'm working on is pretty simple; a Dungeons and Dragons Spell database, using a standard XML file to store the information. I want to reconstitute the information for a spell in a textbox, with simple formatting (bold, italics, font size). If this weren't Compact Framework, it'd be easy: put it in a RichTextBox.
But I have no RichTextBox. I just want a simple scrollable textbox with formatting, but that's easier said than done. So far, the only thing I've figured out is to compile that into HTML and load it in a webBrowser. The downside of that is that the browser doesn't have a border on it, so it looks as if it's floating in the form. So I simple put a button behind the webBrowser that's 1 pixel bigger on each side, so it shows the border. The problem is that this doesn't look very pretty (when the scrollbar appears, there's a double border around the top, bottom, and right of the scrollbar), and it's pretty obtuse.
http://www.wiggster.com/pocket/PocketDnDSpellsSShot.gif
Does anyone have a better way to display Rich Text in .NET CF?
I'm teaching myself C# within the .NET Compact Framework using VIsual Studio 2005 Beta, and I'm just trying out various programs that I think will help me learn enough to make decent freeware applications. The current one I'm working on is pretty simple; a Dungeons and Dragons Spell database, using a standard XML file to store the information. I want to reconstitute the information for a spell in a textbox, with simple formatting (bold, italics, font size). If this weren't Compact Framework, it'd be easy: put it in a RichTextBox.
But I have no RichTextBox. I just want a simple scrollable textbox with formatting, but that's easier said than done. So far, the only thing I've figured out is to compile that into HTML and load it in a webBrowser. The downside of that is that the browser doesn't have a border on it, so it looks as if it's floating in the form. So I simple put a button behind the webBrowser that's 1 pixel bigger on each side, so it shows the border. The problem is that this doesn't look very pretty (when the scrollbar appears, there's a double border around the top, bottom, and right of the scrollbar), and it's pretty obtuse.
http://www.wiggster.com/pocket/PocketDnDSpellsSShot.gif
Does anyone have a better way to display Rich Text in .NET CF?