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.
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]
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?
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.
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
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.
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)
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:
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?
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:
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]
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.
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
However, I can't find any methods that will allow me to do this.
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?
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.
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.
Just a quick question my textbox1.text seems to get focus when I run the APP.how do I cancel any focus to any textbox?I just don't want to select it or anything when I work with it only when the user select or uses it.
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.
I'm trying to create a small program, which I think will be helpful to others(in here). My aim is to convert the English text shown in screen to Malayalam. English-to-Malayalam conversion is not a problem. But the problem is, how to extract the text from the screen. In most of the converter/translator, the text needs to be copied or written down in the translator tool. But my program will cut off that part. That is, simply move the program window (having a rectangle hollow portion) to the English word that needs to be converted. And upon pressing a button (or autodetect), the English word is converted to Malayalam.
So, my question is how to extract the English text(or words) from the screen (which is seen through the hollow portion of the window.
I'm trying to make an application which will log me into a site and read the text of the site and display a certain part of that text in my form. I'm stuck at the login, its a .php page with 2 text boxes, 1 check box and 1 button.Is there any way to manipulate those objects by using controls in my form?
I am writing a kiosk type application, in winforms (I know WPF would be better, this is just to be a rough and ready solution until I've learnt WPF), using VB.Net (VS2008).I have a label on my form with the font set to Segoe UI, and at 120pt size (yes it's large, it's designed to be read from a distance on a 42" screen).The problem I have is that the automatic internal padding is pushing my text 60 pixels from the top of the control to the top of the text and 40 pixels from the left of the control to the left of the text - the label1.padding property is all at 0, so this is the default spacing of the control - it seems to be particularly bad with this font (but it's the font I want to use) and if I increase the font size, this issue gets even worse.
I want my text to fit tightly into the boundaries of my control top, bottom and left (I want the right to expand depending on the length of the string in it, though). How can I achieve this (so that I can control all of the paddding myself using the label.padding property) and get rid of this automatic padding?
I am building a vb.net application with VS2010. The aim of the application is to change sln. files from VS2005/2008 versions into VS2010.I am using a Form with 2 text boxes and 2 buttons. When I click the 1st button it reveals the sln file in the text box. Then i have a 'convert' button that I want to use to 'convert' the file that appears in the first text box. I have come quite far with the source code but am just a bit puzzled as to how i can retrieve the VS2005 sln files and to get the 'convert' button to display the text in the 2nd text box.[code]
I'm making a custom control that needs to look like a Text Box but I can't Inherit Directly from text box since I need to add, Change and Override so many things that it would be more practical to just inherit Control and start new.
But now my question is: Is there an easy way to create the basic functionality of a Text Box like drawing the Text Box and handling input ?
i am trying to automatically generate multiple text boxes on a form with the following code
Private Sub CreateTB(ByVal x As Integer) Dim y As Integer = 1 Do Until y = x
i need it to generate as many text boxes as the variable x states, so i used the do until loop thing. But i am stuck when it comes to naming the text boxes because obviously all the text boxes cannot share the same name. so i would like to know how to programmatically name each textbox uniquely.