Keep My Inputbox Up?
Mar 3, 2010Heres my code under the console application[code]...
How do I keep the inputbox up until the user guesses the right answer?
Heres my code under the console application[code]...
How do I keep the inputbox up until the user guesses the right answer?
I have an assignment that asks me to:
1. create a button
2. when that button is clicked, an inputBox will appear to ask the user how many words they will enter.
3. then display an inputBox for each word.
For example, when the first inputBox appears, I enter "3" (meaning that I will enter 3 words).Then there should be 3 more inputBox (each inputBox allows me to enter only 1 word)After I enter the third word, there will be no more inputBox.How can we FLAG (stop) the inputBox, or let the inputBox know when to stop showing up?
Quick question on the InputBox. I am just learning this, what is the code to "read" commands that are placed from the Inputbox? I can do this in the command line: System.Console.Writeline(), System.console.Readline()
I just would like to know how read the line from the inputbox. Also when I debug my script do I -always- need to have the command prompt in the background?
i'm making a multi-line text box, i need somone to add input in a InputBox, and it to write it to a setting (My.settings) but, i need each input to start with a new line, i've tried chr(10) + chr(13), but nothing works!
View 3 Replies[code]......If someone leaves the txt2 empty.... and they click the button how can I pull up another inputbox like for <= 0?
View 3 RepliesHow do you make an Inputbox without a title?
I know you can do it this way:
inputbox("Please answer a question", " ", "")
This way you put a space in the Title property.
But is there another way to do this without putting a space in the Title property?
Maybe there is an inputbox without a title in vb.net?
Heres my code so far:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
[code].....
VB has a function InputBox() that will prompt the user to enter a single value, then click OK. Is there a parallel functionality in ASP.NET, that will get the browser to pop up some kind of input box to return a single value? If not, how do you recommend I achieve this effect?
View 3 RepliesI'm making a key mapper in VB 2010, trying to capture keys pressed in the input box (tab, escape, backspace, space, caps, shift, ctrl, mwheelup, mwheeldown etc... non-alphanumeric keys).
View 1 Replieshow can i check if ok was clicked in a inputbox? works fine with msgbox:
Dim Confirm = MsgBox("Are you sure?", MsgBoxStyle.Question + MsgBoxStyle.YesNo, "Action Confirmation")
If Confirm = MsgBoxResult.Yes Then
'code
End If
but it returns an error with inputbox Conversion from string "" to type 'Double' is not valid.
I have a problem with inserting a multiple selection option into my Inputbox.
IDEA: First the user chooses an excel file which he wants to open and then the sheet he wants to be read.
I can manage everything else except making the sheet selection a multiple option one.
At the moment the name of the wanted Excel sheet is typed into the text field in the inputbox. But I want the textfield to be a dropdownlist which would be populated with this:
With ComboBox1
For i As Integer = 1 To XL_WB.Worksheets.Count
Dim nimet As Excel.Worksheet = XL_WB.Worksheets(i)
[Code]....
how to create an Inputbox with Textfield --> ComboBox ??
I'm playing around with the Select Case structure and have the following code:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim colour As String = InputBox("Please enter the name of a colour.", "Colours")
[code].....
How do i search data by using input box? it'sdo i use the inputbox for search data?.I have codes but not working. look my example code.
Dim conn As New SqlConnection
conn.ConnectionString = "server=Ryan-PC;Database=DRRM_Student_Database;User ID=sa;Password=*****;Trusted_Connection
[code].....
I'm just learning VB.net and am having a problem with InputBox. When I enter code such as:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim input As String
input = InputBox("Please Enter Your Name:")
I get the following error: 'InputBox' is a namespace and cannot be used as an expression.
Inputbox("test") will write test and expect an answer in an empty text box. Can the text box initially have some text in it? If yes, how?
View 1 RepliesHow to know if the input box did not put anything . I must still put zero in the inputbox so I cannot make a condition that only 1 - 10 is allowed. I need the zero value so how can I identify if that inputbox gives empty result so that I can prompt a msgbox saying you did not put anything?
View 1 Replies[code]...
It allows me to browse and/or create a file, but when I click the save button it transfers the new files directory to anothe savefiledialog box. I cant get it to close the search and place the path in the InputBox.
I'm working on a short project and am stuck on a something small near the end. I am writing a program to input income and expense of a company and then output the profit or loss. We are required to use InputBox Functions for the income and expenses which I have already done with their own buttons and now I am trying to code a calculate button to calculate if they made a profit or loss and output that to the user. I am not getting any errors and I am getting the correct format ($0.00) but no output. I am also going to attach the entire solution for anyone that needs it and it will be zipped.
Private Sub incomeButton_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles incomeButton.Click
Const prompt1 As String = "Enter a income amount. Click Cancel to end."
Const title1 As String = "Income Entry"
Dim inputIncome As String = String.Empty
[code]....
I am wanting to restrict the input on an InputBox and I am confused about how to do that. I know what to do on a text box to restrict input to numbers, the ".", and the backspace key, but I cannot figure out how to tie the input restrictions to the pop up InputBox. Do InputBox 's have an object name attached to them? Or are they just called InputBox.whatever?
View 8 RepliesI was wondering if there's a way to use more text boxes in a single inputbox?[code]...
View 2 RepliesInputBox be used instead of a Dialog, and at the same time setting the Button Text Properties to display Afrikaans words like Ja Nee?
View 2 RepliesI need to use an inputbox to move a picture.I need to it using buttons left,rigt,down and up when I press the buttons an inputbox needs to appear there i need to insert the number of units to move the picture and the the number of times that the picture will move.Private Sub Command2_Click()j = InputBox("type a number:", "type units to move", "type")Picture1.Left = Picture1.Left + x1If (Picture1.Left >= Form1.ScaleWidth - Picture1.Width Or Picture1.Left <= 100) Then x1 = -x1 End IfEnd Subthis is an example that i tried to do
View 2 Repliesi have been asked to make a form password entry but cant use a text box as it's opened from an MDI parent form so no main screen to speak of as such, my problem is at current the password works fine as shown below its basic stuff.
If InputBox("Please Enter Administration Password." _
, "Password Entry", "") = "trafficlight" Then
'Close current frmMDIChild and set the new form
[code]....
i want the input box to mask the characters been entered i know i could create my own input box and call that but is there a way to use the Default inputbox to mask the character input maybe watch the key presses saving input to a variable and displaying the asterix in its place? or am i overthinking it and there is a very easy solution like an inputbox that already masks input by a user.
im having trouble try to validate the data in the inputbox. I am trying to make sure only integers/decimals are entered, but the code is failing to reconize it in the loop, and the loop dosent promt the user to a valid number. What am i doing wrong or this a weakness of the inputbox?
'Developer- John Nelson Date- March 5, 2012 Application Name- Semester Final Averages Purpose-This application allows an instructor to enter up to 10 project scores from a course for a semester compute a students average score. The application displays the final average for the semester with the two lowest grades removed from the average. The eight scores are sorted in order and final averages are written to a file named grades.txt
[Code]...
So my program works fine adds everything up....the problem now is the recurring input box...i understand why it`s recurring as its getting called from GetInStock function then the ReadyToShip function....i only need it to show up once...after the calculate button is clicked....could someone give me some insight as to how to fix this? Im new to VB and have no idea..
[Code]...
I know that it is Microsoft.VisualBasic and this is where I need help. Should be quick question I am sure.
View 3 RepliesHow can I make the textbox in a VB Inputbox larger?
View 2 RepliesHow can i get the program to detect if cancel was clicked? Right now when i click cancel the inputbox does not close and simply comes back up saying enter a number. Do i have to do something boolean related or something?
[Code]...
I am in a class who has a prject due and I have a few questions to ask:
1) Is there a way to limit an InputBox to just accept numbers?
2) What control can I use to display 360 rows of data generated from a for loop?
I have this neat little web browser that has recently been gaining a bit of speed in download rates because of it's ability to change proxies by the click of a button. None of this is important, I'm just giving you backround info. I want to make the program a little bit.. spiffier and cooler. I thought it would be cool if the program could refer to you by name so I want an inputbox to open up if there is no fname saved to a setting and ask for your name.
[Code]...