Re: Focus Doesn't Work With Splitter Panel

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

    #1

    Re: Focus Doesn't Work With Splitter Panel

    One thing I have noticed with .Net is that various controls can have the
    same tab index and the app still compiles. I would set the tab index of
    your splitter to some large number (larger than a single digit) like 801
    or 1001 (I add an extra 1 to make sure it is unique). Then go through
    all your controls and check the tab indexes to make sure you don't have
    duplicate tab indexes. That will cause tabbing to not work as
    advertised. It is a pain but the only workaround I have come up with
    (if you already have a lot of controls - well - bummer man! :).

    Rich

    *** Sent via Developersdex http://www.developersdex.com ***
  • AGP

    #2
    Re: Focus Doesn't Work With Splitter Panel

    Already tried that. I have about 10 controls and the splitter panel is index
    99.
    still no joy.

    AGP

    "Rich P" <rpng123@aol.co mwrote in message
    news:uGz%23XX6P JHA.1164@TK2MSF TNGP02.phx.gbl. ..
    One thing I have noticed with .Net is that various controls can have the
    same tab index and the app still compiles. I would set the tab index of
    your splitter to some large number (larger than a single digit) like 801
    or 1001 (I add an extra 1 to make sure it is unique). Then go through
    all your controls and check the tab indexes to make sure you don't have
    duplicate tab indexes. That will cause tabbing to not work as
    advertised. It is a pain but the only workaround I have come up with
    (if you already have a lot of controls - well - bummer man! :).
    >
    Rich
    >
    *** Sent via Developersdex http://www.developersdex.com ***

    Comment

    • Rich P

      #3
      Re: Focus Doesn't Work With Splitter Panel

      Build a test form and add one panel to it - dock the panel to the top of
      the testform. Then add one textbox to this panel. Make sure the
      tabindex of the panel is like 300 and set the tabindex of the textbox to
      0. Now add a splitter and dock it top - so it ends up just under the
      panel. Make sure its tabindex is 500. Now run the form and see what
      control has the focus on startup. If this form works - then copy all
      your controls and code over to it from the other form. Sometimes it is
      just something so obscure in a form that you will never find/fix it. So
      I start over from scratch.

      Rich

      *** Sent via Developersdex http://www.developersdex.com ***

      Comment

      • AGP

        #4
        Re: Focus Doesn't Work With Splitter Panel

        It turns ou a third-party control in the splitpanel makes this behavior
        happen.
        Ill look at it some more.

        AGP

        "Rich P" <rpng123@aol.co mwrote in message
        news:OlsPL4CQJH A.4992@TK2MSFTN GP05.phx.gbl...
        Build a test form and add one panel to it - dock the panel to the top of
        the testform. Then add one textbox to this panel. Make sure the
        tabindex of the panel is like 300 and set the tabindex of the textbox to
        0. Now add a splitter and dock it top - so it ends up just under the
        panel. Make sure its tabindex is 500. Now run the form and see what
        control has the focus on startup. If this form works - then copy all
        your controls and code over to it from the other form. Sometimes it is
        just something so obscure in a form that you will never find/fix it. So
        I start over from scratch.
        >
        Rich
        >
        *** Sent via Developersdex http://www.developersdex.com ***

        Comment

        Working...