标题:向很会VB的人致敬~了!作业,帮助!!!!!!!
只看楼主
ljqw2009
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2012-6-5
结帖率:0
已结贴  问题点数:20 回复次数:1 
向很会VB的人致敬~了!作业,帮助!!!!!!!
Private Sub Command1_Click()
    ……
    Text3.Text = Label1.Caption + " :" + Text1.Text + Chr(13) + Chr(10)
    Text3.Text = Text3.Text + Label2.Caption + " :" + Text2.Text + Chr(13) + Chr(10)
   
    If  Option1.Value Then Text3.Text = Text3.Text + Label3.Caption + " :" + Option1.Caption + Chr(13) + Chr(10)
    If  Option2.Value Then Text3.Text = Text3.Text + Label3.Caption + " :" + Option2.Caption + Chr(13) + Chr(10)
    If  Not (Option1.Value Or Option2.Value) Then Text3.Text = Text3.Text + Label3.Caption + " :" + Chr(13) + Chr(10)
   
    If  Combo1.ListIndex <> -1  Then
     Text3.Text = Text3.Text + Label6.Caption + " :" + Combo1.Text + Chr(13) + Chr(10)
    Else
                Text3.Text = Text3.Text + Label6.Caption + " :" + Chr(13) + Chr(10)
    End If
   
    If  Combo2.ListIndex <> -1  Then
    Text3.Text = Text3.Text + Label4.Caption + " :" + Combo2.Text + Chr(13) + Chr(10)
    Else
     Text3.Text = Text3.Text + Label4.Caption + " :" + Chr(13) + Chr(10)
    End If
   
    Text3.Text = Text3.Text + Label5.Caption + " :" + Chr(13) + Chr(10)
   
If Check1.Value Then Text3.Text = Text3.Text + "         " + Check1.Caption + Chr(13) + Chr(10)
If Check2.Value Then Text3.Text = Text3.Text + "         " + Check2.Caption + Chr(13) + Chr(10)
        ……
End Sub
上面省略号表示需要你补充的代码位置。
做一个类似于网上申请邮箱时需要注册的内容那样的一个表格
2012-06-05 18:11
Alar30
Rank: 10Rank: 10Rank: 10
等 级:贵宾
威 望:10
帖 子:988
专家分:1627
注 册:2009-9-8
得分:20 
作业题还是自己做吧……
2012-06-06 15:19



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-370860-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 1.595535 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved