Stories recently tagged with 'Win32'

Using IProgressDialog to show Progress Dialogs in Win 7 / Vista(pietschsoft.com)

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

Well, I was looking through some more of my prototypes that I’ve written and I came across the following 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. The full source code for this example is listed below. Just copy from this post and paste it within your app to test. read more...

add a comment |category: |Views: 132

tags: another

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

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

Migrating to Debugging .NET after Win32 (blogs.msdn.com)

submitted by tom24tom24(1100) 3 years, 10 months ago

Some of the differences between Win32 and .NET debugging read more...

add a comment |category: |Views: 8

tags: another

How to take screenshot of window programmatically(codeproject.com)

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

This code snippet illustrates how to capture desktop or any window to bmp file with minimum coding programmatically. It also demonstrates a neat way to save device context (DC) to file. For one of my application, there was need to take screenshot of active window, I searched net but couldn’t find any simple and easy code to do same. There were few ones but were too easy to understand, hence thought of writing my own code and here is the outcome. read more...

add a comment |category: |Views: 195

tags: another

Creating a Native Win32 Splash Screen for your .NET Apps(weblogs.asp.net)

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

I though I would share a native Win32 splash solution with you on this rainy night in June (well, it is June here and it is raining from where I am, YMMV). This is slightly different from your typical splash screen as it’s done using the Win32 API calls and it’s fired off before the .NET Forms engine even gets started. As a result it’s quick and snappy and doesn’t intrude on your normal WinForms programming. read more...

add a comment |category: |Views: 119

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

Add System Menu Items to a Form using Windows API(pietschsoft.com)

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

This is something I used to have a code snippet for in VB6, but I haven't needed to do this in a while so I never wrote up an example in .NET. So, here's the simple code necessary to add some custom menu items to your applications System Menu. 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: 19

tags: another

Microsoft building yet another new UI framework?(istartedsomething.com)

submitted by JemmJemm(9604) 4 years, 4 months ago

Bearing in mind the arsenal of Windows UI frameworks that exists today - Windows Presentation Foundation, Silverlight, Windows Forms, Win32, Media Center Markup Language, Microsoft Foundation Classes and more from third parties; Microsoft has decided to build yet another one “to enable new UI experiences in future versions of Windows”. read more...

add a comment |category: |Views: 16

tags: another

Converting between Win32 COLORREF and .NET Color(alteridem.net)

submitted by rprouserprouse(1175) 4 years, 9 months ago

If you are ever rewriting an MFC/Win32 program in .NET, you need to be aware that you cannot convert directly between a COLORREF value and a .NET Color structure. The byte order is different and will need to be swapped. read more...

add a comment |category: |Views: 92

tags: another

Win32 - Finding specific windows(improve.dk)

submitted by orcaorca(820) 5 years, 1 month ago

This time I present to you a class that greatly simplifies the process of searching for specific windows, types of windows, windows belonging to a specific process, having a specific text. You can search for any number of these parameters at the same time, using regular expressions for all string matches to provide optimal flexibility. read more...

1 comment |category: |Views: 5

tags: another

Chris's Free Developer Tools(sellsbrothers.com)

submitted by korayemkorayem(1240) 5 years, 7 months ago

This is a set of .NET, COM and Win32 tools that Chris Sells has built and contributed to the world. You may use them without royalty (and without support) in your compiled code. You may not redistribute the source code. A mention in the documentation of your products is always appreciated. Enjoy! read more...

add a comment |category: |Views: 10

tags: another

Using .NET Code to Set a Windows Service to Automatically Restart(blogs.msdn.com)

submitted by dalzieldalziel(6230) 5 years, 9 months ago

How to programmatically ensure that a windows service always restarts if it fails read more...

add a comment |category: |Views: 77

tags: another