Hi CHENG28,
What technology do you use? Windows Forms? Or Web application? Or other?
Sorry that I have some confusion for your question, could you please provide more details for this problem.
And please provide some code for your issue.
Regards,
Stanly
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to
MSDN Support, feel free to contact MSDNFSF@microsoft.com.