![]() |
Problem By Default Menu... |
Post Reply ![]() |
Author | |
mozaheb ![]() Senior Member ![]() Joined: 03 April 2008 Status: Offline Points: 104 |
![]() ![]() ![]() ![]() ![]() 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 Thanks. Yousof Mozaheb |
|
________________________________
http://www.amootco.com Amoot Data Processing |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi, When you use CommandBars you have manually position controls on form. use GetClientRect method and resize picturebox.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
mozaheb ![]() Senior Member ![]() Joined: 03 April 2008 Status: Offline Points: 104 |
![]() ![]() ![]() ![]() ![]() |
not work by GetClientRect.
please send solution by source code. Thanks |
|
________________________________
http://www.amootco.com Amoot Data Processing |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
|
mozaheb ![]() Senior Member ![]() Joined: 03 April 2008 Status: Offline Points: 104 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |