|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
show form into splitcontainer.panelHello people, i need a favor from you, i need display a windows form into a
panel. How i do it? Hi,
Declare Auto Function SetParent Lib "user32" (ByVal hWndChild As IntPtr, ByVal nWndPArent As IntPtr) As Integer Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim frm As New Form2 SetParent(frm.Handle, Me.SplitContainer1.Panel2.Handle) frm.Show() End Sub Ken ------------------- Show quoteHide quote "Andres Rojas" <Andres Ro***@discussions.microsoft.com> wrote in message news:EE56AE5A-D7B4-4698-9F3D-31BEEB55C1BC@microsoft.com... > Hello people, i need a favor from you, i need display a windows form into > a > panel. How i do it? You can do it withough interop too:
Dim frm As New Form2 frm.TopLevel = False frm.Parent = Me.SplitContainer1.Panel2 frm.Show Thank for you collaboration...
Show quoteHide quote "Chris Dunaway" wrote: > You can do it withough interop too: > > Dim frm As New Form2 > > frm.TopLevel = False > frm.Parent = Me.SplitContainer1.Panel2 > frm.Show > > "Andres Rojas" <Andres Ro***@discussions.microsoft.com> schrieb: Maybe it's better to use user controls ("Project" -> "Add user control...") > Hello people, i need a favor from you, i need display a windows form into > a > panel. How i do it? instead of forms. Otherwise I'd stick with the 'TopLevel = False' tip. -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/>
[DATE - newbie] change and set back
RS232 - Recive = Send???? GetDirectories Performance Debug.Wrile does not appear on the Output Window GetCurrentProcess.Id vs GetCurrentProcessId API Trying to execute something stored in variable Can't delete an image that is in a picture box Impersonation help with SQL 2000 needed How to put a Word/Excel file into a database Job title: $300 flat for job in perl, cgi, Visual Basic/Asp.Net, whatever online project |
|||||||||||||||||||||||