TextBox输入 [英] TextBox input

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

问题描述

作为视觉基础的新手,我多年来一直没有编程,而且我有很多困难应对它。如果任何一种

灵魂可以帮助我提出建议那么我会非常感激。


我正处于可以设计表格的阶段我可以在哪里插入文字

盒子。您在textbox1中键入一个单词,按确定,它出现在

textbox2中。我知道不是火箭科学。但我相信这会给你一个

的感觉。


我想做的是:


当你在textbox1中键入一个字符时,这个字符会立即显示在textbox2中,而这对我来说是个棘手的问题,你不需要
需要PRESS RETURN或OK或任何按钮。请原谅

大喊。


(我将要设计的最终将是一个翻译程序

将罗马数字转换为阿拉伯数字。在textbox1中输入的每个字母为

将在

验证后翻译成阿拉伯数字,并显示在textbox2中。我已经写了验证

算法,有办公桌检查它,它的工作原理。)

在任何人感到诱惑火焰或蔑视之前,我有RTFM,实际上是

各种FM',似乎没有任何帮助。输入框不会,

课程。


在旧BASIC中它可能会像这样的东西


INPUT输入字母;字母$

GOSUB加载验证和处理

打印信$


对1980年以后出生的人来说,这可能看起来像精灵。


谢谢你能提供帮助。


Bob

解决方案

< blockquote>

GOSUB加载验证和处理

打印信件





这个1980年以后出生的人可能看起来像精灵。


谢谢你能提供帮助。


Bob


>作为视觉基础的新手,我多年来一直没有编程,我

我遇到了最大的困难。如果有任何灵魂可以帮助我提出建议,那么我将非常感激。

我正处于可以设计表格的阶段我可以插入文字盒子。您在textbox1中键入一个单词,按确定,它出现在
textbox2中。我知道不是火箭科学。但是我相信这给你一个感觉我的水平。

我想要做的是这个:

当你在textbox1中输入一个字符然后这个角色即时显示在textbox2中,这对我来说是一个棘手的问题,你不需要按回车或OK或任何按钮。请原谅
大喊。

(我将最终设计的将是一个翻译程序
,它将罗马数字转换成阿拉伯数字。每个字母为
输入在验证后,textbox1将被翻译成阿拉伯数字,并显示在textbox2中。我已经编写了验证算法,已经检查过它并且它可以工作。)
在让任何人感到受到诱惑或嘲笑之前,我有RTFM,事实上各种FM'并没有什么似乎在这里有所帮助。当然,输入框不可能。

在旧的BASIC中,它可能会像这样。

INPUT输入一个字母;信

As a pre-newbie to visual basic, I haven''t programmed for years and I
am having the greatest of difficulties coping with it. If any kind
soul can help me out with advice then I''d be most grateful.

I am at the stage where I can design a form where I can insert text
boxes. You type in a word in textbox1, press OK and it appears in
textbox2. Not rocket science I know. But I trust this gives you a
feel for my level.

What I want to do is this:

As you type a character into textbox1 then this character is instantly
displayed in textbox2 and, this for me is the tricky bit, YOU DON''T
NEED TO PRESS RETURN or OK or any button at all. Please excuse the
shouting.

(What I will be designing eventually will be a translation program
which converts Roman numerals into Arabic numerals. Each letter as
entered in textbox1 will be translated into Arabic numerals, after
validation, and displayed in textbox2. I''ve written the validation
algorithm, have desk-checked it and it works.)

Before anyone feels tempted to flame or to scorn, I have RTFM, in fact
various FM''s and nothing seems to help here. InputBoxes won''t do, of
course.

In ye old BASIC it might go something like this

INPUT "Type in a letter"; letter$
GOSUB loads of validation and processing
PRINT letter$

This probably looks like Elvish to anyone born after 1980.

Thanks if you can help.

Bob

解决方案


GOSUB loads of validation and processing
PRINT letter




This probably looks like Elvish to anyone born after 1980.

Thanks if you can help.

Bob


> As a pre-newbie to visual basic, I haven''t programmed for years and I

am having the greatest of difficulties coping with it. If any kind
soul can help me out with advice then I''d be most grateful.

I am at the stage where I can design a form where I can insert text
boxes. You type in a word in textbox1, press OK and it appears in
textbox2. Not rocket science I know. But I trust this gives you a
feel for my level.

What I want to do is this:

As you type a character into textbox1 then this character is instantly
displayed in textbox2 and, this for me is the tricky bit, YOU DON''T
NEED TO PRESS RETURN or OK or any button at all. Please excuse the
shouting.

(What I will be designing eventually will be a translation program
which converts Roman numerals into Arabic numerals. Each letter as
entered in textbox1 will be translated into Arabic numerals, after
validation, and displayed in textbox2. I''ve written the validation
algorithm, have desk-checked it and it works.)

Before anyone feels tempted to flame or to scorn, I have RTFM, in fact
various FM''s and nothing seems to help here. InputBoxes won''t do, of
course.

In ye old BASIC it might go something like this

INPUT "Type in a letter"; letter


这篇关于TextBox输入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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