[Problem] SIP and AutoScroll Panel RRS feed

  • Question

  • Hello,


    I have created a little application for my Windows Phone 6.5 ( oOO i Like Windows Mobile, so sad that Microsoft discontinue this !).

    My project run with the CF.Net 3.5 under Visual Studio 2008.

    My program has one Form with a Panel on this. On this panel i have three textBox. When i go on a textbox, the SIP enable, but my Panel doesn't autoscroll in order to allow that my TextBox stay visible.

    I have read a lot and a lot of thread on Internet (msdn and other), but i don't know why, it don't succes on my project : My panel doesn't autoscrool :(


    Here is my sample code

    using System;
    using System.Linq;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Text;
    using System.Windows.Forms;
    namespace Gate
     public partial class Parametres : Form 
      public Parametres()
      private void Parametres_Load(object sender, EventArgs e)
       // enable Tap n' Hold & auto SIP for my TextBox1
       this.sip.EnabledChanged += new EventHandler(sip_EnabledChanged);
      void sip_EnabledChanged(object sender, EventArgs e)
       if (sip.Enabled) 
        panel1.Size = sip.VisibleDesktop.Size;
        panel1.AutoScrollPosition = new Point(0, Textbox1.Bounds.Bottom - panel1.Height - panel1.AutoScrollPosition.Y); 
       else panel1.Size = this.ClientRectangle.Size;

    I have setted my Panel to "Autoscroll = true" in Visual Studio.

    What about the Dock,etc...


    I think that i have forget some parameters but i'm lost.

    Anyone have a solution about this ?


    Thanks a lot,


    Best Regards,



    Wednesday, July 27, 2011 9:35 AM


All replies