|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Designer and [DllImport]I have an image button that I have written code for and up until I added the
following code, it worked well with the Designer. [DllImport("coredll.dll")] //imports the coredll.dll used for sound private static extern bool PlaySound( ...) Even if I put the code in a separate class and file, by just including it in the Solution seems to make the Designer not update changes made to the Image Button's properties. For instance, the image button used to display text when updated in the Designer. Now, I always see the control's type in the button. Does anyone know how I can include P/Invoke code and still have the Designer update properly? Thanks. |
|||||||||||||||||||||||