Stories recently tagged with 'PInvoke'

Use IProgressDialog to show a “native” Progress Dialog in Windows(pietschsoft.com)

submitted by crpietschmanncrpietschmann(11.3k) 2 years, 9 months ago

Here's an example of how to use the IProgressDialog Win32 Interface to harness the power of the Built-in Progress Dialog in Windows within your own .NET applications. I have test this on WIndows 7, but it should work as expected on Windows XP and Vista. The MSDN Documentation for IProgressDialog says it’s minimum supported operating systems are Windows 2000 and Windows XP. read more...

add a comment |category: |Views: 187

tags: another

Windows 7 Code Pack v 1.0 Released(blogs.msdn.com)

submitted by CharlieCalvertCharlieCalvert(7875) 2 years, 9 months ago

The Windows® API Code Pack for Microsoft® .NET Framework provides support for various features of Windows 7 and previous releases of that operating system. The Code Pack has reached version 1.0 and has been published on Code Gallery: read more...

add a comment |category: |Views: 462

tags: another

P/Invoke Check Sheet(blogs.microsoft.co.il)

submitted by tamirtamir(580) 3 years, 7 months ago

This article will help you to understand how to create managed signatures for unmanaged methods, types and delegates read more...

add a comment |category: |Views: 20

tags: another

Drawing Custom Borders in Windows Forms,<br />Part Three: Introducing (geekswithblogs.net)

submitted by crpietschmanncrpietschmann(11.3k) 3 years, 8 months ago

Almost a year ago I've published first two articles titled "Drawing Custom Borders in Windows Forms" and they turned out to be the most successful part of my blog with almost 13 000 web views (however barely 2 000 people made through to the second part), 86 comments and almost 3 000 downloads till date. If so many people seem to be interested I guess it's about time to give you something new. I've been using this code in my own project for a while and was always told how cool it looks compared to other applications. However, there were also some people asking why wouldn't we do a full skinning engine and let people choose the skins themselves. Until now, I was excusing myself that there is no more time for such nonsense. What changed my mind? If you are using Infragistics NetAdvantage you already know what's coming from them in next release. In short I've got inspired by what they've done and in order not to fell behind I've decided to add my own skin support. read more...

add a comment |category: |Views: 131

tags: another

Drawing Custom Borders in Windows Forms, Part Two(geekswithblogs.net)

submitted by crpietschmanncrpietschmann(11.3k) 3 years, 8 months ago

In part one, I showed how to extend Form to access the non-client area of the window. Now we can start painting the borders we want. Having access to the Graphics object we can use any features of GDI+: draw lines, rectangles or other shapes, fill them using brushes, draw text and paint images. How you do this depends of your needs. For purpose of this article I will show you how to do this using set of ready-made bitmaps. read more...

add a comment |category: |Views: 57

tags: another

Drawing Custom Borders in Windows Forms(geekswithblogs.net)

submitted by crpietschmanncrpietschmann(11.3k) 3 years, 8 months ago

I have split the code into two primary classes. First one, FormWithNonClientArea, extends the standard Form class by adding support for non-client area messages (more on this shortly) and can be uses for various scenarios. Second one, CustomBorderForm, utilizes these messages and represents a base class for drawing graphical borders composed of several bitmap parts. It also draws a form header including icon, text and form buttons (more on this later). This way I can separate dirty plumbing required for enabling non-client drawing and actual drawing of the graphical elements. So lets see how it works. read more...

add a comment |category: |Views: 87

tags: another

What if it's not in Environment.SpecialFolder?(atalasoft.com)

submitted by RickasaurusRickasaurus(1225) 3 years, 8 months ago

The correct way to find the location of system folders not listed in Environment.SpecialFolder. read more...

add a comment |category: |Views: 268

tags: another

PInvoke, managed and unmanaged datatypes(blog.mendeltsiebenga.com)

submitted by MendeltMendelt(110) 3 years, 9 months ago

List of unmanaged datatypes and their corresponding CLR types. Copied and adapted from codeproject. read more...

add a comment |category: |Views: 20

tags: another

Marshalling strings with StringBuilder(blog.mendeltsiebenga.com)

submitted by MendeltMendelt(110) 3 years, 9 months ago

Tip on how to reserve buffers for unmanaged code to pass strings back into the managed world read more...

add a comment |category: |Views: 66

tags: another

Increasing the Size of your Stack (.NET Memory Management: Part 3) (atalasoft.com)

submitted by RickasaurusRickasaurus(1225) 4 years, 1 month ago

Following from my previous post on the topic of stack allocation, in this post I talk about three different ways to change a thread's stack size in C#. Each of these techniques have advantages and disadvantages which I discuss as well. This post may also be of interesting to those learning about PInvoke or modifying the binary header. read more...

add a comment |category: |Views: 127

tags: another

Add System Menu Items to WPF Window using Win32 API(pietschsoft.com)

submitted by crpietschmanncrpietschmann(11.3k) 4 years, 2 months ago

Here's the simple code necessary to add some custom menu items to your applications System Menu within a WPF application. If you're not familiar, the System Menu is the menu that shows up if you click on the apps icon in the upper left or if you right click the app in the taskbar. read more...

add a comment |category: |Views: 115

tags: another