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
Problem with Joomla email cloaking
can i use right([ClientName] to get the last part of a string in a Microsoft Access query if i don't know how long the last part is?
How can I print using a Clipper (DOS) application under Windows 7
Microsoft Word 2007 Cell Calculation
last month and week data set
Setting the Scroll bars in the Report Viewer Control
How to enable/disable a succeeding dropdown list if a value is selected on the first drop down list
How to Create an On Key Press Event in Visual Studio 2005
Simple SQL Join Query Syntax Issue
Windows Server 2008 Backup