Click here to Skip to main content
15,914,016 members
Home / Discussions / C#
   

C#

 
AnswerRe: Ignore CrossPost Pin
kstls14-Nov-09 0:39
kstls14-Nov-09 0:39 
GeneralRe: Ignore CrossPost Pin
sparlay_pk14-Nov-09 0:56
sparlay_pk14-Nov-09 0:56 
GeneralRe: Ignore CrossPost Pin
kstls14-Nov-09 1:07
kstls14-Nov-09 1:07 
QuestionTABPAGE Pin
sachees12313-Nov-09 20:16
sachees12313-Nov-09 20:16 
AnswerRe: TABPAGE Pin
Shameel13-Nov-09 21:26
professionalShameel13-Nov-09 21:26 
AnswerRe: TABPAGE Pin
OriginalGriff13-Nov-09 21:56
mveOriginalGriff13-Nov-09 21:56 
GeneralRe: TABPAGE Pin
sachees12313-Nov-09 22:27
sachees12313-Nov-09 22:27 
GeneralRe: TABPAGE Pin
OriginalGriff13-Nov-09 23:36
mveOriginalGriff13-Nov-09 23:36 
So, just to recap, what you want is:

1) You have a tab control, with tab pages.
2) When you click on the tab, you want an event to fire.
3) You have tried "mouse_click" for the page.

I say again: try the control. I created a form, with a tab control. I added handlers for the Click and MouseClick events of the tab control. Each handler has a MessageBox.Show command with a different string to display. When I click on the tab, it selects the appropriate tab page, and I get two message boxes. What have I done, that you haven't, or that you have done that I haven't?

namespace Testy
    {
    public partial class frmTabs : Form
        {
        public frmTabs()
            {
            InitializeComponent();
            }

        private void tabControl1_Click(object sender, EventArgs e)
            {
            MessageBox.Show("He Clicks! He Scores!");
            }

        private void tabControl1_MouseClick(object sender, MouseEventArgs e)
            {
            MessageBox.Show("He Clicks the Mouse! He Misses!");
            }
        }
    }


No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.

This message is made of fully recyclable Zeros and Ones

"Rumour has it that if you play Microsoft CDs backwards you will hear Satanic messages.Worse still, is that if you play them forwards they will install Windows"

GeneralRe: TABPAGE Pin
sachees12314-Nov-09 20:43
sachees12314-Nov-09 20:43 
GeneralRe: TABPAGE Pin
OriginalGriff14-Nov-09 21:51
mveOriginalGriff14-Nov-09 21:51 
GeneralRe: TABPAGE Pin
sachees12314-Nov-09 21:50
sachees12314-Nov-09 21:50 
GeneralRe: TABPAGE Pin
OriginalGriff14-Nov-09 21:58
mveOriginalGriff14-Nov-09 21:58 
GeneralRe: TABPAGE Pin
sachees12315-Nov-09 0:31
sachees12315-Nov-09 0:31 
GeneralRe: TABPAGE Pin
OriginalGriff15-Nov-09 0:35
mveOriginalGriff15-Nov-09 0:35 
Jokeabout your Signature Pin
rajeeshrer13-Nov-09 22:56
rajeeshrer13-Nov-09 22:56 
GeneralRe: about your Signature Pin
OriginalGriff13-Nov-09 23:37
mveOriginalGriff13-Nov-09 23:37 
AnswerRe: TABPAGE Pin
sparlay_pk13-Nov-09 23:53
sparlay_pk13-Nov-09 23:53 
GeneralRe: TABPAGE Pin
sachees12314-Nov-09 21:09
sachees12314-Nov-09 21:09 
Questionsession Pin
bahar313-Nov-09 19:17
bahar313-Nov-09 19:17 
Answer[Message Deleted] Pin
rajeeshrer13-Nov-09 21:28
rajeeshrer13-Nov-09 21:28 
GeneralRe: session Pin
Shameel13-Nov-09 23:39
professionalShameel13-Nov-09 23:39 
AnswerRe: session Pin
Dave Kreskowiak14-Nov-09 1:30
mveDave Kreskowiak14-Nov-09 1:30 
Questioncookie Pin
bahar313-Nov-09 19:10
bahar313-Nov-09 19:10 
AnswerRe: cookie Pin
Dave Kreskowiak14-Nov-09 1:28
mveDave Kreskowiak14-Nov-09 1:28 
QuestionHow to invoke or run a MATlAB (*.m) file through C # code Pin
csetopper_bhanu13-Nov-09 17:22
csetopper_bhanu13-Nov-09 17:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.