Positioning the on-screen Keyboard

Hi all,

I would like to be able to position the on-screen keyboard that is provided through my Smart Device.

If I try to use the following...

inputPanel1.Bounds.Location = new Point(0, 159);

I get an error saying its not a variable.

Yet, when I mouseover Location, it states that I can get or set the location.

Is this not possible

Thanks

Tryst



Answer this question

Positioning the on-screen Keyboard

  • dvboom

    The Bounds property on InputPanel only exposes the "getter" method. You cannot position it where you want.

    The comment you see on mouse-over is a generic comment for the Rectangle structure. Try creating your own:

    Rectangle rc = new Rectangle();
    rc.Location = new Point(0,0);

    Mous over Location above and you will get the same tooltip.

    The read-only-ness of the Bounds property is what is important here.



  • Positioning the on-screen Keyboard