| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 2073 人关注过本帖
标题:(求助)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
快速回复:(求助)textbox1.text为什么不会显示?
数据加载中...
 
   



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

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