Results 1 to 3 of 3
  1. #1
    3 Star Lounger
    Join Date
    Dec 2000
    Location
    Vancouver, Br. Columbia, Canada
    Posts
    268
    Thanks
    0
    Thanked 1 Time in 1 Post

    Activex Controls on tab page (A 2K)

    I have a form with a tab control with two pages (tabs) set up. I recently added a calendar control (Calendar Control 9.0) to one of the tab pages. It is initially set to Visible = false, and is set to be visible (and to pull the control value to a particular textbox) when a particular button is clicked (different buttons assign the control value to different text boxes, all of which are bound, so I can update different dates for a record (order date, ship date, delivery date, etc). This seems to work very well, with one problem - the control shows up on both pages of the form view. Normally, someone won't move between the pages until they update the date information they clicked for (or click on the button again to close the calendar, so it is not (much of) an operational problem. In design view, however, if I select a group of controls to move on the "other tab" that isn't supposed to have a calendar on it I usually end up selecting the calendar control as well. After making the changes I want, I have to go back to the other page and re-position the calendar. It is an annoyance, not a crisis, but I would like to know how to resolve it - and even better, how to avoid this problem in the future.

    None of the other controls exhibit this behaviour - I am not sure if it is because this is an activex control, or just something I inadvertently did when I placed the control in the first place.

    Thanks for any help,

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Activex Controls on tab page (A 2K)

    You probably made a small mistake when you placed the Calendar control on the form, but it should be easy to remedy.
    Select the Calendar.
    Cut it to the clipboard (Ctrl+X).
    Click the tab that should contain the Calendar; you should click the caption of the tab so that a dotted rectangle appears around the caption, not the interior of the page.
    Paste the Calendar (Ctrl+V)
    If necessary, move it to the desired location on the tab page.

  3. #3
    3 Star Lounger
    Join Date
    Dec 2000
    Location
    Vancouver, Br. Columbia, Canada
    Posts
    268
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Activex Controls on tab page (A 2K)

    Thanks, Hans - worked like a charm <img src=/S/thumbup.gif border=0 alt=thumbup width=15 height=15>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •