Click here to Skip to main content
15,918,808 members
Home / Discussions / Windows Forms
   

Windows Forms

 
GeneralRe: how to select and resize already drawn shape in gdi+ Pin
Er.bRijal26-Mar-08 12:46
Er.bRijal26-Mar-08 12:46 
GeneralRe: how to select and resize already drawn shape in gdi+ Pin
Christian Graus26-Mar-08 12:55
protectorChristian Graus26-Mar-08 12:55 
GeneralRe: how to select and resize already drawn shape in gdi+ Pin
Er.bRijal26-Mar-08 13:11
Er.bRijal26-Mar-08 13:11 
GeneralRe: how to select and resize already drawn shape in gdi+ Pin
Christian Graus26-Mar-08 14:32
protectorChristian Graus26-Mar-08 14:32 
GeneralNeed help understanding how Pin
Core-CA24-Mar-08 2:19
Core-CA24-Mar-08 2:19 
GeneralRe: Need help understanding how Pin
Christian Graus26-Mar-08 12:45
protectorChristian Graus26-Mar-08 12:45 
GeneralRight click on Data grid view cell content Pin
skghosh23-Mar-08 19:30
skghosh23-Mar-08 19:30 
GeneralRe: Right click on Data grid view cell content Pin
John_Adams24-Mar-08 20:23
John_Adams24-Mar-08 20:23 
Hi,

In order to achive the desired behavior you need to add ContextMenuStrip on the form. Then you need to add the MenuItems for the context menu and write code for the respective MenuItem (i.e., for Delete or ADD). Then you can attach the ContextMenuStrip to your grid on FormLoad (or any other event as per your requirement) in the following manner:

BEGIN CODE

this.dataGridView1.ContextMenuStrip=this.contextMenuStrip1

END CODE

I hope this helps Smile | :) .

Regards,
John Adams
ComponentOne LLC

Questionrestrict copy pasting on textbox of window form Pin
Member 393961223-Mar-08 19:17
Member 393961223-Mar-08 19:17 
GeneralRe: restrict copy pasting on textbox of window form [modified] Pin
Giorgi Dalakishvili23-Mar-08 21:18
mentorGiorgi Dalakishvili23-Mar-08 21:18 
GeneralGetting TopMost MDIChild Pin
Ylno22-Mar-08 10:08
Ylno22-Mar-08 10:08 
GeneralRe: Getting TopMost MDIChild Pin
Eduard Keilholz26-Mar-08 1:10
Eduard Keilholz26-Mar-08 1:10 
GeneralRe: Getting TopMost MDIChild Pin
Luis Alonso Ramos30-Mar-08 15:39
Luis Alonso Ramos30-Mar-08 15:39 
GeneralMessageBox Popup in Windows Service Pin
vijay_8321-Mar-08 21:37
vijay_8321-Mar-08 21:37 
GeneralRe: MessageBox Popup in Windows Service Pin
Eduard Keilholz25-Mar-08 21:12
Eduard Keilholz25-Mar-08 21:12 
GeneralRe: MessageBox Popup in Windows Service Pin
Herman<T>.Instance1-Apr-08 23:40
Herman<T>.Instance1-Apr-08 23:40 
GeneralRaising Events from IF hosted winfrom control to container(aspx) page Pin
Kodanda Pani21-Mar-08 6:22
Kodanda Pani21-Mar-08 6:22 
GeneralRe: Raising Events from IF hosted winfrom control to container(aspx) page Pin
N a v a n e e t h21-Mar-08 20:24
N a v a n e e t h21-Mar-08 20:24 
GeneralRe: Raising Events from IF hosted winfrom control to container(aspx) page Pin
Pete O'Hanlon22-Mar-08 9:19
mvePete O'Hanlon22-Mar-08 9:19 
GeneralScrollin bug Pin
dem21919-Mar-08 9:48
dem21919-Mar-08 9:48 
GeneralC# --&gt; J# Pin
mr.me19-Mar-08 6:57
mr.me19-Mar-08 6:57 
GeneralRe: C# --&gt; J# Pin
led mike19-Mar-08 7:04
led mike19-Mar-08 7:04 
GeneralRe: C# --&gt; J# Pin
Dave Kreskowiak19-Mar-08 10:29
mveDave Kreskowiak19-Mar-08 10:29 
GeneralRe: C# --&gt; J# Pin
Paul Conrad20-Mar-08 6:04
professionalPaul Conrad20-Mar-08 6:04 
GeneralRe: C# --&gt; J# Pin
Luc Pattyn21-Mar-08 7:20
sitebuilderLuc Pattyn21-Mar-08 7: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.