Input Box

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Parveen

    Input Box

    I have a child form that calls an input box to receive
    information from a user during runtime. The code
    looks like this:
    strResult = InputBox("Enter new class code")

    I am having trouble getting this inputbox to show up on
    the screen!! It shows up in the taskbar but I can't access
    it...does anyone know how to make this box visible?

    Thanks,
    Parveen
  • Herfried K. Wagner [MVP]

    #2
    Re: Input Box

    * "=?Utf-8?B?UGFydmVlbg= =?=" <anonymous@disc ussions.microso ft.com> scripsit:[color=blue]
    > I have a child form that calls an input box to receive
    > information from a user during runtime. The code
    > looks like this:
    > strResult = InputBox("Enter new class code")
    >
    > I am having trouble getting this inputbox to show up on
    > the screen!! It shows up in the taskbar but I can't access
    > it...does anyone know how to make this box visible?[/color]

    I am not able to repro that when showing the form from a normal form or
    an MDI child form. Where exactly do you call 'InputBox'?

    --
    Herfried K. Wagner [MVP]
    <URL:http://dotnet.mvps.org/>

    Comment

    • Parveen

      #3
      Re: Input Box

      My parent form is open and then I call the child form from the
      parent form. Within the child form I have a command button
      called 'Edit' and one of the first things that I do during the click
      event of this button is

      strClassCode = Inputbox("Enter new code"

      Is there a property that I have to set? Also, before I
      click on the Edit button, a datagrid on the form has focus.

      I've even tried calling an inputbox from the parent form and I
      still can't get the box to have focus...I know that an input box
      is present because I see it in the taskbar but I am not able to
      click on it and view it..

      Parveen

      Comment

      • Herfried K. Wagner [MVP]

        #4
        Re: Input Box

        * "=?Utf-8?B?UGFydmVlbg= =?=" <anonymous@disc ussions.microso ft.com> scripsit:[color=blue]
        > My parent form is open and then I call the child form from the
        > parent form. Within the child form I have a command button
        > called 'Edit' and one of the first things that I do during the click
        > event of this button is
        >
        > strClassCode = Inputbox("Enter new code")
        >
        > Is there a property that I have to set? Also, before I
        > click on the Edit button, a datagrid on the form has focus.
        >
        > I've even tried calling an inputbox from the parent form and I
        > still can't get the box to have focus...I know that an input box
        > is present because I see it in the taskbar but I am not able to
        > click on it and view it...[/color]

        Mhm... Which version of .NET and Windows are you using?

        --
        Herfried K. Wagner [MVP]
        <URL:http://dotnet.mvps.org/>

        Comment

        • Parveen

          #5
          Re: Input Box

          I'm using Visual Studio .NET 2003 and Windows 2000.

          When I call an input box from a normal form it works fine.
          But not when it's called from a child form....

          Parveen

          Comment

          • Parveen

            #6
            RE: Input Box

            I figured it out...i had the "TopMost" property of my parent
            form set to True. If I set it to false then the input box
            shows up fine

            Thanks for your help

            Parveen

            Comment

            Working...