将输出写入文本框 [英] Write output to textbox

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

问题描述

您好,



我正在进行项目,我必须使用win from将数组输出写入文本框。例如,我有数据进入数组,找到最小值找到它的位置,并相应地写一个字符或整数到文本框。



if(location == 1)

打印f(letter is%d。\ n,0);

if(location == 2)

print f (letter is%d。\ n,1);



代码正在使用控制台输出但我想写入文本框此打印f。

在文本框中如0176

谢谢



我尝试了什么:



使用多个文本框但不写入文本框

Hello ,

i am working on project where i have to write array output to text box using win from . e.g i have data coming in an array and find the minimum value find its location and correspondingly write a character or integer to text box.

if (location == 1)
print f("letter is %d.\n", 0);
if (location == 2)
print f("letter is %d.\n", 1);

code is working with console output but i want to write to text box this print f.
in textbox like 0176
thank you

What I have tried:

working with multiple textbox but not writing to textbox

推荐答案

我假设您要使用 C ++ / CLI on Windows Forms 。请参阅 Microsoft Visual C ++ / CLI - Windows控件:文本框 [ ^ ]
I assume you want to use C++/CLI on Windows Forms. See Microsoft Visual C++/CLI - Windows Controls: The Text Box[^]


https://www.codeproject.com/Questions /148934/Writinhttps://www.codeproject.com/Questions/694309/how-to-show-output-of-value-in-texthttps://www.codeproject.com/Questions/356789/how-to-write -query-for-below-outputboxg-XML-Output

预览

https://www.codeproject.com/Questions/148934/Writinhttps://www.codeproject .COM /问题/ 694309 /价值如何对显示输出 - 的 - 功能于texthttps://www.codeproject.com/Questions/356789/how-to-write-query-for-below-outputboxg-XML - 输出



提交您的解决方案!

在回答问题时请:

仔细阅读问题。

了解英语不是每个人的第一语言,所以要对拼写错误和语法不宽容。

如果问题是表达不好然后要求澄清,忽略它,或编辑问题并解决问题。不欢迎侮辱。

让我们努力帮助开发人员,而不是让他们感到愚蠢。



此内容以及任何相关的源代码和文件,根据代码项目开放许可证(CPOL)许可



打印答案RSS



专家

过去24小时本月

OriginalGriff 290

Richard MacCutchan 200

F-ES Sitecore 175
Peter Leow 155

ppolymorphe 145

Peter Leow 1,555

OriginalGriff 1,553

ppolymorphe 1,035

Karthik Bangalore 730

Richard MacCutchan 639

相关问题

如何在文本框中输出此代码的结果?

从一个文本框执行代码并在另一个文本框中显示输出

用C#在富文本框中编写bangla

编译输出到文本框
将输出写入文件

编写XML输出
https://www.codeproject.com/Questions/148934/Writinhttps://www.codeproject.com/Questions/694309/how-to-show-output-of-value-in-texthttps://www.codeproject.com/Questions/356789/how-to-write-query-for-below-outputboxg-XML-Output
Preview
https://www.codeproject.com/Questions/148934/Writinhttps://www.codeproject.com/Questions/694309/how-to-show-output-of-value-in-texthttps://www.codeproject.com/Questions/356789/how-to-write-query-for-below-outputboxg-XML-Output

Submit your solution!
When answering a question please:
Read the question carefully.
Understand that English isn't everyone's first language so be lenient of bad spelling and grammar.
If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. Insults are not welcome.
Let's work to help developers, not make them feel stupid.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Print Answers RSS

Top Experts
Last 24hrs This month
OriginalGriff 290
Richard MacCutchan 200
F-ES Sitecore 175
Peter Leow 155
ppolymorphe 145
Peter Leow 1,555
OriginalGriff 1,553
ppolymorphe 1,035
Karthik Bangalore 730
Richard MacCutchan 639
Related Questions
How output the result of this code in a textbox?
Execution of code from one textbox and display output in another textbox
Writing bangla in rich textbox in C#
Compile output to textbox
writing output to a file
Writing XML Output


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

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