• Activex Controls on tab page (A 2K)

    Author
    Topic
    #388961

    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,

    Viewing 0 reply threads
    Author
    Replies
    • #685271

      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.

    Viewing 0 reply threads
    Reply To: Activex Controls on tab page (A 2K)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: