Ligning-up Multiple Picture box

My Main Form has a Frame.  (Window State 0-Normal)
Inside the Frame is a full size picture of my Main Menu.  
Frame and Main Menu pic are both the same size.
On this Main Menu picture box are multiple picture boxes that the user can click.
(If I drag the full size picture, all of my small picture boxes move with it)
When I run the program on my XP computer, everything looks good.
When I run it on my Windows7 computer, it stretches only my Main Menu and Frame.
The Main Menu picture is the same size, but now all of my small clickable pictures are adjusted to this new larger landscape screen.  How can I keep the multiple picture boxes in the correct place?
Thank You
GarySBAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Martin LissOlder than dirtCommented:
Maybe the 'Dynamically Resize Form Controls' link below will help you.



-------------------------------------------------------------------------------------------------------------------------------
My Articles:
Using the VB6 DebuggerAutomatic Insertion of Procedure Names
A Textbox ActiveX Control That Limits Input to NumbersSpell Check a Textbox
Improved Formatting TagsConditional CompilationDynamically Resize Form Controls
Tic-Tac-Toe, Hangman, and Blackjack

Marty - MVP 2009, 2010, 2011
0
GarySBAuthor Commented:
I made the class and pasted the code shown just as they have it into it.
When I compile it Error Method or data member not found -hightlights ResizeControls Why?

Option Explicit
Private clsResize As CResizer

Private Sub Form_Resize()
    clsResize.ResizeControls Me
End Sub

Private Sub Form_Load()

    Set clsResize = New CResizer
    clsResize.Initialize Me
   
 End Sub
0
Martin LissOlder than dirtCommented:
In that article I created I seem to have left out the class. Here it is.  CResizer.cls

Add that class to your project.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

GarySBAuthor Commented:
VB keeps adding it into the Module section, not the Class section.
Could the code above Option Explicit be the cause?
I do not want to delete it if it is supposed to stay.
0
Martin LissOlder than dirtCommented:
Here's how you add a class to your project.
 Add classIf you don't see that menu item then go to View->Toolbars->Customize and drag the option you see below to your Project menu item.
 Custimize
Here's a working project
 Resizer.zip



-------------------------------------------------------------------------------------------------------------------------------
My Articles:
Using the VB6 DebuggerAutomatic Insertion of Procedure Names
A Textbox ActiveX Control That Limits Input to NumbersSpell Check a Textbox
Improved Formatting TagsConditional CompilationDynamically Resize Form Controls
Tic-Tac-Toe, Hangman, and Blackjack

Marty - MVP 2009, 2010, 2011
0
Martin LissOlder than dirtCommented:
Please let me know here if the project in Resizer.zip works for you and if you understand what I put in the above post.
0
Martin LissOlder than dirtCommented:
Another thing you could do would be to embed your project here and I'll see if I can make it work.
0
GarySBAuthor Commented:
Have to prepare.I will send it to you Sat night and get back to me when you can, Thank You
0
Martin LissOlder than dirtCommented:
'm leaving town for a week starting early Sunday morning so please get it to me as soon as you can.
0
GarySBAuthor Commented:
0
GarySBAuthor Commented:
I was not finished uploading files.
I reloaded all of them.
Due to size of original program I just made the Main Menu with the target area.
See sample VB screen program.
My Picture boxes (Lesson A) are supposed to be inside of the blue boxes.
On my Win XP computer, it lines up perfect.
On my Win 7 computer they are all wrong.
I do not know if i should switch to a  Image so it can stretch.
Thank You
Project1.vbw
Project1.vbp
MainMenu.frx
MainMenu.frm
Form1.frx
Form1.frm
0
Martin LissOlder than dirtCommented:
Here is your project with the added class. Marty.zip

If you want your blue bitmap to expand when the form expands then add a picturebox. Make the picturebox the same size as your form and put the bitmap and all your controls in it.


-------------------------------------------------------------------------------------------------------------------------------
My Articles:
Using the VB6 DebuggerAutomatic Insertion of Procedure Names
A Textbox ActiveX Control That Limits Input to NumbersSpell Check a Textbox
Improved Formatting TagsConditional CompilationDynamically Resize Form Controls
Tic-Tac-Toe, Hangman, and Blackjack

Marty - MVP 2009, 2010, 2011
0
GarySBAuthor Commented:
Thank you trying it right now.
0
GarySBAuthor Commented:
I added:
clsResize.SetActions "Picture2", true, false, false
to the Form_Load and Form_Resize subs and it no visible change takes place on the Win7 computer.
The picture control is in the same place.
Regarding your comment about
  If you want your blue bitmap to expand when the form expands then add a picturebox.
my bitmap is in a picturebox.  The picture box is within a Frame.  Are you suggesting to take it out of the Frame and make it the same size as Screen.Width?
0
Martin LissOlder than dirtCommented:
I dont use Win7 so I can't explain why you are still having the problem.

Yes I am suggesting you get rid of the frame. Make sure that AutoSize is set to True.
0
Martin LissOlder than dirtCommented:
I dont use Win7 so I can't explain why you are still having the problem.

Yes I am suggesting you get rid of the frame. Make sure that AutoSize is set to True.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.