Hello,

I am trying to use the toolbar to open up different forms; however, I
am wanting to open form2 within form1. This is similar to MS Word when
creating a new document. You have the main Word window then you are able to
create new documents within the main Word window. With your new docs you are
able minimize, maximize the doc itself without closing the main Word window.

I can get form2 to open using:

Dim frmAddAsset As New frmAddAsset

If e.Button.ImageIndex = 5 Then
MsgBox("Thanks for using my program")
Me.Close()

Else
If e.Button.ImageIndex = 0 Then
frmAddAsset.ShowDialog(Me)
End If

End If

But, I want the new form2 to open within form1

Please letme know,

Leo

Re: open windows form2 within windows form1 by Tim

Tim
Mon Mar 13 13:21:39 CST 2006

You're looking to create a MDI application.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbconmdiapplications.asp

--
Tim Wilson
.NET Compact Framework MVP

"Leo" <Leo@discussions.microsoft.com> wrote in message
news:2A4F726B-4A22-41B8-B668-F99A978DE053@microsoft.com...
> Hello,
>
> I am trying to use the toolbar to open up different forms; however, I
> am wanting to open form2 within form1. This is similar to MS Word when
> creating a new document. You have the main Word window then you are able
to
> create new documents within the main Word window. With your new docs you
are
> able minimize, maximize the doc itself without closing the main Word
window.
>
> I can get form2 to open using:
>
> Dim frmAddAsset As New frmAddAsset
>
> If e.Button.ImageIndex = 5 Then
> MsgBox("Thanks for using my program")
> Me.Close()
>
> Else
> If e.Button.ImageIndex = 0 Then
> frmAddAsset.ShowDialog(Me)
> End If
>
> End If
>
> But, I want the new form2 to open within form1
>
> Please letme know,
>
> Leo
>



Re: open windows form2 within windows form1 by Leo

Leo
Mon Mar 13 17:00:16 CST 2006

Thanks again!

I really appriciate your information.

I was able to get my form working with the MDI function. I now need some
information on accessong a SQL database that I created on SQL server 2000. I
already have the tables created (ex. USERS, ASSET, PO). My first step is to
access the USERS table in which I can login, create new users, edit users,
etc.

Can you give me some hints on how to's?


Thanks,
Leo


"Tim Wilson" wrote:

> You're looking to create a MDI application.
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbconmdiapplications.asp
>
> --
> Tim Wilson
> ..NET Compact Framework MVP
>
> "Leo" <Leo@discussions.microsoft.com> wrote in message
> news:2A4F726B-4A22-41B8-B668-F99A978DE053@microsoft.com...
> > Hello,
> >
> > I am trying to use the toolbar to open up different forms; however, I
> > am wanting to open form2 within form1. This is similar to MS Word when
> > creating a new document. You have the main Word window then you are able
> to
> > create new documents within the main Word window. With your new docs you
> are
> > able minimize, maximize the doc itself without closing the main Word
> window.
> >
> > I can get form2 to open using:
> >
> > Dim frmAddAsset As New frmAddAsset
> >
> > If e.Button.ImageIndex = 5 Then
> > MsgBox("Thanks for using my program")
> > Me.Close()
> >
> > Else
> > If e.Button.ImageIndex = 0 Then
> > frmAddAsset.ShowDialog(Me)
> > End If
> >
> > End If
> >
> > But, I want the new form2 to open within form1
> >
> > Please letme know,
> >
> > Leo
> >
>
>
>

Re: open windows form2 within windows form1 by Tim

Tim
Mon Mar 13 17:31:22 CST 2006

Repost your question in a SQL (or, in general, a database specific) forum.
I'm sure someone in a database forum can help you along.

--
Tim Wilson
.NET Compact Framework MVP

"Leo" <Leo@discussions.microsoft.com> wrote in message
news:651AE5E6-3167-417F-A31B-BB5DCDDECC3E@microsoft.com...
> Thanks again!
>
> I really appriciate your information.
>
> I was able to get my form working with the MDI function. I now need some
> information on accessong a SQL database that I created on SQL server 2000.
I
> already have the tables created (ex. USERS, ASSET, PO). My first step is
to
> access the USERS table in which I can login, create new users, edit users,
> etc.
>
> Can you give me some hints on how to's?
>
>
> Thanks,
> Leo
>
>
> "Tim Wilson" wrote:
>
> > You're looking to create a MDI application.
> >
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbconmdiapplications.asp
> >
> > --
> > Tim Wilson
> > ..NET Compact Framework MVP
> >
> > "Leo" <Leo@discussions.microsoft.com> wrote in message
> > news:2A4F726B-4A22-41B8-B668-F99A978DE053@microsoft.com...
> > > Hello,
> > >
> > > I am trying to use the toolbar to open up different forms; however, I
> > > am wanting to open form2 within form1. This is similar to MS Word when
> > > creating a new document. You have the main Word window then you are
able
> > to
> > > create new documents within the main Word window. With your new docs
you
> > are
> > > able minimize, maximize the doc itself without closing the main Word
> > window.
> > >
> > > I can get form2 to open using:
> > >
> > > Dim frmAddAsset As New frmAddAsset
> > >
> > > If e.Button.ImageIndex = 5 Then
> > > MsgBox("Thanks for using my program")
> > > Me.Close()
> > >
> > > Else
> > > If e.Button.ImageIndex = 0 Then
> > > frmAddAsset.ShowDialog(Me)
> > > End If
> > >
> > > End If
> > >
> > > But, I want the new form2 to open within form1
> > >
> > > Please letme know,
> > >
> > > Leo
> > >
> >
> >
> >