Click here to Skip to main content
15,890,123 members
Home / Discussions / C#
   

C#

 
QuestionBrowse For Folder Pin
Abdul Rahman Hamidy3-Nov-08 5:38
Abdul Rahman Hamidy3-Nov-08 5:38 
AnswerRe: Browse For Folder Pin
J4amieC3-Nov-08 6:03
J4amieC3-Nov-08 6:03 
AnswerRe: Browse For Folder Pin
Dave Kreskowiak3-Nov-08 6:12
mveDave Kreskowiak3-Nov-08 6:12 
QuestionRSS Feed Reader for .NET Windows Application Pin
saanj3-Nov-08 4:31
saanj3-Nov-08 4:31 
AnswerRe: RSS Feed Reader for .NET Windows Application Pin
Mircea Puiu3-Nov-08 4:41
Mircea Puiu3-Nov-08 4:41 
GeneralRe: RSS Feed Reader for .NET Windows Application Pin
saanj3-Nov-08 7:09
saanj3-Nov-08 7:09 
QuestionDymatic CheckBox in TableLayoutPanel Pin
yulien10203-Nov-08 4:15
yulien10203-Nov-08 4:15 
QuestionContextMenuStrip show problem Pin
josip cagalj3-Nov-08 4:11
josip cagalj3-Nov-08 4:11 
Hi to all,
for start let me say I'm new to c# but I have some experience in VC++. This is one of my first app in c# and off course I bumped into a small problem.
I wont to display contextmenustrip when user press right mouse button, I'm having trouble with coordinates, they are funny out of form. Of course I've tried with clienttoscreen or screentoclient but nothing changes. Here is my code
private void treeView_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e)
{
    if (e.Button != MouseButtons.Right) return;
    TreeNode curNode = e.Node;
    treeView.SelectedNode = curNode;
    ContextMenuStrip menuStrip = this.cmsState;
    Point cPt = new Point(e.X, e.Y);
    PointToScreen(cPt);
    menuStrip.Show(cPt);
}

menu appears OK but on wild coordinates, where am I wrong?

Thanks!
AnswerRe: ContextMenuStrip show problem Pin
Mircea Puiu3-Nov-08 4:38
Mircea Puiu3-Nov-08 4:38 
GeneralRe: ContextMenuStrip show problem Pin
josip cagalj3-Nov-08 20:07
josip cagalj3-Nov-08 20:07 
QuestionMerge dll files into one dll file Pin
Sami Sammour3-Nov-08 3:37
Sami Sammour3-Nov-08 3:37 
AnswerRe: Merge dll files into one dll file Pin
Dave Kreskowiak3-Nov-08 3:54
mveDave Kreskowiak3-Nov-08 3:54 
RantRe: Merge dll files into one dll file Pin
Paul Conrad3-Nov-08 4:57
professionalPaul Conrad3-Nov-08 4:57 
AnswerRe: Merge dll files into one dll file Pin
Giorgi Dalakishvili3-Nov-08 8:05
mentorGiorgi Dalakishvili3-Nov-08 8:05 
QuestionMaking Forms Work on Different Screen Resolutions Programatically... Pin
swjam3-Nov-08 1:52
swjam3-Nov-08 1:52 
AnswerRe: Making Forms Work on Different Screen Resolutions Programatically... Pin
EliottA3-Nov-08 1:54
EliottA3-Nov-08 1:54 
AnswerRe: Making Forms Work on Different Screen Resolutions Programatically... Pin
#realJSOP3-Nov-08 1:56
mve#realJSOP3-Nov-08 1:56 
GeneralRe: Making Forms Work on Different Screen Resolutions Programatically... Pin
swjam3-Nov-08 2:10
swjam3-Nov-08 2:10 
GeneralRe: Making Forms Work on Different Screen Resolutions Programatically... Pin
Dan Neely3-Nov-08 2:22
Dan Neely3-Nov-08 2:22 
GeneralRe: Making Forms Work on Different Screen Resolutions Programatically... Pin
#realJSOP3-Nov-08 2:33
mve#realJSOP3-Nov-08 2:33 
AnswerRe: Making Forms Work on Different Screen Resolutions Programatically... Pin
Giorgi Dalakishvili3-Nov-08 2:36
mentorGiorgi Dalakishvili3-Nov-08 2:36 
AnswerRe: Making Forms Work on Different Screen Resolutions Programatically... Pin
Alan Balkany3-Nov-08 4:03
Alan Balkany3-Nov-08 4:03 
QuestionAbout Sip implementation Pin
waqas shah3-Nov-08 1:13
waqas shah3-Nov-08 1:13 
AnswerRe: About Sip implementation Pin
Eddy Vluggen3-Nov-08 1:46
professionalEddy Vluggen3-Nov-08 1:46 
AnswerRe: About Sip implementation Pin
AhsanS3-Nov-08 1:54
AhsanS3-Nov-08 1:54 

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.