Print Page | Close Window

MDI Forms

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=5424
Printed Date: 20 June 2025 at 5:31am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: MDI Forms
Posted By: erdogdum
Subject: MDI Forms
Date Posted: 03 November 2006 at 1:22pm
Hi,
i have a big trouble about backgrounds while using MDI forms and a commandbar together in VB.NET 2005. i can not show commandbar without code above :

(      
        Dim ctrl As Control
        For Each ctrl In Controls
            If (ctrl.GetType Is GetType(System.Windows.Forms.MdiClient)) Then
                AxCommandBars1.SetMDIClient(ctrl.Handle.ToInt32)
            End If
        Next
)

i use this code to show the commandbar, but this code prevents to show the form background image. So when i use commandbar, i cant show the background image in the Parent MDI Form.
does anyone help me?

Thanks.





Replies:
Posted By: erdogdum
Date Posted: 03 November 2006 at 5:57pm
Originally posted by erdogdum erdogdum wrote:

Hi,
i have a big trouble about backgrounds while using MDI forms and a commandbar together in VB.NET 2005. i can not show commandbar without code belove:

(      
        Dim ctrl As Control
        For Each ctrl In Controls
            If (ctrl.GetType Is GetType(System.Windows.Forms.MdiClient)) Then
                AxCommandBars1.SetMDIClient(ctrl.Handle.ToInt32)
            End If
        Next
)

i use this code to show the commandbar, but this code prevents to show the background image.So when i use commandbar, i cant show the background image in the Parent MDI Form.
does anyone help me?

Thanks.




Posted By: erdogdum
Date Posted: 03 November 2006 at 5:58pm
Originally posted by erdogdum erdogdum wrote:

Hi,
i have a big trouble about backgrounds while using MDI forms and a commandbar together in VB.NET 2005. i can not show commandbar without code belove:

(      
        Dim ctrl As Control
        For Each ctrl In Controls
            If (ctrl.GetType Is GetType(System.Windows.Forms.MdiClient)) Then
                AxCommandBars1.SetMDIClient(ctrl.Handle.ToInt32)
            End If
        Next
)

i use this code to show the commandbar, but this code prevents to show the form background image. So when i use commandbar, i cant show the background image in the Parent MDI Form.
does anyone help me?

Thanks.




Posted By: GarethThom
Date Posted: 07 November 2006 at 5:18am
I too would like to know how to set a background picture on an MDI form.  I am using VB6 though.
 
Thanks,
G.


Posted By: SuperMario
Date Posted: 07 November 2006 at 4:13pm
Maybe you guys are looking for this?

CommandBars.TabWorkspace.ThemedBackColor = False


Posted By: GarethThom
Date Posted: 08 November 2006 at 9:07am
Perfect, thanks!


Posted By: erdogdum
Date Posted: 13 November 2006 at 10:58am
yeah that works a little. but still there is a problem. i can not change anything by designer (forex: backgroundcolor of mdiparentform) if i once used commandbar even i m using with or without disabling themedbackcolor property..



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net