Results 1 to 7 of 7

Thread: [RESOLVED] Map system which mointors the network using PING

  1. #1

    Thread Starter
    Junior Member nVidia's Avatar
    Join Date
    Dec 2008
    Posts
    22

    Resolved [RESOLVED] Map system which mointors the network using PING

    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 ...

    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. #2
    Frenzied Member TheBigB's Avatar
    Join Date
    Mar 2006
    Location
    *Stack Trace*
    Posts
    1,511

    Re: Map system which mointors the network using PING

    I'm not sure whether XNA is going to help you anything.
    It's basically for game designing.

    Other than that I'm not really sure what you are doing with the buttons.
    Can you post a screenshot?
    Delete it. They just clutter threads anyway.

  3. #3

    Thread Starter
    Junior Member nVidia's Avatar
    Join Date
    Dec 2008
    Posts
    22

    Re: Map system which mointors the network using PING

    the best example is Cisco packet tracer





    I wanna create a program like tht bt I know tht its too complex .. so I thought I will create buttons dynamically

    this is to display a network for example one button will represent the router or switch other buttons will act as nodes I will assign each node (button an IP address) so when I click a node(button) a popup will open and then It will ping tht node ...

    this is what I am trying...
    I am ok with the ping and all but I am struggling with the GUI

  4. #4
    Frenzied Member TheBigB's Avatar
    Join Date
    Mar 2006
    Location
    *Stack Trace*
    Posts
    1,511

    Re: Map system which mointors the network using PING

    But what do you have now?
    Can you post a screen of that?
    Delete it. They just clutter threads anyway.

  5. #5

    Thread Starter
    Junior Member nVidia's Avatar
    Join Date
    Dec 2008
    Posts
    22

    Re: Map system which mointors the network using PING




    vb Code:
    1. private void panel1_DoubleClick(object sender, EventArgs e)
    2.         {
    3.             //MouseEventArgs mv = new MouseEventArgs(System.Windows.Forms.MouseButtons.Left,2,10,10,0);
    4.  
    5.             int x = Cursor.Position.X;
    6.             int y = Cursor.Position.Y;
    7.             label1.Text = x.ToString();
    8.             label2.Text = y.ToString();
    9.  
    10.             //Point screenPos = this.MousePosition;
    11.            
    12.  
    13.  
    14.             Button[] btnArr = new Button[2];
    15.             btnArr[0] = new Button();
    16.             btnArr[0].Name = "IAmButton";
    17.             //btnArr[0].Left = x;
    18.             //btnArr[0].Top = y;
    19.             btnArr[0].Location = new Point(x, y);
    20.             btnArr[0].Size = new Size(50, 20);
    21.             btnArr[0].Text = "check";
    22.             panel1.Controls.Add(btnArr[0]);
    23.         }


    Update :

    Run time


  6. #6
    Frenzied Member TheBigB's Avatar
    Join Date
    Mar 2006
    Location
    *Stack Trace*
    Posts
    1,511

    Re: Map system which mointors the network using PING

    Quote Originally Posted by nVidia View Post
    vb Code:
    1. private void panel1_DoubleClick(object sender, EventArgs e)
    2.         {
    3.             //MouseEventArgs mv = new MouseEventArgs(System.Windows.Forms.MouseButtons.Left,2,10,10,0);
    4.  
    5.             int x = Cursor.Position.X;
    6.             int y = Cursor.Position.Y;
    7.             label1.Text = x.ToString();
    8.             label2.Text = y.ToString();
    9.  
    10.             //Point screenPos = this.MousePosition;
    11.            
    12.  
    13.  
    14.             Button[] btnArr = new Button[2];
    15.             btnArr[0] = new Button();
    16.             btnArr[0].Name = "IAmButton";
    17.             //btnArr[0].Left = x;
    18.             //btnArr[0].Top = y;
    19.             btnArr[0].Location = new Point(x, y);
    20.             btnArr[0].Size = new Size(50, 20);
    21.             btnArr[0].Text = "check";
    22.             panel1.Controls.Add(btnArr[0]);
    23.         }
    If that is working already, you don't even have to name them.
    You can give the .Tag property the IP or something like that and add an event here using btnArr[0].Click += .... (when you type += you can hit 'tab' twice and it creates an event handler for you).
    Then in the event handler use the sender to get the tag of the clicked button.
    Delete it. They just clutter threads anyway.

  7. #7

    Thread Starter
    Junior Member nVidia's Avatar
    Join Date
    Dec 2008
    Posts
    22

    Re: Map system which mointors the network using PING

    yea ... thx and I wanna know are there any other methods to do the same thing ?

    can v use GDI to do the same thing ... I just saw picture box drag and drop thread...

    pls advice !

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width