Microsoft
Software
Hardware
Network
Question : Can I create an array of objects?
I'm rebuilding and app from VB6 to a web application using Silverlight 3 and vb.net. I have a group of 10 products that are continuously used throughout the application. In VB6 a created arrays of textboxes and labels to load all of the information pertaining to the products.
Dim i as integer
For i = 0 to 9
txtPrice(i).text = "database value"
txtCost(i).text = "database value"
next
Trying to do the same thing here but I'm not seeing a way to create an array of textboxes or labels in Expression Blend. Is it possible?
Thanks!
Answer : Can I create an array of objects?
Don't think you can create index on xaml.
You can use Textbox0, Textbox1 etc
and then use FindName to access
ie
for (i=0; i< 10; i++)
{
TextBox t = (TextBox)this.FindName("Te
xtbox" + i.ToString());
t.Text = "database value"
}
Random Solutions
Multi row trigger join
Which permission I should give to an mssql user to be able to request the Query notifications?
dbcc loginfo ( a details explaination )
SQL creating table relationship trouble
charts or graphs
OL 2003 - My macro causes "this outlook session contains macros" warning
restricting microsoft outlook users to send maximum mails to users that belong to Global Address List
The BEST Way to Dual Boot & Ultility to Help with Registry Entries
RAID 1 or RAID 10 for windows 2003 server with SQL 2000 server
Undefined Function in Expression in Word 2007 Mail Merge from Access 2007