Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. many dynamic forms

many dynamic forms

Scheduled Pinned Locked Moved C#
helpquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    DeathJester_
    wrote on last edited by
    #1

    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?

    K 1 Reply Last reply
    0
    • D DeathJester_

      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?

      K Offline
      K Offline
      krieg38
      wrote on last edited by
      #2

      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

      D 1 Reply Last reply
      0
      • K krieg38

        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

        D Offline
        D Offline
        DeathJester_
        wrote on last edited by
        #3

        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"); ....

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups