Displaying A Text Cursor

Aug 23, 2010

i am trying to bring up a text message when the cursor moves over a certain label . No problems using the cursor enter . But i can not figure out how to display a text message in a balloon without a background (transparent) . Tried using a form but get the following message when trying to set background as transparent "Control does not support transparent background colors." Also i have tried using a user control but again no success .

View 2 Replies


ADVERTISEMENT

Advanced WebBrowser - Wait Cursor Displaying

Feb 18, 2010

I'm coding an advanced web browser. The bad thing is, is that whenever you move your cursor over the window, a wait cursor is displayed. I tried to deselect the wait cursor but it doesn't work! I'm using Visual Basic 2010 Beta 2...

View 1 Replies

Insert Text To Rich Text Field At Text Cursor?

Mar 28, 2010

I have a question, how would i have a button, then when you click it, it puts the text at the text cursor in the RTF?

View 5 Replies

VbCrLf Keeps Replacing Text In A Text Box When It's Meant To Be Displaying The Next Block Of Text Below It?

Mar 14, 2011

I'm building a program in which it asks for your name and age and determines a ticket price based upon these details. I want it to show the person's name, then their age, (jump down a line) then their ticket price, and then it jumps down a line to show the next person's name, age and ticket price. Issue is, when it's meant to jump down to show the next person, it just completely deletes the last person's details.I'm using this line of code:

TxtFareShow.Text = (Name & Age & vbCrLf & Price) & vbCrLf

How do I fix this?

View 1 Replies

Reading A Specific Line From A Text File And Displaying It In Individual Text Boxes?

Feb 16, 2010

I've been writing a weight program for flooded pressure vessels and I'm having trouble retrieving the data from the text files I've been saving. I know how to write the data to the text file, but retrieving it with OpenFileDialog is not so easy for me.The user has individual text boxes that they input strings or numbers into and when they save the file, each text box input is written to one line in the text file. For example, the first text box is for the username, therefore the first line of text that is saved is the person's name, the second text box is the customer, thus the second line in the text file is the customer name, and so on.

(Actually, the first line of text in the saved file designates whether English units were used or Metric units because when the user retrieves the saved file, English units will open one form and Metric units will open a separate form, so some If...Then statement will need to occur).I need to be able to read the first line, have either my "EnglishForm"form open or my "MetricForm" form open, and then have each subsequent line of text be displayed in their corresponding text boxes. I know I need to use ReadLine or LineInput, but I don't have a clue what to do.Assuming the syntax I've displayed below would just magically work (if only life were that easy), it would look something like this

If FirstLineOfTextInFile = "English" Then
EnglishForm.Show()
ElseIf FirstLineOfTextInFile = "Metric" Then[code]....

And so on...I read a lot of articles from the MSDN library and exhausted each link that I've looked through from Google and Bing, but most only retrieve data from the file to a single text box through some loop or streamreader and don't take into account multiple forms.

View 17 Replies

Get Text From Cursor RTB

Nov 26, 2009

Basically, there's a Rich Text Box here, and it's read-only. The user can tab inside it, and move the arrow keys up and down it. If I can get my code to work (read the line where the cursor is). I am using the following code:

Code:
Dim RTBLine As Integer = Me.RichTextBox1.GetLineFromCharIndex(Me.RichTextBox1.SelectionStart)
If RTBLine < 2 Then RTBLine = 1 'used to prevent errors

[Code]......

View 7 Replies

Cursor Placement In Text Box

Jun 13, 2010

I have a program written in vb.net 2003 which has text boxes for integer input. When the boxes appear, they are filled with the default value of zero. When the program is run on a computer running Windows XP the cursor appears in front (to the left) of the zero, but when run on Windows 7, the cursor appears behind (to the right) the zero.

In xp, if the user enters 1 (one) a 10 is diplayed and the user must delete the zero. In Windows 7, if the user enters 1, there is a leading zero which disappears once they have exited the text box. Is there a way to force one presentation or the other?

View 3 Replies

Cursor Positioning In A Text Box?

Oct 7, 2010

I have a small chat app. Type a message, press enter and the message is sent. Works fine...except the cursor is moved the the second line of the text box and i can't seem to get it back to the beginning

Private Sub txtMessage_KeyDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles txtMessage.KeyDown
Dim shiftPressed As Boolean = False

[Code].....

View 2 Replies

Get Text From Mouse Cursor In Anywhere?

Jan 17, 2006

I'm going to write a program that can get text from anywhere in windows xp by using mouse pointer. in other words, when you point your mouse pointer to a text (eg. text on win xp icon) and my program can get the text of it.

2nd problem: how to display a tooltip baloon on my mouse pointer?

View 13 Replies

Moving The Cursor In Text?

Aug 20, 2010

I have a very wired problem. I have a txtbox which i attempt to act like a password box (ie. everything you type becomes ****)

I use a simple counter that just shows a * for each time the text is changed.However the "typer" wount follow, it just stays in the beginning. so the result is that the code is spelled backwards.

I use the following code. try it for yourself if you dont understand

[Code]...

View 5 Replies

VB Cursor Position In Text Box?

Jan 25, 2012

the program is that user add numbers in textbox through number buttons (its a calculatornow i have to add 2 more buttons. one <- and other -> and when press one of them the cursor moves in the text box left and right.i tried few things but none works. i have tired to insert "|" first and then try to move it but it either keep on adding or deleting the text.here is what i have tried so far . its not the whole code as i keep on adding and removing.

Dim str As String
Dim loc As Integer
If txtInput.Text.Length > 0 Then

[code]......

View 2 Replies

Add A Text In The Cursor Position In A Textbox?

Oct 6, 2010

i need to add an text at the end of the cursor position in vb .net .i tried

TextBox1.Text = TextBox1.Text.Insert(TextBox1.SelectionStart, "<br>")

it works but the cursor position sets to starting position

View 2 Replies

Place Text At Cursor Location?

Apr 8, 2009

I have 9 Text boxex and one command button and I'm looking for a code such that IF i set my cursor on a specific textbox using the mouse then I can be able to Input text in the textbox using the command button.

View 7 Replies

Reposition Cursor Into Correct Text Box?

Sep 24, 2009

I have a form with three text boxes. Once filled in and a check is made all boxes are cleared and I want to reposition the cursor in the first one.

View 1 Replies

VS 2008 THe JuMpIN CuRsOr - Make Cursor To Jump To The Next Textbox After Type The Digit

Jan 14, 2010

how can i make my cursor to jump to the next textbox after i type the digit

View 3 Replies

Keeping A Text / Rtb / Label Displaying At End Of Text

Sep 15, 2008

My application outputs log text every so often and I need the user to be able to see the latest text at all times. I've tried a label, a text box and a rich text box, but I can't figure out a way to show the bottom-most text at all times.

View 2 Replies

Replace Default Windows Cursor With A Custom Cursor (winforms)?

Feb 16, 2011

This VS010 solution is not providing my intended outcome as a custom override of a 'crosshair' or 'reticle' cursor e.Graphics.DrawPath() is the function that isn't working. This

WORKING solution demonstrates how it's supposed to work. The additonal PictureBox added to a Panel is, for reasons I don't understand, not allowing the 'new' cursor to appear.

Option Explicit On
Option Strict On
Imports System.Drawing

[Code]....

View 2 Replies

Enter Text At Textbox Cursor With A Button?

Nov 4, 2011

I'm trying to make it so that that user can enter predefined text by a button event (which will save them time typing). For example, they're writing a note in a textbox and then they click a 'Name" button which enters the name of the person into the text box at the place of the cursor, which will cut down on errors caused by typos.

So I need something like:

Button_click event()
textbox.AddAtCursor(person.name)
end sub

View 3 Replies

Forms - RichTextBox Append Text At Cursor

Aug 18, 2010

Is it possible to append text into a RichTextBox1 where the cursor is? (Ex: In-putting a string from TextBox1 to RTB1 where the user has the typing cursor at.)

View 2 Replies

Insert Text At Cursor Position In A Different Window?

Jun 19, 2010

I have a small application that displays a listbox under the cursor position when the user uses a shortcut key.

When the user double clicks a selection from the listbox I want to insert that selected text at the curser position of that opened window.

Example: user has microsoft word open. He/she uses a shortcut key that displays a listbox just under the cursor position. The listbox has a collection of text. When the user double clicks a selection that selected text is inserted at the cursor position.

I tried the following:

Private Sub ListBox1_DoubleClick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ListBox1.DoubleClick
Text.Insert(Cursor.Position, ListBox1.SelectedItem)
End Sub

View 1 Replies

Inserting Text Into A Textbox At The Cursor Position VB?

Jun 15, 2012

I am trying to work out how I can insert the string "End" into my textbox at a specific cursor point?
(where the '???' is in the code below)As you can see by the code below this will happen when the user clicks return on the keyboard within the textbox.

I have the code to get the cursor index which is being stored as integer 'intcurrentcolumn'. Private Sub Enter_Click(ByVal Sender As System.Object, ByVal k As System.Windows.Forms.KeyEventArgs)

[Code]...

View 2 Replies

Positioning The Text Cursor In A TextBox Control?

Jun 21, 2006

I have a routine that iterates thru a collection and I want to print each iteration into a TextBox without having the second iteration overprint the first and so on. How do I position the text cursor between each iteration thru the 'For Each' that I am using?

View 4 Replies

Program To Position The Cursor At The Start Of The Text?

Nov 30, 2011

Using VB 2010 Express

My program writes text to a multiline textbox. After the input is finished, the cursor is at the end of the text. I want the program to position the cursor at the start of the text so that I can see it.

MSDN suggests:-
tbPositionCursor.Select(0, 0)

I believe the cursor is now repositioned, but I cannot see the start of the text. How do I scroll back automatically, refresh or whatever so that I can see the start of the text?

View 3 Replies

Return A Variable To A Text Box Via Cursor Location?

Jun 10, 2010

I am building a GUI for a touchscreen panel using VB2008 and am trying to set up a password change screen. I have an on-screen keypad set up so the operator can use it to enter the new/old password. How do I return the value from the key pressed to where the cursor is located?

View 8 Replies

Set Upper Cursor Position In Rich Text Box?

Jun 5, 2009

Once I get to the bottom right corner of the cursor box, it scrolls to another line; I would like to know if there is a way to stop this happening ie once cursor reaches bottom right hand corner of text box, no further data entry is allowed.

View 2 Replies

VS 2008 Rich Text Box -- No Cursor Wanted?

Jun 25, 2009

I have a Rich text box in my program that works well for displaying a small screen and it never has had a cursor in it.I just added a couple of rich text boxes for some other parts of the same program, they are set up in properties EXACTLY like my original but there'sa cursor that's appearing on the 2 new boxes and I can't get rid of it.

View 7 Replies

Cursor - User Control - Able To Update Its Cursor While It Is Disabled

Apr 28, 2009

I have a user control, and want to be able to update its cursor while it is disabled. For example, say that I have a user control whose cursor is Default. The below code works ONLY when the user control is already enabled; if it is disabled the below code doesn't work and the cursor remains Default: Me.MY_USER_CONTROL.Cursor = System.Windows.Forms.Cursors.WaitCursor

View 3 Replies

Can An App Detect Cursor Giving Focus To Another App's Text Field

Jun 25, 2011

I am working on a carputer app, and it will be relatively basic with common tools. I am going to make an onscreen keyboard that fits the style of my app, but I want to make it a seperate application from the main app. All I want it to do is is have my keyboard become visible whenever I enter a text field of any application, whether it be programmed by me or a third-party app. Think about this in the way of a smart phone... Whenever you enter a textfield the system keyboard is displayed.

View 2 Replies

Display Cursor At Left Side Of Text In MaskedTextBox?

Jun 23, 2010

When Window form loads, we are displaying the date (in MM/dd/yyyy format) in the MaskedTextBox control. Currently it is displaying date in MM/dd/yyyy format and displaying cursor at the end of the text. Our requirement is to display the cursor at left position of the text in MaskedTextBox.

[Code]....

View 2 Replies

Get Back To Text Editor To Change - Can't Move Cursor?

Mar 18, 2011

I have this problem every so often in VS2010. What will happen is I'll be working along and run the program then stop debugging. When I get back to text editor to change something the cursor will be stuck. It won't let me move it with the arrow keys and I can't type anything in. I can move it with the mouse but when I do that I still can't type anything in at the new position. The only way to get this to go away is to close out VS2010 and restart it again.

View 12 Replies







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