As Darren Wiens already indicates there is some information lacking to be able to provide a helpful answer.
Your thread is not posted in a place that is directed towards a specific audience (see: What are Places? ). Please move the content to a relevant place.
If you want to see code samples, it would be good to specify the API or SDK you are using. To see what flavors are available, please visit: ArcGIS for Developers