/Home /Archive /Syndicate /Blog /Support /About /Contact  
All Visual Basic Feeds in one place!





  When working with generics, there will be times you want to "clear" a variable reference, eg set it to null.  In Vb.NET you can simply assign the value of Nothing, eg:   Dim x as T   x = Nothing   This works perfectly for all types of T, be it a Structure, a reference type, or an intrinsic type.   C# on the other hand doesn't provide a universal way to deal with these different types.  in C#, you can only assign null to reference types.  T ... [ read more ]
How's yer donald. Just noticed a newsgroup posting about some guy struggling with setting a custom forecolor on a textbox when its disabled (e.g. enabled = false). "No bother" I thought and quickly ran up the code - then I realised the dates, over two months ago and he had found a solution (although not as elegant). Anyway, for your enjoyment and perusal. This class inherits a textbox, simply shadows the enabled property and if the property is set to false, it draws the textbox (with appropr ... [ read more ]
Hey, As part of my cleaning up of various test projects and half baked ideas - I came across this little class the other day.  Basically, it can mute and/or set the Master Volume of the computer using the 'mixerSetControlDetails' API and its various cousins. I originally converted the code over from this ( http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q178456 ) VB6 support document and as part of the conversion process I wrote this FAQ @ VBCity ( http://www.vbcity.com/forums/ ... [ read more ]


© 2005 Serge Baranovsky. All rights reserved.
All feed content is property of original publisher. Designated trademarks and brands are the property of their respective owners.

This site is maintained by SubMain(), a division of vbCity.com, LLC