﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum / StrataFrame Application Framework / WinForms (How do I?)  / Hooking into my app before creation... / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>forum@strataframe.net</webMaster><lastBuildDate>Tue, 02 Dec 2008 16:07:09 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Hooking into my app before creation...</title><link>http://forum.strataframe.net/Topic2180-7-1.aspx</link><description>It depends on what you are attempting to accomplish.  If you need to show a form before a logon form, then no, you would want to put it higher up.  But it you are just wanted to execute code before the application is placed in a "wait" state, then this owuld work.  Really the best place to add additional code is the InitApplication  or ShowLogonAndInitMainForm methods.  But what you have there will work fine.</description><pubDate>Mon, 14 Aug 2006 13:29:03 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>Hooking into my app before creation...</title><link>http://forum.strataframe.net/Topic2180-7-1.aspx</link><description>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?&lt;br&gt;&lt;br&gt;Public NotInheritable Class AppMain&lt;br&gt;&lt;br&gt;    &lt;STAThread()&gt; _&lt;br&gt;    Public Shared Sub Main()&lt;br&gt;        '-- Enable the visual styles&lt;br&gt;        System.Windows.Forms.Application.EnableVisualStyles()&lt;br&gt;&lt;br&gt;        '-- Add the handlers for the application events&lt;br&gt;        AddHandler StrataFrameApplication.ShowGateway, AddressOf ShowGateway&lt;br&gt;        AddHandler StrataFrameApplication.InitializingApplication, AddressOf InitApplication&lt;br&gt;        AddHandler StrataFrameApplication.SetDataSources, AddressOf SetDataSources&lt;br&gt;        AddHandler StrataFrameApplication.UnhandledExceptionFound, AddressOf UnhandledExceptionFound&lt;br&gt;        AddHandler StrataFrameApplication.ShowLoginAndInitializeForm, AddressOf ShowLoginAndInitMainForm&lt;br&gt;&lt;br&gt;[b] My other code here?[/b]&lt;br&gt;&lt;br&gt;        '-- Run the application&lt;br&gt;        StrataFrameApplication.RunApplication()&lt;br&gt;&lt;br&gt;        '-- Forcibly close the application to stop message pumps from looping and preventing the application &lt;br&gt;        '   from closing&lt;br&gt;        End&lt;br&gt;    End Sub&lt;br&gt;&lt;br&gt;&lt;br&gt;P.S. Is that the right terminology? Hooking into the app before it's created? &lt;br&gt;&lt;br&gt;Thanks</description><pubDate>Mon, 14 Aug 2006 13:24:29 GMT</pubDate><dc:creator>StarkMike</dc:creator></item></channel></rss>