Answering your question without more context will prove difficult if not impossible. What are you trying to accomplish? What have you tried already? Are you just looking for ideas or is your current code producing errors? Are you attempting to do this at design time or during your app's runtime?