Click here to Skip to main content
15,896,063 members
Home / Discussions / C#
   

C#

 
GeneralRe: This is very strange... Pin
Nick Z.29-Apr-05 15:01
Nick Z.29-Apr-05 15:01 
QuestionManagement namespace a member of System? Pin
CTaylor8929-Apr-05 10:32
CTaylor8929-Apr-05 10:32 
AnswerRe: Management namespace a member of System? Pin
Fernando Soto29-Apr-05 11:06
Fernando Soto29-Apr-05 11:06 
GeneralRe: Management namespace a member of System? Pin
CTaylor8929-Apr-05 11:55
CTaylor8929-Apr-05 11:55 
GeneralRe: Management namespace a member of System? Pin
Anonymous30-Apr-05 23:32
Anonymous30-Apr-05 23:32 
GeneralContext menu for TabControl Pin
giplet29-Apr-05 10:25
giplet29-Apr-05 10:25 
GeneralRe: Context menu for TabControl Pin
Ashok Dhamija29-Apr-05 23:07
Ashok Dhamija29-Apr-05 23:07 
GeneralRe: Context menu for TabControl Pin
giplet30-Apr-05 5:29
giplet30-Apr-05 5:29 
Thanks for your reply. First of all I want to make one thing clear. I'm trying to click the actual tab, not the tabpage. I also want to use the same context menu for different tabs. Otherwise I would have no trouble finding out which tab was right clicked.

I have already tried your first aproach with one difference. I create the tabs dynamicly with the following code (somewhat pseudo):

TabPage tpNew = new TabPage();
tpNew.Text = "Some text";
tpNew.MouseUp += new MouseEventHandler(tpNew_MouseUp);
tcTabControl.TabPages.Add(tpNew);

The eventhandler tpNew_MouseUp is never called.


I can hook up the context menu a number of ways that I am aware of. Even on the TabControl itself, but I have no idea how to find out what tab were right clicked. Is it possible to fins out which of the headers that are under the X and Y coordinates when the mouse was clicked?
GeneralChanging standard windows title bars Pin
dubshell29-Apr-05 10:12
dubshell29-Apr-05 10:12 
Generalconnect to oracle without DSN Pin
IvyLee29-Apr-05 9:58
IvyLee29-Apr-05 9:58 
GeneralDrawString with extra spaces Pin
Werdna29-Apr-05 9:11
Werdna29-Apr-05 9:11 
QuestionWindows Installer C# api? Pin
DStarr29-Apr-05 8:48
DStarr29-Apr-05 8:48 
GeneralMdi form AutoScroll property Pin
M. Aamir Malik29-Apr-05 7:11
M. Aamir Malik29-Apr-05 7:11 
GeneralInstalling program Pin
Robske29-Apr-05 7:04
Robske29-Apr-05 7:04 
GeneralRe: Installing program Pin
Dave Kreskowiak29-Apr-05 7:39
mveDave Kreskowiak29-Apr-05 7:39 
GeneralRe: Installing program Pin
Fernando Soto29-Apr-05 7:44
Fernando Soto29-Apr-05 7:44 
GeneralRe: Installing program Pin
MoustafaS29-Apr-05 14:36
MoustafaS29-Apr-05 14:36 
GeneralCalling unmanaged code Pin
Frank Olorin Rizzi29-Apr-05 6:35
Frank Olorin Rizzi29-Apr-05 6:35 
GeneralRe: Calling unmanaged code Pin
Dan_P29-Apr-05 15:12
Dan_P29-Apr-05 15:12 
GeneralRe: Calling unmanaged code Pin
Frank Olorin Rizzi30-Apr-05 1:31
Frank Olorin Rizzi30-Apr-05 1:31 
GeneralProject Ideas Pin
WillemM29-Apr-05 5:01
WillemM29-Apr-05 5:01 
GeneralRe: Project Ideas Pin
fizikci30-Apr-05 9:55
fizikci30-Apr-05 9:55 
GeneralRe: Project Ideas Pin
WillemM7-May-05 6:04
WillemM7-May-05 6:04 
GeneralRe: Project Ideas Pin
WillemM8-May-05 7:24
WillemM8-May-05 7:24 
QuestionIs their some api in windows for the detection of when a new window or form opens? Pin
FocusedWolf29-Apr-05 4:31
FocusedWolf29-Apr-05 4:31 

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.