将我的表单控件置于选项卡问题上 [英] Placing my form controlls onto tab problem

查看:58
本文介绍了将我的表单控件置于选项卡问题上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


  hi,我有一个项目,其中包含许多控件,例如文本框和下拉菜单,这些控件在运行时旨在根据我的下拉菜单中选择的项目显示来自ms访问数据库的项目详细信息.但是,现在我要 将它们全部放置在选项卡控件中.因此,我所做的就是将所有控件都切掉,并将它们放在我的标签中.当我运行该应用程序并选择一个项目时,它不会显示有关我的项目或任何内容的任何信息.在添加tabcontrol之前它起作用了 但是,当我将表单控件添加到选项卡时,它不起作用.有人可以告诉我为什么请问我如何纠正它吗?我需要引用选项卡控件吗?

Hi,
  i have a project which has a number of controlls e.g textboxes and drop down menues which when run, is meant to display data about project details from my ms access database based on which project is selected in my drop down menu. However, now i want to place them all in a tab control. So what i did was cut all my controlls out and placed them in my tab. When i run the application and select a project, it does not display any information regarding my projects or anything. It worked before i added the tabcontrol but when i add my form controls to my tab, it does not work. Can somebody tell me why please and how i can rectify it? Do i need to referrence the tab control?

推荐答案

通过获取一个简单标签并将其文本设置为this.label1.text ="Hi";

try the same by taking a simple label and setting its text to this.label1.text="Hi";

并检查其是否有效.


这篇关于将我的表单控件置于选项卡问题上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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