执行具有不同名称的Sub [英] Execute Sub with different names
问题描述
我有一个带有Button1和TextBox1的简单表单。
当我点击按钮时,我想执行一个名为
TextBox1.Text ...
有可能吗?
谢谢,
Jovo
***已发送通过开发人员指南 http://www.developersdex.com ***
不要只是参加USENET ......获得奖励!
" Jovo Mirkovic" <哟** @ sezampro.yu> schrieb:我有一个带有Button1和TextBox1的简单表单。
当我点击按钮时,我想执行一个名为
TextBox1.Text的子程序......
方法的名称不得包含句点(。)。
-
Herfried K. Wagner [MVP]
< URL:http://dotnet.mvps.org/>
方法的名称不得包含句点(。)。
是的,我知道......
TextBox1.Text =" SubName"
调用TextBox1.Text ......? (像这样......?)
***通过Developersdex发送 http://www.developersdex.com ***
不要只是参加USENET ......获得奖励!
" Jovo Mirkovic" <哟** @ sezampro.yu> schrieb:方法的名称不得包含句点(。)。
是的,我知道...
TextBox1.Text =" SubName"
此代码设置属性。
调用TextBox1.Text。 ..? (类似这样......?)
如果''TextBox1'中定义了''Text''方法,这将有效。
-
Herfried K. Wagner [MVP]
< URL:http://dotnet.mvps.org/>
I have a simple Form with a Button1 and TextBox1.
When I click button, I want execute a Sub procedure with name
TextBox1.Text...
Is it possible?
Thanks,
Jovo
*** Sent via Developersdex http://www.developersdex.com ***
Don''t just participate in USENET...get rewarded for it!
"Jovo Mirkovic" <yo**@sezampro.yu> schrieb:I have a simple Form with a Button1 and TextBox1.
When I click button, I want execute a Sub procedure with name
TextBox1.Text...
A method''s name must not contain a period (".").
--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
A method''s name must not contain a period (".").
Yes, I know that...
TextBox1.Text = "SubName"
Call TextBox1.Text ... ? (something like this...?)
*** Sent via Developersdex http://www.developersdex.com ***
Don''t just participate in USENET...get rewarded for it!
"Jovo Mirkovic" <yo**@sezampro.yu> schrieb:A method''s name must not contain a period (".").
Yes, I know that...
TextBox1.Text = "SubName"
This code sets a property.
Call TextBox1.Text ... ? (something like this...?)
This would work if there was a ''Text'' method defined in ''TextBox1''.
--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
这篇关于执行具有不同名称的Sub的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!