RichTextBox Control "loses" Special Formatting After Enabling WordWrap

Jun 11, 2011

I've been developing a text editing application and my problem is that the RichTextBox control will "lose" all special formatting (like font, color etc.) when enabling WordWrap.

View 3 Replies


ADVERTISEMENT

Richtextbox Control: Bold / Italic Formatting Lost On Save?

Aug 11, 2009

i have a RTB in my application for notes. Ive put it in a panel with a toolstrip and buttons for bold, italic, underline etc.This works fine,

[Code]...

View 14 Replies

Way To Have A Richtextbox Display Highlight When It Loses Focus?

Mar 18, 2011

I have a richtextbox, when I leave it for example to go to another panel where I want to manipulate the selected text I can no longer see the selected text. Is there a way to make it still show the highlight?

View 1 Replies

Enabling And Disabling A Control?

Apr 12, 2011

I am enrolled in a class in Visual Basic 2008. I wanted to drop the class, but it is too late. Now, I am stuck with this project that the professor assigned and it's due this Thursday. Anyway, how do I do this: The credit card number TextBox control is dynamically enabled/disabled depending on the choice of payment type? And did I do the newOrderButton correctly (see code below)? This is also the clear button. And is there a way to do a reset Form? Sorry for that many questions. I am really lost right now because there is a lot to do in this project and I don't even have a clue of how I am going to finish this project.

Private Sub newOrderButton_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles newOrderButton.Click
' clears all the information that is displayed and start over

[code]......

View 6 Replies

Enabling Flash In The VB Web Browser Control?

Jun 5, 2009

Enabling Flash in the visual basic web browser control?

View 12 Replies

Asp.net Control Loses Its Property Values?

Jun 3, 2009

I'm writing a custom user control for my asp.net site, for storing datetimes. It has two properties:

Private _includeTime As Boolean
Private _value As DateTime = Nothing
Public Property IncludeTime() As Boolean

[code]....

I call my custom control in this way:

<my:DateTimeInput runat="server" includetime="true" ID="txtWhen" />

This sets the includetime property correctly.In my backend code I also do this on page_load:

txtWhen.SelectedDateTime = now

When I step through with the debugger, I see that the property gets set, BUT when the page_load of the control itself loads, the property value is reset to nothing!

The page_load of the control:

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
lbltime.Visible = IncludeTime
If SelectedDateTime().CompareTo(Nothing) > 0 Then

[code]....

View 2 Replies

C# - Formatting Richtextbox In WPF?

Jan 22, 2010

I have a Dynamic Fields comming from database. These fields populated on RichTextBox after changing the color.Means Different Fields in Different Color.

View 1 Replies

RichTextBox Formatting?

May 5, 2010

At the moment i am doing my IT PROJECt for college and i need my project not only to work but look good.

CVBox.AppendText(TextBox1.Text & vbNewLine & data & vbNewLine & ComboBox1.Text & vbNewLine &
nationality & vbNewLine & vbNewLine & TextBox5.Text & vbNewLine & "Tel. " &

[code].....

View 1 Replies

Text Property In Custom Control Loses Value?

May 25, 2011

I am making a custom button control and am having some difficulty with my Text property. Anything I type in only stays while the form designer window is open. When I close the form designer and reopen it, my Text property resets to "". Also if I run the program, it loses the value entered at design time.

I also have an Image property for my control which is working just fine.

Here's some of my code:

Imports System.Drawing
Imports System.Drawing.Imaging
Imports System.Windows.Forms

[Code]....

View 2 Replies

VS 2010 RichTextBox Formatting?

Apr 9, 2011

I've developed a MySQL chat app that I have in my program. It works perfectly, however all of the text is the same color. I use a silver-on-black scheme. I'd like to do 1 of 2 things, whichever one is.. er.. "more possible". The first option would be simple - alternate each row's back color. So that one row would be silver-on-black, the next row would be black-on-silver, and so on alternating. Each row is separated by a "vbCrLf". The second option would be to merely bold or turn to white the info text. Here's the format of the chat messages: [{time} - {user}] {message}. I would want [{time} - {user}] to be bold and white. Are either of those 2 options possible? Well, I know they're possible

View 1 Replies

Loading User Control Dynamically Loses Data

Apr 22, 2010

I have a created a user control. This user control I dynamically load on a page inside Telerik Panelbar control. I have done all necessary coding to save the viewstate and load this dynamically created usercontrol every time page loads.On this User control I have a asp panel. By default this panel is invisible. When user clicks a button on this user control panel is made visible. On page load of this user control I populate all the controls on this panel.Everything works fine if I dont load this use control dynamically but when I load this user control dynamically and if I make panel visible by default then only all fields on the panel are populated. But if I make by default invisible and on button click make panel visible none of the text boxes or comboboxes are populated. I populate comboboxes on page load of the userControl but inbetween postbacks all the comboboxes on the user control loose data.[code]...

View 1 Replies

Copying Text Along With Its Formatting From A RichTextBox

Feb 5, 2011

How to copy the text in a RichTextBox along with its formatting to a wordpad or webbrowser?

View 1 Replies

Forms :: RichTextBox Markup Formatting?

Jul 29, 2009

I am trying to bind a RichTextBox to data from an XML file where text within a paragraph may be tagged with formatting tags. As an example the text may look like this:"The size of the area is 5000 m<superscript>2</superscript>".Text may also contain other formatting tags such as <bold> or <italic>:"The quick brown fox <bold>jumps</bold> over the <italic>lazy</italic> dog".

View 5 Replies

RichTextBox Formatting - Selection Font Gets Set To Nothing

Dec 15, 2010

I have a RichTextBox. I process all the formatting and everything works fine. There is an exception. When I have selected text that have two states of formatting in it, the SelectionFont member is set to Nothing. I notice that WordPad recognizes this condition
and kindof greys out the affected format.

Let's take this example:
This text is in Bold.
The rest of the comments here and not in bold.

When I select these two lines, the SelectionFont gets set to Nothing. WordPad sets the Bold button grey, but still clickable. If I click the Bold button in this state, the entire selection is set to bold. How do I achieve this same functionality?

View 3 Replies

VS 2008 : RichTextBox Formatting In A Loop?

Jun 23, 2011

i am trying to display a line of smiley faces ☻ and change the colour of each face, i cant use a find method as there are 10 of these smilies so i thought about using a loop and selecting only the last one entered and changing its colour. here is a simplified version of my

VB.Net
For a = 0 to 9
RichTextBox1.Text += "☻" ' add the smiley

[code]....

This when i ran it changes the first nine to the first colour in the array and correctly does the colour of the last smiley? could i for instance format the character first then add it formatted?

View 2 Replies

VS 2010 Formatting Parts Of A Richtextbox?

Jun 7, 2011

I have some text displayed in a richtextbox from an xml. This is how is shows upHaste <i>(As soon as it comes under your control.)</i>At the beginning of the end step<i>The storms of the wastelands form quickly and hit hard. Few have anything to do with rain.</i>

View 1 Replies

Hscrollbar Freezes And Control Jumps To Front After Clic And Enabling/disabling?

Jan 14, 2010

I have successfully ported a VB6 application to VB.NET (VS2008, .NET 2.0). Much optimization and rewriting has been done, but there is one possible BUG i cannot overcome. I have a standard HSCROLLBAR control used for accepting a numeric input. The control needs to be disabled during complex computational routines to prevent additional user input. I am setting the enabled property to false and reenabling the control at the end of the calculation cycle. The control is enabled and disabled a few times, because some code has been placed in the onpaint event of a drawing area, and separating the calculation part from the drawing part will be a huge task.

Large changes are handled correctly. Small changes aren't. The problem is that the control freezes in a unknown state after clicking on the arrows. A second click makes the control (and its parent control box) jump up and over everything else in their container.The scrollbar remains functional only via the contextual menu. This happens both in debug and release builds. There are no overrides. Coding/Test platform XP SP3 (more than 1 machine).

There is no code whatsoever that handles neither the parent control nor the scrollbar repositioning and resizing. The only code takes the value of the scrollbar and passes to the calculation section. If I omit disabling and reenabling the control, everything works fine.i tried rebuilding the control from scratch. forcing enabling the control after it has gone haywire does not make changes, disabling the groupbox instead of the single control doesn't make any difference, debugging step by step confirms that things go wrong when drawing the controls within the private system form classes.

View 3 Replies

RichTextBox - Send Email But With HTML Formatting

Jun 24, 2010

I have an Emailer in my Application and it has a richtextbox which the user can add fancy colours, font, pics etc... but when I send the email it doesn't send it as HTML. Is there a property in the richtextbox that lets me access the HTML code so that the email is sent as HTML and not just plain text. I need to be sending the emails as it appears in the richtextbox.

I am using the following code
Dim moApp As Outlook.Application
Dim oEmail As Outlook.MailItem
moApp = CreateObject("Outlook.Application")
oEmail = moApp.CreateItem(Outlook.OlItemType.olMailItem)
[Code] .....

And I get the following email Without HTML. Please look at the Emailer to see that it is formatted. So I need to send the content of the Emailer as HTML via outlook.

View 6 Replies

Apply Colour Formatting To A Richtextbox *as User Types*?

Oct 18, 2010

I have a RichTextBox with an OnChanged event. The OnChanged event should look at each line in the RichTextBox and if the line is of prime length colour it red, otherwise colour it black. How do I do this? I think it is possible to select from index a to index b and set selection colour, but I think this will lose my cursor position.

View 2 Replies

RichTextBox - Formatting Data From Access Database Field

Oct 29, 2010

Using VB 2008, I have a form which includes a richtextbox which is bound to a database field. When i bind the datafield to the richtextbox, I get an unformatted display unlike the control in VB6. How can I bind the data from the database to the richtextbox so that it displays formatted?

View 1 Replies

Saving Richtextbox Data Inside A Database Along With The Formatting?

Jun 21, 2010

I have a rich text box in one of my applications (WPF). Now I want to store the data of the rich text box along with its formatting (e.g. bold, colored etc.) into a database (SQL Server). Currently I am storing the whole XAML of the text box in a database field. however, I am not sure whether this is the right approach.

View 2 Replies

VS 2005 Merge / Append Two RichTextBox's And Preserve Formatting

Jul 22, 2009

I have two RichTextBoxes, each of which can have any sort of formatting. I need to be able to take the rich text from box 2, complete with formatting, and add it to the end of box 1, preserving the formatting of both box 1 and the appended rich text.

I've not managed to find anything usefull on this anywhere apart from hints pointing to manually re-building the RTF codes for the result (but no actual VB / C# / C code to perform this or similar).

View 5 Replies

VS 2008 RichTextBox Clears Formatting When Changing Font?

Nov 25, 2009

I have a richtextbox with multiple colored text in it. When I change the font, the color table is removed and everything changes to the default fore color. Anyone know of a why to preserve the color table and formatting when changing the font? I know I could build the RTF manually, but I really want to avoid that if possible.

View 2 Replies

.net - WPF RichTextBox - Iterate Through The Text's Words And Change Their Content And Formatting?

Nov 1, 2010

I have a WPF RichTextBox which contain in its FlowDocument both text and images. I need to iterate through the text's words (those which builds the text which the user see on the screen) and change their content and formatting. For instance, change the word "room" to the word "home", applying to the last a red color.

I need to change words whether they are formatted or unformatted.For instance, if a word is in Italic, colored, or just regular black text, it makes no difference for me.Each word will be replaced with one which have about identical length, so I don't want that this operation will effect the general page layout. All images and other objects should remain at their positions.It is preferred that the process of this operation will not be visible to the user. Only its result should be visible (i.e, no visible selections of text).If this operation can be done either directly on the FlowDocumet or with properties/methods of the RichTextBox, the simple one is preferred (but exmaples for both will be ideal).

View 1 Replies

VS 2010 : RichTextBox Edit Line By Line, Keeping The Formatting?

Jul 7, 2011

I want to loop the lines of my RTB and add a vbTab on each line.How do i do this?

View 1 Replies

Control Rather Than Formatting Procedures?

Jun 11, 2012

Am looking for a Currency Text Box control that will accept numeric key input and display entry as Currency according to Users Regional Settings.

Additionally, when an assignment is made such as Currencycontrol.text= 123.45 + 500 , user will see value displayed as $623.45 or formatted to regional specifications.

I do need a control rather than formatting procedures since my form could have 24 or more currency fields.

View 4 Replies

Use Wordwrap On Label In .net 2003?

Apr 27, 2011

how can i use wordwrap on label in vb.net 2003?

View 6 Replies

Way To Disable Wordwrap On A Label?

May 11, 2011

Is there a way to disable the wordwrap on a label?

View 9 Replies

Text Box Control, Formatting String?

Jan 12, 2012

I want to know in a program idea I am working on to use at my job I have several text boxes that are used to store decimal values to represent measurements (weights & lengths) and I was wondering is there a way that when program first run the text field is populated with a default value (eg. 0.00) or if the user deletes all text in the control and hits enter or tabs to another control it sets value to same default value

View 2 Replies

Is There A Multi-line And Wordwrap For A Label

May 18, 2009

Is there a multiline and wordwrap for a label? If there is I would like to know how.

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved