nope, style nothing. Let me try to be more specific, maybe I forgot to mention something. My main form is called "frmMainScreen", and in that form there is a treeview "trvSections". To the right of the treeview there is a picture box, "pctFormContain." When certain nodes of the treeview are clicked, they load a corresponding form, which should be placed into the picturebox. Here is the pertinent code:
in frmMainScreen:
VB Code:
If trvSections.SelectedItem.Key = "options" Then Load frmOptions ... End if
in frmOptions:
VB Code:
Private Sub Form_Load() FormInit Me End Sub
in mdlGeneral:
VB Code:
Public Declare Function SetParent Lib "user32" (ByVal hWndChild As Long, ByVal hWndNewParent As Long) As Long Public Sub FormInit(frmRef As Form) SetParent frmRef.hWnd, frmMainScreen.pctFormContain.hWnd 'frmRef.Top = 0 'frmRef.Left = 0 frmRef.Move frmMainScreen.pctFormContain.Left, frmMainScreen.pctFormContain.Top ... End Sub
However, nothing is appearing in the picturebox. Those are the only details I can think to post, and I don't see anything missing, but maybe it'll help




Reply With Quote