default textbox value
-
What do you mean by the default textbox value? If it's just a value when the form displays, simply set the
Text
property as inuserName.Text = "No user";
. Is it something more complicated that you are after?*pre-emptive celebratory nipple tassle jiggle* - Sean Ewington
"Mind bleach! Send me mind bleach!" - Nagy Vilmos
CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier
-
What do you mean by the default textbox value? If it's just a value when the form displays, simply set the
Text
property as inuserName.Text = "No user";
. Is it something more complicated that you are after?*pre-emptive celebratory nipple tassle jiggle* - Sean Ewington
"Mind bleach! Send me mind bleach!" - Nagy Vilmos
CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier
-
sir, i'm using textbox in my project having calculating some value. Noe if user hv'nt entered any value, then I wish to set default value as "0". plz suggest me something.
Check if the user entered a value when the textbox looses focus. If not, set aforementioned property to '0'. If this sounds "complex", then you probably want to spend some time at the library with a good book on the subject.
Bastard Programmer from Hell :suss:
-
Use the Properties window to set the 'Text' property to 0. This could be set as default when your form initializes. When the textbox loses focus add a validation. This should suffice. Alternatively I suppose you can set the text box to accept numbers only.
Sunil