When I select text with a mouse in dense text like an XML file the selection automatically extends to what it thinks is a white space (or?). How do I turn off this "word selection" and just select the characters the cursor passes over?VS2010 Beta, VB.Net
I need the option to choose margins (PageSetupDialog), preview the document PrintpreviewDialog) and to select the printer (PrintDialog) before actual printing from extended RichTextBox.
I have used extended RTB control from MSDN site Getting WYSIWYG Print... : VB.Net Public Class myRichTextBoxEx
I need to connect to a web page, extract a string between <span class="uniq_name_one"> and </span> tags and display it in my program, wait 30-120 seconds and do it again....
I have a richtextbox with a large file inside....I want to be able to search for "Fornication" within the text (KJV Bible) and have every instance of that word to pop up into another richtextbox along with the scripture it is in.
I want to end the selection in a rich text box.Example:
Sentence - "I was walking in the park and found a coin." I want to select from "walking" to "found" RichTextbox1.SelectionStart = RichTextbox1.Find("walking")
I have just made a simple application with a questionnaire. The questionnaire has all 40 questions in the same page (that was one of the specifications) which makes for quite a long form. On top of that, each question has its own group box and each group box has 4 radio buttons for the possible answers (in total 160 radio buttons).
I want the user to be able to scroll down using the up/down arrow keys. However, if he has just selected an answer, pressing the down key will only change the selected radio button (as is the expected behavior of a radio button).
How do I disable the selection of a radio button through the up/down arrows?
I'm using a richtextbox and I format the text (color) during keypress.. (like visual basic language: text in black, "dim" in blue, "comments" in green...) I use selection properies to do this, ok, work fine, but I see the selection and unselection.. Ok, is very fast, but it's annoying.. there is a way to format the text and hide the selection?
When setting the selection of a RichTextBox, the selected text is highlighted even though I set the HideSelection property to True. Once the RTB loses focus then the selected text is no longer highlighted. Programatically setting the focus to another control doesn't hide the selection, only physically clicking another control will hide it. So is there a way I can make the RTB not show the selection right from the start?
How do you code selection of text within a RichTextBox. I tried the following code and nothing happens.I would think this should select all text within the RichTextBox.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Me.RichTextBox1.SelectAll() End Sub
I would think this would select text from a start point to an end point.
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click ss = Convert.ToInt16(TextBox1.Text) se = Convert.ToInt16(TextBox1.Text) Me.RichTextBox1.Select(ss, se) End Sub
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?
I have been googled for couple of hours but couldn't find a solution
I m doing a touch screen interface, to browser a page I used a webbrowser control, and in order to get ride of the ugly scrollbar, i m trying to use mousedown and mousemove event on the webbrowser to move the page around, it worked but when i m doing it, it select and highlight the content on the web too, how can i stop that?
do I need to create a extended webbrowser control by Inherits the orginal one?
I m doing a touch screen interface, to browser a page I used a webbrowser control, and in order to get ride of the ugly scrollbar, i m trying to use mousedown and mousemove event on the webbrowser to move the page around, it worked but when i m doing it, it select and highlight the content on the web too, how can i stop that?
do I need to create a extended webbrowser control by Inherits the orginal one? if so, which event should i capture and override the handler?
i want user when clicks a button to show a selection around a richtextbox and not inside it selecting the text... what i have right now is this: richtextbox1.focus() that will indeed focus the richtextbox but the problem is, it only selects its text content.
What i want is something similar to a Yellow or Blue Square showing around the richtextbox i want to "select", so the user will properly notice the richtextbox more easelly.
i tried messing with the vb express rectangle stuff but i cant get it to draw over all objects, its actually always displaying below all objects in the forum
EDIT: ive also tried using a tiff picturebox with a drawed empty rectangle on it, but the dreadish thing when put over other objects like textboxes, it simply just displays the color of the form emitting any other objects in between, setting the background color to transparent under web colors had the same problem...
How do I apply 2 font styles to the text selected in a richtextbox? Used this method to change fontstyle: RichTextBox1.SelectionFont = New Font(RichTextBox1.SelectionFont, FontStyle.Bold)
But with this method I can only apply 1 font-style (for example bold OR italic OR underlined, etc.) right? But I want to apply for example 2 front-styles, or just add the font style ( so I can add several front-styles to the selected text, for example the text is bold, and then ALSO make it underlined (with this method I can only change the font-style, only one font-style)), how do I do this?
Just do so: RichTextBox1.SelectionFont = New Font(RichTextBox1.SelectionFont, FontStyle.Bold + FontStyle.Italic)
How do you reset a RichTextBox? I wrote some code that changes the RichTextBox1.SelectionColor = Color.White and RichTextBox1.SelectionBackColor = Color.Red. I'd like to change all the text in the RichTextBox back to Black and no back color.
i'm making a web editor and i do a lot of syntax coloring in a richtextbox, but if i want to Undo it just undo's the font and the coloring, is there a way to disable the rtb's history ? I found this code on the internet but it doesn't seem to work
If e.Control AndAlso (e.KeyCode = Keys.Z) Then While CodeRTB.CanUndo AndAlso CodeRTB.UndoActionName = "Unknown" CodeRTB.Undo()
I have a problem when I select a portion of a string from a RichTextBox. For instance, if I have the following string: (23*6)+5 and I want to select (23*6) the "+" is also selected. I have search for a means to correct this problem, but I have not been able to find a solution.
I have a VB.net program that is developing a Word Document with a table of contents based on values in a SQL database. This works just fine. The issue I am running into is that I do not have control of the Office/Word environment. Some users have add-ins installed in their instance of MS Word. An example would be a PDF writer. Another example is a tool to put the document in a Document Management system. I am finding that some of these add-ins are slow to start and others do not shut down well. What I'd like to do is instantiate my MS Word application without running any installed add-ins.
I'm working on a word processor (yes, the thread with the quit forms and the count times open is the same word processor)
It's called iRobosoft Word. The 3rd version is at sourceforge and the 4th is in RC stage.
The 4th version is quite a major upgrade, but back to the topic.For font I used:
Private Sub Rich_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Rich.TextChanged Font1.Text = Rich.SelectionFont.ToString End Sub
In my vb.net application I am using richtext boxes with readonly property set to True but still its font size can be changed using mouse wheel and default windows keyboard shortcut for fontsize change (ctrl+shift+ >/<). So how do I disable richtext box font-size change?
In my vb.net application I am using richtext boxes with readonly property set to Truebut still its font size can be changed using mouse wheel and default windows keyboard shortcut for fontsize change (ctrl+shift+ >/<
I use a .NET richtextbox and I want to have the EnableAutoDragDrop property set to True. This allows user to drag&drop text, rtf and images around etc. However, I need to process files dropped into the richtextbox myself - I do not want them to be embedded as OLE objects when they are dropped.
How can I overcome this? Is there any way to delete embedded files from richtextbox?
(I've found API DragAcceptFiles which doesn't work for some reason.)
Finishing off my control, but I now found a nasty problem. When the user holds the 'Ctrl' key and scrolls the mouse scrollwheel, the control is scaled. I do not want that, since it would make the Font size fail.
I previously made it reset the scale on Control up, but that is just not a very elegant way:
Me.ZoomFactor = 1 I do not want the text scaled at any time, not even while the user is scrolling and it resets afterwards. I got to overriding the 'ProcessCmdKey' but no idea how to catch a scroll or zoom event.
Any way of disabling the RichTextBox scaling (or zooming) so it does not even occur? I have a control that inherits from the RichTextBox.
I'm writing an vb.net application so that the user can type text to be added to a website. I'm using a richtextbox and I've added the facility to hyperlink selected text. This all works, but when the mouse cursor moves over a hyperlink it changes to a hand; how do I stop it doing that? It's confusing for the user as it looks like clicking the link will do something and it makes it awkward to correct spelling within the text of the hyperlink.
I am new to programming- basically I have a richtextbox1 with some data from the database,but when you scroll it scrolls 3 lines, whereas I want to scroll only one line at a time.
Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click Dim mySelectQuery As String
I am trying to use the Word Selection object to search for a text string and VB always crashes. I found a piece of code on the web but I cannot get it to work at all. I have many other apps written which work fine withsearching Word docs. The code is as follows: