Hyperlink to a page on a tab control

G

Guest

I have a form that contains a tab control. I would like to insert a
hyperlink on the first page of the tab control that will move to a different
page on the same tab control.

Any ideas?
Thanks
 
R

Rick Brandt

Rob said:
I have a form that contains a tab control. I would like to insert a
hyperlink on the first page of the tab control that will move to a
different page on the same tab control.

Any ideas?
Thanks

Set the HyperlinkSubAdress to " ". That will make it look and act like a
hyperlink, but it won't actually take you anywhere. Then in the OnClick event
just set focus to the desired control. If that control is on a different
TabPage then the page will automatically change.
 
G

Guest

Thanks Rick. Besides having to put the name of the form into the subaddress
instead of " ", it works great.

Thanks again, and Happy New Year
 
R

Rick Brandt

Rob said:
Thanks Rick. Besides having to put the name of the form into the
subaddress instead of " ", it works great.

Thanks again, and Happy New Year

Not sure I was clear. By " " I meant a single space (without the quotes).

The name of the current form should be okay in your situation, but if (for
example) you wanted the click event to conditionally open another form then
using the form name that you want to open would mean that it wouldn't be
conditional (the form would open no matter what your click event did) and
entering the name of the calling form would mean that the second form would
open and then the calling form would be brought in front of it by the link. In
cases like that you pretty much have to use the single space for the
HyperlinkSubAdress property.
 

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