מבקש עזרה ב VB

judittech

New member
../images/Emo53.gif מבקש עזרה ב VB

בבקשה עזרו לי - האם יש פקד שבעזרתו אפשר לטעון FORM אחד לתוך FORM שני(ראשי). כמו באקסס - טופס בתוך תופס. תודה מראש.
 

אביטל +

New member
עד כמה שאני יודעת לא

ואם יש אז הוא בטח עולה כסף תסביר מה אתה צריך לעשות ואולי נוכל לעזור למה שאתה מתאר נראה לי שאפשר להשתמש ב UserControl תלוי בצורך
 

TZURYOAV

New member
תשתמש בקוד הזה

´============================================================================== ´ ´ ´ Name: ParentWindow ´ ´ ´============================================================================== Public Sub ParentWindow(hWndChild As Long, hWndParent As Long) If (hWndChild <> 0 And hWndParent <> 0) Then Dim dwStyle As Long ´Get the old style... dwStyle = GetWindowLong(hWndChild, GWL_STYLE) ´Clear the WS_POPUP style bit... dwStyle = dwStyle And Not WS_POPUP ´Set the WS_CHILD style bit... dwStyle = dwStyle Or WS_CHILD ´Set the new style... SetWindowLong hWndChild, GWL_STYLE, dwStyle ´Set the parent... SetParent hWndChild, hWndParent End If End Sub
 
למעלה