2 Questions

rcartledgeuk
04-10-2002, 05:11 PM
I have started making yet another mp3 player but this time is will have a better GUI so i decided to toolbars and image lists and i think i will have to use chil-parent functions read first question

Question 1)How do i use child forms and set things as parent. i have searched this forum and a few other ones but cannot see anything

Question 1b) As i said earier i am using toolbars snd image list, but have not figured out how to 'fix' it so that when you click a button it changes the chils form (or even load a new form normaly).

Thanxs in advance!

ChiefRedBull
04-11-2002, 04:16 AM
1) Child parent relationships can either be achived through using the SetParent API, or most normally, is to hvae one MDI form, and make the rest of your normal forms MDIChilds - by setting their MDIChild property = True as design time.

2) The toolbar has a click event, to which a Button object is passed. Each button on your toolbar has an index..
Private Sub Toolbar1_ButtonClick(ByVal Button As MSComctlLib.Button)
Select Case Button.Index
Case 1
MsgBox "You clicked button number 1"
End Select
End Sub

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum