Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / June 2007

Tip: Looking for answers? Try searching our database.

TabPage Control OnClick Event

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Fred Chateau - 01 Jun 2007 22:34 GMT
I am trying to run code that binds a DataGridView control on a TabPage. I
inserted the code in the TabPage_Click event, but when the tab is clicked,
the event never fires.

I understand it is necessary to set the StandardClick style to enabled. I
can't seem to find a StandardClick style on the TabControl, but I used the
following code in the Form_Load event.

this.SetStyle(ControlStyles.StandardClick, true);
this.UpdateStyles();

Still no click event...

Am I doing something wrong?

Signature

Regards,

Fred Chateau
http://hotelmotelnow.com

Ashot Geodakov - 01 Jun 2007 22:52 GMT
The parent TabControl has a few events that you can handle:

Selecting()
SelectedIndexChanged()
Selected()

>I am trying to run code that binds a DataGridView control on a TabPage. I
>inserted the code in the TabPage_Click event, but when the tab is clicked,
[quoted text clipped - 10 lines]
>
> Am I doing something wrong?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.