I have to write a do-while loop for class asking a user to input a letter from A-Z and it must be upper case. I am using an input box and cannot get the program to do anything when I click on the button.
How do you enter in a code for an overall letter grade from a percentage given? I have a seperate box for the letter grade and a seperate one for a the percentage grade . I have it setup when an overall grade and possible grade is entered into boxes it will give me a grade percent but not a letter grade. How is that added? I am doing this for my course project but dont undersatnd the coding very well. I am just trying to pass the class.
I have most of the coding done, but i don't know how to code my hangman program so that when you enter a wrong letter, a picturebox image would appear eachtime. Also i want to put a limit on the amout of guesses you can have. If possible, i would also like a listbox with the letters that you have guessed wrong stored in it.
Here is my code so far:
Imports System.IO Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
I want to make live search form like when user enter 1 char then it ll find all data start with or contain letter.i have use the sql like query with textbox textchanged event but it is too slow any other method to make it fast?
Basically, there are letters in welsh which act as one character e.g. "ch", "ng" and "ll". As you can see by the code, i am trying to do this with "ll" right now.
Dim s As String = Label5.Text 'easy enough to see what i did there. Dim i As Integer = s.Length 'easy enough to see what i did there.
For i2 = 0 To i - 1 'declare the loop
[CODE]...
The problem is that the letter "l" gets read out, instead of the letter "ll". So theres my problem, what i need to do may seem simple to some, but i can't see how something like this would work.
I need this program to allow me to enter 12 temperatures and give me an average. I have everything working correctly ( I think) except where the average should be I get 0.0. Not sure if it matters but I'm using VB 2005.
I have a binary converter I am attempting to build and want to read and convert the InputTextBox(alphabetical characters) letter by letter however all I have so far is one letter at a time
Image here is the code I have so far:
Code: Public Class ConverterForm Private Sub OpenToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OpenToolStripMenuItem.Click
I am a vb newbie having some trouble with an assignment. A user enters a letter into a text box, and the output must make the letter uppercase and tell what position the letter is at in the sentence "The quick brown fox jumps over a lazy dog."
Here is my
Private Sub btnSubmit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSubmit.Click
[CODE]...............
This is what comes out: "A first occurs in position -1". Everything comes out except the position is always displayed as -1.
Is it possible to change to colour of letters as they are typed.I.e
Piece of text says "Hello World"
when user types "H". The "H" in the original would change if matched and then so on and then when "Hello" is matched it would change to another colour.
I'm using a timer control to highlight text letter by letter one every second. Timer1.Interval = 1000 How can I give the user access to this variable so the speed can be changed?
I'm a VB beginner.I wonder if it's possible to change the text style letter by letter?I've learned here that you can change the entire style of text like
Dim myStyle As New Font(TextBox1.Font.Name, TextBox1.Font.Size, FontStyle.Regular) TextBox1.Font = myStyle
Makes the following statement about the code below:
**"The computer evaluates the loop condition in the Do...Loop statment to determine whether the loop instructions should be processed. In this case, the inputsales <> String.Empty condition compares the contenst of the input sales variable to the String.Empty value. As you know the String.Empty value represents a zero length, or empty, string if the inputsales variable is empty, the loop condition evaluates to True and the computer process the loop instructions. *If on the other hand the inputsales variable is not empty, the loop condition evaluates to false and the computer skips over the loop instructions.
Based on the code I think it is the opposite: ...that while the inputsales value is not empty it should evaluate to true and process the loop and if it is empty it should evaluate to false and skip the loop?
I have a function that allows a user to enter numeric vallues and also a period for the decimal points but I also want to allow for users to enter the minus sign to allow users to enter negative values . How would I go about it.
Public Function SingleDecimal(ByVal sender As System.Object, ByVal eChar As Char) As Boolean Dim chkstr As String = "0123456789." If chkstr.IndexOf(eChar) > -1 OrElse eChar = vbBack Then If eChar = "." Then
how to enter a data that i enter in textbox to a datagridview... for example i enter in the textbox is round and when i click add it will go to database... im using ms access database
I am trying to enter the following on an excel spread sheet from vb.net:applic.activesheet.cells(1,1)="=server|topic!" & Item & My.computer.keyboard.sendkeys("{CNTRL} {SHIFT}{ENTER} ")The error says: "Expression does not produce a value"I tried even {ENTER} and still the same error.
I have a web browser project and the address bar doubles as a search bar (like google chrome). I need to detect if a user Ctrl/Alt + Clicks/Presses enter so it can specifically search or navigate. Any ideas?
I have to create a form that I enter the price of gas each month over a year. I enter the price in a text box and click the enter button to send the price to a list box immediatley and use an array. I have the following code but I don't think it's working with the array correctly as it will let me enter the information but doesn't stop letting me enter after the 12 prices. I am really having a hard time trying to figure out how to set up this input for an array and make it all work.
I am using a picture box. I want to be able to use the Space or Enter key to change the image in it. For that, I try to use the keydown function as follow:
Private Sub ChestWindow_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown Select Case e.KeyCode Case Keys.NumPad1[code]....
is the function which changes the image. It works well when I press '1' on my numeric part of the keyboard as a test.The issue is that when I press Space or Enter, the form containing the picturebox closes. (I've already put the keyPreview property to True)
I am constructing a program, i am new to Visual Basic, but i have past programming experience. I was wondering if anyone knew how to form a loop that could...lets say calculate the answer when two numbers are added together,and it would repeat this thousands of times, etc. And if there is a way, would it be possible to calculate the time taken to complete this loop.
I have written a function that gets the alexa ranking of a given url, now this function works perfectly but I want to loop through a ListView of urls and grab the alexa rank of each item (url) with my function.The code works great if I put a MessageBox in the loop to test that the function is returning a value but when I remove the MessageBox the loop does not work.I need it to loop through adding each result without a MessageBox stop in each loop.
vb For Each Item In ListView1.Items Dim result As Integer result = GetAlexaRank(Item.Text)
So I made a simple patform game where the player has to jump quickly while the platforms move to the bottom of the screen, as to not touch the bottom of the screen. But, I need to know how to create a loop to loop the locations of the platform. This means that after twenty or so platforms, the same platforms come up again, so that the player will have an "endless" game. I've declared all the platform's locations relative to the location of the first repeating platform:
I am trying to make an application that stores Applications and I am trying to make it so they cannot just put " " and have it accept it. Is there any way I can make sure there is at least 1 of any letter in the box without 100 if statements?
I have a problem, when I execute my code it works fine with non-repeating letters(Such as: qwertyui)But it I do repeating letters, they all go to UpperCase (aaa =AAA)I'll show you what I have/need in output in two colums.[code]
I was wondering how do you find all HDD drive letter. I got a code but it will get the dvd drive letter. I only want it to show my all my HDD and USB if there is any connected.[code]...