Click here to Skip to main content
15,894,038 members
Home / Discussions / C#
   

C#

 
GeneralRe: Reverse Engineering Pin
emran8341-Feb-06 2:03
emran8341-Feb-06 2:03 
GeneralRe: Reverse Engineering Pin
Colin Angus Mackay1-Feb-06 2:26
Colin Angus Mackay1-Feb-06 2:26 
GeneralRe: Reverse Engineering Pin
emran8341-Feb-06 9:08
emran8341-Feb-06 9:08 
GeneralRe: Reverse Engineering Pin
Colin Angus Mackay1-Feb-06 11:25
Colin Angus Mackay1-Feb-06 11:25 
GeneralRe: Reverse Engineering Pin
emran8341-Feb-06 18:21
emran8341-Feb-06 18:21 
GeneralRe: Reverse Engineering Pin
Colin Angus Mackay1-Feb-06 20:34
Colin Angus Mackay1-Feb-06 20:34 
GeneralRe: Edit feature (Cut, Copy, Paste) Pin
emran8344-Feb-06 15:00
emran8344-Feb-06 15:00 
GeneralRe: Edit feature (Cut, Copy, Paste) Pin
Colin Angus Mackay4-Feb-06 15:11
Colin Angus Mackay4-Feb-06 15:11 
You would be best posting a new topic so that everyone sees it. That way you are more likely to get a response from someone.

You might like to look at the MEMENTO pattern. It is a design pattern that helps to hold state so that it can be used elsewhere. Typically it is found in Undo/Redo code, but I think it would lend itself quite well to cut/copy/paste operations also.


emran834 wrote:
But i cant get the clue how can i determine who has focus


I'm not an expert on WinForms applications, but if that is the only way to find the control with focus then that's what you have to do.

If you have your own control classes then you might want to consider implementing an interface for the cut/copy/paste operations and having the control also inherit from the interface. Then in your loop you can easily find if the control supports cut/copy/paste as you can check for the interface. e.g.
if (theControl is ICutCopyPaste) {}
Where ICutCopyPaste is the name of the interface that you might create.



ColinMackay.net
"Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucius
"If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell

QuestionNumericUpDowns Controled From Screen Pin
somebody_tr31-Jan-06 21:02
somebody_tr31-Jan-06 21:02 
QuestionDebug Pin
rakesh_nits31-Jan-06 20:49
rakesh_nits31-Jan-06 20:49 
AnswerRe: Debug Pin
lordofcsharp31-Jan-06 20:59
lordofcsharp31-Jan-06 20:59 
AnswerRe: Debug Pin
Divyang Mithaiwala31-Jan-06 21:23
Divyang Mithaiwala31-Jan-06 21:23 
Questionretrive the value from datagrid with checkbox Pin
Navas.M31-Jan-06 20:01
Navas.M31-Jan-06 20:01 
AnswerRe: retrive the value from datagrid with checkbox Pin
luckyv1-Feb-06 6:17
luckyv1-Feb-06 6:17 
QuestionSimple XML Parsing? Pin
davedunn31-Jan-06 19:54
davedunn31-Jan-06 19:54 
AnswerRe: Simple XML Parsing? Pin
Kodanda Pani31-Jan-06 20:29
Kodanda Pani31-Jan-06 20:29 
QuestionDataBinding 2 tables Pin
elraton31-Jan-06 18:35
elraton31-Jan-06 18:35 
QuestionDetailed Steps to code migration Pin
MACODER31-Jan-06 18:31
MACODER31-Jan-06 18:31 
AnswerRe: Detailed Steps to code migration Pin
Dave Kreskowiak1-Feb-06 5:42
mveDave Kreskowiak1-Feb-06 5:42 
QuestionSpecifying range to the property in PropertyGrid Pin
mr_tawan31-Jan-06 18:17
mr_tawan31-Jan-06 18:17 
AnswerRe: Specifying range to the property in PropertyGrid Pin
Kodanda Pani31-Jan-06 20:10
Kodanda Pani31-Jan-06 20:10 
GeneralRe: Specifying range to the property in PropertyGrid Pin
mr_tawan31-Jan-06 20:24
mr_tawan31-Jan-06 20:24 
GeneralRe: Specifying range to the property in PropertyGrid Pin
mr_tawan31-Jan-06 20:37
mr_tawan31-Jan-06 20:37 
GeneralRe: Specifying range to the property in PropertyGrid Pin
leppie31-Jan-06 22:17
leppie31-Jan-06 22:17 
QuestionHow to convert a VB 6.0 project to C# .NET project Pin
MACODER31-Jan-06 18:14
MACODER31-Jan-06 18:14 

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.