many dynamic forms
-
hi everybody I want to make something like icq - a messaging programm. The main part is almost done, but there`s a problem. Whrn I click a contact from a list there opens a dialog window, which I dynamically create like Form form1=new Form() and then dynamically add buttons etc. When I click again the same contact, the simiar window opens and so on. How could I control that? I mean where could I fint what dynamic forms are already open? On the other hand, when I recieve a message from somebody, how should I find if the dialog box with the sender is already open?
-
hi everybody I want to make something like icq - a messaging programm. The main part is almost done, but there`s a problem. Whrn I click a contact from a list there opens a dialog window, which I dynamically create like Form form1=new Form() and then dynamically add buttons etc. When I click again the same contact, the simiar window opens and so on. How could I control that? I mean where could I fint what dynamic forms are already open? On the other hand, when I recieve a message from somebody, how should I find if the dialog box with the sender is already open?
-
You could store the opened forms in an array list on the form with the contact list and whan opening the new form you could check it if it is already in the arraylist
thanks! everything works fine, but there`s another problem my program looks like client windows apllication and sever xml web service. everything is ok on local machine. then i deploy web service on a host. and from now on client doesn`t want to work (i made a proper web reference) - it looks for a file "messages.xml" (which is called by web server) in c:\windows\......., not at the host public bool Send(int num1, int num2, DateTime date, string text) { DataSet ds=new DataSet(); ds.ReadXml("messages.xml"); ....