Hyperlink to a page on a tab control

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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.
 
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
 
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.
 
Back
Top