Multipage in combination with loadPicture

Gowodka

New Member
Joined
Aug 24, 2011
Messages
20
Hello,

I made a userform with different multipages and in these multipages i have some another multipage.

Now i wan't to do the following thing but i don't understand how it works.
For example i have a multipage with Caption Numbers ( Multipage1 ) in this multipage i have another multipage with 3 tabs called number1, number2 and number3.

If you would click on number1 a picture ( loction c:\number1.jpg ) should be loaded and shown in a imagecontrolbox ( with a set height and width, using the zoomfunction ), the name of the imagecontrolbox is ImageControlInfo

I was thinking something like

Code:
Private Sub MultiPage3_Change()
        If (Multipage3.page(0)_Click()) = True Then
               Image1.Picture = LoadPicture("")
               number1.Picture=LoadPicture("C:\number1.jpg)
               Image1.PictureSizeMode=fmPictureSizeModeZoom
        End If
        If (Multipage3.page(1)_Click()) = True Then
               Image1.Picture = LoadPicture("")
               number1.Picture=LoadPicture("C:\number2.jpg)
               Image1.PictureSizeMode=fmPictureSizeModeZoom
        End If
        If (Multipage3.page(2)_Click()) = True Then
               Image1.Picture = LoadPicture("")
               number1.Picture=LoadPicture("C:\number3.jpg)
               Image1.PictureSizeMode=fmPictureSizeModeZoom
        End If
End Sub


Can someone help me plzzz ?
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Use the MultiPage's value property to return the Page that was clicked:

Code:
Private Sub MultiPage3_Change()
    Select Case MultiPage3.Value
        Case 0
            MsgBox "You clicked Page 1"
        Case 1
            MsgBox "You clicked Page 2"
        Case 2
            MsgBox "You clicked Page 3"
    End Select
End Sub
 
Upvote 0

Forum statistics

Threads
1,224,609
Messages
6,179,882
Members
452,948
Latest member
Dupuhini

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top