Hi everyone,
Two forms in a VB6 project my company uses are very much alike, and therefore a class exists with centralized code that serves both forms.
I have to remove a TabStrip control from both forms, and replace it with a series of PictureBoxes next to each other. Each PictureBox represents a tab: it must be colored differently when a user clicks it, a box should be drawn on it when it gets the focus, et cetera. The PictureBoxes are in a control array.
The original code had the TabStrip passed to the class, declared as, and the class handledCode:Private WithEvents obmdTab As TabStrip.Code:Private Sub obmdTab_Click()
Instead, I now have to declare something like, and the class should handleCode:Private WithEvents obmdPic As "PictureBox-controlarray", which, among other things, should take care of recoloring the PictureBoxes. The Index of the clicked PictureBox obviously should therefore be known to the class as well.Code:Private Sub obmdPic_Click()
How can I get this all working? What code should replaceand how do I getCode:Private WithEvents obmdPic() As "PictureBox-controlarray"- if that is the right signature - firing at the right time?Code:Private Sub obmdPic_Click()
Thanks!
Cooz




Reply With Quote
