Click here to Skip to main content
15,887,349 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: CopyMemory in VB.Net Pin
Knight_Rider18-Jun-09 3:39
Knight_Rider18-Jun-09 3:39 
GeneralRe: CopyMemory in VB.Net Pin
Luc Pattyn18-Jun-09 3:43
sitebuilderLuc Pattyn18-Jun-09 3:43 
GeneralRe: CopyMemory in VB.Net Pin
Knight_Rider18-Jun-09 3:47
Knight_Rider18-Jun-09 3:47 
GeneralRe: CopyMemory in VB.Net Pin
Luc Pattyn18-Jun-09 3:51
sitebuilderLuc Pattyn18-Jun-09 3:51 
GeneralRe: CopyMemory in VB.Net Pin
Knight_Rider18-Jun-09 4:08
Knight_Rider18-Jun-09 4:08 
GeneralRe: CopyMemory in VB.Net Pin
Henry Minute18-Jun-09 5:27
Henry Minute18-Jun-09 5:27 
GeneralRe: CopyMemory in VB.Net Pin
Luc Pattyn18-Jun-09 5:30
sitebuilderLuc Pattyn18-Jun-09 5:30 
QuestionWork on Ctrl +C in PropertyGridSelectedItem Pin
VB 8.018-Jun-09 0:57
VB 8.018-Jun-09 0:57 
i am having a control on a panel and their properties in the propertygrid .

How to identify the Ctrl + C in this method

Public Function PreFilterMessage(ByRef msg As Message) As Boolean Implements IMessageFilter.PreFilterMessage

    Const WM_KEYDOWN As Integer = 256
       If msg.Msg = WM_KEYDOWN Then
           Dim keyCode As Keys = (CType(CType(msg.WParam, Integer), Keys) And Keys.KeyCode)
           If pg.SelectedGridItem.PropertyDescriptor IsNot Nothing Then
               If (pg.SelectedGridItem.PropertyDescriptor.DisplayName = "Picture" Or _
                           pg.SelectedGridItem.PropertyDescriptor.DisplayName = "BackgroundPicture" _
                               And Not keyCode = Keys.Delete And Not (keyCode = Keys.Control And keyCode = Keys.C) _
                               And Not (keyCode = Keys.Control And keyCode = Keys.V) _
                               And Not (keyCode = Keys.Control And keyCode = Keys.X) _
                               And Not (keyCode = Keys.Control And keyCode = Keys.A) _
                               And Not (keyCode = Keys.Control And keyCode = Keys.Z) _
                               And Not (keyCode = Keys.Control And keyCode = Keys.Y)) Then
                   Return True
               End If
           End If
       End If
       Return False
   End Function



what i am doing is i am blocking keyboard characters and only Delete button i am allowing in the propertygrid for picture Property .


When Ctrl C , or ctrl v or ctrl x or ctrl y or ctrl z is pressed i have to work on the control to copy ,paste etc if the the propertygrid.selecteditem is picture also how can i achieve this one ??
QuestionVisual Basic Pin
ibrahimsaa17-Jun-09 20:29
ibrahimsaa17-Jun-09 20:29 
AnswerRe: Visual Basic Pin
Rajesh Anuhya17-Jun-09 20:35
professionalRajesh Anuhya17-Jun-09 20:35 
AnswerRe: Visual Basic Pin
0x3c017-Jun-09 20:47
0x3c017-Jun-09 20:47 
GeneralRe: Visual Basic Pin
LCARS x3217-Jun-09 21:05
LCARS x3217-Jun-09 21:05 
GeneralRe: Visual Basic Pin
0x3c017-Jun-09 23:24
0x3c017-Jun-09 23:24 
GeneralRe: Visual Basic Pin
Netblue18-Jun-09 9:05
Netblue18-Jun-09 9:05 
GeneralRe: Visual Basic Pin
dan!sh 17-Jun-09 21:25
professional dan!sh 17-Jun-09 21:25 
GeneralRe: Visual Basic Pin
0x3c017-Jun-09 23:36
0x3c017-Jun-09 23:36 
AnswerRe: Visual Basic Pin
Christian Graus17-Jun-09 21:54
protectorChristian Graus17-Jun-09 21:54 
JokeRe: Visual Basic Pin
Tom Deketelaere17-Jun-09 23:29
professionalTom Deketelaere17-Jun-09 23:29 
GeneralRe: Visual Basic Pin
Luc Pattyn18-Jun-09 0:47
sitebuilderLuc Pattyn18-Jun-09 0:47 
GeneralRe: Visual Basic Pin
Tom Deketelaere18-Jun-09 1:23
professionalTom Deketelaere18-Jun-09 1:23 
GeneralRe: Visual Basic Pin
Netblue18-Jun-09 9:07
Netblue18-Jun-09 9:07 
AnswerRe: Visual Basic Pin
Jon_Boy18-Jun-09 1:33
Jon_Boy18-Jun-09 1:33 
AnswerRe: Visual Basic Pin
Steven J Jowett18-Jun-09 5:00
Steven J Jowett18-Jun-09 5:00 
QuestionMicrosoft Cluster Administration Pin
dhanashree_117-Jun-09 9:16
dhanashree_117-Jun-09 9:16 
AnswerRe: Microsoft Cluster Administration Pin
Dave Kreskowiak17-Jun-09 10:24
mveDave Kreskowiak17-Jun-09 10:24 

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.