Click here to Skip to main content
15,901,426 members
Home / Discussions / C#
   

C#

 
Questionvideo playing Pin
sa maq18-Jan-06 0:05
sa maq18-Jan-06 0:05 
QuestionHow to Extract a Key ScanCode in WndProc Pin
redfish3417-Jan-06 23:07
redfish3417-Jan-06 23:07 
AnswerGOT IT! Shooting 2 for 2! Pin
redfish3418-Jan-06 17:09
redfish3418-Jan-06 17:09 
GeneralRe: GOT IT! Shooting 2 for 2! Pin
Dan Neely19-Jan-06 2:18
Dan Neely19-Jan-06 2:18 
Questionwana read a binary file and display its data into text file Pin
geek-age17-Jan-06 22:30
geek-age17-Jan-06 22:30 
AnswerRe: wana read a binary file and display its data into text file Pin
Guffa17-Jan-06 22:53
Guffa17-Jan-06 22:53 
GeneralRe: wana read a binary file and display its data into text file Pin
geek-age17-Jan-06 23:10
geek-age17-Jan-06 23:10 
AnswerRe: wana read a binary file and display its data into text file Pin
Guffa18-Jan-06 0:32
Guffa18-Jan-06 0:32 
Questionusing javascript and xml Pin
imsathy17-Jan-06 21:50
imsathy17-Jan-06 21:50 
QuestionDatagridview determine if row is a new row Pin
CandyMe17-Jan-06 21:47
CandyMe17-Jan-06 21:47 
AnswerRe: Datagridview determine if row is a new row Pin
sathish s17-Jan-06 22:33
sathish s17-Jan-06 22:33 
QuestionHow to do media stremining? Pin
Divyang Mithaiwala17-Jan-06 20:04
Divyang Mithaiwala17-Jan-06 20:04 
AnswerRe: How to do media stremining? Pin
Dave Kreskowiak18-Jan-06 5:18
mveDave Kreskowiak18-Jan-06 5:18 
QuestionWhat's more easy for the machine? Pin
shopi3017-Jan-06 19:43
shopi3017-Jan-06 19:43 
AnswerRe: What's more easy for the machine? Pin
CWIZO17-Jan-06 21:03
CWIZO17-Jan-06 21:03 
AnswerRe: What's more easy for the machine? Pin
Guffa17-Jan-06 21:51
Guffa17-Jan-06 21:51 
GeneralRe: What's more easy for the machine? Pin
shopi3018-Jan-06 1:24
shopi3018-Jan-06 1:24 
GeneralRe: What's more easy for the machine? Pin
shopi3018-Jan-06 1:25
shopi3018-Jan-06 1:25 
AnswerRe: What's more easy for the machine? Pin
DavidNohejl17-Jan-06 21:47
DavidNohejl17-Jan-06 21:47 
GeneralRe: What's more easy for the machine? Pin
shopi3018-Jan-06 1:25
shopi3018-Jan-06 1:25 
QuestionFirewall development using C#(need help) Pin
MACODER17-Jan-06 18:37
MACODER17-Jan-06 18:37 
AnswerRe: Firewall development using C#(need help) Pin
Colin Angus Mackay17-Jan-06 22:54
Colin Angus Mackay17-Jan-06 22:54 
AnswerRe: Firewall development using C#(need help) Pin
Dave Kreskowiak18-Jan-06 5:10
mveDave Kreskowiak18-Jan-06 5:10 
QuestionC# program for transparent screen lock Pin
siwei9917-Jan-06 16:30
siwei9917-Jan-06 16:30 
Question2 TreeView Issues Pin
LighthouseJ17-Jan-06 16:01
LighthouseJ17-Jan-06 16:01 
I'm kinda new to C#. I'm trying to make a program with a TreeView. My program creates 2 nodes when the program loads and all data appears as children to those two nodes. I also have a context menu that is set to change depending on the type of selection made.

The first issue is when the program starts, the first node is selected and it's context menu comes up automatically. How can I stop that? I tried to see if I could make an exception but nothing worked out.

The second is when I use the ContextMenu Show() function, I give it an ordered pair location to anchor the top-left corner. I tried to use various things inside the control to give a position of the mouse but the context menu always appears at 8,8 from the corner of the tree view. How can I figure out what coordinates the mouse was at when it clicked on the item?

Thanks in advance.

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.