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

ÀûÓÃVB×ÔÖÆOCX¿Ø¼þ

¡¡¡¡Èç½ñOCX¿Ø¼þÔÚ±à³ÌÖÐÒÑÕ¼ÁìÁ˺ÜÖØÒªµÄµØλ,ÎÒÃÇ¿ÉÒÔÀûÓÃOCX¿Ø¼þÍê³ÉһЩÏ൱¸´Ôӵıà³Ì²Ù×÷.ͬʱOCX ¿Ø¼þ»¹ÓÐÀûÓÚÖ÷³ÌÐòµÄ¼òµ¥»¯¡¢¹¦ÄܵÄÖØÓá¢Òþ³£³ÌÐòʵÏÖϸ½Ú¡¢±ãÓÚÉý¼¶¡¢´«²¥·½±ãµÈÓŵ㡣ÏÖÔÚÎÒÃÇ¿ÉÒÔÀûÓÃVB 5.0·½±ãµÄÖÆ×÷³ö×Ô¼ºµÄOCX¿Ø¼þ¹©ÎÒÃÇÔÚ±à³ÌÖÐʹÓÃͬʱ»¹¿ÉÒÔ°ÑËüË͸øÄãÖÜΧϲ»¶±à³ÌµÄÅóÓÑ!
ÏÂÃæÁгöÖÆ×÷OCX¿Ø¼þµÄ²½Ö裺
Ò»£ºÐ½¨OCX ¡¡¡¡´ò¿ªVB 5.0Ñ¡Ôñн¨¹¤³ÌÔÚ¶Ô»°¿òÖÐÑ¡ÔñActiveX ¿Ø¼þ(Èçͼһ(map1.gif))´ò¿ªºó»á¼ûÒ»¿ÕµÄÎĵµÕâ¾ÍÊÇ OCX¿Ø¼þµÄ³õʼ½çÃæ¡£Ïë¿´Ò»¿´¿ÕOCX¿Ø¼þµÄЧ¹ûÂð?Ñ¡Ôñ“Ìí¼Ó¹¤³Ì”Ñ¡Öбê×¼EXE£¬ÕâʱÄã¾Í¿ÉÒÔÏñµ÷ÓÃÆäËü¿Ø¼þÒ»ÑùÔÚ×ó±ßµÄ¹¤¾ßÀ¸ÀïÑ¡Ôñ¸Õ²Åн¨µÄOCX¿Ø¼þͼ±ê·ÅÔÚ±ê×¼µÄEXEÎĵµÖп´Ò»¿´ÓÐʲôЧ¹û!(ʲôҲûÓÐ!) ×ÔÈ»ÒòΪ¸Õ²ÅµÄOCXÎĵµÊÇ¿ÕµÄÂï(·Ï»°Ì«¶à£¬Êý¸ö̵ÓÛÏòÎÒ·ÉÀ´)!
¶þ£º´´½¨½çÃæ
¡¡¡¡Ò»°ãÎÒÃÇÓÃVB´´½¨OCX¿Ø¼þ¶¼ÊÇÔÚÎÒÃǵĿؼþÀïÌí¼ÓÆäËüµÄ¿Ø¼þÀ´×éºÏ³ÉÒ»¸öÍêÕûµÄ¿Ø¼þ£¨Ò²¿ÉÒÔÈÃËüÖ»Íê³ÉijÖÖËã·¨£©±ÈÈ磺Äã¿ÉÒÔÔÚÉÏÃæÌí¼ÓÒ»°´Å¥¡¢±à¼­¿òÕâʱÄãÔÙÓõÚÒ»²¿µÄ·½·¨¿´Ò»¿´Ð§¹û£¬ÊDz»ÊǿؼþÉ϶àÁËÒ»¸ö°´Å¥ºÍÒ»¸ö±à¼­¿ò¡£
Èý£ºOCXÊôÐÔ
¡¡¡¡Ò»¸öOCX¿Ø¼þÓÐÐí¶àµÄÊôÐÔ£¬±ÈÈç¿Ø¼þ±³¾°ÊÇ·ñ͸Ã÷£¨BackStyle£©£¬¿Ø¼þÊÇ·ñ¿ÉÒÔ»ñµÃ½¹µã (CanGetFocus)µÈ¡£ÕâЩÊôÐÔ¶¼¿ÉÒÔÔڿؼþµÄ“ÊôÐÔ¿ò”ÖÐÕÒµ½¡£
ËÄ£ºÌí¼Óʼþ
¡¡¡¡Ò»¸ö¿Ø¼þÓкܶàʼþÈ磺Click¡¢MouseDown¡¢MouseUp¡¢MouseMoveµÈ¡£Òª´¥·¢ÕâЩʼþ¶¼ÐèÒªÄã¼ÓÈë´úÂë¡£ÔڿؼþµÄÉùÃ÷´¦¼ÓÈëPublic Event Click()¾Í±íÃ÷¸Ã¿Ø¼þÓÐÒ»“Click”ʼþ¡£×Ô¼º±àдµÄ¿Ø¼þÓÐʲôʼþ¾ÍÔÚÉùÃ÷´¦¼Ó¼¸Ìõʼþ¡£¹ØÓÚ´¥·¢Ê¼þÊÇʹÓÓRaiseEvent”Óï¾äÀ´Íê³ÉµÄÈ磺RaiseEvent ʼþÃû£¨²ÎÊý£©¡£ Î壺Óû§ÊôÐÔ
¡¡¡¡Ò»¸ö¿Ø¼þÓ¦ÓÐÐí¶àÊôÐÔ¹©Óû§ÉèÖÃÈ磺¿Ø¼þµÄ±³¾°É«¡¢¿Ø¼þÒªÏÔʾµÄͼÐεȡ£ËüÃÇͨ³£ÓÃProperty GetºÍ Property LetÁ½ÌõÓï¾äÀ´Íê³É¡£Ç°Õß±íʾ¸øÓû§ÏÔʾһ¸öÊôÐÔµÄÖµ£¬ºóÕß±íʾÓû§ÉèÖÃÒ»¸öÊôÐÔµÄÖµ¡£ Áù£º±£´æÊôÐԺͶÁÈ¡ÊôÐÔ
¡¡¡¡µ±ÊôÐÔ±»Óû§¸ü¸ÄºóÐèÒª½«¸ÃÊôÐÔÖµ±£´æ£¬ÒÔ±ã¿Ø¼þÔËÐÐʱ¶ÁÈ¡¸ü¸ÄºóµÄÊôÐÔÖµ¡£ËüÃÇ·Ö±ðÓà ReadPropertyºÍWritePropertyÁ½ÖÖ·½·¨À´Íê³É¡£Ç°Õß±íʾ¶ÁÈ¡Ò»¸öÊôÐÔÖµ£¬ºóÕß±íʾдÈëÒ»¸öÊôÐÔÖµ¡£
¡¡¡¡ºÃÁËÒ»¸ö¼òµ¥µÄOCX¿Ø¼þÖÆ×÷·½·¨´ó¸Å¾ÍÐèÒªÒÔÉϼ¸²½¾Í¿ÉÍê³É¡£ÏÂÃæ±¾È˽«±àдһ¸ö¼òµ¥µÄOCX¿Ø¼þ¹©´ó¼Ò²Î¿¼¡£´Ë¿Ø¼þµÄ¹¦ÄÜÊÇÔڿؼþÖÐÏÔʾһ¸öÔ²£¬µ±Êó±êÒƵ½¿Ø¼þÉϵÄʱºò¿Ø¼þÉϵÄÔ²±ã»áÔÚÊó


Ïà¹ØÎĵµ£º

[VB]GDI+ IStream¡¢StdPicture¡¢Byte() »¥×ª

ºÜ¶àÄêÇ°¾ÍÏë×öÒ»¸öÔ¶³Ì¿ØÖƵÄÈí¼þ£¬Ö»ÊÇÒ»Ö±ÒÔÀ´Í¼Æ¬µÄѹËõËÙ¶È×ÜÊÇÌáÉý²»ÉÏÈ¥£¬¶øÎÒÒ²²Î¿¼¹ýºÜ¶àÍøÉϵĹØÓÚͼƬѹËõµÄÀý×Ó£¬±ÈÈçzyl910µÄGIF_LZWѹËõ·½·¨£¬HuffmanѹËõ·½·¨£¬ÒÔÖÁµ½GDI+µÄÖ±½ÓÉú³ÉJPG¡¢PNGµÄ·½·¨£¨ÕâÖÖ·½·¨ÎÞÂÛ´ÓѹËõÂʺÍËÙ¶ÈÉ϶¼ÊÇ×î¼ÑµÄ£¬¿ÉϧÕâÖÖ·½·¨ÍøÉÏһֱûÕÒµ½Ö±½Ó±£´æΪByte()µÄÀý×Ó£¬¼ûµÃ×î¶àµÄ ......

ÖØÊ°VBÖ®¶þ£¬ºÁÃëƪ

ÖØÊ°VBÖ®¶þ£¬ºÁÃëƪ
PMP ¹Ø¾¢ËÉ
   
    ¹íʹÉñ²î£¬09Äê12ÔÂÈëÖ°µÄ¹«Ë¾ÈÔʹÓÃVB¿ª·¢Èí¼þ£¬ËäÈ»²¢·Çרְ¿ª·¢£¬µ«Ò²²»µÃ²»ÔÚʸô4ÄêÖ®ºó£¬ÖØÐÂʹÓÃVB¡£
    ÔÚvbÖÐÈçºÎ»ñµÃºÁÃ뾫¶È¼¶±ðµÄʱ¼ä£¿vbµÄʱ¼äº¯Êý²»Ö§³ÖºÁÃ룬ÐèÒªÀûÓÃwindowsµÄ»ù±¾API£¬±àд³ÌÐò²ÅÄÜ»ñÈ¡ºÁÃ뼶 ......

Developer Support Languages VC++, C# and VB.NET


Welcome to Microsoft Developer Support, Languages team blog! You will find a lot of language related troubleshooting resources here.
Troubleshooting PInvoke Related Issues 
I am back with some more PInvoke Stuff.  Recently I was working on a PInvoke issue which I found interesting ......

vb class Property Get¡¢Property Let ʹÓÃ

vb class Property Get¡¢Property Let ʹÓÃ
<%
'ÔÚ Class ¿éÖУ¬³ÉԱͨ¹ýÏàÓ¦µÄÉùÃ÷Óï¾ä±»ÉùÃ÷Ϊ Private(˽ÓгÉÔ±£¬Ö»ÄÜÔÚÀàÄÚ²¿µ÷ÓÃ) »ò Public(¹«ÓгÉÔ±£¬¿ÉÒÔÔÚÀàÄÚÍⲿµ÷ÓÃ) ¡£
'±»ÉùÃ÷Ϊ Private µÄ½«Ö»ÔÚ Class ¿éÄÚÊǿɼûµÄ¡£±»ÉùÃ÷Ϊ Public ²»½öÔÚ Class ¿éµÄÄÚ²¿ÊǿɼûµÄ£¬¶Ô Class ¿éÖ®ÍâµÄ´úÂëÒ²Êǿɼûµ ......

VBÄæÏò¹¤³ÌʵսÑÝÏ°

û¿Ç,ûÓÐCommand Button,ËùÓеÄÄÚÈݶ¼ÔÚForm_LoadÀï¡£ÓÃVBDE²é¿´£¬Form_LoadÔÚ00406A90,´ò¿ªW32dsm£¬ÔØÈëCasinoÂÖÅÌÖÇÄÜ»úÆ÷ÈË£¬²éÕÒ00406A90£¬·´»ã±à´úÂëÈçÏ£º
Quote:
:00406A90 55                   &nb ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ