Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

C#ʵÏÖÎļþ¹ØÁª

ºÍÆäËûÓïÑÔÒ»Ñù£¬C#ʵÏÖÎļþ¹ØÁªÍ¬ÑùÐèÒªÖ±½Ó²Ù×÷×¢²á±í£¬¼´°´¹æÔò·Ö±ðÉèÖÃÎļþÀ©Õ¹Ãû£¬ÎĵµÀàÐÍ˵Ã÷£¬ÓѺÃÃû³Æ£¬Í¼±ê£¬µ÷Ó÷½·¨µÈ¼üÖµ¼´¿É£¬ÍøÉÏËæ±ã²é²é¾Í¿ÉÒÔд³öÒÔϵĴúÂë¡£ using Microsoft.Win32; RegistryKey key = Registry.ClassesRoot.OpenSubKey(".jb");
if (key == null)
{
    key = Registry.ClassesRoot.CreateSubKey(".jb");
    key.SetValue("", "Jeebook.Reader.jb");
    key.SetValue("Content Type", "application/jb");     key = Registry.ClassesRoot.CreateSubKey("Jeebook.Reader.jb");
    key.SetValue("", "Jeebook Document");     RegistryKey keySub = key.CreateSubKey("DefaultIcon");
    keySub.SetValue("", System.Windows.Forms.Application.StartupPath + "Jeebook.ico");
    keySub = key.CreateSubKey("shell\\open\\command");
    keySub.SetValue("", "\"" + System.Windows.Forms.Application.ExecutablePath + "\" \"%1\"");
} Ïà¶ÔÀ´Ëµ£¬C#ʵÏֱȽÏÂé·³µÄÊÇͼ±ê·¾¶£¬Ò»°ãÎļþÀàÐÍ×¢²áµÄ¶¼ÊÇÖ´ÐÐÎļþµÄ×ÊÔ´£¬¸ñʽÈçÏ£º ¸ñʽ:,   // ×ÊÔ´IDΪÕýÊý£¬±íʾ×ÊÔ´µÄË÷ÒýºÅ£¬·ñÔòΪ×ÊÔ´ID ÔÚC++ÖкÜÈÝÒ×»ñÈ¡×ÊÔ´ID£¬µ«C#Öл¹Ã»¸ãÇå³þÈçºÎÈ¡µÀ×ÊÔ´µÄID£¬ËùÒÔË÷ÐÔÔÚ³ÌÐòÖ´ÐÐĿ¼Ï¸½´øÒ»¸öͼ±êÎļþÓÃÓÚ×¢²á£¬ÕâÑùµ¹Ò²·½±ãËæʱÐ޸ģº£© ´ËÍ⣬¾ÍÊÇÈçºÎÑé֤ͼ±êÊÇ·ñÉèÖÃÕýÈ·¡£ÏÖÔÚµÄϵͳ³¬°®»º´æ£¬³ý·ÇLOG OFF¼¶±ðµÄ²Ù×÷£¬·ñÔòÊÖ¹¤ÐÞ¸Ä×¢²á±íºÜÄÑÂíÉÏÏìÓ¦£¬µ±È»Í¨¹ý³ÌÐòµ÷ÓÃÓ¦¸ÃË¢ÐÂϵͳ״̬£¬Õâ¸öÏ´ÎÓÐʱ¼äÔÙÑо¿°É Èç¹ûÖ»ÊÇÓÃÓÚXPÒÔϵijÌÐò£¬ÒÔÉϵĴúÂë¾ÍÒѾ­×ã¹»ÁË¡£¿ÉϧµÄÊÇ£¬VistaÒÔºóÒýÈëÁËUAC£¬ÉÏÃæµÄ´úÂëÔÚUACÏ»ᵯ³öÒì³££¬Õâ¿Ï¶¨²»ÊÇÎÒÃÇÏ£ÍûµÄ¡£ Ò»ÖÖ½â¾ö·½·¨ÊÇͨ¹ý´´½¨Ò»¸öMainifestÎļþ£¬Ìí¼ÓÒÔϽű¾£º








ÕâÑù³ÌÐòͼ±êÉÏ»á³öÏÖÒ»¸öС¶ÜÅÆ£¬±íʾ¸Ã³ÌÐòÐèÒªÔÚ¹ÜÀíԱģʽÏÂÔËÐУ¬Ã¿´ÎÔËÐж¼»á×Ô¶¯µ¯³öUACµÄÑéÖ¤´°¿Ú¡£µ«Õâ¸ö¶ÔijЩֻÊÇÐèÒªÊéдһ´Î×¢²á±íµÄ³ÌÐòÀ´Ëµ£¬Ã¿´Î¶¼µ¯³öÌáʾÊÇÎÞ·¨ÈÌÊܵģ¬ÄÇôÈçºÎÄܹ»Í¨¹ý´úÂ뵯³öUACÑéÖ¤´°¿ÚÄØ£¿


Ïà¹ØÎĵµ£º

c#ʵÏÖÏÂÔØ´úÂëÊÕ¼¯

//TransmitFileʵÏÖÏÂÔØ
    protected void Button1_Click(object sender, EventArgs e)
    {
        /*
        Î¢ÈíΪResponse¶ÔÏóÌṩÁËÒ»¸öеķ½·¨TransmitFileÀ´½â¾öʹÓÃRespo ......

C#´úÂëÓëjavaScriptº¯ÊýµÄÏ໥µ÷ÓÃ


ÎÊ£º
1.ÈçºÎÔÚJavaScript·ÃÎÊC#º¯Êý?
2.ÈçºÎÔÚJavaScript·ÃÎÊC#±äÁ¿?
3.ÈçºÎÔÚC#ÖзÃÎÊJavaScriptµÄÒÑÓбäÁ¿?
4.ÈçºÎÔÚC#ÖзÃÎÊJavaScriptº¯Êý?
ÎÊÌâ1´ð°¸ÈçÏ£º
javaScriptº¯ÊýÖÐÖ´ÐÐC#´úÂëÖеĺ¯Êý£º
·½·¨Ò»£º1¡¢Ê×ÏȽ¨Á¢Ò»¸ö°´Å¥£¬ÔÚºǫ́½«µ÷Óûò´¦ÀíµÄÄÚÈÝдÈëbutton_clickÖÐ;
2¡¢ÔÚǰ̨дһ¸öjsº¯Êý£¬ÄÚÈÝΪ ......

c# Àà¿â

[SerializableAttribute]
[ComVisibleAttribute(true)]
[ClassInterfaceAttribute(ClassInterfaceType.AutoDual)]
public class Object
1 public virtual bool Equels (Object)
2 public static bool static Equels (Object,Object)
ĬÈÏʵÏÖΪ¶ÔÒýÓÃÀàÐÍʹÓÃÒýÓÃÏàµÈ£¬¶ÔÖµÀàÐÍʹÓöþ½øÖÆ°´Î»ÏàµÈ¡£ÒýÓÃÏàµÈÐÔÊÇÖ¸½ø ......

C#ÀàºÍC#½á¹¹ÌåµÄ¹Øϵ

C#ÀࣺÀàÊÇC# Öй¦ÄÜ×îΪǿ´óµÄÊý¾ÝÀàÐÍ£¬ÀàÒ²¶¨ÒåÁËÊý¾ÝÀàÐ͵ÄÊý¾ÝºÍÐÐΪ¡£È»ºó£¬³ÌÐòÔ±¿ÉÒÔ´´½¨×÷Ϊ´ËÀàµÄʵÀýµÄ¶ÔÏó¡£
C#½á¹¹Ì壺½á¹¹ÌåÊÇÇáÁ¿Ð͵ÄÀ࣬ʹÓÿªÏúÏà¶ÔÓÚÀà½ÏС¡£
C#ÀàºÍC#½á¹¹ÌåÁ½ÕߵĹØϵ£º
1.Êý¾ÝÀàÐÍ£ºÀàºÍ½á¹¹Ì嶼ÊÇÊý¾ÝÀàÐÍ£¬ÀàÊÇÒýÓÃÀàÐÍ£¬½á¹¹ÌåÊÇÖµÀàÐÍ¡£
2.¼Ì³ÐÐÔ£ºÀà¿ÉÒԼ̳кͱ»¼Ì³Ð£¬¶ø½á¹ ......

ʹÓÃC#ÕýÔò±í´ïʽƥÅäÏà¹Ø×Ö·û´®

C#ÕýÔò±í´ïʽƥÅä×Ö·û´®µÄ·½·¨ÈçÏ£º
1.ʹÓÃC#ÖÐʹÓÃÕýÔò±í´ïʽSystem.Text.RegularExpressionsÃüÃû¿Õ¼ä£»
2.ʹÓÃC#ÖÐʹÓÃÕýÔò±í´ïʽMatches()·½·¨Æ¥Åä×Ö·û´®£¬¸ñʽÈçÏ£º
MatchCollection Matches = Regex.Matches(Str, Pattern, RegexOptions.IgnoreCase | RegexOptions.ExplicitC ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ