VB中编译错误:未找到方法或数据成员,是怎么回事? 5
PrivateSubCboFont_Change(IndexAsInteger)lbl1(3).FontName=CboFont.TextEndSubPrivateSub...
Private Sub CboFont_Change(Index As Integer)
lbl1(3).FontName = CboFont.Text
End Sub
Private Sub CboFontSize_Change(Index As Integer)
lbl1(3).FontSize = CboFontsize.Text
End Sub
Private Sub CboFontStyle_Change(Index As Integer)
If CboFontstyle.Text = "常规" Then
lbl1(3).FontBold = False
lbl1(3).Fontltalic = False
End If
If CboFontstyle.Text = "粗体" Then
lbl1(3).FontBold = True
End If
If CboFontstyle.Text = "斜体" Then
lbl1(3).Fontltalic = True
End If
If CboFontstyle.Text = "粗斜体" Then
lbl1(3).FontBold = True
lbl1(3).Fontltalic = True
End If
End Sub
Private Sub Cmd1_Click(Index As Integer)‘显示这里未找到方法或数据成员
If Index = 0 Then
Txt1.FontName = CboFont.Text
Txt1.FontSize = CboFontsize.Text
If CboFontstyle.Text = "常规" Then
Txt1.FontBold = False
Txt1.Fontltalic = False
End If
If CboFontstyle.Text = "粗体" Then
Txt1.FontBold = True
End If
If CboFontstyle.Text = "斜体" Then
Txt1.Fontltalic = True
End If
If CboFontstyle.Text = "粗斜体" Then
Txt1.FontBold = True
Txt1.Fontltalic = True
End If
End If
If Index = 1 Then
End
End If
End Sub 展开
lbl1(3).FontName = CboFont.Text
End Sub
Private Sub CboFontSize_Change(Index As Integer)
lbl1(3).FontSize = CboFontsize.Text
End Sub
Private Sub CboFontStyle_Change(Index As Integer)
If CboFontstyle.Text = "常规" Then
lbl1(3).FontBold = False
lbl1(3).Fontltalic = False
End If
If CboFontstyle.Text = "粗体" Then
lbl1(3).FontBold = True
End If
If CboFontstyle.Text = "斜体" Then
lbl1(3).Fontltalic = True
End If
If CboFontstyle.Text = "粗斜体" Then
lbl1(3).FontBold = True
lbl1(3).Fontltalic = True
End If
End Sub
Private Sub Cmd1_Click(Index As Integer)‘显示这里未找到方法或数据成员
If Index = 0 Then
Txt1.FontName = CboFont.Text
Txt1.FontSize = CboFontsize.Text
If CboFontstyle.Text = "常规" Then
Txt1.FontBold = False
Txt1.Fontltalic = False
End If
If CboFontstyle.Text = "粗体" Then
Txt1.FontBold = True
End If
If CboFontstyle.Text = "斜体" Then
Txt1.Fontltalic = True
End If
If CboFontstyle.Text = "粗斜体" Then
Txt1.FontBold = True
Txt1.Fontltalic = True
End If
End If
If Index = 1 Then
End
End If
End Sub 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询