Strange movement in hosted form in form

Strange movement in hosted form in form

Post by Lloyd Shee » Tue, 18 May 2004 22:56:58


I have the following situation:

Need a user resizable user control. After much trying with user control I
came across the idea of hosting the controls in a form marked as not
TopLevel = false. This work fine for most cases, allowing the user to
resize the form (and controls within the form.

The forms them selves are create dynamically when the user drags a node from
a listview to a panel (contained in a Usercontrol which is hosted by the
main form. The location of the from once dropped is at the point where the
mouse was when the control was dropped.

The form itsself hosts a top panel with a label and text box (docked top),
and a CheckListBox docked Fill. Now all the above works fine. The Panel
upon which the controls are dropped is marked as AutoScroll true. Dropping
the "Forms" on the control seems to set the AutoScollMinSize correctly. I
can move the "Forms" around on the Panel and the scrollbars respond to that
movement.

Now the problem:
If I drop the form such that the entire CheckListBox does not show, and then
attempt to click one of the list items (CheckListBox is CheckOnClick = True)
the form will jump on the panel to attempt to show the entire CheckListBox,
the item checked will be incorrect.

If I move the dropped form with the mouse horizontal (CheckListBox is still
not entirely visible) this will sometimes stop the auto move (not from my
code) but not always. If I enter text into the TextBox there is no weird
movement.

I will put the call stacks in a response to this message so that only people
who are interested will have to download them.

Lloyd Sheen
 
 
 

1. Can I make a form to print fields on a hcfa 1500 ins.form?

2. Problems with custom forms not displaying, (using outlook form ins

My company has some custom forms for use in outlook 98 that are available to
all users on our network via the contacts folder of a shared mailbox. These
are working fine on most pcs but there are two that are refusing to display
the custom forms correctly. We run windows NT and outlook 98 both pcs are
displaying the message installing form on machine and then come up with the
message"the custom form could not be opened.Outlook will use an outlook form
instead".

I have tried deleting and recreating the frmcache.dat file in the
C:\winnt\forms directory and even replacing it with a copy from a working pc,
as this worked fine for other pcs when confronted by this problem. I have
also tried reghosting the pcs with our standard build to reinstall the
software but these two are still displaying the same error message about the
form could not be opened.

Unfortunately upgrading the versions of windows and office is not an option
but I know the forms can work with the versions we are running as they work
on other pcs ok. Can anybody help me to get these forms to display properly?

3. How to scan form, fill out, delete the form, then print fill-ins?

4. Excel add-ins does not show up in Excel>Tools>Add-ins list.

5. Com add-ins versus normal add-ins?

6. GalCiv trade-ins vs MOO3 trade-ins.

7. WIN XP SP2 active X controls, plug ins, add ins, downloading software

8. Ins PA w/Life Ins sw such as Cyberlife, Vantage, Life70, etc. Contract to Hire Perm

9. Better Graph Add-ins/Plug-ins

10. Add-ins do not show up in the Add-Ins Ribbon

11. Problem migrating VS2003 add-ins to VS2005 add-ins

12. Some snap-ins not displaying in "Restricted/Permitted snap-ins"

13. Solver in add-ins folder, but not in add-ins under tools menu

14. Check Browser Object Plug-ins/Add-ins

15. Schedule an email without plug-ins or add-ins?