Looping through a hashtable or any keyed collection |
|||
LOOPING THROUGH HASHTABLE NETC# Tutorials |
|||
|
|
|||
|
|
|||
LOOPING THROUGH HASHTABLE NETLearn Tutorials |
|
Looping through a hashtable or any keyed collection
Example code for Looping through hashtable NET: foreach (string key in ButtonsCollection.Keys) { ControlItem ci=(ControlItem)ButtonsCollection[key]; ci.EditLabel.Location=new System.Drawing.Point(10, yPos); ci.ShortEditBox.Location=new System.Drawing.Point(150, yPos); ci.LongEditBox.Location=new System.Drawing.Point(270, yPos); theFormToAddTo.Controls.Add(ci.ShortEditBox); theFormToAddTo.Controls.Add(ci.LongEditBox); theFormToAddTo.Controls.Add(ci.EditLabel); yPos+=22; } |
Home
CSHARP Arrays in c sharp C sharp array objects C sharp separators context menu Compare dates csharp datetime Context menu c sharp Context menus csharp example Controls c sharp dynamically Database access c sharp Database access with ADO NET DataGrid c sharp Datagrid dataset csharp NET Datagrid Styles data grid Datasets listview dropdown selectbox Dialogbox csharp dialog box Drag and drop csharp Listview combo box csharp Looping through hashtable NET NET collections tutorial NET crawler safe url One row from dataset Output datetime csharp Popup form csharp Try catch c sharp |
||||||
![]() | |||||||