Keypad On Differents Text Box
Nov 4, 2010
I need to write some values from a keypad.If I write on the keypad's code the specific textbox where the value has to be written, there is no problem, but as I have many differents text box, I'd like to have something more general.What I'd like the keypad to do is to modify a global variable, so when I press the OK button on the keypad (to validate the number) this variable is refreshed and written on the right text box (on the text box in the form which called the keypad).As the form which contains the text box is already open (the keypad is just a pop-up form) I can't managed to refresh the text box and it remains with the same value as when I opened that form.
View 3 Replies
ADVERTISEMENT
Mar 26, 2011
I am trying to read two text files and write in differents tabs.
Code:
Dim xl As Object
xl = CreateObject("Excel.Application")
xl.Visible = False
Dim i As Integer
[CODE]...
View 1 Replies
Mar 29, 2010
Im using vb.net and I need to fetch data from two different tables and display it in form of report. These are the schemas and data of my two tables:
CREATE TABLE personal_details (staff_ID integer PRIMARY KEY, title varchar(10), fn varchar(250), ln varchar(250), mn varchar(250), dob varchar(50), hometown varchar(250), securityno varchar(50), phone varchar(15), phone2 varchar(15), phone3 varchar(15), email varchar(250), address varchar(300), confirmation varchar(50), retirement varchar(50), designation varchar(250), region
[code]....
My problem is that nothing displays on the report unless I take off either the training fields or the personal_details fields from the report.
View 1 Replies
May 11, 2010
I am having trouble getting the numeric keypad on my keyboard to work with my calculator. btn0 - btn9 are working, but the numeric keys +,_,*,/ are not working. They input the sign into the text box instead of clicking the button associated with the function on the calculator. I would like to be able to use the calculator as a 10 key adding machine of sorts. [Code]
View 5 Replies
Aug 26, 2009
I am running a VB app that I developed in Visual Studio 2008. This app runs on an XP machine with a touch screen without a keyboard plugged in. I would like to add a popup numeric keypad for the user when a data field is touched. Can anyone tell me what is needed to create the keypad?
View 2 Replies
Aug 10, 2009
I am creating a Point of Sale software for a small company I work for. I am a beginner with Visual Studio and have just stumbled my way around. I have completed the GUI and would like to start assigning code. The problem I am having is assigning numbers to a keypad on the screen. I would like each button to represent numbers like on a calulator of keypad. When these are pressed they need to input into TextBox2.
View 6 Replies
Apr 12, 2012
I have some problems with coding my visual keypad in order to input a value when the selected textbox has focus.With the code below makes the value I chose in all the textboxes.
Here the code:
'Number pad section------------------------------------------------
'Number 1
Private Sub Button5_Click(sender As System.Object, e As System.EventArgs) Handles Button5.Click
[code]....
View 4 Replies
Dec 5, 2009
What i really want is to send the keypad number not 7 but "NumPad7". i dont know how to do that from sendkeys
View 6 Replies
Feb 5, 2011
I 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 Replies
Feb 25, 2010
I am creating a Pizza Order program as part of my coursework college. why something isn't working.
Quote:
lblTotal.Text = Val(Form2.lblPizzaTotal.Text) + Val(Form3.lblDrinksTotal.Text)
The code above is what I am using to add the Value of Label 1 (Pizza Total) and Label 2 (Drinks Total), however it seems that in the final total it doesn't appear to add the value of Label 2.
View 8 Replies
Aug 11, 2011
On 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 Replies
Jan 24, 2011
make the text in a text box into a text file that auto-creates in a specific?
View 4 Replies
May 25, 2010
Im trying to make a search bar that has a Go button now heres where it gets diffcuilt How do i make this search bar take the text in the the text bar and add it into a pre defined weblink and replace a bit of text with that word in the search bar so the user types into the text bar for example they type in NAME HERE so when you click go it taxt for instance [URL] now how could i make it so when you hit the GO button that it takes the text in the textbox and and replaced REPLACE TEXT in the pre defined address and put NAME HERE into the address and then load it up with a web browser and also how would i make it open up with the web browser that the person is useing (since lods of people use diffrent web browsers)
View 3 Replies
Aug 15, 2011
make the text in a text box into a text file that auto-creates in a specific?
View 4 Replies
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
Jan 20, 2011
I'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 Replies
Nov 13, 2010
I am having trouble adding label.text, datetimepicker.text and ComboBox1.Text into listview1 box.I have set up multiple columns, one for the label, one for the date and one for the combo box text. All i have done is:
ListView1.Items.Add(DateTimePicker1.Text)ListView1.Items.Add(TextBox1.Text)ListView1.Items.Add(ComboBox1.Text)
How do i add these in the different columns so that they are all in one single row.
View 4 Replies
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
Dec 7, 2010
how to Compare text box text with listbox items text in vb.NE
View 3 Replies
Dec 22, 2011
I am making a webbrowser and it has a history listbox(so it is always changing). I would like it so that if you double click on a listbox item or click on button5, axwebbrowser1 will goto the selected item, then the history form will close. [code]
View 16 Replies
Oct 9, 2010
I just finished reading Hour 3 in Sams Teach Yourself Visual Basic 2010 and I got a little stuck. url....Is the section I'm on, on exercise 1. I have the form set up with 1 button and 2 textboxes, but I'm not sure how I could make it so when you click the button it sends the text from the first text box to the second text box.
View 1 Replies
Jan 4, 2010
I have one combobox, two buttons (Add and View) and listbox. When I click button Add text from combobox is added to text file. This is code for Add button:
[Code]...
View 7 Replies
Jan 27, 2010
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 Replies
Feb 23, 2012
I want to add a condition when textbox1.text changes , the added text to textbox1.text is showed in another textbox.
View 6 Replies
Dec 19, 2008
I've been looking through the FCL for a method that will allow me to erase a line of text from a text file and replace it with another line of text. Neither the StreamReader nor StreamWriter have a method for replacing or removing Text from a text file, as does the string object. Are there any available methods for erasing just certain lines of text from a file, and then replacing them with others?
In my code, I'd like to locate a certain line in the text file, and then at that point in the text file, use a For...Next Loop to replace each successive line of the text file with new text:
Dim user_data_file As String = "user_data.txt"
edit_input = New StreamReader(user_data_file)
Dim edit_line As String = edit_input.ReadLine
[CODE]...
However, I can't find any methods that will allow me to do this.
View 4 Replies
Dec 7, 2010
LblPPG.Text = Val(TextBoxPP.Text) / (TextBoxQTY.Text)
This is the only way I know how to obtain the info I need for this equation but if generated again with no input from the textboxes I get an error. Is there anyway to bypass this if its generated a second time with no inputs?
View 12 Replies
Apr 25, 2011
what is the code for finding the shortest,average and longest sentence form the text box
View 4 Replies
Apr 23, 2011
I have a label that reads a random line from a text file and that string becomes the text for the label.
Now the problem; the label will only work if it is clicked because the event handler is click.What I need is this to work automatically at startup. In other words, it should change the label's text to the random string of the text file on startup of the application.
Here is my code.[code..]
View 4 Replies
Aug 30, 2010
I want to make a program that sends text in the text box to a form on a website and print the page as .xps
View 2 Replies
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