Browse by Tags

All Tags » .NET (RSS)

Arrows available in Wingdings 3

Let me show you another good use of applying the trick I've posted earlier, when I wrote the "how-to" for making .NET password field to look more like an XP password field – the trick is done by playing with Fonts. Now, let's play with fonts even more...
Posted by cvega | 2 comment(s)
Filed under:

.NET Password field that looks like Windows XP password field

Here's a trick to make your regular .NET TextBox to have a look similar to Windows XP password field, where it displays large black circles instead of asterisks (****) to "mask" the password (see the Password field shown in the screenshot below): This...
Posted by cvega | 1 comment(s)
Filed under:

Using preprocessor directives in C#

As I write an answer to a question posted in the local Microsoft Community forum ( http://msforums.ph/forums ) asking "How to programmatically create and share a folder" the #define preprocessor directive has come in handy when providing an answer that...
Posted by cvega | 1 comment(s)
Filed under:

Get the list of country names from the system registry

One of commonly asked questions in online communities I am participating, when talking about data, is where to get the list of countries. Not that it's commonly asked question, but at least I've seen it asked for more than 20 times already -- an example...
Posted by cvega | 1 comment(s)
Filed under:

IsProcessorFeaturePresent and __cpuid: A benchmark test program in C#

I was playing with IsProcessorFeaturePresent function in C#, and comparing it with my __cpuid function I posted on one of my previous post , as an attempt to bring CPUID in C#. The result of my tests was within my expectations. IsProcessorFeaturePresent...
Posted by cvega | with no comments
Filed under:

Answer Marking Role Automatically Granted in MSDN Community Forums

Announced Friday, April 7, 2006 by Joe Morel , MSDN Community Forums is now auto-granting "answer marking" privilege to any member of the community if you answered (and marked as such) 5 or more answer since April 1, 2006. There are over 800 members have...
Posted by cvega | 1 comment(s)
Filed under: ,

An attempt to bring CPUID to C#

Following from my previous post about detecting CPUID instruction availability, which is as I mentioned, fairly easy to achieve in both C/C++ and assembly language. In fact, it is already a common knowledge mostly to C/C++ and assembly programmers --...
Posted by cvega | 6 comment(s)
Filed under: ,

The C# Language in MSDN chat

Join the chat on April 20, 2006 1:00 - 2:00 P.M. Pacific time! Want to know more about anonymous delegates in C# 2.0, or our design rationale for them? Have some questions about our current thinking on C# 3.0 and LINQ? Perhaps you'd like to share your...
Posted by cvega | with no comments
Filed under:

New WinFX communities

Are you into WinFX? just curious or want to be serious? If you haven't visited these new community sites for WinFX, please do so: WinFX - Windows Workflow Foundation http://www.windowsworkflow.net WinFX - Windows Communication Foundation http://windowscommunication...
Posted by cvega | 2 comment(s)
Filed under:

Evil Solution

Last week, I received an email from a guy asking for help with optimization for his company’s projects. He opened the conversation claiming that he saw one of my posts in msforums.ph regarding optimization (thinking about it, I never really made any post...
Posted by cvega | 11 comment(s)
Filed under:

Swap two integer values without using a temporary variable

The traditional programming practice when switching content between two integer variables is to use another temporary variable to hold data, then assigning data to and from the switching variables, forming a triangle of data movement. var a :integer b...
Posted by cvega | 9 comment(s)
Filed under: