|
-
Jul 7th, 2009, 03:21 AM
#1
Thread Starter
Hyperactive Member
[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.
VB Version: Microsoft Visual Studio 2008 Professional Edition
.NET Version: Microsoft .NET Framework Version 3.5
OS: Windows XP SP3
-
Jul 7th, 2009, 03:26 AM
#2
Re: setting item properties with values of a variable at design time?
Just delete the default Text. Voila! Empty string.
-
Jul 7th, 2009, 03:26 AM
#3
Thread Starter
Hyperactive Member
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.
VB Version: Microsoft Visual Studio 2008 Professional Edition
.NET Version: Microsoft .NET Framework Version 3.5
OS: Windows XP SP3
-
Jul 7th, 2009, 03:27 AM
#4
Thread Starter
Hyperactive Member
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.
VB Version: Microsoft Visual Studio 2008 Professional Edition
.NET Version: Microsoft .NET Framework Version 3.5
OS: Windows XP SP3
-
Jul 7th, 2009, 03:31 AM
#5
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.
-
Jul 7th, 2009, 03:34 AM
#6
Thread Starter
Hyperactive Member
Re: setting item properties with values of a variable at design time?
VB Version: Microsoft Visual Studio 2008 Professional Edition
.NET Version: Microsoft .NET Framework Version 3.5
OS: Windows XP SP3
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|