Basic Calculator Windows Forms C# [closed] - c#

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 9 years ago.
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Improve this question
I'm making a basic calculator on windows forms c#, everything's running the way I need it to, except that I need to know what I can do to show an "error" message on the textbox for the user everytime they press two buttons in a row, instead of having the program crash and not work. Thanks a lot!

You could have a variable in which you hold the last operator was clicked by user and whenever a button is clicked , you check; if it is operator (like + ,- , & ...) and current variable's value is not equal by new one , you update this variable else you could ignore the button clicked.

Related

How to check if the user has shared the link on facebook [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 9 years ago.
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Improve this question
Well, I'm creating a system event in which checks whether a user shared a link.
I did an extensive search, but found nothing about how to verify that the user shared this link.
My website is in C#, I did not find how to check for Code Behind.
use sharer.php because it a code and users can change the code in F12 - Inspect Element, so https://www.facebook.com/sharer/sharer.php?u=http%3A%2F%2Fgoogle.com.br try it and enjoy and good luck

Displaying data in list for windows phone [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 8 years ago.
Improve this question
I have two variables 'name' and 'amount' for about 100 items.
FYI item is a class and name and amount are its variables.
Now i have to display all my items as a list, with name in the right and amount in left of each row in my windows phone app.
what would be the right way to do it??
Create a new app that uses the "Databound Application" template and you'll get something very close to your needs that should be easy to modify for your exact requirements and provide a useful learning source.

WindowBeforeRightClick - PowerPoint 2007 [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Closed 9 years ago.
Improve this question
I'm attempting to add a Context Menu option to PowerPoint 2010 that only appears when text is selected. Unfortunately the WindowBeforeRightClick event does not seem to fire if the mouse is inside of a TextBox.
Is there a different event I need to be listening to or a better way to add that context menu?
According to the first answer on this Forum-Thread this is an issue that is known to Microsoft, but has not yet been fixed.
We are experiencing the same issue here.
Our current work-around is to use the WindowSelectionChange-Event. However, this will only work if you want to ensure that a TextBox has to be selected, as the SelectionChange-Event will only fire when you select a new shape.

How to error handle overclicking in C# [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
i have a program. If i over click a button, the whole program freezes. i don't know the code to error handle this. does anyone know how to error handle this.
thanks
Put your button clicked code in another thread see this examples:
Gui freeezing when using threading

How to Add Resize Handle in C# or VB.Net [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
How can I have the resize handles (the little squares or circles on the corners) during run time in my controls? Is there a component that allow me to have it? Or someone has a piece of code to do it?
If you mean windows form applications, Try these links:
http://www.codeproject.com/Articles/17245/Runtime-Control-Resizer
http://www.codeproject.com/Articles/24096/Drawing-Resizable-Controls-at-Runtime
http://www.codeproject.com/Articles/13184/Runtime-resizable-controls
You mean something else, Comment this answer to talk about.
Hope to be helpful

Categories

Resources