Sub createPanels(byVal results as Array) Dim NumberOfResults as integer = results.length Dim SubPanel(NumberOfResults) as Panel For resultNumber = 0 to NumberOfResults - 1 SubPanel(resultNumber) = new Panel With SubPanel(resultNumber) .BorderStyle = BorderStyle.Fixed3d .Dock = DockStyle.Top .Height = 60 End With ' Code to add labels etc from results array to the SubPanel ' ' At the moment the call to webservices is in here as well, ' although this is asynchronous and triggers an event when the call is ' complete allowing me to use this data on my SubPanels when it becomes ' available. I will move these calls to a new sub allowing only 15 requests ' at a time but I need to know which panels are onscreen in order to ' prioritise which ones are to be updated next. MainPanel.Controls.Add(SubPanel(resultNumber)) ' There are several controls that can be clicked on each SubPanel so we add ' a handler AddHandler SubPanelItem(resultNumber).Click, AddressOf PanelItemClicked Next End Sub
Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
Connect with Certified Experts to gain insight and support on specific technology challenges including:
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE