42 Topics

Member Avatar for
Member Avatar for Quast

[Click Here](http://www.imageupload.co.uk/images/2015/03/15/rtb.png) what i want is that when i write any thing on the richtextbox it appear on cell Text. I have found some codes on the internet but i don't know whats wrong: for (int i = 0; i < richTextBox1.Lines.Length; i++) { ListViewItem lvi = new ListViewItem(i.ToString()); lvi.SubItems.Add(richTextBox1.Lines[i]); …

Member Avatar for Quast
0
295
Member Avatar for kidkardel

hi, 1st of all thank you guys again for all of your help. ![a3ce81a2808d02214775965e56a6d32b](/attachments/large/4/a3ce81a2808d02214775965e56a6d32b.png "a3ce81a2808d02214775965e56a6d32b") i have this datagrid view and i want to write it on a richtextbox like: 14 APPLE0-13 @ 60.00 840.00 so on and so forth. how can i achieved getting all of them and can …

Member Avatar for kidkardel
0
2K
Member Avatar for Vish0203

I have a rich text box in my winform. I want to format the text so that i can write a simple C code in it. I mean the indentation should be done accordingly (like the code tag on websites). Is it possible??

Member Avatar for oussama_1
0
107
Member Avatar for narlapavan

I want rich textbox control in java in nebeans, where i can able to paste content from documents. Here content means not only plain data but also tables from ms-word documents. I tried above feature using "jeditorpane" but i am unable to retain table structure. please suggest me how to …

Member Avatar for Phaelax
0
355
Member Avatar for Deep Modi

I am using the richtextbox, and now when I am saving the File, then the File get saved but not as I want.? Example: File Name: example File extension: .txt Body: **1.)**Hey guys, Whats up? **2.)**R u Fine ??? **3.)**Reply soon Now When I save the file and open in …

Member Avatar for Deep Modi
0
1K
Member Avatar for yuvjeeth

Hi Everyone, I would like to know if there is any way to change the color of a part of text in rich textbox when the user types it automatically like the way in vb.net IDE (Classes have blue etc.). Thanks in advance, Yuvjeeth

Member Avatar for ddanbe
0
419
Member Avatar for ppstyle

Hi, I am making a richtextbox to html convertor, I have added features like bold italic underline left align right align center align etc. I found a code to convert richtextbox to html but i am not sure how to use that function. Public Shared Function FromRtf(ByVal rtf As RichTextBox) …

Member Avatar for ppstyle
0
307
Member Avatar for baiumbg

I'm having trouble with a bit of code here. What I'm trying to do is paste multiple images(generated from a helper function) into a RichTextBox. Here's my code: string tempText = "For the arithmetic progression $a_1, a_2, a_3, ... a_9$ it's known that $a_2 + a_8 = 8$. The sum …

0
139
Member Avatar for Fame95

I am doing a syntax highlighter (which is my first c# project) and I have some performance problems. Every time I have to color a word, I stop the repaint, color the word, enable repaint and invalidate the richtextbox. This is the richtextbox class: namespace test { class rtb:RichTextBox { …

Member Avatar for Fame95
0
2K
Member Avatar for joshl_1995

Hello, I was wondering if there is a way to display formatting in a richtextbox eg. If i put **test** the word "test" would be i bold (only the word "test" and the rest would stay the normal). or if i put `test` the word "test" would be i size …

Member Avatar for Dani
0
450
Member Avatar for Fame95

I have the following code : using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace PentruTestari { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { richTextBox2.Text = "int int"; richTextBox2.SelectionStart = …

Member Avatar for Fame95
0
367
Member Avatar for Fame95

I recently started to learn rich text format and i am encountering a bizarre behavior. Here is the code: private void button2_Click_1(object sender, EventArgs e) { s = richTextBox1.Rtf; s = s.Insert(s.IndexOf("colortbl ;") + 10, @"\red0\green255\blue0;\red128\green0\blue0;\red128\green128\blue0;"); LockWindowUpdate(richTextBox1.Handle); string t = @"{\cf3 test }"; s = s.Insert(s.IndexOf("int") + 3, t); //insert …

Member Avatar for lolafuertes
0
186
Member Avatar for ponkhiraj

Hi, In my program, i have created 10 richtextbox dynamically. in all richtextbox i gather text form various websites. All is going fine. now what i want is- i need to print all/selected richtextbox text to printer and also saves it to Word file as following formate: * Richtextbox1 (or …

Member Avatar for tinstaafl
0
645
Member Avatar for joshl_1995

Hello Community, I was wondering if its possible to make an editor like [Notepad++](http://notepad-plus-plus.org) (I'm talking about the text area). So it will change the colour of the words (funtions and commands) also with the margin with the numbers and the code folding. Please help with what you can even …

Member Avatar for joshl_1995
0
531
Member Avatar for Riteman

I have two RichTextBoxes in my vb.net application (rtf1 & rtf2). rtf1 is loaded with the external data. Mostly It contains para split into different sections. The paragraph is a dynamic data, hence the no. of words keep on changing. Now my question is that, I want to select a …

Member Avatar for Riteman
0
3K
Member Avatar for digitalsindh

How to Retrive/select or Get underlined/Formated Text on Click event from rich text box in vb.net... it should be just like Hyperlink but programmed with click event on it, not for Web page but for local cause. i have the coding but its only for single word, i need for …

0
102
Member Avatar for horizondesai

Hi everyone, I am new to RichTextBox control in VB6 I wanted to select the entire line/row in the RichTextBox, where currently the cursor is. How should I do it ? The code should be paste in command button 'cmdSelect' Thanks in advance :)

Member Avatar for horizondesai
0
2K
Member Avatar for ahoysailor

Hi, I'm having a problem with taking the user input from a richtextbox in Unicode and writing it to a Unicode text file. I'm able to read a different Unicode file and write it to the new file, but when it comes to writing the contents of the richtextbox to …

Member Avatar for ahoysailor
0
260
Member Avatar for Suirbachi

Hello all, I'm taking my first BASIC programming class this year, and for a final project, I'm trying to make a book-keeping log. What I want to have happen, is to open a list of books, highlight a book title, click the "check in" button and have the text change …

Member Avatar for BitBlt
0
268
Member Avatar for awaresefere

hi guys:)if i have three lines saying "line1","line2"and "line3" and if i want to modify the first line to "line1 ok", the second to "line2 ok " and replace in there original location so i will have "line1 ok",line2 ok" ,"line3" for each line after modification.what should i do to …

Member Avatar for lxXTaCoXxl
0
2K
Member Avatar for awaresefere

hi i want to write a text in any line inside a rich text box how can i do that ?am now able to append to existing one or insert to the beginning of the rich text box but i want to write to any line inside the text box.

Member Avatar for lxXTaCoXxl
0
1K
Member Avatar for NewUserVB.Net

Good Day everybody, I am wanting to make a program in VB.NET that has many files.doc in a specific folder. This program has on top a textbox(txtSearch) with a button(btnSearch) under that this has two listbox(lstOption, lstResult), that are floating a left, one richtextbox(rtbDoc) that is floating a right. I …

Member Avatar for codeorder
0
656
Member Avatar for walid86

i have a richtextbox where the user inputs his/her name.. This needs to always be 60pixels wide, regardless of text.. ie: Johnathon or Tim need to be resized to best fit the control. i've looked on the net, but only found VB solutions. Is there a way to achieve this?.. …

Member Avatar for Antenka
-1
197
Member Avatar for rexdon

i have created a code for log. it is intended to provide the user with a recent history of various events, primarily used in data-gathering applications where one might be curious how a particular transaction completed. In this case, the log need not be permanent nor saved to a file. …

Member Avatar for nick.crane
0
300
Member Avatar for walid86

hi, i have a panel with controls and richtextbox's within it. When the user clicks the save button, i take panel1 and DrawToBitmap, then add the image to a pdf created using abcPDF7. My problem is that i have recently change textbox's with richTextBox's to enable the user more functionality, …

Member Avatar for walid86
0
357
Member Avatar for moose333

Hello I am currently stuck on trying to collect some string items from a richtextbox and then count how many items there are. I then want to relocate one of the string items if there are more than three into another richtextbox. I currently have been attempting to capture the …

Member Avatar for moose333
0
241
Member Avatar for denonth

Hi all... I am developing one program but i just came to one obsticle that I really dont know how to pass it. on my form i will have some options that user needs to enter after that im puting it and drawing it in printpreview eventhandler. So user can …

Member Avatar for abelLazm
0
167
Member Avatar for honey61399

I am new in vb.net please help. [CODE]Public Class Form1 Private Sub RichTextBox1_KeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles RichTextBox1.KeyPress RichTextBox1.Text = " Not available " RichTextBox1.Select(RichTextBox1.Text.Length, 0) End Sub End Class[/CODE] I want this code to pass not available like" Not available Not available Not available " …

Member Avatar for Pgmer
0
186
Member Avatar for docfnt

I'm writing a text editor for my own use ( I'm "home learning") where I want to be able to leave comments for myself, like in code section of the VB express IDE. I have figured out how to get the Integer Location of the apostrophy, but can't get it …

Member Avatar for GeekByChoiCe
0
165
Member Avatar for mikeylala

I'm working on a project in vb.net 2010 that has 3 RichTextBoxes. Two of the RichTextBoxes can be loaded with text from text files. How do I take the multiple lines of text from each RichTextBox and combine them into the 3rd RichTextBox. For example, if 2 of the RichTextBoxes …

Member Avatar for bhagawatshinde
0
1K

The End.