Or just do what I do - set the default window to none, and - in your
App class' Open() event, instantiate an object of the proper window
subclass yourself. That way you know which one will pop up. All my
windows I put a Display() method that - inside - calls "Me.Show()" or
"Me.ShowModal()" as appropriate. Then all I have to do is:
Sub Open()
Dim w As wndMain
// other initialization code here...
// Display our main window.
w = New wndMain()
w.Display()
End Sub
On May 30, 2008, at 1:25 AM, Jon Bachelor wrote:
>
> On May 29, 2008, at 11:49 PM, m wrote:
>
>> I am debugging a program. I have duplicated a window, set all the
>> code
>> in the new window to the same as the old window. Changed the name of
>> the first ( now Old) window, but when I run the app, the Old window,
>> not the new window opens.
>> How do I get the new window to open when the app starts.
>> Thanks in advance.
>> Michael.
>>
>
> In the "Project" tab, click on "App" and look at the properties over
> towards the right side of the window. In the section marked
> "Appearance," there's a field called "DefaultWindow". Click on the
> drop-down there and pick your new window to open up, rather than the
> original (I'm not sure which version of RB you're using... I'm
> describing what I see in 2007r5).
>
> HTH!
>
> Jon
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
>
> Search the archives:
> <http://support.realsoftware.com/listarchives/lists.html>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
|