[VB6 ] 新手程式碼的問題...麻煩了!!

看板Visual_Basic作者 (久城龍也)時間19年前 (2006/11/03 02:26), 編輯推噓3(300)
留言3則, 3人參與, 最新討論串1/2 (看更多)
程式碼如下 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)

11/03 09:19, , 1F
@@ 請問你有Command1這個按鈕嗎??
11/03 09:19, 1F

11/03 09:21, , 2F
我想問題是在 Label1.alignmnt 你確定這樣寫沒錯嗎?
11/03 09:21, 2F

11/03 09:25, , 3F
alignmnt ? 打錯字了吧
11/03 09:25, 3F
文章代碼(AID): #15IZX181 (Visual_Basic)
文章代碼(AID): #15IZX181 (Visual_Basic)