russianvasup.blogg.se

Vb net 2010 email client
Vb net 2010 email client





vb net 2010 email client

The code for the program below will allow the user to enter their name, select the day of the week that their birthday falls on this year and then choose the month of their birthday from the list box. As the user entered the word Hello it takes what it is in the text box and adds it into the message box. The text “You entered the word” is joined with the text box txtWord. This is what happens when the button is clicked: When they enter the word in the text box called txtWord and press the button called btnRun it will display a message box that says what word they entered.Ĭode when btnRun clicked MessageBox.Show("You entered the word " & txtWord.Text) If you want to change what the form control says on it, you change the option text, as shown below:īelow is an interface where the user will enter a word. You must always name controls, this can be done in the properties next to the option name, as shown below: If you had a text box where the user enters their name a suitable name would be txtName.ĭifference between naming a control and changing the text You should add a prefix to any form control, the common ones are: When you have dragged your form controls onto your form, you need to name them. In Visual Studio on the left hand side you have the toolbox, this is where you can drag and drop your form controls.

  • Button - these are often used so when the user clicks on them something happens.
  • List Box - used to provide a list of options to choose from or display a list of information that has been calculated in the program.
  • Combo Box - used to give a set of options to the user.
  • Text Box - used to allow the user to type in some text.
  • Label - used to display text on an interface.
  • When creating an interface, there are different types of form controls. The second part to it is creating the code to make the user interface do/display something. The first part is creating the user interface, this is a simply drag and drop environment where you can add different form controls such as a text box. To input data in Visual Basic there are lots of different form controls that you can use to do this, the most common ones are text boxes and combo boxes. The most common ways you will use are by Message Box or List Box. If you want to display something on screen in Visual Basic you can do it in a number of ways.







    Vb net 2010 email client