Click here to Skip to main content
15,910,009 members
Home / Discussions / Windows Forms
   

Windows Forms

 
AnswerRe: Show Loading Image Pin
Richard MacCutchan26-Sep-09 4:05
mveRichard MacCutchan26-Sep-09 4:05 
GeneralRe: Show Loading Image Pin
swapnil_bhanagle28-Sep-09 16:23
swapnil_bhanagle28-Sep-09 16:23 
QuestionImage Effects in Windows Application Pin
Sachin Dubey25-Sep-09 21:07
Sachin Dubey25-Sep-09 21:07 
AnswerRe: Image Effects in Windows Application Pin
freakyit29-Sep-09 4:33
freakyit29-Sep-09 4:33 
QuestionHow to tell "cut" from "copy" upon pasting Pin
michalJ24-Sep-09 14:40
michalJ24-Sep-09 14:40 
AnswerRe: How to tell "cut" from "copy" upon pasting Pin
Luc Pattyn24-Sep-09 15:04
sitebuilderLuc Pattyn24-Sep-09 15:04 
GeneralRe: How to tell "cut" from "copy" upon pasting Pin
michalJ24-Sep-09 15:10
michalJ24-Sep-09 15:10 
GeneralRe: How to tell "cut" from "copy" upon pasting Pin
michalJ24-Sep-09 15:30
michalJ24-Sep-09 15:30 
I guess I know now. It is a memory stream that is placed in Clipboard that tell whether to cut or copy only

const String PREFFERED_DROP_EFFECT_SHELL_CONSTANT = "Preferred DropEffect";
private bool IsItCutOperation(IDataObject dataObject)
        {
            Object isCutOperationMS = dataObject.GetData(PREFFERED_DROP_EFFECT_SHELL_CONSTANT) as MemoryStream;
            if (isCutOperationMS == null)
                return false;

            MemoryStream ms = isCutOperationMS as MemoryStream;

            byte[] array = new byte[ms.Length];
            ms.Read(array, 0, (int)ms.Length);
            
            if(array[0] == (byte)(2))   // 5 copy, 2 cut 
            {
                return true;
            }

            return false;
        }

Thanks,
Michal
GeneralRe: How to tell "cut" from "copy" upon pasting Pin
Luc Pattyn24-Sep-09 17:02
sitebuilderLuc Pattyn24-Sep-09 17:02 
AnswerRe: How to tell "cut" from "copy" upon pasting Pin
michalJ25-Sep-09 0:51
michalJ25-Sep-09 0:51 
GeneralRe: How to tell "cut" from "copy" upon pasting Pin
Luc Pattyn25-Sep-09 4:00
sitebuilderLuc Pattyn25-Sep-09 4:00 
QuestionFillByCountry From MSSQL Pin
Sider8924-Sep-09 10:40
Sider8924-Sep-09 10:40 
AnswerRe: FillByCountry From MSSQL Pin
Richard MacCutchan24-Sep-09 23:26
mveRichard MacCutchan24-Sep-09 23:26 
QuestiontextBox focus on form Closing Pin
Ali el24-Sep-09 0:21
Ali el24-Sep-09 0:21 
AnswerRe: textBox focus on form Closing Pin
Luc Pattyn24-Sep-09 2:01
sitebuilderLuc Pattyn24-Sep-09 2:01 
QuestionImages Changing On Timer Tick Pin
Sachin Dubey23-Sep-09 22:25
Sachin Dubey23-Sep-09 22:25 
AnswerRe: Images Changing On Timer Tick Pin
Giorgi Dalakishvili24-Sep-09 1:23
mentorGiorgi Dalakishvili24-Sep-09 1:23 
GeneralRe: Images Changing On Timer Tick Pin
Sachin Dubey24-Sep-09 1:30
Sachin Dubey24-Sep-09 1:30 
GeneralRe: Images Changing On Timer Tick Pin
Ashfield24-Sep-09 1:37
Ashfield24-Sep-09 1:37 
AnswerRe: Images Changing On Timer Tick Pin
Luc Pattyn24-Sep-09 2:03
sitebuilderLuc Pattyn24-Sep-09 2:03 
GeneralRe: Images Changing On Timer Tick Pin
Sachin Dubey24-Sep-09 2:05
Sachin Dubey24-Sep-09 2:05 
QuestionHow to implement an intellisense style popup window? Pin
prabbit201023-Sep-09 20:16
prabbit201023-Sep-09 20:16 
AnswerRe: How to implement an intellisense style popup window? Pin
Shameel19-Oct-09 0:47
professionalShameel19-Oct-09 0:47 
GeneralRe: How to implement an intellisense style popup window? Pin
prabbit201021-Oct-09 0:14
prabbit201021-Oct-09 0:14 
QuestionDataGridView ScrollBars [solved] Pin
PIEBALDconsult23-Sep-09 14:47
mvePIEBALDconsult23-Sep-09 14:47 

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.