如何在VB.NET中仅将整数/数字从一个文本框复制到另一个文本框? [英] How to copy only integer/number from one textbox to another in VB.NET?

查看:248
本文介绍了如何在VB.NET中仅将整数/数字从一个文本框复制到另一个文本框?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好。我只是编程的初学者。我搜索了谷歌中的所有解决方案,但没有找到确切的解决方案。



我有两个文本框,一个有字符串输入的文本框(例如ABCD-01234),以及一个textbox2,它只复制textbox1中的整数/数字。



预期输出:textbox2.text = 01234



请帮帮我..



我尝试过:



Hi to all. I'm just a beginner in programming. I searched all solution in google but nothing found the exact solution.

I have two textboxes, a textbox1 that has an input of string (e.g. ABCD-01234), and a textbox2 that will copy only the integers/numbers from textbox1.

expected output: textbox2.text=01234

Please help me..

What I have tried:

I tried out all from google but nothing gave an exact solution.

推荐答案

你的时间会更好花在实际学习语言上: String.split vb.net - Google搜索 [ ^ ]。
Your time would be better spent actually learning the language: String.split vb.net - Google Search[^].


这篇关于如何在VB.NET中仅将整数/数字从一个文本框复制到另一个文本框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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