We need to assign one if clause to spacify the condiction that if a user assign zero show the maassage like:
initialize the variable in public and write:
double x;
double y;
double z;
string op;
under oparent button we write:
x=system.convert.tostring(texbox?.text);
op=/;
if(y=0)
{
massagebox.show("can't be devided");
}
Safiullah
Afghanistan