UserControl won't fire Events 
Author Message
 UserControl won't fire Events

I created a UserControl (OCX) to run on my web page, every thing has been
working fine for months, until the other night when I uploaded a new
version. On my development machine (Windows XP) the code works fine, but on
my other two windows 98 machines the code is no longer working. upon closer
investigation I've discovered that the User Control is not firing any of
it's Events. On my XP machine the UserControl jump through all the proper
events and then appears.
UserControl_Initialize() THEN UserControl_Show()

On the windows 98 machines on startup it runs
UserControl_Initialize() but will not fire the user Control SHOW Event
,UserControl_Show()

Does anyone have any ideas why all of a sudden my other two machines will
not follow the same life cycle as the development machine? Even if I force
the code into the SHOW event the UserControl will not be displayed. PLEASE
HELP. My users are screaming



Sat, 14 Aug 2004 09:56:28 GMT  
 UserControl won't fire Events

Quote:

>I created a UserControl (OCX) to run on my web page, every thing has been
>working fine for months, until the other night when I uploaded a new
>version.

I've forwarded your posting for my fellow MVPs and MS to review.

Tony
--
Tony Toews, Microsoft Access MVP
   Please respond only in the newsgroups so that others can
read the entire thread of messages.
   Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm



Sun, 15 Aug 2004 11:52:02 GMT  
 UserControl won't fire Events
Tony thanks for any help you can provide. I've also noticed one other
problem that has started happening with both windows 98 Machines. When in
Internet Explorer if you click on a link that opens a new IE window the
window will not navigate to the new site or launch what ever it was suppose
too. Since the ActiveX controls are displayed in Internet Explorer I assume
that these problems are linked. On the rebuilt Windows 98 machine I no
longer have this problem. I'm assuming some DLL is the problem.


Mon, 16 Aug 2004 00:28:32 GMT  
 UserControl won't fire Events
I wonder if this isn't another problem of "DLL Hell". I did a total rebuild,
wipe and install on one of the Windows 98 machines and I can now get
Internet Explorer to Fire the Control Events. What I'm wondering is if the
software I recently installed has something to do with this problem. I've
included a list of the support files for the software below. Do any of these
look like they would cause Windows 98 Internet Explorer to act this way.
I'll keep you posted as I slowly try to re-create the problem.

Thought that it might help if I gave you a list of the support files that
the ActiveX Uses. Possible one of them is conflicting with Windows 98
ActiveX Execution and the Firing of the Events.

08/18/2001  12:00 PM            77,824 asycfilt.dll
05/31/1998  12:00 AM            22,288 COMCAT.DLL
11/08/2000  02:46 PM           442,368 cpeaut32.dll
06/22/2000  12:34 PM            26,112 Ctl3d32.dll
04/27/1998  12:00 AM           570,128 DAO350.DLL
08/18/2001  12:00 PM           379,152 expsrv.dll
06/26/1998  12:00 AM         8,124,720 MDAC_TYP.EXE
08/18/2001  08:00 AM            81,920 msado25.tlb
05/22/2000  12:00 AM           118,976 MSADODC.OCX
05/11/2000  12:00 AM            77,824 MSBIND.DLL
05/22/2000  07:00 AM           647,872 MSCOMCT2.OCX
05/22/2000  12:00 AM         1,066,176 MSCOMCTL.OCX
05/22/2000  12:00 AM           262,336 MSDATGRD.OCX
05/22/2000  12:00 AM           115,920 MSINET.OCX
08/04/1999  12:00 AM         1,050,384 MSJET35.DLL
08/04/1999  12:00 AM           123,664 MSJINT35.DLL
08/18/2001  08:00 AM            90,112 msjro.dll
08/04/1999  12:00 AM            24,848 MSJTER35.DLL
05/07/1999  01:00 AM           166,408 Msmask32.ocx
06/01/1998  01:00 AM           262,144 msrd2x35.dll
05/11/2000  12:00 AM           397,312 MSRDO20.DLL
08/04/1999  12:00 AM           415,504 MSREPL35.DLL
03/14/2000  12:00 AM           118,784 MSSTDFMT.DLL
08/09/1998  10:07 AM            94,208 MSSTKPRP.DLL
08/18/2001  12:00 PM         1,388,544 msvbvm60.dll
05/31/1998  12:00 AM           326,656 MSVCRT40.DLL
06/24/1998  12:00 AM           108,336 MSWINSCK.OCX
04/11/2000  01:00 AM           471,090 MYODBC.DLL
**MySQL Database Driver
08/18/2001  12:00 PM           569,344 oleaut32.dll
08/18/2001  12:00 PM           106,496 OLEPRO32.DLL
02/03/2001  02:26 AM           163,840 P2smon.dll
03/14/2000  12:00 AM           151,552 RDOCURS.DLL
06/18/1998  12:00 AM           140,800 SETUP.EXE
02/25/2002  03:38 PM             6,251 Setup.Lst
06/20/1998  12:00 AM           286,720 SETUP1.EXE
06/18/1998  12:00 AM            73,216 ST6UNST.EXE
08/18/2001  12:00 PM            17,920 stdole2.tlb
05/22/2000  12:00 AM           209,608 TABCTL32.OCX
08/10/1998  06:56 PM            89,360 Vb5db.dll
06/01/1999  12:00 AM           101,888 VB6STKIT.DLL
08/18/2001  12:00 PM            30,992 vbajet32.dll



Mon, 16 Aug 2004 00:28:29 GMT  
 UserControl won't fire Events
I think that there is an article on MSDN KB, can't remember what it's called
about distributing MDAC in this way. It advises against it and comes up with
some solution.

Joe


Quote:
> Tony thanks for any help you can provide. I've also noticed one other
> problem that has started happening with both windows 98 Machines. When in
> Internet Explorer if you click on a link that opens a new IE window the
> window will not navigate to the new site or launch what ever it was
suppose
> too. Since the ActiveX controls are displayed in Internet Explorer I
assume
> that these problems are linked. On the rebuilt Windows 98 machine I no
> longer have this problem. I'm assuming some DLL is the problem.



Mon, 16 Aug 2004 00:54:29 GMT  
 UserControl won't fire Events
PROBLEM SOLVED
1) Caused UserControl EVENTS to not FIRE PROPERLY (Initialize and then
Terminate)
2) WIN FAX Error (Fax mng32 default module error in  rpcrt4.dll)
3) Internet Links that opened new windows would open blank windows

Really think that Microsoft should document this one though. From what I can
tell it's just another case of "DLL HELL". After doing a complete rebuild on
one of my Windows 98 machines, I slowly added new drivers and software until
I could re-create the problems that I was having (Basically the UserControl
Events not firing), Anyway after a re-install of Internet Explorer 5.5 the
problem was solved. I've narrowed it down to a couple of DLL's that might be
the problem.

Running on a Windows 98 Machine
shdocvw.dll  VERSION 6.0.2712.300
shdoccl.dll    VERSION 6.0.2712.300
shdoc401.dll  ?

I hope to have the time this weekend to finish testing these drivers by
crashing my machine with them but until then this is as far as I have
gotten. One quick question though, How am I suppose to replace and register
Shdocvw.dll?  I need to do it in windows because it won't let me do it in
DOS and if I try doing it while windows is running I get a "SHARE ERROR"
Thanks for everyone's help



Tue, 17 Aug 2004 04:19:45 GMT  
 UserControl won't fire Events

Quote:

>Tony thanks for any help you can provide. I've also noticed one other
>problem that has started happening with both windows 98 Machines. When in
>Internet Explorer if you click on a link that opens a new IE window the
>window will not navigate to the new site or launch what ever it was suppose
>too. Since the ActiveX controls are displayed in Internet Explorer I assume
>that these problems are linked. On the rebuilt Windows 98 machine I no
>longer have this problem. I'm assuming some DLL is the problem.

Sounds reasonable to me but which DLL? Can you poke about in the CAB
files which come with the version of IE which is installed on the
troublesome system and compare the version number of the DLLs with a
working system.  Ugly though as there will be a lot of DLLs.

OCX/DLL Version Checker
http://www.granite.ab.ca/access/ocxdllversionchecker.htm

This MDB verifies the remote systems OCX/DLL versions against your
version. You enter the OCX/DLLs you're interested in, go to the
Programmers Menu and click on the "Update DLL Version Table with
current values. (Programmers)" button. You then make this an MDE and
ship to your customers. When they run it they will see any
differences.

Tony
--
Tony Toews, Microsoft Access MVP
   Please respond only in the newsgroups so that others can
read the entire thread of messages.
   Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm



Tue, 17 Aug 2004 13:16:19 GMT  
 
 [ 7 post ] 

 Relevant Pages 

1. Form's validate does not fire usercontrol(inside textbox) validating event

2. Timer Event won't fire when app doesn't have focus

3. Timer Event won't fire when app doesn't have focus

4. Button events won't fire when editing a cell

5. Inspector Event - Won't Fire Consistently

6. Click event won't fire on a user control

7. Initialize event won't fire in vbscript v5

8. Why won't the mousedown event fire?

9. Terminate event won't fire after Unload

10. ActiveX DLL events won't fire when DLL shows Modal Form

11. Multiline Windowless (Lightweight) text box: Change event won't fire

12. User Control won't FIRE EVENTS

 

 
Powered by phpBB® Forum Software