标题:(求助)textbox1.text为什么不会显示?
取消只看楼主
mustcome
Rank: 2
等 级:论坛游民
帖 子:25
专家分:10
注 册:2007-11-10
 问题点数:0 回复次数:2 
(求助)textbox1.text为什么不会显示?
Public Class Form1

    Private Sub ComboBox1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles ComboBox1.KeyDown
        If e.KeyCode = 13 Then
            ComboBox1.Items.Add(ComboBox1.Text)
            TextBox1.Text = ComboBox1.Items.Count

        End If
    End Sub

    Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged

    End Sub

    Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
        If Timer1.Enabled = False Then
            Timer1.Enabled = True
            Button1.Text = "停止"
        Else
            Button1.Text = "开始"
            Timer1.Enabled = False
        End If
    End Sub

    Private Sub Timer1_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles Timer1.Tick
        Dim a, n As Integer
        Randomize()
        n = ComboBox1.Items.Count
        a = Int(Rnd() * n)
        ComboBox1.SelectedIndex = a
        Label4.Text = ComboBox1.SelectedItem

    End Sub
End Class
搜索更多相关主题的帖子: Sub ByVal sender Private End 
2007-12-05 09:39
mustcome
Rank: 2
等 级:论坛游民
帖 子:25
专家分:10
注 册:2007-11-10
得分:0 
不行
textbox1.text还是不会显示
label4.text会显示
2007-12-08 04:23
mustcome
Rank: 2
等 级:论坛游民
帖 子:25
专家分:10
注 册:2007-11-10
得分:0 
回复
可能电脑有问题吧
2007-12-15 14:37



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




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

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