例如:text1控件if aa=bb thentext1.forecolor=vbredText1.ForeColor = &HFF& ' 这两种都是将text1字体颜色显示红色end if*.forecolor 这就是字体颜色星号是控件名