Click here to Skip to main content
15,877,675 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi

I am developing a small application which contains two dialogs.

in the main dialog i have an edit button. on clicking edit button i have to show the second dialog. i am doing DoModal to show the second dialog.

i have a list box in the second dialog which i want to populate when i start showing the second dialog. how can i know that the dialog is completely populated?


please help me as my app is crashing every time.

thanks in advance..
dev
Posted

You're asking the wrong question. If you pass the data to the second dialog, it will populate itself in response to your code. You should post the specific code, and the specific error message so people can try to help you.
 
Share this answer
 
wrote:
i have a list box in the second dialog which i want to populate when i start showing the second dialog. how can i know that the dialog is completely populated?


Add a public method to your second dialog, which will populate the values. Call this public method before you call DoModal.

wrote:
please help me as my app is crashing every time.


Now there may be a completely different reason why your app crashes. Unless you show us your code, it's difficult to tell why.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900