Running Event when switching to Design View

M

magmike

I am trying to change the properties of a tab control, when the form
goes into Design View. Is there a way to do this?

I have set the tabs to None, since I have designed my own. However,
when in Design View, I can't navigate the tabs with my own, and have
to select the tab control, and then manually change the properties of
the control to be buttons. And then back when I am done with the form.
So if there is a way to call an event when the form goes into design
view, that would be awesome!

Thanks in advance,
magmike
 
P

Peter Hibbs

Magmike,

No, but you can do it the other way round. In Design mode leave the
tabs visible and then in the Open event of the form add this line -

tabData.Style = 2 'hide tabs

where tabData is the name of your tab control.

HTH

Peter Hibbs.
 
M

magmike

Magmike,

No, but you can do it the other way round. In Design mode leave the
tabs visible and then in the Open event of the form add this line -

    tabData.Style = 2     'hide tabs

where tabData is the name of your tab control.

HTH

Peter Hibbs.





- Show quoted text -

That's where I messed up. I was using tabData.Style = None
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top