Click here to Skip to main content
15,905,238 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to bring pointer to the beginning of file(streamreader) Pin
mav.northwind29-Apr-05 21:09
mav.northwind29-Apr-05 21:09 
GeneralA problem displaying transparant-background images in DirectX Pin
arik_a29-Apr-05 20:24
arik_a29-Apr-05 20:24 
General.NET WebService Problem Pin
Praveen Nayak29-Apr-05 19:51
Praveen Nayak29-Apr-05 19:51 
GeneralSystemtray capture Pin
dubshell29-Apr-05 19:47
dubshell29-Apr-05 19:47 
Generalusb interfacing in c#.net Pin
ahsan14129-Apr-05 18:49
ahsan14129-Apr-05 18:49 
GeneralRe: usb interfacing in c#.net Pin
eggie529-Apr-05 20:31
eggie529-Apr-05 20:31 
GeneralAcessing Usb Device in C# Pin
majidbhutta29-Apr-05 17:28
majidbhutta29-Apr-05 17:28 
GeneralRe: Acessing Usb Device in C# Pin
eggie529-Apr-05 20:33
eggie529-Apr-05 20:33 
GeneralRe: Acessing Usb Device in C# Pin
Dave Kreskowiak30-Apr-05 3:38
mveDave Kreskowiak30-Apr-05 3:38 
GeneralRe: Acessing Usb Device in C# Pin
Luis Alonso Ramos30-Apr-05 8:31
Luis Alonso Ramos30-Apr-05 8:31 
GeneralSocket.LocalEndPoint is not returning expected value. Pin
johtib29-Apr-05 13:19
johtib29-Apr-05 13:19 
GeneralRe: Socket.LocalEndPoint is not returning expected value. Pin
EssOEss30-Apr-05 19:55
EssOEss30-Apr-05 19:55 
GeneralRe: Socket.LocalEndPoint is not returning expected value. Pin
johtib30-Apr-05 22:37
johtib30-Apr-05 22:37 
GeneralRe: Socket.LocalEndPoint is not returning expected value. Pin
EssOEss1-May-05 0:44
EssOEss1-May-05 0:44 
GeneralThis is very strange... Pin
Nick Z.29-Apr-05 12:41
Nick Z.29-Apr-05 12:41 
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 

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.