作者yayagame (久城龍也)
看板Visual_Basic
標題[VB6 ] 新手程式碼的問題...麻煩了!!
時間Fri Nov 3 02:28:45 2006
程式碼如下
Private Sub Command1_Click()
If Check1 = 1 Then
Label1.FontBold = True
Else
Label1.FontBold = False
End If
If Check2 = 1 Then
Label1.FontUnderline = True
Else
Label1.FontUnderline = False
End If
If Option1.Value = True Then
Label1.alignmnt = 0
End If
If Option2.Value = True Then
Label1.alignmnt = 2
End If
If Option3.Value = True Then
Label1.alignmnt = 1
End If
End Sub
Private Sub Command2_Click()
End
End Sub
Private Sub Form_Load()
Label1.FontBold = False
Label1.FontUnderline = False
Option1.Value = ture
Label1.Alignment = 0
End Sub
--
它是顯示Private Sub Command1_Click()錯誤...
編輯錯誤:找不到方法或資料成員
但是我找不到原因...這是我們的一個作業
請板上的各位專家幫忙...
感恩!! <(_ _)>
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 125.232.135.153
※ 編輯: yayagame 來自: 125.232.135.153 (11/03 02:30)
推 qsss:@@ 請問你有Command1這個按鈕嗎?? 11/03 09:19
推 commiserate:我想問題是在 Label1.alignmnt 你確定這樣寫沒錯嗎? 11/03 09:21
推 colawei:alignmnt ? 打錯字了吧 11/03 09:25