如何在anothor用户控件中访问一个用户控件的文本框 [英] how to access text box of one user control in anothor user contorl

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

问题描述

请帮助我,我有一个2用户控件的表单,其中一个有2个文本框名为UCEstate,另一个还有2个文本框名为UCArchive。我想在UCEstate的文本框中键入estatecode并按Enter键然后在UCEstate中的EstateName将加载UCArchive中的ArchiveCode。我编写了用于加载EstateName的代码,但我无法为归档代码执行此操作,因为归档代码在其他用户控件中,我不知道如何管理它。

please help me i have a form with 2 user contorl one of that has 2 textbox named UCEstate and another has also 2 text box Named UCArchive .i want when i type estatecode in text box of UCEstate and press enter then EstateName in UCEstate and ArchiveCode in UCArchive will be load . I wrote code for loading EstateName but I cant do it for archive code because archive code is in other user control and i dont know how to manage it.

推荐答案





阅读本提示:

在两种表格之间传递信息,第3部分:儿童与儿童 [ ^ ]


这篇关于如何在anothor用户控件中访问一个用户控件的文本框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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