Insert Text At The End Of The User's Text?
Aug 28, 2010For where it says integer, I just wanted to know what the 'integer' exactly is. If I want to insert text at the end of the user's text, what should I put?
View 8 RepliesFor where it says integer, I just wanted to know what the 'integer' exactly is. If I want to insert text at the end of the user's text, what should I put?
View 8 RepliesI have an SQL database, and 50 text files, and Visual Basic 2010 Premimum,I need to find a specific line of text in the text files and then take the next 37 lines of text and save them in my database. I need advice as to point me in the right direction
View 2 RepliesI 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 RepliesOn the main form of my application, I have a Rich Text Box which is where the user will be entering information. The text is black. then, i have a button which calls the dialogue "Notes" A dialogue appears, with a rich text box. the user should then be able to enter text into the box, click "OK", and the text entered into the Notes dialogue be inserted to the rich text box on the main form -- with the font colour "Red". The rest of the text in the main rich text box on the main form should remain black.
View 2 RepliesI'm Making a Simple syntax highlighter and I'm Doing the highlighting in the text Changed event of a RTB and for obvious reasons I can't re highlight the whole document each time someone presses a key so i highlight one line each time the text changes. But this creates a Problem. If someone pastes code into the RichTextBox It only highlights the last Line. So is there a way to get if the user typed the text in with his keyboard or pasted it from the clipboard in the text Changed event?
View 6 RepliesNOTE: I tried using concat() method, join method and even tried to insert just text(which turned out editable) but none of them worked as I wanted. I was thinking if substring method will work but I only have basic idea of how substring works. I want the letter "N" to be inserted into the text box when form loads and when the user enters 4digits(OrderNo2.text) which should be joined so that it can be saved together when I clicked on save button.
[Code]...
A piece of code that will allow the user of my application, to enter the text "unemployed" into a text box and also allow them to enter numbers for how many years the person had been employed for.
View 2 Repliesi'm trying to insert the text inside a set of text boxes, into a table, the table has these columns
TicketID ("Autonumber")| StaffName | PCNumber | ZoneNumber | Description | TechnicianAssigned | JobComplete ("Yes/No")
Whats wrong with my SQL statement?
conn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=F:\Uni (Year 3)\EJ315020S - Windows Application Devlopment\Assignment Database\Details.mdb"
strSQL = "INSERT INTO SupportTickets VALUES " & txtStaffName & "," & txtPCN & "," & txtZoneNumber & "," & rtbDescription & "," &
[code]....
I'm trying to find a way to have text that would be "Live" as in if a user types an incorrect phrase/letter in a text box, a message will appear prior to a "save" button being pressed. It's pretty much the same as when you're registering on these forums, it checks the availabilty of the username as you type it.
[Code]...
A] Is there any way of stopping a user from entering text or changing text in a textbox without disabling it or
B] Is there a way of changing the texboxes back and fore color whilst it is disabled?
how to take text read from a listbox and insert it into a richtextbox.
I thought this would work:
Dim insertText As String = ListBox1.SelectedItem.ToString
myPos = RichTextBox1.SelectionStart
RichTextBox1.Text.Insert(myPos, insertText)
i need vb.net code for insert text into text box by voice ,for examele when i speek "computer" it write in to textbox computer
View 1 RepliesHow can I make my text box go to the enterd web address, through the user's default web browser?(And not by creating an actual web browser in the application..)
View 5 RepliesHere's the code:
<
Dim strTab
As
[code].....
I have a User Control that is a ProgressBar with Dock set to Fill. The code is as below. Unfortunately it simply doesn't show the text in the progress bar and why is beyond me skill.
[Code]....
The If Not... conditional code in the set method is there to prevent the SetProgressText procedure running every time the property is set. The Value property of a ProgresBar is an Integer and if the code that is setting it runs through thousands of loops (>600,000 in my case) then there's no point updating the text every time since it can only actually change 100 times for a 0-100 ProgressBar. The 600k looping takes about 2 seconds usually, without that conditional code it takes at least 2 minutes!
I am currently working on a piece of code that allows the user to change the colour of some text in a text box. I have done the size and fonts fine but colour i am struggling on. I am using radio boxes to select the option. The code I used so far that works is this but how do I add the colour into it?
Private Sub radioArial_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles radioArial.CheckedChanged
If radioArial.Checked = True Then[code]....
I have a rich text box which I use in order the user is able to add pictures, coloured writing, different font etc... however I need to load specific text in the rich text box when the user load the Form.how I can add (I guess) the HTML to load this every time the user load the form.
P.S the text will change depending on who loads the form so I can not do a simple
RichTextBox1.LoadFile("C:Documents and SettingsDesktopSigniture.rtf")
I was developing my own project in the university so what i am stack is to have save button which firstly validates what the user enters the form. for instance if the user skips the text fields, i wanted to restrict the user to fill all the form and when he completes, the save must be accomplished.
Here's the code i was trying to put but i was having problem saying the windows.forms.etc is unable to convert the save as Boolean and something like that.
Dim success As Boolean
Private Sub Save_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Save.Click
[CODE]...
[code]I must read the line which not contain (T value). I must take the value in [] and serch whether the same value exist in the line that contain (T value) if exist i must remove the line which not contain (TValue) and insert in another file called "Top". If value doesnot exist than i must delete the line.
View 2 Replieswith vb and iam just trying to learn this one by reading tutorials online. After months o trying, i have created one db which i would like to use at our office. Its a counter Ticketing system. Its fun actually i must say, but its also giving me the headache with the trial and error am doing. Attached is the print screen of my project.I was able to make it work. Yes, it prints the number it needs to print. The problem is, i just dont know how to insert or where to insert the following text.Counter 17 (or whichever counter they have to go)Your number is
View 12 RepliesHow do I get back to where I can insert text? I can only typeover, even in a new VB project.
View 2 RepliesI have a spreadsheet saved as an .xml file. I see that as worksheets are added, the new xml text is simply inserted just before the final line of the file, which is "</workbook>". I have no problem creating the xml text for each added worksheet, but I don't know what I'm sure is a really simple way to insert the new text where it needs to go - or append the new text (including </workbook> at the end) at the correct location.
View 9 RepliesI have a text box that I need to be filled from another form (a search window). I would like to call a function and pass the text box to that function. What is the best way to do this? I think I can just pass the text box as an object. Or I could use an API. I may even be able to pass some kind of handle to the text box. Let me know what would be easiest (I would prefer to avoid API).
View 7 RepliesIm trying to put text into a RTB using buttons. These then auto fill in notes etc in the RTB to say a user did X at X time and date. This was working fine when i did it for a plain text RTB. But when using RTB i have had to change my origional code from:
Private Sub Button20_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button20.Click
NotesBox.Rtf = Me.NotesBox.Text & vbNewLine & Date.Now.Day & "." & Date.Now.Month & "." &
[code].....
How can I insert a text in RichTextBox at current cursor position. The AppendText method adds to the end of the existing text. Any similar method that inserts text at the current cursor position?
Similarly, can it be done for our simple TextBox?
I just wondered if it's possible to run a exe and at a trigged event place text and send it in another exe?
View 1 RepliesI am trying to make a program that inserts text into another application. I want the user to be allowed to choose which application they want to put the text into Word, Notepad, WordPad, Firefox, IE, Anything. How do I do this? The user is obviously going to have to input something about the application but what do I need?
View 2 RepliesI am trying to make a program that the user fills out a field then it inserts it between this
<marquee>IN HERE</marquee>
I am usin Visual Basic Ultimate 2010 I need a text box that they fill out then they click another button then it inserts the text that that person filled in the texbox between the >INHERE<
sql="SELECT PartNo, Model, Manufacturer, Description, NumberinStock FROM Stock WHERE Description LIKE '%" + "my String Here" + "%' ORDER BY Manufacturer ASC"
View 8 Repliesi have the following code
Private Sub btn_AddRecord_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn_AddRecord.Click
database_connection.Open()
[Code].....