Results 1 to 7 of 7

Thread: inputbox problem

  1. #1

    Thread Starter
    Member
    Join Date
    Apr 2002
    Location
    Istanbul
    Posts
    49

    inputbox problem

    hi,
    I am having problem with inputbox .
    i called inputbox in button and then i push the button
    inputbox appear one second
    inputbox and program closed.

    what is problem maybe forms properties i dont now
    thanks in advance.

    fatih
    Calf

  2. #2
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,104

    Re: inputbox problem

    You'll have to post some code around the InputBox usage. I have used the InputBox once or twice in PDA's, though I feel it really sucks, but not in this way. I would guess that it has something to do with how you are handling the return value from the InputBox call, but I'd have to see some code.

    On the other hand, InputBox is such a turd in the CF because it is so inflexible in color and style, and seems to have an issue with the amount of text being shown. You might consider making your own form to do the same thing, just for that reason.
    My usual boring signature: Nothing

  3. #3

    Thread Starter
    Member
    Join Date
    Apr 2002
    Location
    Istanbul
    Posts
    49

    Re: inputbox problem

    hi,
    shaggy hiker
    i have used the inputbox like vb6, i called input box in button on my main form
    code was not give syntax error
    its worked but i push the button inputbox and main form are closed.
    i want input password in inputbox and i call other form
    and my other question how can i input like ****
    thanks all
    Calf

  4. #4
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,104

    Re: inputbox problem

    You REALLY ought to consider just making a form to do that. The functionality of the CF is somewhat less than the full .NET, so things like the ***** probably can't be done at all in the CF.

    I hate using more than one form in the CF, but if you are ok with using them, then make a form that just has a textbox and the buttons you want on it. That will look better than the InputBox (which is poorly done in my opinion), and will allow you to do things like intercept the entries into the textbox to replace them with *.
    My usual boring signature: Nothing

  5. #5
    Fanatic Member Strider's Avatar
    Join Date
    Sep 2004
    Location
    Dublin, Ireland
    Posts
    612

    Re: inputbox problem

    Intercept the entries into the textbox....
    Shaggy you must be forgetting about the Password char property of a textbox in CF....

    PasswordChar = * set this when you add your textbox to the form...

    I agree wit Shaggy here, inputbox in CF is absolutley pathetic, show you are farm better of to have a form and do a showdialog with it
    Barry


    Visual Studio .NET 2008/Visual Studio .NET 2005/Visual Studio .NET 2003
    .NET Framework 3.0 2.0 1.1/ASP.Net 3.0 2.0 1.1/Compact Framework 1.0

    SQL Server 2005/2000/SQL Server CE 2.0


    If you like, rate this post

    Compact Framework for Beginners

  6. #6
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,104

    Re: inputbox problem

    Quote Originally Posted by Strider
    Intercept the entries into the textbox....
    Shaggy you must be forgetting about the Password char property of a textbox in CF....

    PasswordChar = * set this when you add your textbox to the form...

    I agree wit Shaggy here, inputbox in CF is absolutley pathetic, show you are farm better of to have a form and do a showdialog with it

    Not so much that I forgot it as that I repressed it. I hate the InputBox.

    Actually, I thought that property was not included in the CF, so I stand corrected.
    My usual boring signature: Nothing

  7. #7
    Fanatic Member Strider's Avatar
    Join Date
    Sep 2004
    Location
    Dublin, Ireland
    Posts
    612

    Re: inputbox problem

    haha.... we'll forgive ya!!!
    Barry


    Visual Studio .NET 2008/Visual Studio .NET 2005/Visual Studio .NET 2003
    .NET Framework 3.0 2.0 1.1/ASP.Net 3.0 2.0 1.1/Compact Framework 1.0

    SQL Server 2005/2000/SQL Server CE 2.0


    If you like, rate this post

    Compact Framework for Beginners

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