与其他表单中的组件交互 [英] Interact with components from other forms

查看:63
本文介绍了与其他表单中的组件交互的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这看起来有点愚蠢,但我从未在大学里学到这一点,我找不到任何教程或例子。


我在做什么让用户可以选择显示2个不同的日期。 1 yyyy-mm-dd表示法,另一个用dd-mm-yyyy表示法。


我正在使用第二种形式来执行此操作。

所以从Form1我在datagrid和Form2中有我的数据我有2个单选按钮,用户可以选择Date1和Date2。那么我怎么能用单选按钮与第一个表单进行交互?

This may seem a bit dumb, but I''ve never learnt this at college and I can''t find any tutorials or examples.

what I''m doing is giving the user the choice to show 2 different dates. 1 in yyyy-mm-dd notation and the other in dd-mm-yyyy notation.

I''m using a second form to do this.
So from Form1 I have my data in the datagrid and in Form2 I have 2 radio buttons giving the user the choice between Date1 and Date2. So how would I be able to interact with the first form with the radio buttons?

推荐答案

嘿M1kkelZU,你是从''Form1'调用''Form2'' '?
Hey M1kkelZU, is you invoking ''Form2'' from ''Form1''?


从form1调用form2是什么意思?


对不起,我还在上大学所以大部分时间对我来说都没有意义。我的教授现在并不是最好的。
What do you mean with Invoking form2 from form1?

Sorry, I''m still in college so most of this wont make sense to me yet. My professors aren''t exactly the best nowadays.


Hey M1kkelZU,你说你显示了两种不同的形式''Form1''和''Form2''。您是否正在为''Form2'对象并将其显示在''Form1'中?
Hey M1kkelZU, you said you''re showing two different forms ''Form1'' and ''Form2''. Is you taking object for ''Form2'' and showing it inside of ''Form1''?


这篇关于与其他表单中的组件交互的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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