Welcome to MSDN Blogs Sign in | Join | Help

October 2005 - Posts

WinForms: Disabling the close button

What is desired You do not want the user to be able to click on the Close button (the little "x" in the upper right). Method #1: The ControlBox property The WinForm ControlBox property is a good place to start, but it shows or hides the entire control
Posted by saveenr | 1 Comments

My most important lesson about designing User Interfaces

Look at your screen right now. What do you see? If you design software you'll see things like: taskbars or docks or apps or notifications. HWNDs and DeviceContexts. start menus, systray icons, docked windows What our users see a piece of glass with glowing
Posted by saveenr | 1 Comments

Python Design Principles

[Update 2007-09-01] These are available here: http://www.python.org/dev/peps/pep-0020/ as a Python PEP . 19 principles behind Python from Tim Peters: http://www.python.org/dev/culture.html Of the 19, these 9 are my favorites: Beautiful is better than
Posted by saveenr | 0 Comments

Add a user to a local group

This scripts shows how to add a user to a local group on a machine. VBScript Example function add_to_local_group( machine, account, local_group_name ) set object_to_add = GetObject("WinNT://" & account ) set local_group = GetObject("WinNT://" &
Posted by saveenr | 6 Comments

Enumerating members of a Local Group

This code shows to find all members of a local group on a computer. It uses the NetLocalGroupGetMembers() from the win32net module. Python Example: # ---------------------------------------- #requires win32 extensions for pythoon import os import win32net
Posted by saveenr | 0 Comments

Getting the name of current function

Useful snippet for debugging: A function that prints the name of the current function. To be accurate, it prints the name of the calling function. In C# this is called "reflection". In python, it is called "introspection". C# example // ----------------------------------------
Posted by saveenr | 0 Comments

Corner Cases, Contrived Cases, and Invisible Cars

Designing anything often involves breaking a situation into a finite number of cases and defining the software’s behavior in those cases. These are my views on two general kinds of cases. A Corner Case Your UI asks the user to enter their name. The user
Posted by saveenr | 0 Comments

On Features

A true story NOTE: Names and details have been changed. However, I assure you the following conversation did occur. For the curious: I was Akuma, not Ryu. Ryu produced a list of all the features in the product. Akuma scanned the list and found this item:
Posted by saveenr | 0 Comments
 
Page view tracker