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.
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")
This may sound a daft question but how can you remove the caret from a textbox after the text has been entered without having to use the mouse to click outside the box.The reason for this is I have a textbox which when the user clicks the mouse on it a virtual keyboard allows them to enter text which is then displayed in the textbox. If the user got it wrong and wanted to reload the virtual keyboard they have to move the mouse outside the box, click and then re-enter again.
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.
I'm creating a new windows form application based on an existing AS400 application (don't ask).Now the users are used to have a fat, white, blinking caret all over the place, so the first thing they mentioned when they saw my initial release was "where did the cursor go?" "We don't know which field we're filling in"
I tried to explain that there is in fact a cursor inside the textboxes (and that it is called a caret), but they want their big, fat cursor back.After some searching on the internet, combining snippets, I managed to make the caret look like I want (in fact you can use any bitmap image as a caret as long as you invert the colours).Now this seems to work like a charm for textboxes but they want the same caret when they edit a cell of a datagridview (who could have guessed)
I have console application embedded in a Panel on my Form. The problem is that the Vertical scrollbar of this application always stays at the top, and I would prefer that I was always able to see the caret (prompt) so I can see the latest info.
How do you force a Window to display the caret?
Do solutions give the option of the caret being at the top of the window or the bottom? I would prefer that the carat is at the bottom so I can see all the info immediately prior to the caret, as in this screenshot.
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.
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.
This is what I am trying but it doesn't work. The idea is to rest the caret position at the beginning after I hit enter and the conents od Textbox1 are deleted
Private Sub TextBox1_Keydown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles TextBox1.KeyDown If e.KeyCode = Keys.Enter Then
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?
My code editing program, with text colouring and lots more, is almost finished. It uses a rich text box to edit in.On the right is a listbox, called the "suggestion box" The suggestion listbox is kinda large and eats up lots of valuable edit space How can I display my "suggestion listbox" control underneath the caret, like in Visual Basic?
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.
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]
How to show a context menu strip at caret postion (not cursor or pointer postion)Example: If the control is in a text area at 10th line 5th word then context menu strip should display there at caret postion.I am looking for kind of auto prompt that we use to get near caret when we click "Ctrl+Space" in any IDE like Eclipse, VB 2010, VS etc
I have a textbot that I delete its contents. I want to rest the caret position at the beginning of the textbot once its contents is deleted. How can I do that?
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
I have IE 8 installed on my machine; and trying to integrate the "Caret Browsing" (navigation using Keyboard) concept into application which i am planning to develop.My sample application in VB.NET as follows:Form - Form1Text box - TextBox1A Button - Button1A WebBrowser control - WebBrowser1Added following line of code
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click WebBrowser1.Navigate(TextBox1.Text.Trim())
I'm trying to make a TextBox with syntax highlighting (for (HTML/CSS) in VB.NET 2008.I figured that if I use RichTextBox.Find(), I can color specific text, but then I need to call RichTextBox.DeselectAll(). The problem is that the the cursor jumps to the beginning of the RTB.
So what I am trying to do is make it so i can set my forms opacity by the the textboxso if i type ' setop .5 ' then it will set the opacity to 50% depending on what integer I type after the setop.
to something that sure is really simple. If i have two textboxes. Textbox1 is where you type in the text and textbox2 sorts out the text. Lets say i type in a bunch of letters and numbers "random2random1random3" then sorts it out, so textbox2 only shows the numbers
I have multiple textboxes that I clear once the task is done to be ready for the next set of information to be populated into the textboxes when the user opens the next file.In the textbox_TextChanged event I check to make sure there is some text in the textbox before running the code. Since I am clearing the textbox this fires the TextChanged event and causes me an error:
I am trying to paste a word into a textbox, but nothing happens. What property of the textbox can I set to enable this? I have no problem typing into the textbox, I just can't paste into it. It remains blank when I try.
Lets say I have 10 text boxes (named, txtbox1 - txtbox10), and I have a timer and a button. Each time I click the button, it records a time. Instead of having to manually create a code to input times for each textbox separately, is there a way I could use an integer and a loop type code? [code] I know this is pretty much an easy question for an experienced coder, and I know that the code above doesn't work.
I'm working on an application with 4 combo-box's, "go" and "quit" buttons, and a Multi-Line textbox.The combo-box's are prefilled with options for the user to select and I'd like all of the output to come up in the textbox. We are making a data set opossible output responses; it's going to be somewhat of an exhaustive list.When doing the output to the text box using textbox.text = (whatever), is there a way to have more than one line of output displayed in the textbox? I was trying multiple lines of textbox.text =, but only the newest bit of textbox.text = is displayed.
Private Sub btnGO_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnGO.Click g_sport = cboSport.SelectedItem