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 have a class that contains one function: "ShowDialog()" It creates a new openfiledialog and sets its title, but when it is run, the title of the openfiledialog is set to the current directory that is shown in the dialog. I would not like this behavior. Here is the code:
Public Class LoadSet Public Shared Function ShowDialog() As System.Windows.Forms.DialogResult Dim Dialog As New System.Windows.Forms.OpenFileDialog Dialog.DefaultExt = ".bsfci"
I am trying to change every form title bar and border to green in my project. How do you change the all the forms title bar and border to green without changing other window applications title bar and border?
hopefully someone here can help me,im working on tabbed browser,using an array of browsers,but i can't get the go button to function on anything but the first tab.Additionally,i can't get the tabs to take the url title as the tab title!
removed code in case of copying im utterly useless at programming and im struggling a lot,so if you can help remember your speaking to someone who has'nt really got a clue
I am trying to check the title of a Previous Page to see if it matches the page title "JobDetails". If it does not then some code (MyCode) runs. The following code is failing to identify the title correctly even when the previous page title = "JobDetails".
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Dim objPage As Page = Page.PreviousPage Dim sTitle As String = ""
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!
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?
I'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).
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")
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.
How 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?
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
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?
I 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
i 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