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

vb Ëæ»úº¯Êý

Ë«ÖØËæ»ú Ôõôд  ¾ÍÊÇËæ»ú³öÁËÒ»¸öÊý È»ºóÄÃÕâ¸öÊý×ù¿ªÍ·ÔÙËæ»úÒ»±é
±ÈÈç 1µ½10Ö®¼ä Ëæ»ú µÚÒ»´ÎÒÔ1¿ªÍ·10½áβ Ëæ»ú³öÒ»¸ö7 µÚ¶þ´Î¾ÍÊÇÒÔ7¿ªÍ·6½áβÔÙËæ»úÒ»±é
ÄÇλ¿ÉÒÔ°ï¸öæ ÏÈллÁË
6½áβ Õâ¸öʲô¹æÔò£¿-1£¿

ÒýÓÃ
6½áβ Õâ¸öʲô¹æÔò£¿-1£¿

´¿´âËæ»ú~±ðÏëÌ«¸´ÔÓ

random(10)& random(10)
²»ÖªµÀ¿ÉÒÔ²»

VB code:
Private Sub Command1_Click()
Dim dblT1 As Double
Dim dblT2 As Double
Dim dblT As Double

Randomize
dblT1 = Int(Rnd(1) * (10 - 1) + 1)
dblT2 = Int(Rnd(1) * (10 - 1) + 1)
dblT = Int(Rnd(1) * (dblT1 - dblT2) + dblT2)
Debug.Print dblT1 & " " & dblT2 & " " & dblT

End Sub


VB code:
Option Explicit

Private Sub Command1_Click()
Dim intP As Integer
intP = CInt(Rnd * 10)
intP = intP - Rnd
Debug.Print intP
End Sub



²»ÖªÂ¥Ö÷ËùÔÆ°¡£¡

    Dim dblT1 As Double
    Dim dblT2 As Double
    Dim dblT As Double
   
    Randomize
    dblT1 = Int(Rnd(1) * (10 - 1) + 1)
    dblT2 = Int(Rnd(1) * (10 - 1) +


Ïà¹ØÎÊ´ð£º

VB »ñÈ¡ÍøÒ³Ô´´úÂë

Ò»¸ö²éѯijÐÅÏ¢µÄASPÍøÒ³£¬Ìá½»²ÉÓõÄÊÇpost·½·¨£¬²éÕÒ½á¹ûµÄÍøÒ³±ØÐëÓÒ¼üµã»÷¡°²é¿´Ô´Îļþ¡±²ÅÄÜ¿´µ½ÕæÕý²éѯ½á¹ûÍøÒ³µÄÔ´´úÂ룬ÓÃä¯ÀÀÆ÷²Ëµ¥¿´µ½µÄÊDzéѯǰµÄÔ´´úÂë
ÓÃVBÓÐʲô°ì·¨¿ÉÒÔ»ñÈ¡µ½Õâ¸ö²éѯºóµÄÔ´´ú ......

VBÖÐCommondialog¿Ø¼þÖеÄshowfont·½·¨Ê¹ÓÃ

Çë½ÌÒ»¸öÓйØCommondialog¿Ø¼þµÄÎÊÌ⣨ʹshowfont·½·¨£©

µÚÒ»¸öÎÊÌ⣺

CommondialogÕâ¸ö¿Ø¼þµÄFlagsÊôÐÔÊDz»ÊÇÖ»ÄÜÔÚ´úÂëÖÐÉèÖÃ

ΪºÎÎÒÔÚÊôÐÔ¿òÀïµÄFlagsÒ»À¸ÖÐÊäÈëcdlCFScreenFonts£¨ÆÁÄ»×ÖÌå ......

¶à¸ö¶¥µã»º´ævbµÄ²Ù×÷

¹²ÓÐ4¸öʾÀý¶¥µã»º´æInstanceVB1£¬InstanceVB2,InstanceVB3£¬InstanceVB4£¬ËüÃǵÄÖµ¶¼ÊÇͨ¹ýÒ»¸öÑ­»·½øÐи³Öµ£¬ÇëÎÊ¿ÉÒÔÈçϲÙ×÷Âð£¬Ôõô²Ù×÷ЧÂÊ×î¸ß£¿

InstanceVB1->Lock£¨...);
InstanceVB2->Loc ......

VB Êó±êÒƶ¯Ê¼þ

ÎÒÏëÔÚÊó±êÒÆÖÁÃüÁî°´Å¥ÉÏ£¬µ¯³öÒ»¸öÌáʾ¿ò£¬µ«²»ÖªÈçºÎŪ£¬Çë×ö¸öʾÀý

tooltip

лл£¡ÎÒÊÇÐÂÊÖ£¬ÄÜ˵µÃÏêϸЩÂð£¿×îºÃÓиöÀý×Ó

Command1.ToolTipText="xxx"

ÎÒÔÚcommandÖп´µ½ÕâÑù²»ÄÜʵÏÖ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ