Visual Basic Tutorial – 41 – Input Box

[ad_1]
Facebook –
GitHub –
Google+ –
LinkedIn –
reddit –
Support –
thenewboston –
Twitter –


Posted

in

by

Tags:

Comments

23 responses to “Visual Basic Tutorial – 41 – Input Box”

  1. Omar Abubakar Avatar

    hi, question pls. I could not find it anywhere.
    How can I access to Cancel button input? For example, if someone press Cancel something happens.
    Cancel is not an empty entry because I can say if value.Length = 0 ..but I want to know about Cancel button.

  2. ItsDanielleMarie Avatar

    I'll just accept the fact that I'm gonna fail programming smh

  3. T Cuzz Avatar

    If you are using VB 2015 like myself then you want to use the following code:
    Interaction.InputBox(prompt)

    I just ran my code and it work perfectly as it should.

  4. Roger Snider Avatar

    NEED TO UPDATE TO NEWER VERSION!! MY SCHOOL CLASS USES VB 2015!!

  5. Rahil Joshi Avatar

    This Program is not working

  6. Ronald Arjune Avatar

    He's lying to change the truth to a different truth

  7. Nick030390 Avatar

    in mine as string is not in the settings what can I use instead

  8. penut smel Avatar

    thank you so much for this

  9. Tareq Mohammed Avatar

    Really helpful, Thanx

  10. emil paolo Avatar

    it didnt get the value of user when i enter string and run it just say hello, pls help me
     Dim user As String = Nothing
          InputBox("What is your name?", "Hi!")
          Label1.Text = "Hello, " & user

  11. cruzbrewski Avatar

    Thanks this helped!

  12. Ridwaan mohamed Avatar

    Hi Lecturer i have Question
    Problem generating manifest. Could not load file or assembly 'C:Documents and SettingsAdministratorDesktopRetail-Soft TouchobjReleaseRetail-Soft Touch.exe' or one of its dependencies

    please help me i am preparing my final project

  13. Idris Hussain Avatar

    To fix the code people don't save your program as input boxes otherwise your code would state, IblHelloUser is not declared. It may be inaccessiable due to its protection level

  14. kenneth 92 Avatar

    no offence but next time slowdown

  15. Idris Hussain Avatar

    My program does not work properly.
    This is the code.
    Public Class IblHelloUser
    Private Sub IblHelloUser_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    Dim userName As String = Nothing
    userName = InputBox("What is your name?", "hello", , , )
    lblHelloUser.Text = "Hello, " & userName
    End Sub
    End Class

    It comes up with a message in the error list
    'lblHelloUser' is not declared. It may be inaccessiable due to its protection level.

    Does anyone know how to solve this.
    Thanks in advance

  16. Aysrl Eura Avatar

    'Input' is a namespace etc… to solve this..
    make sure your project name is not inputbox

  17. pule kaomo Avatar

    I want the information typed in the inputbox to display on the label.

  18. Nabeel Ahmed Avatar

    It says that InputBox is a namespace, and doesn't allow me to execute my program, why's that? Thanks

  19. Nabeel Ahmed Avatar

    How come we're getting the error 'InputBox is a namespace' but you didn't?

Leave a Reply

Your email address will not be published. Required fields are marked *