Link to home
Start Free TrialLog in
Avatar of TriggerHappy
TriggerHappyFlag for Canada

asked on

Is it possible to dock a regular form? (Non toolbar)

As the Title states, is it possible to make a form dock on the right side of the application, either inside the access window or even modal ala what ICQ does so that its always visible and no object goes underneath it?

If so, what kind of code would i have to add to the form to make it do exactly that?
ASKER CERTIFIED SOLUTION
Avatar of Alan Warren
Alan Warren
Flag of Philippines image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rhems
rhems

Alan,
I have tried to use this code as well, however which reference do you need to set?  I get a user-defined type not defined for the "Dim fwForm As New clFormWindow" line in the code.
Thanks,
Rich
Avatar of peter57r
Have you downloaded and installed the
clFormWindow.bas
class module?

Pete

Hi rhems,

To be honest I had not tried it but it looked good and source is known to be good, so I just downloaded the class and installed in a new Class modue and saved it, then I ganked the two subs on the web page and pasted them into my form.
then  I created a new button and gave it an event click

Private Sub Command6_Click()
  Call MoveToTopRight(Me.Name)
End Sub

Certainly seems to work as claimed by the author.

Had a little trouble opening the class in notepad, but it opened fine in Visual Basic, just copied the entire text and pasted into my new ClassModule in my Access Form. probably would have worked fine if I chose File > Import File in a code window.

Let me know if you have any more hickups, glad to help.

Alan :)


No comment has been added lately, so it's time to clean up this TA.
I will leave the following recommendation for this question in the Cleanup topic area:

Accept: alanwarren {http:#9976460}

Please leave any comments here within the next four days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

jadedata
EE Cleanup Volunteer