and nor the number of spaces from a desired letter to the last.In the case above there is E(which i made capital letter).How can i code to know that from that E till the end there are 17 spaces?
I want to make a function in VB 2008 with which u can make a textbox change some letters within the textbox when u click a button. So example: Textbox1 has got in it: url...Then when I click button 1, it has to change ....
How can I allow only letters A-Z (both lowercase and capital) and numbers 0-9 to be entered into a TextBox control? Also spaces are not allowed either.Goldfish64
TextBox1.text="abcde fg" and a-->x b-->y c-->z f-->t after that must be TextBox1.text="xyzde tg" i think that i need something like this TextBox1.Text.Replace("a", "x") TextBox1.Text.Replace("b", "y")
here is my problem, I'm using a textbox to enter only letters, no number, so i'm using a loop with a decision structure to tell me that the input data is wrong and prompt to input the data again but when I enter the correct data in the input box, vb2010 display this error "Conversion from string to type 'Double' is not valid.", this problem is making me crazy.
write up the code for a program that could find all combination of the letters in a textbox and input the outcomes into a listbox, and I don't want any of them to repeat.
I have a textbox and I need to restrict entry to only the letters A-Z , a-z and the space key. I know I need to use something like If (Microsoft.VisualBasic.Asc(e.KeyChar) < 65) _ Or (Microsoft.VisualBasic.Asc(e.KeyChar) > 90) etc with an e.handled at the end
I'm on VS 2008 I have one form contains many textboxes,when I write in one textbox (UserName) the letters and numbers should distribute to the other texts where each textbox has only one letter or number from the original text to get them ready to be encrypted.
What code I can use in text change event that takes the whole text and throw it in the other textboxes so each textbox has only one value ?
is there any way to take letters out of a textbox then re-display them scrambled, such as the word Tissue then at the push of a button make the word displayed sisute or some other order?
I have a textbox which controls the interval of a Timer control. How do I filter out letters? Is it possible to restrict entry to numbers only (like if you enter a letter or a space, nothing happens)? Is there a property of the textbox that can accomplish this?
I'm doing a programming course at college, and I'm making a simple program that finds the mean of three numbers. Making the basic program was easy, but I can't work out how to validate the text boxes so that they only accept numbers. I've Googled, but I haven't been able to find anything. I have a look on the forums here but couldn't find anything either.
how do you restrict letters from being entered into a textbox?I know it invloves textbox_TextChanged but i don't know who to do so.
Edit: I figured out that Letters(25) = (a b c etc...) can be used but how to not enter the letter? Uhm.. Like, the user enters "a" and the program recognizes it using an IF statement. How will it NOT enter the letter into the textbox?
I'm keeping track of some things that are numbered and others that are lettered; while NumericUpDown is perfect for selecting numbered things, I need an analogue for selecting lettered things. The obvious choice would be a listbox that just contains all the letters of the alphabet. But I need to show only the appropriate range of letters, so if I want to use a listbox, I need to write a function that populates the listbox with the first n letters of the alphabet; if n > 26, it should continue with aa, ab, and so on. How do I do this?
I am curious on this my program I am building I want to create yahoo emails but im stuck on the last part. How do I get the captcha to display in picturebox? Could I use like a screenshot method or something? My picturebox is named picturebox
ok the problem is that when a button is click I want it to add 1 (+1) to a textbox. This process will keep on going on till I tell it not to...How would I just keep a running total of whats happening in the textbox...What I mean to say is that if I pressed the button 10 times, instead of it showing:111111111 I want it to automatically add the numbers up to show 10 instead.