Display: Cloud | List
Most Popular Tags
Results (16 total) All > .net (x) > c# (x)
Code shouldn't disappear (Partial Classes and Methods (C# Programming Guide))
Cant agree with source code disappearing as part of compilation activity: As it is a compilation issue there are 2 options:1)throw compilation error so that the coder is aware of what's happening2)and if possible, have a new method_implemented keyword to enable coding like this: if method_implemented(obj.FnFOO(type1, type2) { obj.FnFOO(arg1, arg2);}
Last modified by cethie on 11/10/2011 8:46:33 AM
"setting" the FlatAppearance property (ButtonBase.FlatAppearance Property (System.Windows.Forms))
.NET 2.0 allows FlatAppearance properties to be set, but the help text says it is read only.   The FlatAppearance property is of type FlatButtonAppearance.  You can't set the property value itself, but you can access the property and set the FlatButtonAppearance property values.  (See http://msdn2.microsoft.com/en-us/library/system.windows.forms.flatbuttonappearance_members.aspx for a list of ava
Last modified by MollyBos - MSFT on 3/29/2007 7:58:57 PM
unsafe Memory Fast Vs. loop copy Vs. .Net built in copy method (How to: Use Pointers to Copy an Array of Bytes (C#))
Based on the following code, the .Net method is the fastest.static void Main(string[] args) { DateTime before, after; const int Size1MB = 1024*1024; const int MegaBytesNum = 300; const int finalSize = Size1MB * MegaBytesNum; byte[] a = new byte[finalSize]; byte[] b = new byte[finalSize]; Console.WriteLine("Please wait while initializing source ar
Last modified by Aviram Preshel on 2/22/2010 7:05:54 AM
Tags:  .net  aviram  c#  copy  fast  loop  memory  preshel  unmanaged  unsafe
WriteFullEndElement Does Not Appear to Work in C# with .NET 3.5 (XmlWriter.WriteFullEndElement Method (System.Xml))
Ignore my previous comments. The code was writing correctly. Internet Explorer was displaying the output file incorrectly.
Last modified by Steve Eckhart1 on 1/21/2010 9:09:02 PM
Tags:  .net  3.5  c#  writefullendelement
.NET Framework Class LibraryHttpContext ..::.User Property HttpContext ClassGets or sets security information for the current HTTP request.Namespace:   System.WebAssembly:  System.Web (in System.Web.dll) Public Property User As IPrincipal Dim instance As HttpContext Dim value As IPrincipal value = instance.User instance.User = value public IPrincipal User { get; set; } publ
Last modified by Microsoft on 8/4/2009 6:02:02 PM
Tags:  .net  c#  overview  security
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  contentbug
Nimesh (Accessibility Validation Dialog Box)
NameSpace is logical group of classies which help to develop an application. Namespace allows you to use in-built .NET Classes. "System" at top(begining) of the code behind page.In C#, We have to write "using" keyword begining of namespace e.g "using System".In VB, We have to write "Imports" keyword begining of namespace e.g "Imports System".System: Root for All other namespace in Dot Net. It is b
Last modified by Thomas Lee on 8/6/2009 2:37:08 PM
Tags:  .net  asp.net  c#  framework  namespace  vb.net
Platformer: Adding Double Jump (Starter Kit: Platformer)
http://rev0lucian.blogspot.com/2009/06/rev0lucian-xna-adding-double-jump.html I wrote this blog when adding double jumping to the platformer project.
Last modified by Rev0Lucian on 6/24/2009 7:36:43 PM
Tags:  .net  c#  double  jump  platformer  video  xna
Converting the results to .Net TimeSpan (GetSystemTimes function (Windows))
You can use this function from .Net by importing with the folowing C#signature: [DllImport("kernel32.dll", SetLastError = true)] private static extern bool GetSystemTimes(outFILETIME lpIdleTime, outFILETIME lpKernelTime, outFILETIME lpUserTime); and then convert the results using the function: privatestaticTimeSpan GetTimeSpanFromFileTime(FILETIME time){ returnTimeSpan.FromMilliseco
Last modified by Thomas Lee on 4/29/2009 10:42:29 PM
Tags:  .net  c#
Exception (ScreenOrientation Enumeration (Microsoft.WindowsCE.Forms))
It wasn't mentioned in the documentation what type of exceptions could changing the orientation cause. I get the following on an Intermec 700 scanner running Pocket PC version 4.20.0 (Build 14053) with an ARM PCA255 processorExceptionat Microsoft.AGL.Common.MISC.HandleAr()at Microsoft.WindowsCE.Forms.SystemSettings.set_ScreenOrientation()at NumericTextBoxControl.InputTheTextValueForm.OnActivated(
Last modified by WeSam Abdallah on 4/9/2009 1:37:48 PM
Page view tracker