¤ÀÃþ |
¼ÐÃD |
¤j·N |
§@ªÌ |
¤é´Á |
MSFLXGRD | ¦b MsFlexGrid ùØ¿é¤J¸ê®Æ | Col & Row | ¦Ñ©Ç | 1998/7/15 |
MSFLXGRD | ¦b MsFlexGrid Sort | ¡@ | ¦Ñ©Ç | 1998/8/13 |
MSFLXGRD | ¨ú¥X MsFlexGrid ªºÈ | ¡@ | ¦Ñ©Ç | 1998/8/18 |
MSCHART | ¨Ï¥Î MsChart ø¹Ï | ¡@ | ¦Ñ©Ç | 1998/7/15 |
CRYSTL32 | ¥Î CrystalReport ¦L³øªí | RPT Àɦb VB ùتº¹B¥Î | ¦Ñ©Ç | 1998/7/16 |
MSWINSOCK | SendData ªº®É¾÷ | WinSock.State ÄÝ©Ê | ¦Ñ©Ç | 1998/8/2 |
MSWINSOCK | ¶Ç°e¤G¶i¦ì¸ê®Æ | ¡@ | ¦Ñ©Ç | 1998/9/6 |
ToolBar | ¦b MdiForm ùرҰʤlªí³æ | Button ª«¥óªº¨Ï¥Î | ¦Ñ©Ç | 1998/8/14 |
ToolBar | ´¡¤J«ö¯Ã¹Ï¥Ü | ·f°t ImageList ªº¹B¥Î | ¦Ñ©Ç | 1998/11/26 |
MaskEdit | ¦p¦ó¦b MaskEdit ùØ¿é¤J¤¤¤å¦r¤¸ | ¾B¸n¦r¤¸ "C" | ¦Ñ©Ç | 1998/8/14 |
RichTextBox | ¥Îµ{¦¡±ÔzÅÜ´«¦rÅé | ¡@ | ¦Ñ©Ç | 1998/8/29 |
RichTextBox | HyPerLink ¼ÒÀÀ | ¡@ | ¦Ñ©Ç | 1998/8/30 |
RichTextBox | ¦bRTFÀɤ¤·j´M¬Y¤@Ó¦r¦ê | RichTextBox.LoadFile | ¦Ñ©Ç | 1998/9/22 |
ProgressBar | ProgressBar °ò¥»¹B§@¼Ò«¬ | ¡@ | ¦Ñ©Ç | 1998/9/15 |
SSTab | ¦p¦ó¦b SSTab ¤¤¤Á´«¶ÅÒ | ¡@ | ¦Ñ©Ç | 1998/9/26 |
MCIControl | I´º´`Àô¼½©ñ Wave ÀÉ | ¡@ | ¦Ñ©Ç | 1998/10/14 |
TreeView | Node ª«¥óªº±²°Ê | ¡@ | ¦Ñ©Ç | 1998/12/9 |
TreeView | Nodes.Add ¤èªk°Ñ¼Æ¸Ô¸Ñ | ¡@ | ¦Ñ©Ç | 1998/12/9 |
¦Û»s¤¸¥ó | ¦p¦óÅý¤¸¥ó°õ¦æ´Á¤£¥i¨£ | UserControl.InvisibleAtRuntime | ¦Ñ©Ç | 1998/8/12 |
¦Û»s¤¸¥ó | ActiveX ¨Æ¥óªº²£¥Í | Event & RaiseEvent | ¦Ñ©Ç | 1998/9/24 |
¬PÇUª÷³f ¼¶¼g©ó¤å³¹
Microsoft FlexGrid Control 5.0 ³oÓ Ocx ±N¥L«Ø¥ß¥X¨Ó¤§«á¤£ª¾¹Dn¦p¦ó±±¨î¤~¯à¿é¤J¸ê®Æ
¦Ñ©Çµª¡G
hahaha ¼¶¼g©ó¤å³¹
¥s¤Fgraphª«¥ó¨Óµe¼ÆȹϡA¦ý¤£ª¾¦p¦ó±N¼ÆÈshow¥X¨Ó¡A·Ð½Ð¦U¦ì«e½ú¸Ñµª¡AÁÂÁ¡I
¦Ñ©Çµª¡G
½Ð°Ñ¦Ò¤U¨Ò¡G
Dim varStyle(11) As Integer
Private Sub Command1_Click()
Static Style As Integer
If Style > 11 Then Style = 0
MSChart1.chartType = varStyle(Style)
Style = Style + 1
End Sub
Private Sub Form_Load()
Dim MyData(4, 1) As Single
varStyle(0) = VtChChartType2dArea
varStyle(1) = VtChChartType2dBar
varStyle(2) = VtChChartType2dCombination
varStyle(3) = VtChChartType2dLine
varStyle(4) = VtChChartType2dPie
varStyle(5) = VtChChartType2dStep
varStyle(6) = VtChChartType2dXY
varStyle(7) = VtChChartType3dArea
varStyle(8) = VtChChartType3dBar
varStyle(9) = VtChChartType3dCombination
varStyle(10) = VtChChartType3dLine
varStyle(11) = VtChChartType3dStep
MyData(0, 0) = 1
MyData(0, 1) = 10
MyData(1, 0) = 2
MyData(1, 1) = 30
MyData(2, 0) = 3
MyData(2, 1) = 20
MyData(3, 0) = 4
MyData(3, 1) = 15
MyData(4, 0) = 5
MyData(4, 1) = 25
MSChart1.ChartData = MyData
End Sub
¤p°ª ¼¶¼g©ó¤å³¹
¦bvb¤¤¨Ï¥Î³øªí²£¥Í¾¹§@¥X¤F¤@Ó³øªí¡An¦p¦ó±N³oÓ¦C¦L¥\¯à¥[¤J§Ú³]pªºµ{¦¡¤¤¡H
¦Ñ©Çµª¡G
CrystalReport1.Destination = crptToPrinter
CrystalReport1.ReportFileName = "§Aªº³øªíÀÉ"
CrystalReport1.Action = 1
³®¦ ¼¶¼g©ó¤å³¹
winsock1.state ¦³®Éµ¥©ó sckConnecting (6) ¦¹®É©I¥s winsock1.senddata ·|¿ù»~¡Awinsock1.dtate ¦³®Éµ¥©ó sckConnected (7) ¦¹®É©I¥s winsock1.senddata ¦¨¥\¤£ª¾¬O¦óì¦]?
¦Ñ©Çµª¡G
°Â¥J ¼¶¼g©ó¤å³¹
½Ð°Ý§Ú·Q¨ú®ø¤@Ó¦Û¤v°µªºcontrolªºheight ©Mwidth ÄÝ©ÊÀ³¸Ó«ç¼Ë°µ??´N¦ptimercontrol ¤@¼Ë¤£¯à±±¨îsize,¨S¦³ height ©Mwidth ÄÝ©Ê¥i¿ï¾Ü!!
¦Ñ©Çµª¡G
UserControl.InvisibleAtRuntime=True
¤£¹L³o´N©M timer ¤@¼Ë¡A°õ¦æ®É´Á¤£¥i¨£¤F¡A©Ò¥H°õ¦æ®É´Á¥i¨£ªº Control ¡A¤@©w·|¦³ left,top,width,height ªºÄÝ©Ê¡C
±mi¨T¤ô+¥i¼Ö®R®ðªw ¼¶¼g©ó¤å³¹
½Ð°Ý¦p¦óÅý MFSGric ¤¤ªº¸ê®Æ·Ó¦r¥À¥ý«á§Ç±Æ¦C?¬O¤£¬O¦³¤°»òÄÝ©Ê¥i¥H¥Î¨Óª½±µ±±¨î³oөʽè?
¦Ñ©Çµª¡G
MSFlexGrid ¦³¤@Ó¥s Sort ªºÄÝ©Ê¡A¬O°õ¦æ¶¥¬q¤~¯à¨Ï¥ÎªºÄÝ©Ê¡AMSFlexGrid ªþ¦³§¹¾ãªº»¡©ú©M½d¨Ò¡A¤£½×¬O¦b Help ùØ¡A©Î¬OÂsÄýµøµ¡ùØ¡A³£¥i¥H¥sªº¨ì¡A§A¥h§ä§ä¡C½d¨Ò¦p¤U¡G
Private Sub Command1_Click()
FG.Col = 0
FG.Sort = 7
End Sub
Private Sub Command2_Click()
FG.Col = 1
FG.Sort = 7
End Sub
Private Sub Command3_Click()
FG.Col = 2
FG.Sort = 7
End Sub
Private Sub Form_Load()
FG.Cols = 3
FG.AddItem "A" & Chr(9) & "04" & Chr(9) & "Z"
FG.AddItem "B" & Chr(9) & "08" & Chr(9) & "Y"
FG.AddItem "C" & Chr(9) & "02" & Chr(9) & "X"
FG.AddItem "D" & Chr(9) & "09" & Chr(9) & "W"
FG.AddItem "E" & Chr(9) & "03" & Chr(9) & "U"
Command1.Caption = "Sort 1"
Command2.Caption = "Sort 2"
Command3.Caption = "Sort 3"
End Sub
¥»¨Ò MSFlexGrid.Name=FG
¡@
Smith ¼¶¼g©ó¤å³¹
·í§Ú§â¸ê®Æ¤@¤@ˤJMSFlexGrid¤¤¥H«á¨º§Ú«á¨Ó¬O§_¦³¿ìªk±N¨ä¤¤¤@ÓÄæ¦ìªº¸ê®Æ¦A§ì¥X¨Ó©O?
¦Ñ©Çµª¡G
½Ð§A¦b Form ¤W¥¬¸m Text1,Text2,MsflexGrid «á°õ¦æ¤U¦C¦¡¤l¡G
Option Explicit
Private Sub Form_Load()
Dim I As Integer
MSFlexGrid1.Cols = 3
MSFlexGrid1.Rows = 10
'¨Ï¥Î TextArray ÄÝ©Ê¡A¥Î¸ê®Æ¨Ó¶ñº¡ MSFlexGrid¡C
For I = MSFlexGrid1.FixedRows To MSFlexGrid1.Rows - 1
'** ¸ê®Æ¦æ 1
MSFlexGrid1.TextArray(faIndex(I, 1)) = I & "\ 1"
'¸ê®Æ¦æ 2.
MSFlexGrid1.TextArray(faIndex(I, 2)) = I & "\ 2"
Next
End Sub
Private Sub MSFlexGrid1_EnterCell()
Dim CellX As Long
Dim CellY As Long
CellX = MSFlexGrid1.row
CellY = MSFlexGrid1.col
'§Q¥Î TextMatrix
Text2.Text = MSFlexGrid1.TextMatrix(CellX, CellY)
'§Q¥Î«ü©w Cell
MSFlexGrid1.col = CellY
MSFlexGrid1.row = CellX
Text1.Text = MSFlexGrid1.Text
End Sub
'pºâ¸ò TextArray Äݩʤ@°_¨Ï¥Îªº¯Á¤Þ¡C
Function faIndex(row As Integer, col As Integer) As Long
faIndex = row * MSFlexGrid1.Cols + col
End Function
¦pªGn¥Î Data ¶µ¡A§â Form_Load ±Ôz®³±¼§Y¥i
¤pµi»ï ¼¶¼g©ó¤å³¹
½Ð°Ý¤@¤U¦bMDIForm¤¤¨Ï¥Î¤FToolBar Control,¨º·í¦bToolBar¤W«ö¤U«ö¶s«á,¦p¦ó§â±±¨îÅv¥æµ¹¦¹®É¤w¸g¶}±ÒªºChildForm©O?
¦Ñ©Çµª¡G
Option Explicit
Dim Form2 As New Form1
Dim Form3 As New Form1
Private Sub MDIForm_Load()
Dim MyBS As Buttons
Form2.Caption = "Form2"
Form3.Caption = "Form3"
Form2.Show
Form3.Show
Set MyBS = Toolbar1.Buttons
MyBS.Add , "Form1", "±Ò°Êªí¤@"
MyBS.Add , "Form2", "±Ò°Êªí¤G"
MyBS.Add , "Form3", "±Ò°Êªí¤T"
End Sub
Private Sub Toolbar1_ButtonClick(ByVal Button As ComctlLib.Button)
Select Case Button.Key
Case "Form1"
Form1.SetFocus
Case "Form2"
Form2.SetFocus
Case "Form3"
Form3.SetFocus
End Select
End Sub
¾B¸n¦r¤¸¥Î "C" ¥i¥H¿é¤J¤¤¤å¡A¤£¹Lnª`·Nªº¬O¥¦§â¤¤¤åºâ¨âÓ¦r¡A©Ò¥H¦pªG¥u³Ñ¤@Ó¾B¸n¦r¤¸¡A¿é¤J·|¦³¿ù»~¡C
²ö©ú©_§®... ªº¤å³¹¤¤´£¨ì:
§Ú·Q°ÝªºÃD¡A¦³¨S¦³¿ìªk¤£ Load ÀɮסA¦Óª½±µ¦bµ{¦¡¤¤¡Aª½±µ¼g¦¨... RichTextBox1.text = ... ³o¼Ëªº®æ¦¡¡A¦Ó¦b¨ä¤¤¡A¥i¥H¦Û¤vÅÜ´«¦rÊ^¡C §Ú¸Õ¹L¡A¦pªG¦b¤¤¶¡§ï¦¨²ÊÊ^¡A¾ãÓ¤º®e³£·|Åܧó...¦³¨S¦³¿ìªkÅý¨ä¤¤¤@¤p¬qÅÜ°Ê´N¦n¤F©O?
¦Ñ©Çµª¡G
Private Sub Command1_Click()
Dim CR As String
'°O¿ý¿ï¨ú¤§°_©l¦ì¸m
Dim PosStart() As Long
'°O¿ý¿ï¨ú¤§ªø«×
Dim FLength() As Long
CR = Chr(10)
RichTextBox1.SelLength = 0
RichTextBox1.Text = "Hello!" & CR
RichTextBox1.Text = RichTextBox1.Text & "Hello2!" & CR
RichTextBox1.Text = RichTextBox1.Text & "¤£n²z§Ú!" & CR
ReDim PosStart(0)
ReDim FLength(0)
PosStart(0) = 0
FLength(0) = Len(RichTextBox1.Text)
RichTextBox1.Text = RichTextBox1.Text & "¤£n²z§Ú!" & CR
ReDim Preserve PosStart(1)
ReDim Preserve FLength(1)
PosStart(1) = FLength(0)
FLength(1) = Len(RichTextBox1.Text) - FLength(0)
RichTextBox1.Text = RichTextBox1.Text & "¤£n²z§Ú!" & CR
RichTextBox1.SelStart = PosStart(0)
RichTextBox1.SelLength = FLength(0)
RichTextBox1.SelBold = True
RichTextBox1.SelStart = PosStart(1)
RichTextBox1.SelLength = FLength(1)
RichTextBox1.SelItalic = True
RichTextBox1.SelStart = 0
End Sub
VERSION 5.00
Object = "{3B7C8863-D78F-101B-B9B5-04021C009402}#1.1#0";
"RICHTX32.OCX"
Begin VB.Form frmMarkUp
Caption
= "Hyper MarkUp ¼ÒÀÀ½d¨Ò"
ClientHeight = 3480
ClientLeft =
60
ClientTop =
345
ClientWidth =
5670
LinkTopic =
"Form1"
ScaleHeight =
3480
ScaleWidth =
5670
StartUpPosition = 3 '¨t²Î¹w³]È
Begin RichTextLib.RichTextBox RTBox
Height
= 3015
Left
= 240
TabIndex
= 0
Top
= 240
Width
= 5175
_ExtentX
= 9128
_ExtentY
= 5318
_Version
= 327680
ScrollBars
= 3
TextRTF
= $"markup.frx":0000
End
End
Attribute VB_Name = "frmMarkUp"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
'¥» Form ¾Þ§@¤è¦¡¬O¦b¤å¦r°Ï¶ô«ö·Æ¹«Áä¡A
'Y«ö¤@¯ë¦r«hµL¤ÏÀ³¡AY«öÂŦâ¥[©³½u¦r¦ê¡A
'«h·|¦³¬Û¹ïÀ³¤§°T®§²£¥Í¡C
Private Type RichHyper
¶}©l¦ì¸m As Long
µ²§ô¦ì¸m As Long
³sµ²¦r¦ê As String
End Type
'Àx¦s¼Ð°O¦ì¸m¤Î³sµ²ªº°}¦C
Dim Mark() As RichHyper
Private Sub Form_Load()
Dim PutString As String
Dim I As Integer
'¥»½d¨Ò¥Î¤F¤TÓ¼ÐÅÒ
ReDim Mark(2)
RTBox.Text = "News Group:tw.bbs.comp.language
¤½§i" + Chr(10)
RTBox.Text = RTBox.Text + "§Æ±æ¥»ª©ª©¤Í¦b
Post °ÝÃD¤§«e¯à¥ý°µ¦n¤U¦C·Ç³Æ
¤u§@¡G" + Chr(10)
'³]©w¼ÐÅÒ¤@
RTBox.Text = RTBox.Text + "1."
'³]©w¼ÐÅÒ¦r¦ê¤Î¦ì¸m
PutString = "¥ý¬d¸ß VB Help"
Mark(0).¶}©l¦ì¸m = Len(RTBox.Text)
Mark(0).µ²§ô¦ì¸m = Len(RTBox.Text) + Len(PutString)
Mark(0).³sµ²¦r¦ê = "VB Help
¨Ï¥Î»¡©ú"
RTBox.Text = RTBox.Text + PutString + Chr(10)
'³]©w¼ÐÅÒ¤G
RTBox.Text = RTBox.Text + "2."
PutString = "¬d¾\ VB5
ªì¯Å¥Í¦Ñ©Ç½d¨Ò"
Mark(1).¶}©l¦ì¸m = Len(RTBox.Text)
Mark(1).µ²§ô¦ì¸m = Len(RTBox.Text) + Len(PutString)
Mark(1).³sµ²¦r¦ê = "¦Ñ©Ç½d¨Ò¤U¸ü¿ìªk»¡©ú"
RTBox.Text = RTBox.Text + PutString + Chr(10)
'³]©w¼ÐÅÒ¤T
RTBox.Text = RTBox.Text + "3."
PutString = "¥J²Ó·Q²M·¡ Post
¤å³¹¥DÃD"
Mark(2).¶}©l¦ì¸m = Len(RTBox.Text)
Mark(2).µ²§ô¦ì¸m = Len(RTBox.Text) + Len(PutString)
Mark(2).³sµ²¦r¦ê = "Post ª`·N¨Æ¶µ"
RTBox.Text = RTBox.Text + PutString + Chr(10)
'¬°¦U¼ÐÅÒ¤W¦â¥[©³½u
For I = 0 To 2
RTBox.SelStart = Mark(I).¶}©l¦ì¸m
RTBox.SelLength = Mark(I).µ²§ô¦ì¸m
- Mark(I).¶}©l¦ì¸m
RTBox.SelUnderline =
True
RTBox.SelColor = RGB(0,
0, 255)
Next
'±N«ü¼Ð©ñ¦^ RTBox
¶}ÀY¡A¨Ãݦ³®ø°£¿ï¨ú°Ï¶ô¤§§@¥Î
RTBox.SelStart = 0
End Sub
Private Sub RTBox_Click()
Dim I As Long, Pointer As Long, MarkNum As Long
'¥Î Pointer °O¦í´å¼Ð¥Ø«e¦ì¸m
Pointer = RTBox.SelStart
'§â¼ÐÅÒ½s¸¹¥ý³]¬° -1
MarkNum = -1
For I = 0 To 2
'§Q¥Î Pointer
§PÂ_´å¼Ð¬O§_¸¨¦b¼ÐÅÒ¦ì¸m¤º
If Pointer < Mark(I).µ²§ô¦ì¸m
And Pointer > Mark(I).¶}©l¦ì¸m Then
'¨ú±o¼ÐÅÒ½s¸¹
MarkNum = I
Exit For
End If
Next
'MarkNum=-1 ªí¥Ü¨S¿ï¨ì¼ÐÅÒ¡A<>-1
«h¨Ì¼ÐÅÒ½s¸¹¨ú¥X³sµ²
If MarkNum <> -1 Then
MsgBox "§A¿ï¾Ü¤F¾\Ū
[" & Mark(MarkNum).³sµ²¦r¦ê & "]
³o½g¤å³¹"
End If
End Sub
Private Sub RTBox_KeyDown(KeyCode As Integer, Shift As Integer)
'¨¾¤î RTBox ³Q¨Ï¥ÎªÌ«ö Return
Áä©î¦¨¨â¬q
If KeyCode = 13 Then
KeyCode = 0
End If
End Sub
Private Sub RTBox_KeyPress(KeyAscii As Integer)
'¸T¤î¨Ï¥ÎªÌªºÁä½L¿é¤J
KeyAscii = 0
End Sub
±H¥óªÌ: Chung Chien-shun
½Ð°Ý Winsock ¦p¦ó¥Î¦ì¤¸°}¦C¶Ç°e©M±µ¦¬
¦Ñ©Çµª¡G
ProgressBar °ò¥»¹B§@¼Ò«¬¦p¤U¡G
Option Explicit
Private Sub Command1_Click()
Dim I As Integer
Dim HowLong As Date
For I = ProgressBar1.Min To ProgressBar1.Max
HowLong = Now
ProgressBar1.Value = I
Do While Second(Now -
HowLong) < 1
Loop
Next
ProgressBar1.Value = 0
MsgBox "¬d¸ß§¹¦¨"
End Sub
Private Sub Form_Load()
ProgressBar1.Max = 100
ProgressBar1.Min = 0
End Sub
Private Sub Command1_Click()
Dim Search As Long
RichTextBox1.LoadFile "FilePath&Name.rtf"
Search = RichTextBox1.Find("´M§ä¦r¦ê")
If Search > -1 Then
MsgBox "§ä¨ì¤F"
Else
MsgBox "¨S§ä¨ì"
End If
End Sub
¦pªG¤£§Æ±æ Richtextbox Åã²{¥X¨Ó¡A¥i±N¨ä Visible=False
±H¥óªÌ: jojos
§Ú¦b½s¼g¦Û¤vªº ocx ®É, ½sÄÀ¥X¨Ó«á, ¥i¬Oµo²{¸ò¨ä¥¦ªº control ³£®t«Ü¦h, ¯Ê¤Ö¤F«Ü¦h¨Æ¥ó, ³oÓ»Ýn¨Ï¥Î¤°»ò¤~¯à°÷¼W¥[§Úªº control ¨Æ¥ó..´N¹³ control_Click, control_MouseMove, ³oÃþªºªF¦è...
¦Ñ©Çµª¡G
- §A¥²¶·¦³ Event «Å§i¤Î RaiseEvent ±Ôz¡A¤j©è¤è¦¡¦p¤U¡G
Option Explicit
'¨Æ¥ó«Å§i:
Event Click() 'MappingInfo=UserControl,UserControl,-1,Click
Event DblClick() 'MappingInfo=UserControl,UserControl,-1,DblClick
Event MouseMove(Button As Integer, Shift As Integer, X As Single, Y As
Single) 'MappingInfo=UserControl,UserControl,-1,MouseMove
Private Sub UserControl_Click()
'¨Æ¥ó²£¥Íµ{§Ç
RaiseEvent Click
End Sub
Private Sub UserControl_DblClick()
RaiseEvent DblClick
End Sub
Private Sub UserControl_MouseMove(Button As Integer, Shift As Integer, X As
Single, Y As Single)
RaiseEvent MouseMove(Button, Shift, X, Y)
End Sub- §A¥i¥H¥Î [¼W¯q¶°]->[ActiveX ±±¨î¶µ¤¶±ºëÆF]À°§A¦Û°Ê²£¥Í³o¨Ç¨Æ¥óªºµ{¦¡½X¡A¦pªG¨S¦³¦¹ºëÆF¡A½Ð¥Î[¼W¯q¥\¯àºÞ²zû]·s¼W¡C
±H¥óªÌ: ªÖ©w¬O©p
SSTab(Tabctl32.ocx)±±¨î¶µ·Q¥Î¨ä¥¦¨Æ¥ó¡A´N¦Û°Ê¤Á¨ì§Ú·Qªº¨º¤@¶¡C
¦Ñ©Çµª¡G
±H¥óªÌ: Wei-Shin Huang
§Ú¦³¤@ÓWaveÀÉ¡A§Ú¥i¥H¥ÎMCIª«¥ó>Ū¨ú¥X¨Ó¡A¤]¥i¥H¼½©ñ¦¹ÀɮסC¦ý¬O§Ú·Q«Âм½©ñ¦¹¤@ÀɮסA¥u»Ý¤U¤@¦¸©R¥O¡C½Ð°Ý¤@¤U¡A³o¸Ó«ç»ò°µ¡H
¦Ñ©Çµª¡G
¸Õ¸Õ©³¤U³o¬q Code ¡A§â MMControl1.filename ³]¬°ªø¤@ÂIªºI´ºµ¼Ö¡AMMControl2.filename ³]¬°µuªºÄ²µoµ¼Ö¡AµM«á«ö CommandButton ¸Õ¸Õ¡C±©¤@ªº¯Ê¾Ñ¬OIJµoµ¼Ö®ÉI´ºµ¼Ö·|¼È°±¡A¤£¼È°±I´ºµ¼ÖIJµoµ¼Ö¤S¥X¤£¨Ó¡AÁÙ¨S§ä¨ì«ç¼Ë¤~¯à¦³²Vµªº®ÄªG¡A¦pªG§A§ä¨ì¤F½Ð¤£§[§iª¾§Ú¡C
Option Explicit
Private Sub Command1_Click()
MMControl1.Command = "Stop"
'«·s±Ò©l MCI WaveAudio ¶gÃä³]³Æ¡C
MMControl2.Command = "Prev"
MMControl2.Command = "Play"
End Sub
Private Sub Form_Load()
'§â MMControl Âð_¨Ó¥H§K¼vÅT¹CÀ¸µe±
MMControl1.Visible = False
MMControl1.Notify = False
MMControl1.Wait = True
MMControl1.Shareable = False
MMControl1.DeviceType = "WaveAudio"
MMControl1.filename = "C:\Win32App\Premiere\Samples\CIRCUS.WAV"
MMControl2.Visible = False
MMControl2.Notify = False
MMControl2.Wait = True
MMControl2.Shareable = False
MMControl2.DeviceType = "WaveAudio"
MMControl2.filename = "C:\Program
Files\Plus!\Pinball\Sounds\SOUND16.WAV"
'¶}±Ò MCI WaveAudio ¶gÃä³]³Æ¡C
MMControl1.Command = "Open"
'¼½©ñ MCI WaveAudio ¶gÃä³]³Æ¡C
MMControl1.Command = "Play"
MMControl2.Command = "Open"
End Sub
Private Sub Form_Unload(Cancel As Integer)
'Ãö³¬ MCI WaveAudio ¶gÃä³]³Æ¡C
MMControl1.Command = "Close"
MMControl2.Command = "Close"
End Sub
Private Sub MMControl1_Done(NotifyCode As Integer)
'¦pªG¼½©ñ§¹²¦
If NotifyCode = mciNotifySuccessful Then
MMControl1.Command = "Play"
'«·s±Ò©l MCI WaveAudio ¶gÃä³]³Æ¡C
MMControl1.Command = "Prev"
End If
End Sub
Private Sub MMControl2_Done(NotifyCode As Integer)
If NotifyCode = mciNotifySuccessful Then
MMControl1.Command = "Play"
MMControl2.Command = "Stop"
End If
End Sub
±H¥óªÌ: ¿c©ú¼w
¦btreeview¤¤¡A·íDrag¤@Ó NODE ¨ì³Ì©³¤Uªº Node ®É¡A¸Ó¦p¦óÅýTreeview±²°Ê¡AÅý§ó©³¤Uªº Node ¤W±²¡H
¦Ñ©Çµª¡G
©¾©ó¦Û¤v©¾©óì¨ý ¼¶¼g©ó¤å³¹
treeviewª«¥ó¦b form_load®É«ç»ò¼Ë¼g¤~¤£·|Åýtreeview¸Ì¨S¦³ªF¦è°Ú!!!
¦Ñ©Çµª¡G