+ 1
Retrieve string GET_HARDWAREID to Richtextbox or Textbox instead of Console
C# DESKTOP APPLICATION I am trying to get string GET_HARDWAREID in Richtextbox or Textbox instead of Console.WriteLine(hwid) as you can see in Code. What will be the code for it? I tried many changes from stackoverflow solutions did not worked any of it wasted more than 36hrs. Please help me code this! Source code video tutorial: https://youtu.be/qmZBHzM0EKY https://code.sololearn.com/c4yrVwKQWLKL/?ref=app https://code.sololearn.com/cLJUOXUAHkbF/?ref=app
2 odpowiedzi
+ 1
Tried that already it doesn't retrieve anything 🙁
Update:
it was working all the time, i had to pass ENTER to load the contents of textbox
private void button_Click(object sender, EventArgs e)
{
textBox1.Focus();
SendKeys.Send("{ENTER}");
}
+ 1
textBox1.Text = HUID.GET_HARDWAREID;
I assume you have a winforms application for your textboxes.
https://www.c-sharpcorner.com/article/working-with-textbox-control-in-windows-forms-application-using-visual-stuudio-2/#:~:text=WinForms%20TextBox%20controls%20are%20used,the%20size%20of%20the%20control.
What is it that is not working?