Hooking into my app before creation...


Author
Message
StarkMike
StarkMike
Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)
Group: Forum Members
Posts: 436, Visits: 944
I have another DLL that needs to hook into my app before its created/initialized. Notice the bold text below... is this where I would put it?



Public NotInheritable Class AppMain



_

Public Shared Sub Main()

'-- Enable the visual styles

System.Windows.Forms.Application.EnableVisualStyles()



'-- Add the handlers for the application events

AddHandler StrataFrameApplication.ShowGateway, AddressOf ShowGateway

AddHandler StrataFrameApplication.InitializingApplication, AddressOf InitApplication

AddHandler StrataFrameApplication.SetDataSources, AddressOf SetDataSources

AddHandler StrataFrameApplication.UnhandledExceptionFound, AddressOf UnhandledExceptionFound

AddHandler StrataFrameApplication.ShowLoginAndInitializeForm, AddressOf ShowLoginAndInitMainForm



My other code here?



'-- Run the application

StrataFrameApplication.RunApplication()



'-- Forcibly close the application to stop message pumps from looping and preventing the application

' from closing

End

End Sub





P.S. Is that the right terminology? Hooking into the app before it's created?



Thanks
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search