Click here to Skip to main content
15,896,512 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i try to design program in windows application c#

...user inputs equation in textbox for example >=50 then it will store in database and in next interface the user will input numbers to check if it is valid or not according to the equation..

What I have tried:

if (a >= 50)
           {
               textBox7.Text = "valid";
           }
           else
           {
               textBox7.Text = "invalid";
           }

           if(b >= 50)
           {
               textBox8.Text = "valid";

           }
           else
           {
               textBox8.Text = "invalid";
           }

           if (c >= 50)
           {
               textBox9.Text = "valid";

           }
           else
           {
               textBox9.Text = "invalid";
           }

       }
Posted
Updated 17-Sep-18 1:53am
Comments
OriginalGriff 17-Sep-18 7:52am    
This is not a good question - we cannot work out from that little what you are trying to do.
Remember that we can't see your screen, access your HDD, or read your mind - we only get exactly what you type to work with.
Use the "Improve question" widget to edit your question and provide better information.
Richard Deeming 18-Sep-18 15:16pm    
This article[^] might help.

1 solution

store this value and status with equation in sql table and
try to develop a stored procedure which take one input and return you the matched status
 
Share this answer
 
v2

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900