Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C# (http://www.go4expert.com/forums/c-sharp/)
-   -   Map system which mointors the network using PING (http://www.go4expert.com/forums/map-mointors-network-using-ping-t23573/)

Mr.President 14Oct2010 16:40

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 ... http://www.vbforums.com/images/smilies/smile.gif

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

shabbir 14Oct2010 17:23

Re: Map system which mointors the network using PING
 
Dynamically creation of button does not work or what?

Mr.President 14Oct2010 17:58

Re: Map system which mointors the network using PING
 
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 ...

http://www.ebook4all.org/wp-content/...t-tracer-5.jpg






if u din get me then
just imagine the CCNA packet tracer ... I wanna do a software like tht bt not tht complex

shabbir 14Oct2010 19:16

Re: Map system which mointors the network using PING
 
Create an Array of Buttons instead of Button bt = new Button();

Mr.President 14Oct2010 19:56

Re: Map system which mointors the network using PING
 
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

shabbir 14Oct2010 22:27

Re: Map system which mointors the network using PING
 
Button[x].Top because in C# variable is what matters

Mr.President 15Oct2010 12:18

Re: Map system which mointors the network using PING
 
okay thx bro this was a very useful discussion

Mr.President 17Oct2010 11:55

Re: Map system which mointors the network using PING
 
Final result and need some more ideas ....

http://img43.imageshack.us/img43/3523/screenshotsxh.jpg

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

shabbir 17Oct2010 12:07

Re: Map system which mointors the network using PING
 
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.


All times are GMT +5.5. The time now is 07:35.