AceInfinity Emeritus, Contributor Joined Feb 21, 2012 Posts 1,728 Location Canada Sep 1, 2013 #41 x BlueRobot said: Is the best method for the Preview option, to convert from BBCode to HTML and then view it in a web browser? Click to expand... Depends on what the canned speeches look like. Otherwise as I mentioned above, you can preview it directly in a RichTextBox control.
x BlueRobot said: Is the best method for the Preview option, to convert from BBCode to HTML and then view it in a web browser? Click to expand... Depends on what the canned speeches look like. Otherwise as I mentioned above, you can preview it directly in a RichTextBox control.
x BlueRobot Administrator Staff member Joined May 7, 2013 Posts 10,195 Location %systemroot% Sep 2, 2013 #42 AceInfinity said: x BlueRobot said: Is the best method for the Preview option, to convert from BBCode to HTML and then view it in a web browser? Click to expand... Depends on what the canned speeches look like. Otherwise as I mentioned above, you can preview it directly in a RichTextBox control. Click to expand... How would I achieve this?
AceInfinity said: x BlueRobot said: Is the best method for the Preview option, to convert from BBCode to HTML and then view it in a web browser? Click to expand... Depends on what the canned speeches look like. Otherwise as I mentioned above, you can preview it directly in a RichTextBox control. Click to expand... How would I achieve this?
AceInfinity Emeritus, Contributor Joined Feb 21, 2012 Posts 1,728 Location Canada Sep 2, 2013 #43 You can colorize, perhaps make a list using bullet points (removing them is going to be trickier though), bold, underline, strikeout (I think), italicize. I may have forgotten a few, but other than that, you can't make tables, and do all that kind of fancy stuff, unless you were to create your own control that can do things like that. Ex: Code: Public Sub MainMethod() Const word As String = "simple" RichTextBox1.Select(RichTextBox1.Text.IndexOf(word, StringComparison.Ordinal), word.Length) RichTextBox1.SelectionColor = Color.Red RichTextBox1.SelectionFont = New Font(RichTextBox1.Font.FontFamily, RichTextBox1.Font.Size, FontStyle.Bold) End Sub
You can colorize, perhaps make a list using bullet points (removing them is going to be trickier though), bold, underline, strikeout (I think), italicize. I may have forgotten a few, but other than that, you can't make tables, and do all that kind of fancy stuff, unless you were to create your own control that can do things like that. Ex: Code: Public Sub MainMethod() Const word As String = "simple" RichTextBox1.Select(RichTextBox1.Text.IndexOf(word, StringComparison.Ordinal), word.Length) RichTextBox1.SelectionColor = Color.Red RichTextBox1.SelectionFont = New Font(RichTextBox1.Font.FontFamily, RichTextBox1.Font.Size, FontStyle.Bold) End Sub
x BlueRobot Administrator Staff member Joined May 7, 2013 Posts 10,195 Location %systemroot% Sep 3, 2013 #44 Thanks, so I need format any selected font into the appropriate formatting?
AceInfinity Emeritus, Contributor Joined Feb 21, 2012 Posts 1,728 Location Canada Sep 3, 2013 #45 Yes, that's what you have to do. :)
x BlueRobot Administrator Staff member Joined May 7, 2013 Posts 10,195 Location %systemroot% Sep 3, 2013 #46 I'm getting a few errors, and I'm sure I've changed all the syntax to C# :huh:
AceInfinity Emeritus, Contributor Joined Feb 21, 2012 Posts 1,728 Location Canada Sep 3, 2013 #47 What are the errors, what is the code you have? I can't help you without some information.
x BlueRobot Administrator Staff member Joined May 7, 2013 Posts 10,195 Location %systemroot% Sep 5, 2013 #48 Sorry for the slow response and lack of information, I've been busy this week, hence the reason for not being online much. I'll post the code and errors tomorrow morning.
Sorry for the slow response and lack of information, I've been busy this week, hence the reason for not being online much. I'll post the code and errors tomorrow morning.