In GUI applications it is often necessary to prevent the user from being able to carry out some of the actions that the interface offers. This is (often) done by disabling (deactivating) temporarily at run time, groups of controls. This way we often use the state of GUI elements to synchronize the [...]
I spent a couple hours today looking for a simple way to change from one set of menus (file, edit, etc.) to another menu set. I came across this code in MSDN, but I didn’t see anything like it here on CodeProject, so this is my first article post. I hope someone might find it useful.How to Use Create multiple Menu resources in the resource view. The two I will [...]
I was checking into a print preview problem in one of our applications, where if we tried to render any clipboard output to the print preview screen, further drawing operations (but not all) on the same page would not work correctly. Typically, this would be seen as font text drawn at an incorrect angle or for clip regions in use not to work correctly, so that [...]
A discussion came up in the office recently about who sends the most paper through the printer: the developers or the sales folks. I leaned toward the latter simply because of all the multi-page proposals that that group creates. In either case, I thought it would be a good exercise to conjure up some sort of [...]
In a project I was forced to find the printers in a network and display the results. The finding of printers in a network is not challenging, just cumbersome. Only work, no inspiration.
At first you must look up all local printers, then all network printers and at the end, all [...]