用户控件c# [英] User Controls c#

查看:108
本文介绍了用户控件c#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最初,我有一个代表主板的容器控件
和一些子控件(一个用于CPU,内存和多个I/O设备)

我想知道如何为数据总线创建用户控件
我的意思是一个控件,可以在垂直方向上修改其形状,
在设计脚和几个位置水平连接CPU
通过智能方式使用RAM和I/O设备.

我想知道如何指定设计时提供的服务
使用鼠标

Inagine I''ve a container control that represents a motherboard
and some child controls (one for CPU, Memory and several I/O devices)

I''d like to know how can i create a user control for the data bus
I mean a control, that can be modifified in its shape vertically and
horizontally at design tine and in several places to connect the CPU
with RAM and I/O devices in a smart way.

I''d like to know how to specify the services offered at design time
to use the mouse

推荐答案

当然,这是您的控件,可以按照自己喜欢的方式进行绘制.
Sure, it''s your control, have it draw itself any way you like.


这篇关于用户控件c#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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