Click here to Skip to main content
15,920,217 members
Home / Discussions / C#
   

C#

 
AnswerRe: Creating a new table of smaller dataset. Pin
rudy.net11-Nov-05 11:04
rudy.net11-Nov-05 11:04 
QuestionHow to rename mapped drive? Pin
Shumsky11-Nov-05 8:51
Shumsky11-Nov-05 8:51 
QuestionBinary Formatter problems Pin
Marc Clifton11-Nov-05 8:37
mvaMarc Clifton11-Nov-05 8:37 
AnswerRe: Binary Formatter problems Pin
leppie11-Nov-05 10:47
leppie11-Nov-05 10:47 
AnswerRe: Binary Formatter problems Pin
Joe Woodbury11-Nov-05 20:30
professionalJoe Woodbury11-Nov-05 20:30 
QuestionWhy is there a ContextMenu Property on TreeView? Pin
SeanCM11-Nov-05 8:35
SeanCM11-Nov-05 8:35 
AnswerRe: Why is there a ContextMenu Property on TreeView? Pin
SeanCM11-Nov-05 8:46
SeanCM11-Nov-05 8:46 
AnswerRe: Why is there a ContextMenu Property on TreeView? Pin
Colin Angus Mackay11-Nov-05 23:38
Colin Angus Mackay11-Nov-05 23:38 
Your first attempt looked the best. All that you were doing wrong was converting the point to the client coordinates of the Form rather than the client coordinates of the TreeView. I'm guessing the 80 pixels off the mark was because your tree view is 80 pixels from the top of the form.
Point rawCursorPosition = Cursor.Position;
Point clientCursorPosition = TreeView.PointToClient(rawCursorPosition);
TreeNode node = TreeView.GetNodeAt(clientCursorPosition) as TreeNode;	


Does this help?


My: Blog | Photos

"Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucious


GeneralRe: Why is there a ContextMenu Property on TreeView? Pin
SeanCM14-Nov-05 6:33
SeanCM14-Nov-05 6:33 
Questionsidebar Pin
faviochilo11-Nov-05 8:26
faviochilo11-Nov-05 8:26 
AnswerRe: sidebar Pin
leppie11-Nov-05 10:55
leppie11-Nov-05 10:55 
QuestionCreating a popup from Pin
naglbitur11-Nov-05 7:28
naglbitur11-Nov-05 7:28 
AnswerRe: Creating a popup from Pin
Wjousts11-Nov-05 7:55
Wjousts11-Nov-05 7:55 
GeneralRe: Creating a popup from Pin
naglbitur11-Nov-05 9:36
naglbitur11-Nov-05 9:36 
GeneralRe: Creating a popup from Pin
Wjousts11-Nov-05 10:59
Wjousts11-Nov-05 10:59 
Questionsend webcam stream over tcp ip Pin
toan198111-Nov-05 7:15
toan198111-Nov-05 7:15 
QuestionEventInfo.GetRaiseMethod() - anyone made it work? Pin
vSoares11-Nov-05 6:37
professionalvSoares11-Nov-05 6:37 
AnswerRe: EventInfo.GetRaiseMethod() - anyone made it work? Pin
leppie11-Nov-05 7:07
leppie11-Nov-05 7:07 
QuestionCreating Quick Launch like Applications Pin
jgallen2311-Nov-05 5:54
jgallen2311-Nov-05 5:54 
AnswerRe: Creating Quick Launch like Applications Pin
Dwayner7911-Nov-05 8:22
Dwayner7911-Nov-05 8:22 
GeneralRe: Creating Quick Launch like Applications Pin
Colin Angus Mackay12-Nov-05 3:27
Colin Angus Mackay12-Nov-05 3:27 
GeneralRe: Creating Quick Launch like Applications Pin
jgallen2313-Nov-05 18:19
jgallen2313-Nov-05 18:19 
QuestionDumping the DataGrid into a txt file Pin
zaboboa11-Nov-05 5:29
zaboboa11-Nov-05 5:29 
AnswerRe: Dumping the DataGrid into a txt file Pin
whizzs11-Nov-05 7:26
whizzs11-Nov-05 7:26 
QuestionProblems with SharpZipLib Pin
Ricardo Mendes11-Nov-05 5:20
Ricardo Mendes11-Nov-05 5:20 

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.