VBA,如何在窗体的标签内显示常用字(一个一个的显示)

如题所述

第1个回答  2011-05-04
tem.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace WindowsApplication5
{
public partial class Form1 : Form
{
string s;

public Form1()
{
InitializeComponent();
}

private void button1_Click(object sender, EventArgs e)
{
s = textBox1.Text;
string b = s.ToUpper();
textBox1.Text = b;
}

private void button2_Click(object sender, EventArgs e)
{
s = textBox1.Text;
string b = s.ToLower();
textBox1.Text = b;
}

private void button3_Click(object sender, EventArgs e)
{
this.textBox1.Text = s;
}
}
}
第2个回答  2011-05-04
你的问题没说清楚,什么叫一个一个的显示,是一字接着一字地动态显示?是在窗体调用时还是按钮点击时。
动态显示的话要用窗体的TIMER来实现。追问

按一下按钮显示一个字,再按一下再显示一个字。

相似回答