473,395 Members | 1,870 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Tab Click...

Hello All,

We are developing a vb.net app that utilizes a tabbed interface. On
one tab page, we have "embedded" a form. Our question is this:

How do we respond to the click event on the TAB as opposed to a click
on the tab page. This has us stumped! For example:
We have 3 tabs: Tab1, Tab2, Tab3.
When Tab1 is active, we have a form that shows on that tabpage.
When Tab2 is clicked, we want the form to close. However, this only
occurs if the user clicks on the actual Tab2 page itself. Can we
somehow capture the click event on the TAB that reads Tab2?

TIA,

Wink
Nov 21 '05 #1
2 3273
Hi,

Here is an example on how to add a tab page change event.

http://www.windowsformsdatagridhelp....3-f5a4dd0afac4

Ken
------------------

"wink martindale" wrote:
Hello All,

We are developing a vb.net app that utilizes a tabbed interface. On
one tab page, we have "embedded" a form. Our question is this:

How do we respond to the click event on the TAB as opposed to a click
on the tab page. This has us stumped! For example:
We have 3 tabs: Tab1, Tab2, Tab3.
When Tab1 is active, we have a form that shows on that tabpage.
When Tab2 is clicked, we want the form to close. However, this only
occurs if the user clicks on the actual Tab2 page itself. Can we
somehow capture the click event on the TAB that reads Tab2?

TIA,

Wink

Nov 21 '05 #2
Ken,

Thanks very much for the response. We solved it (for now!)
At this point, we check the selected index property of the tabcontrol
itself and then close the form based on that. Works well.

Thanks again,

Wink and friends

On Fri, 7 Oct 2005 09:29:01 -0700, "Ken Tucker [MVP]"
<Ke**********@discussions.microsoft.com> wrote:
Hi,

Here is an example on how to add a tab page change event.

http://www.windowsformsdatagridhelp....3-f5a4dd0afac4

Ken
------------------

"wink martindale" wrote:
Hello All,

We are developing a vb.net app that utilizes a tabbed interface. On
one tab page, we have "embedded" a form. Our question is this:

How do we respond to the click event on the TAB as opposed to a click
on the tab page. This has us stumped! For example:
We have 3 tabs: Tab1, Tab2, Tab3.
When Tab1 is active, we have a form that shows on that tabpage.
When Tab2 is clicked, we want the form to close. However, this only
occurs if the user clicks on the actual Tab2 page itself. Can we
somehow capture the click event on the TAB that reads Tab2?

TIA,

Wink


Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Csaba2000 | last post by:
I want to be able to programatically click on the center of an <INPUT type=image ...> element (I only care about IE 5.5+). This should work regardless of whether IE has focus. Normally you would...
7
by: Paul Cooper | last post by:
Dear All, I am working on a piece of Javascript code that needs to detect a mouse-click, shift-click and control-click. The code is not my own - it is a part of a much larger suite of routines....
11
by: Thom Little | last post by:
I would like three states on an icon ... Left Click Right Click Double Click Left Click is fired at least once on a Double Click Is there a good example that shows how to determine if the...
5
by: J McD | last post by:
Hi I have a DataGrid with an ImageButton column. When I click on an imagebutton I get a postback but it doesn't run the OnImgBtnClick method. I can actually comment out the line where I add this...
11
by: Terry Olsen | last post by:
How can I catch a right-click on a DropDownMenuItem?
41
by: JohnR | last post by:
In it's simplest form, assume that I have created a usercontrol, WSToolBarButton that contains a button. I would like to eventually create copies of WSToolBarButton dynamically at run time based...
15
by: cj | last post by:
I would like to have menu items a main menu bar that represent the days of the week. When you click on them they alternate from checked to unchecked. Right now I have 7 subs that look like this...
3
by: | last post by:
I have a control that need to perform one behavior when it's Clicked and a different behavior when it's DoubleClicked. It seems that you can't get a DoubleClick without first getting a Click. So...
5
by: Xu, Qian | last post by:
Hello All, I have some problem by simulating a link click using javascript. The webpage uses a js-library named interface (jQuery like) ------------------------------ <a id="foo" href="#">Try...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.