我想用winform做一个多媒体触摸屏幕程序界面
界面很简单 从0~9 九个按钮
下面一个文本框,求牛人帮做一个!
不行 帮我做个圆形按钮也可以,请提供详细代码!

解决方案 »

  1.   

    分太多了,不敢拿啊建议找下c# windows mobile 方面资料
      

  2.   

    画面放一个panel,然后放上10个按钮,0-9
    下面一个文本框
    还可以放“.”“clear”等按钮
    然后给每个按钮加一个onclick事件
    没click下给画面文本+=
      

  3.   

    重画按键,代码如下
    private void button1_Paint(object sender, PaintEventArgs e)
            {
                System.Drawing.Drawing2D.GraphicsPath buttonPath = new System.Drawing.Drawing2D.GraphicsPath();            // Set a new rectangle to the same size as the button's ClientRectangle property.
                System.Drawing.Rectangle newRectangle = button1.ClientRectangle;            // Decrease the size of the rectangle.
                newRectangle.Inflate(-10, -10);            // Draw the button's border.
                e.Graphics.DrawEllipse(System.Drawing.Pens.Black, newRectangle);            // Increase the size of the rectangle to include the border.
                newRectangle.Inflate(1, 1);            // Create a circle within the new rectangle.
                buttonPath.AddEllipse(newRectangle);            // Set the button's Region property to the newly created circle region.
                button1.Region = new System.Drawing.Region(buttonPath);
            }
    注意:需要调整按键的大小,最好是足够大的正方形的.
      

  4.   

    致LemIST:
    您好,能详细点 给出整个类的代码吗?比如说此方法在哪调用啊 等等!
    因为我是作JAVA的。。对WINFORM了解确实很贫乏,WINFORM的后台还可以看看帮助然后写出来
    界面确实不知道怎么搞!
      

  5.   

    致LemIST: 
    您的那个按钮我试了虽然是像圆形,但是效果确实是惨不忍睹,不过还是十分感谢您!
    求教哪位高手能帮我做个winform圆形按钮吗?最好能是圆形水晶按钮
    再次谢谢。因为百度和GOOGLE上都没有这方面的资料。
      

  6.   

    大哥 大姐们啊 圆形按钮或者
    是用Pictuurebox里面放一张圆形图片,只显示圆形图片的代码也可以
    帮帮忙啊