Home > Software engineering >  O bosses guidance
O bosses guidance

Time:11-22

第二和第三,不会写代码,在线求助

CodePudding user response:

Textbook must have said, the control gain and loss of focus, as well as the background and foreground of attributes, and what font properties
Is according to the topic request, change attribute values when the incident happened,
If the class didn't listen to read first, then open the vb to all kinds of test, grope for will, vb honestly pupils with books and some curiosity no teacher can primer,

CodePudding user response:

Second question code:
 
Option Compare Database
Option Explicit

Private Sub Text0_Change ()
Label4. ForeColor=vbRed
End Sub

Private Sub Text0_LostFocus ()
Text0. BackColor=vbBlue
End Sub


The third code:
 
Option Compare Database
Option Explicit

Private Sub Command6_Click ()
Label5. FontBold=True
End Sub

Private Sub Command7_Click ()
Label5. FontSize=17
End Sub

Run the example:


Download address:
Link: https://pan.baidu.com/s/1j4exedC6jfjfrR_8RqnGDA
The extracted code: cz6g
  •  Tags:  
  • VBA
  • Related