1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Map system which mointors the network using PING

Discussion in 'C#' started by Mr.President, Oct 14, 2010.

  1. Mr.President

    Mr.President New Member

    Joined:
    Apr 25, 2010
    Messages:
    51
    Likes Received:
    1
    Trophy Points:
    0
    The It manager of my company handed over me a project it was a simple 1
    first it was like develop the network map of the company to display the workstations and continuously ping each and every workstation and display tht status weather its down or working .....

    I used some static buttons and designed a form didn't do anything dayanamicaly bt later after some time he asked me to make it dynamical I mean
    the user should be able to add pc's or workstations using this software ....

    now I am trying every thing to do this software ... I couldn't get a good idea ... pls can any one help me ? no need a lecture just shed some light ... [​IMG]

    I am now downloading XNA to try using tht previously I tried to create buttons (which will represent workstations ) dayanamically bt no use

    I cannot name em
    Button <any name> = new Button();

    I cannot change the anyname part so I left it and now I am out of clue pls help !!!
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,293
    Likes Received:
    365
    Trophy Points:
    83
    Dynamically creation of button does not work or what?
     
  3. Mr.President

    Mr.President New Member

    Joined:
    Apr 25, 2010
    Messages:
    51
    Likes Received:
    1
    Trophy Points:
    0
    tht means for example
    Button bt = new Button();

    and then some properties...
    next add to form or a panel...

    okay

    Now what I wanna do is i wanna move the dynamically created controls the main thing is wt ever control I create I cannot change the name of tht control for example in the above case its bt can u give a variable for tht location I guess we can't so if I add a button as a work station I cannot move it ...

    may be C# GDI might help ...

    [​IMG]






    if u din get me then
    just imagine the CCNA packet tracer ... I wanna do a software like tht bt not tht complex
     
    Last edited: Oct 14, 2010
  4. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,293
    Likes Received:
    365
    Trophy Points:
    83
    Create an Array of Buttons instead of Button bt = new Button();
     
  5. Mr.President

    Mr.President New Member

    Joined:
    Apr 25, 2010
    Messages:
    51
    Likes Received:
    1
    Trophy Points:
    0
    thx shaabir.... I will try this ... bt b4 I try I wanna ask 1 question ... if I insert 40 dynamic buttons can I control, move every button using the name property or I have to control em using the array name
    like Button[x].Top = 100
     
  6. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,293
    Likes Received:
    365
    Trophy Points:
    83
    Button[x].Top because in C# variable is what matters
     
  7. Mr.President

    Mr.President New Member

    Joined:
    Apr 25, 2010
    Messages:
    51
    Likes Received:
    1
    Trophy Points:
    0
    okay thx bro this was a very useful discussion
     
  8. Mr.President

    Mr.President New Member

    Joined:
    Apr 25, 2010
    Messages:
    51
    Likes Received:
    1
    Trophy Points:
    0
    Final result and need some more ideas ....

    [​IMG]

    this is the final result after but I have some more questions..... can I have scoral bars attached to a panel ?
    cuz if space runs out then thts the end of the map ..!!!
     
  9. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,293
    Likes Received:
    365
    Trophy Points:
    83
    Need to see if it is doable within the control or not but you can have a scroll bar effect definitely by placing the scrolls and when user clicks move the panel inside a panel up or down.
     

Share This Page