Print Page | Close Window

Problem By Default Menu...

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=13476
Printed Date: 07 October 2024 at 6:24am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Problem By Default Menu...
Posted By: mozaheb
Subject: Problem By Default Menu...
Date Posted: 23 February 2009 at 12:27pm
Hi all

Please Help Me For How Fix This Problem. When use command bars  on my form picture box moved on the menu bar:(

See attachment and reply it. uploads/20090223_122331_SkinControls.rar - uploads/20090223_122331_SkinControls.rar

Thanks.
Yousof Mozaheb

-------------
________________________________
http://www.amootco.com
Amoot Data Processing



Replies:
Posted By: Oleg
Date Posted: 23 February 2009 at 1:08pm

Hi,

When you use CommandBars you have manually position controls on form. use GetClientRect method and resize picturebox.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: mozaheb
Date Posted: 23 February 2009 at 1:29pm
not work by GetClientRect.

please send solution by source code.

Thanks


-------------
________________________________
http://www.amootco.com
Amoot Data Processing


Posted By: Oleg
Date Posted: 23 February 2009 at 4:04pm
Hi,
 
In your sample instead Form_Resize add
 
 
Private Sub CommandBars1_Resize()
    Dim l As Long, t As Long, r As Long, b As Long
    CommandBars1.GetClientRect l, t, r, b
   
    Picture1.Move l, t, r - l, b - t
End Sub


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: mozaheb
Date Posted: 24 February 2009 at 10:23am

Thanks for your answer but when got focus or lost focus on the form have command bars my form is flashed?

This problem was not see in the V 12.0?

Yousof Mozaheb


-------------
________________________________
http://www.amootco.com
Amoot Data Processing


Posted By: Oleg
Date Posted: 24 February 2009 at 1:15pm
Hi,
 
I very recommend remove standard menu and create whole CommandBars in code or with designer. Sometimes VB want to show its own menu :(


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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