Input Box

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
* "=?Utf-8?B?UGFydmVlbg==?= said:
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?

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'?
 
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
 
* "=?Utf-8?B?UGFydmVlbg==?= said:
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...

Mhm... Which version of .NET and Windows are you using?
 
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
 
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
 
Back
Top