Results 1 to 3 of 3

Thread: InputBox Not working, NameSpace ...?

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2000
    Location
    Toronto, Canada
    Posts
    7

    Exclamation InputBox Not working, NameSpace ...?

    Hi Every One,

    Just intalled VB.NEt and the all of other .NET stuff including the SDK for ASP.NET.

    After going through one of the articles in vb-worl I tried to use the input box funtion and the error I get is

    'InputBox' is a namespace, and so is not a valid expression. Expected a variable, constant, or procedure.

    What do I have to do just to get a Input Box working ?

    Shaheryar

    PS: This is not going to be as easy as I thought
    Shaheryar Jamshaid Rahim Qureshi
    [email protected]
    www.thequreshi.com

  2. #2
    New Member Relg's Avatar
    Join Date
    Apr 2001
    Location
    Sydney, Australia
    Posts
    8

    re: input box

    inputbox does work within net.

    either use

    microsoft.VisualBasic.InputBox("What color is your hair?", "Hair Colour Detector")

    or

    InputBox("What color is your hair?", "Hair Colour Detector")

    are equally valid forms of code.

    Have another go. Or maybe check your install. Did you change your profile to visual bsic developer?. Cause that would probably make a difference with the namesake.

  3. #3

    Thread Starter
    New Member
    Join Date
    Nov 2000
    Location
    Toronto, Canada
    Posts
    7

    thanks

    Hi,
    Thanks for the help. As I found out my problem was not syntax but the fact that I had named this vb .net project as InputBox and therfore it was giving me the namespace error.

    Thanks lot

    By the way have you coonected to a database using vb.net , but with out the use of all the new wizards, just by a dsn-less connection as in VB 6.0. I am gaoing to post this is a seprate thread in the posts!
    Shaheryar Jamshaid Rahim Qureshi
    [email protected]
    www.thequreshi.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width