[RESOLVED] setting item properties with values of a variable at design time?
hi,
is it possible to set a value of an item, for example: a textbox1.text = Empty.String at design time?
thanks.
Re: setting item properties with values of a variable at design time?
Just delete the default Text. Voila! Empty string.
Re: setting item properties with values of a variable at design time?
hi,
forgot to mention that i want to do this in the properties window instead of writing the codes.
thanks.
Re: setting item properties with values of a variable at design time?
hi,
actually String.Empty was just an example. i'm planning on using other variables like Now(), My.Settings.SomeValue etc..
thanks.
Re: setting item properties with values of a variable at design time?
You can only set the Text property itself to a literal string. You can use the (ApplicationSettings) property to bind the Text or other properties to My.Settings or the (DataBindings) property to bind to other data sources but anything else would require code.
Re: setting item properties with values of a variable at design time?