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
i copied the mddata file from 1 exchange server to another, mounted the mailbox file, but can't see my mail
A Beautiful Disaster, multiple issues on Windows 7 / Vista Ultimate 64bit
Windows 2008 Server immediately logging off Terminal Services sessions created from .msi / Windows Install Package
Error when attaching database after move.
extract numbers from a cell
RDP in Adminpak.msi for Windows Server 2003/XP: How to turn off the connect local resource option
How to retrive OU Properties in an Active Directory using VB.NET
Problems with parsing an error message into a label on a form
Send Email From Access - VB Code to select Outlook 2007 Send Account
CMonthCalCtrl.GetCurSel() returns date 2 years off