Display: Cloud | List
Most Popular Tags
Results (27 total) All > code (x) > c# (x)
Please Use the following C# code snippet to reade the values from App.Config in .Net 3.5 environment.AppSettingsReader reader = new AppSettingsReader(); NameValueCollection appStgs = System.Configuration.ConfigurationSettings.AppSettings; string[] names = System.Configuration.ConfigurationSettings.AppSettings.AllKeys; String value = String.Empty; for (int i = 0; i < appStgs.Count; i++){
Last modified by Thomas Lee on 9/8/2009 6:39:48 PM
Tags:  .net  c#  code
Code C# (SignatureSetup Object [Object Library Reference for the 2007 Microsoft Office System])
Please, This code is too important, someone have it in c#??
Last modified by Thomas Lee on 8/12/2009 10:00:59 AM
Tags:  c#  code  contentsuggestion
Platformer: Adding Melee Attack (Starter Kit: Platformer)
http://rev0lucian.blogspot.com/2009/06/xna-adding-melee-attack.html My Blog about adding melee attack in a very simple way after completing the power up tutorial.
Last modified by Rev0Lucian on 6/24/2009 5:38:48 PM
C# sample to correctly display __Derivation WMI system property (ManagementBaseObject.SystemProperties Property (System.Management))
__Derivation WMI system property is a string array, and that has to be taken into account when displaying WMI system properties: using System; using System.Management; public class Sample { public static void Main() { // Get the WMI class ManagementClass processClass = new ManagementClass("Win32_Process"); // Get the system properties for t
Last modified by urkec on 5/24/2009 9:38:28 PM
Visual StudioHow to: Install the Visual Studio 2008 Image Library The Visual Studio 2008 Image Library is copied to your computer when you install Visual Studio. To access the files in the image library, you must extract them from the file VS2008ImageLibrary.zip. To install the Visual Studio 2008 Image Library Locate the file VS2008ImageLi
Last modified by Microsoft on 11/7/2008 7:22:21 PM
Tags:  aspnet  c#  code  image
Automatic Build and Revision numbers (Version Class (System))
When specifying a version, you have to at least specify major. If you specify major and minor, you can specify an asterisk (*) for build. This will cause build to be equal to the number of days since January 1, 2000 local time, and for revision to be equal to the number of seconds since midnight local time, divided by 2.e.g. AssemblyInfo.cs [assembly: AssemblyVersion("1.0.*")] // important: use
Last modified by John Leidegren on 1/26/2009 11:15:53 AM
Tags:  build  c#  code  information
Win32_BIOS Using PowerShell (Win32_BIOS Class (Windows))
# wmi-win32_bios.ps1# Demonstrates use of Win32_Bios WMI class# Thomas Lee - tfl@psp.co.uk # Helper function to return characterics of the BIOSfunction get-WmiBiosCharacteristics {param ([uint16] $char) # parse and return values If ($char -le 39) { switch ($char) {0 {"00-Reserved"}1 {"01-Reserved"}2 {"02-Unknown"}3 {"03-BIOS Characteristics Not Supported"}4 {"04-ISA is supported"}
Last modified by kalkid on 7/31/2008 11:21:07 AM
Tags:  c#  code  win32_bios  wmi
mgmtclassgen and c# (Win32_OperatingSystem Class (Windows))
If using C# with mgmtclassgen , do the following: WMI.OperatingSystem os = new ROOT.CIMV2.win32.OperatingSystem(); Unline most of the other WMI classes generated by mgmtclassgen the OperatingSystem.CreateInstance() method will return a blank OperatingSystem object.
Last modified by Chris Lively on 4/23/2008 11:52:51 PM
Tags:  c#  code
IEHost.Execute Namespace This namespace supports the .NET Framework infrastructure and is not intended to be used directly from your code. Classes ClassDescriptionIEExecuteRemote 
Last modified by Microsoft on 12/13/2007 6:41:49 PM
The correct way of removing an attribute from a file (File.SetAttributes Method (System.IO))
Although the above sample shows you one way of removing the FileAttributes.Hidden attribute, it also, as a side-effect, removes any other attribute (such as FileAttributes.ReadOnly) from the file. The correct way is to only remove the attribute you are interested in. The following example shows a way of doing this by removing the FileAttributes.ReadOnly attribute. [C#] using System
Last modified by Edorner on 11/21/2009 3:24:10 AM
Page view tracker