VS 2010 Change Caret In Richtextbox?

Aug 21, 2010

there is any way to change the caret? (no the Cursor icon but the vertical little bar at the typing position)

the caret is really very tiny and I like to have option to change it to an yellow block, an red blinking underline or so.

View 3 Replies


ADVERTISEMENT

Getting The Caret Position In A RichTextBox?

Apr 10, 2012

In a .NET 3.5 application, i want to get caret position in a RichTextBox control. The RTB is not XAML. Also, the RTB doesn't have CaretPosition property as described here: [URL] What is the simplest way using which i can get the caret position?

EDIT:To be more specific i want to find out what is the position of the caret from the start of the line on which it is positioned. I can get the line number by using GetLineFromCharIndex(rtb.SelectionStart) but not the offset from the start of the line.

View 1 Replies

How To Hide Caret In A RichTextBox

Feb 24, 2009

I've searched the web for an answer, but i was not able to find a way to hide the caret of a RichTextBox in VB.NET.I've tried to set the RichTextBox.Enabled property to False and then change the background color and foreground color to non-grey ones but that did not do the trick.

View 6 Replies

Changing The Actual Shape Of The RichTextBox Caret?

Jun 21, 2006

How would I go about changing the actual shape of the RichTextBox caret?

I have tried using the CreateCaret and ShowCaret API calls, but they only seem to work with normal text boxes. Is there any way to modify them so they work with RichTextBoxes?

View 6 Replies

Insert A Table In A Richtextbox Where The Caret Is Positioned?

May 3, 2010

I need to insert a table in a richtextbox where the caret is positioned.

how can i do this without using the clipboard?

View 1 Replies

How To Set Caret Position In A System.Windows.Forms RichTextBox

Oct 7, 2011

How do I set the caret position in a System.Windows.Forms RichTextBox? ScrollToCaret in not Working. Here are my Registry settings. When I save to the registry, It saves. When I try to get were I left off from the previous read, It leaves me at the beginning of the file and not where I left off. [Code]

View 2 Replies

Cannot Seem To Find A Caret Position Changed Event On The Normal Richtextbox Control?

Oct 19, 2009

even Word Pad, when you scroll your Caret (the I-beam for browsing through text) through the text, in the font combobox, the font of the text you are browsing through will be displayed, and when you scroll your caret through a different font, the font will be changed. If you're confused, look at attatched picture.

I cannot seem to find a caret position changed event on the normal richtextbox control - and if anyone can show me a custom component with this it would help me a huge amount.So my basic question is how can i replicate the formentioned function in my own VB.NET program.No code is necessary just constructive suggestions, or links to other projects would be welcome. You don't need to quote the forum rules

View 1 Replies

Winforms - Change Caret Colour Or Hide?

Sep 13, 2011

I am making a program in VB.NET and need to hide the Caret in textboxes.

I could live with it being either completely hidden or just the same colour as the textboxes background colour. How can I go about doing this? I would prefer to stay away from Custom Controls if at all possible.

View 1 Replies

VS 2010 No Caret In Textbox?

Mar 1, 2012

I have a login form with a background image. The image is OK during coding but not perfect when run. Now, I tried to superimpose two textboxes on it, one for username and one for password. However, unlike a normal form there is no caret in any textbox even when clicked. Though text can be entered in the textboxes, the characters are also say blurred.

View 6 Replies

VS 2010 Caret Disappears In Textbox?

May 3, 2012

I am using a virtual keyboard I have created to write text to a textbox. Before I start typing the caret is showing the current typing position and will continue to do so if I use the physical keyboard. The problem I have is as soon as I enter a character using the virtual on-screen keyboard the caret disappears and will not come back until I use the mouse to click inside the textbox. The following is the code I use for entering an 'h'

Private Sub H_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles H.Click
If My.Computer.FileSystem.FileExists(Application.StartupPath & "Click.WAV") Then
My.Computer.Audio.Play(Application.StartupPath & "Click.WAV")

[Code].....

View 3 Replies

Getting Caret Position Inside Any Application In VB 2010

Sep 4, 2011

I'm making a Singlish-English Word Prosessor.When user typing in a active window's TextBox those letters were automatically converted to the Sinhala language.I did that hard part with sendKeys() Function.But Now I want to set my application windows's location at Active Window's Blinking cursor(Caret) position.So It will easy to user with English-Sinhala Translation thing.

View 1 Replies

Change A Line In A Richtextbox?

Dec 28, 2008

How do i change a line in a richtextbox?[code]...

View 4 Replies

Change A Text In Richtextbox But Keep Image In It?

Jun 9, 2010

I have a richtextbox with images and text. I want to change specified text but i want to keep my image. How can i do that.

I use :

Dim aLines() As String = rtbDisplay.Lines
aLines(i) = aLines(i).Replace(str, "")
rtbDisplay.Lines = aLines

but do not work.

View 2 Replies

Change Backcolor Or Disable Richtextbox?

Oct 28, 2009

i have richtextbox which set enable to false. I want to change the backcolor to any color beside its default grey color. Is it possible?

View 4 Replies

Change Color Of The Text In RichTextBox

Apr 10, 2009

Trying to change the color of more than one of the same text within a RichTextBox. [Code] The above code searches for, and changes the color of all "Boat"s found in the RichTextBox. There are a few problems, such as: If you were to go back to edit the RichTextBox and place your cursor in front of the, now blue word, "Boat" and type then all of your text would be blue. Also, the text you wish to change the color of in the RichTextBox MUST be Exactly the same as: "Search1", aka "Boat", capital letters and all.

View 2 Replies

Change Color Section Of Richtextbox?

Dec 18, 2011

I would like to be able to change colors of certain items in a richtextbox when they are typed for example the word "the" in this small example.The words would change to the color for the word.

View 3 Replies

Change Current Line In Richtextbox?

Jun 15, 2009

is there a way to change the cursor position to the beginning of the another line in a richtextboxfor example, if i'm on the second line, i want code that will transport my cursor position to the beginning of the fourth line, etcfrustrated visual basic user

View 11 Replies

Change Font Color In RichTextBox?

Mar 30, 2012

how change font color for some word in Richtextbox example : when write "The lost" in Rich font color change to blue ...and other word don't change ...other example : same "DIM","AS" and "integer" in VB.NET ,,how i can do it?how to save the word from richtextbox to text file ?

Note : I'm using VB.NET 2008

View 11 Replies

Change Richtextbox Text Colors?

Mar 21, 2011

I have another application that i'm currently building...

It basically is a "check list" for installed program's, and files. I image machines on a daily basis, and me making this application will save me hours, and hours of time.

[code]...

View 1 Replies

Change Shape Of A Cursor In A Richtextbox?

May 3, 2010

How do you change the shape of a cursor in a richtextbox?

View 5 Replies

Change Size Of Each Word Within RichTextBox?

Feb 8, 2010

I am trying to change the size of each word. [code]...

View 2 Replies

Change Text From Textbox / Richtextbox?

Jun 21, 2010

I want to ask how to change text from richtextbox/textbox ?[code]...

View 2 Replies

Change Text-style In Richtextbox?

Apr 28, 2010

"This is a test . This is the second test . This is the third test . This is the final test"I know how to do this using SelectionStart etc. However this limits what I want to domagine that the 4 sentences are stored in an array, where array(0) should be always bold,array(1) italic, array(2) underline and array(3) normal.

View 4 Replies

Change The Backcolour Of A Text In A Richtextbox

Jul 29, 2010

the richtextbox is cute editor

i want to change the background colour of a specific text in the editor not the entire background colour

i want to do that with code in vb.net i ask the support and they dont know...

View 4 Replies

Change The RichTextBox Text In A Shared Sub?

Dec 31, 2009

I try to create a simple IrcClient.If i get a Message over the Irc, the Sub OnChannelMessage gets Enabled and should give out, what someone wrotes.The Sub:

Public Shared Sub OnChannelMessage(ByVal sender As Object, ByVal e As IrcEventArgs)
'Form1.RichTextBox1.Text() = "[" + e.Data.Nick.ToString + "]: " + e.Data.Message
Form1.SendText.Text = "Test"[code]....

View 14 Replies

Change The Style Of The Richtextbox Font?

Sep 17, 2010

this code does the change, but I noticed a little unwanted effect.if you have some text mark up for esample 24pt, selected. and run this code. you will lose the mark up.

Private Sub Styles_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnBold.Click, BtnItalic.Click, BtnUnderline.Click, BtnStrikeOut.Click

Static styleValue As Integer = 0 Const bold As Integer = 1, Italic As Integer = 2, UnderLine As Integer = 4, StrikeOut As Integer = 8 'Since more than 1 button is attached to this event, the if statement will sort out what button was pressed to fire this event If TypeOf (sender) Is Button Then

[Code]...

View 4 Replies

Font Dialog To Change In RichTextBox?

Oct 25, 2009

I am using visual studio 2010 and I put a font dialog to change in a rich textbox. I tried this code:
richtextbox1.Font.Name = Fontdialog1.font
and it didnt work I dont know why.

View 3 Replies

How To Change Color Of Keywords In RichTextbox

Jun 11, 2011

If someone types in something like "red", I'd like the word's font color to become red. I tried something like this:
Dim red As String = "red"
Dim fnt As Font = New Font("Microsoft Sans Serif", 8.25)
If RichTextBox1.Find(red) > 0 Then
For Each _str In RichTextBox1.Text
Dim my1stPosition As Integer = RichTextBox1.Find(red)
RichTextBox1.SelectionStart = my1stPosition
But I dislike the highlighting-type approach.

View 3 Replies

RichTextbox Change Color Of Word

Dec 6, 2011

I'm trying to find a few words and i want them to be for example in red.this is for a Html Editor. so i need it to list all words. for example i would need it to highlight "div", and "table", and lots of other words. all of them need to be red. or if it could highlight all words that are in "< >" would be amazing. iv been searching google and the internet for like 4 days. there is code out there but it will only highlight one word.

View 4 Replies

Automatically Change Richtextbox Font Size?

Jun 14, 2010

How can I make a richtextbox automatically change the font size when the text exceeds the length of the textbox. So basically the text is always visible without moving left or right.

View 2 Replies







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