如何创建动态命令按钮 [英] How to create Dynamic command button

查看:87
本文介绍了如何创建动态命令按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须根据数据库记录在朗姆酒时间创建按钮并实现它们的事件.请帮我怎么做.请提供示例.

喜欢餐厅软件

谢谢与问候
Reji

I have to create buttons at rum time based on database records and implement their events. Please help me how to do this. please provide with an example.

like restaurant software

Thanks & Regards
Reji

推荐答案

我假设动态"是指在运行时创建的按钮.

I''m going to assume that by "dynamic" you mean a button created at runtime.

Dim newButton As New Button
newButton.Location = New Point(xPosition, yPosition)
newButton.Size = New Size(xSize, ySize)
newButton.Text = "some text"
SomeContainerControl.Controls.Add(newButton)


此链接可能对您有帮助
http://www.dreamincode.net/forums/topic/39831-dynamically-created-buttons / [ ^ ]
This link may help you
http://www.dreamincode.net/forums/topic/39831-dynamically-created-buttons/[^]


这篇关于如何创建动态命令按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆