It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 12 years ago.
How would you go about sending key commands or keypresses of particular keys in C#, specifically numbers.
For instance I would like to simulate typing "512" programatically.
Possibly Related: C# SendKeys.Send
If you would use inputsimulator you could just do:
var number = 2011;
InputSimulator.SimulateTextEntry(number.ToString());
An integer variable doesn't have a UI, so can't have a keypress.
Events are for visual objects, not for variables
Related
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I was wondering how to do this. I am trying to learn how to make a Metro-style app for Windows Store.
Attach an Click event to the source button
In event handler mark `button2.Visibility = Visibility.Visible;'
As simple as that.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
In my online course I'm asked to put a label (lblQuestion with accelerator) and ComboBox on a form.
Putting a label and a combo box on a form is simple enough in VS 2010, but I am not sure what an accelerator is and how I use it?
For setting an accelerator you will use & character in front of the letter of your label, that you need to make available as an accelerator. See here: http://blog.csharphelper.com/2012/05/30/use-accelerators-on-labels-and-buttons-in-c.aspx for more details.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I have a form as Dashboards. I want to automatically refresh data without the data being read from the database and the user are shown.
What is the best late for this scenario? I did this using a timer, but the best for this scenario is late?
If you want to show data to user but you didn't want to crash your form you can Use background worker or use threads in advanced.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
Can't find any information in Web, so is there any standard possibilities for creating search by columns in default WPF DataGrid?
Here is a good one for you.
But, there is no Standard easy way of doing this. I think the easiest way is writing your own method which hopefully would save your time and give you more flexibility.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
Does C# have a code that makes a prompt box appear so that you can insert a value on it?
Like a messageBox but with a text field, like the one that javaScript has.
Or do I have to create a form for it?
You can use InputBox method from VisualBasic Interaction class.