C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !






How to add shotcut for tabpages of tabcontrol


Posted Date: 05 Sep 2008      Total Responses: 1

Posted By: Anu.A.Palavila       Member Level: Gold     Points: 1



In my C# windows form I have a tabcontrol with 3 tabpages. How can I add shotcut key so that while the tabcontrol is loaded I can visit each tab page through the shortcut key




Responses

Author: vipul    05 Sep 2008Member Level: DiamondRating:     Points: -20
hi,
for that you used this way
private void frmReceiptWare_KeyDown(object sender, KeyEventArgs e)
{
if (e.Alt)
{
if (e.KeyCode == Keys.E)
{
tabControl1.SelectTab(0);
e.Handled = true;
}
else if (e.KeyCode == Keys.S)
{
tabControl1.SelectTab(1);
e.Handled = true;
}
else if (e.KeyCode == Keys.C)
{
tabControl1.SelectTab(2);
e.Handled = true;

}

}
}

vipul,
http://dongavipul.blogspot.com


Post Reply
You must Sign In to post a response.
Next : Multi-threading
Previous : Error Occured while generating report
Return to Discussion Forum
Post New Message
Category: .NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design

silicone halloween mask

Contact Us    Privacy Policy    Terms Of Use