Print Page | Close Window

.ExcludeModule

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Skin Framework
Forum Description: Topics Related to Codejock Skin Framework
URL: http://forum.codejock.com/forum_posts.asp?TID=9795
Printed Date: 21 December 2024 at 9:09pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: .ExcludeModule
Posted By: Jean
Subject: .ExcludeModule
Date Posted: 05 March 2008 at 4:45am
In our application a form doesen't show appropriate when skinned, so I like to exclude the DLL where the form belongs to.
But the exclude method dosen't work for me. I don't see a difference when I exclude the dll.

To show the problem, I created a simple sample.
Project1 (Project1.exe) is the calling application with SkinFrameWork on it. Project2 is a DLL-Project (ExcludeMe.dll) and shouldn't be skinned when called from Project1.

uploads/20080305_044400_ExcludeModule.zip - uploads/20080305_044400_ExcludeModule.zip

Don't I use the method like I should?



Replies:
Posted By: Oleg
Date Posted: 05 March 2008 at 6:53am
Hi,
No,its not right method for you. You need RemoveWindow method.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Jean
Date Posted: 05 March 2008 at 9:10am
In our application we don't show the form direct from the DLL like I do it in the sample. We just call a method from the DLL. So I don't have the window handle of the form.
The DLL we are using in our application is from a third party supplier. It's just a black box for me.
So I need to exclude it by it's name.
Why doesn't work my sample?


Posted By: Oleg
Date Posted: 05 March 2008 at 11:33am
Hi,
 
hmm strange. actually your sample works quite good for me. I don't see any problem with form from dll...
 
What OS you tried ?


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Oleg
Date Posted: 05 March 2008 at 11:35am
I see - it wors for you also, but you don't want to....
 
hmm another option is set AutoApplyNewWindows to False before show form from dll and change it back to True after.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Jean
Date Posted: 06 March 2008 at 3:01am
Yes, the sample works: I don't get an error.
But it doesn't happen what I expected.


Win XP Pro SP2
VB6 SP6
CodeJock Suite 11.2.2

I thought that the whole frmExclude with all controls on it doesn't show with the style from Form1.

I'll try your last advice. Thank you.

I would prefer a solution with exclude a DLL because in our application there is a black box inside a black box.
I like to have the Form1 style on my "outer black box". But the inner black box should not show the style.
This doesn't work if I set AutoApplyNewWindows to false.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net