使用C#打印序列号 [英] Print Serial Sequence Numbers with C#

查看:154
本文介绍了使用C#打印序列号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想生成一个范围内的序列号。

我有一个来自文本框和一个文本框。之后我必须从文本框和文本框中填写以指定范围。

数字应该在该范围内打印,它们应该连续出现。

我想这样做用C#。



请帮帮我....

I want to generate serial sequence numbers within a range.
I have a from textbox and a to textbox. After that i have to fill from textbox and To Textbox for specifying the range.
The numbers should print within that range and they should come serially.
I want to do it with C#.

Please help me out....

推荐答案

嗨。

我们不确定你的问题..

此代码可能对您有所帮助,万一你在寻找这个..



Hi.
WE are not sure of your question..
this code might help you, in case if u r looking for this..

int from = Convert.ToInt32(txtboxFrom.Text.Trim());
               int to = Convert.ToInt32(txtboxTo.Text.Trim());

               for (int i = from; i <= to; i++)
               {
                   // this loop will runs in the range mentioned in the text box..
                   // u can do your print or watever u want..

               }


这篇关于使用C#打印序列号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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