|
hai Freind
thanks for ur replay
i like ur replay and had good fun
thank u
joe
|
|
|
|
|
Hi friends,
I am new to C# so i have doubt..I am geeting 8 digit EmployeeID,i want to truncte those Eight digits into four digits ..How it could be possible to implement.
Regards,
Jeyakrishnan
|
|
|
|
|
If your id is int or long:
int firstPart = id / 10000;<br />
int secondPart = id % 10000;
If it's a string, use the SubString method.
|
|
|
|
|
I need to get info from a router using SNMP. Following info expect to get remotly
CPU usage
UDP/TCP info
Memory Usage
Interface info
If u have a idea or sample code pls email me.
Manoj
|
|
|
|
|
I am sure you have to glaze over Windows Managemnt Instrumentation to get snmp information from your Router
ashis
|
|
|
|
|
Hi
I am making an application through which i can send message to another user with in a network(LAN).In this application there are two form i.e form1 and form2. When i send message to a userA, the form1 go into tray or it'll hide. After that a form2 will display on the screen of that user which i have sent message. In form2, there is an option of reply through which that userA can reply.Now i want to activate the main form which is hide in tray, when userA click on the reply button.
Reply me asap....
Devesh Mishra
|
|
|
|
|
can you share your code.
this is also my problem. its almost the same on my post.
by the way, i dont have any idea.
thanks.
to know everything is to know yourself...
|
|
|
|
|
hey i m sorry..cant share my code..
but if i'll get any solution then i'll def reply u..hope same frm u..
thanks
Devesh Mishra
|
|
|
|
|
Hi,
if you are trying to show the form1 as modal then call form1.ShowDialog(), but if you wants to show the form1 as modeless dialog then call form1.show().
Manoj
Never Gives up
|
|
|
|
|
Hi manoj
In my application, form1 is the main form and form2 comes from ShowDialog().
and now i want to open/activate form1 from form2 which is already hidden in system tray.
Thanks
Devesh Mishra
|
|
|
|
|
Since form2 is Modal dialog in ur application, you will not be able to get the form1 over it. what you can try is making the form2 modeless by running it with Show() function. In this can you can show form1 over form2 as form2 is modless now.
Manoj
Never Gives up
|
|
|
|
|
Hello,
devesh_code wrote: form2 comes from ShowDialog().
If you are using ShowDialog in Form1 to show Form2, code stops at this point and will only go if you close the form2.
In form2 you have the posibility to set the DialogResult and check it afterwards in form1.
Form2 f2 = new Form2();
if(f2.ShowDialog() == DialogResult.OK)
{
}
else
{
}
What you can not do is showing and interacting form1 while form2 is still open
If you whant to do this you would have to use Show() instead of ShowDialog().
If you then need to call a method or set a field in from1 from form2 you should read this nice article from ColinAngusMackay:
http://www.codeproject.com/dotnet/passingvaluesbetweenforms.asp[^]
Hope it helps!
All the best,
Martin
|
|
|
|
|
Hi Martin
Its not working...I think u r not getting me what i need..
there are two form i.e form1 and form2. There is a send button on the form1. when i click on send, it'll send a message that i m displaying on from2. form2 displays on the another system and form1 is on another system. Application is running on both the system. At form2, there is a reply button. Now i want to show form1 which is in system tray on both the system, when i click on reply.
reply me asap...
Thanks
Devesh Mishra
|
|
|
|
|
You're getting bad answers because your header is totally wrong. Your wording implies you have two forms on the one PC. You need to choose a port, listen to it with form2, and transmit to it with form1. Surely there are articles on what is essentially a chat program, here on Code Project ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
i've VS.net 2005.How can i add progress bar to subitem of listview control?
thank
=)
|
|
|
|
|
Hi,
How to convert single dimention byte array to two dimensional byte array.
Advance thanks
|
|
|
|
|
Hello,
I think fatsest way would be a loop!
byte[] b1 = new byte[5];
b1[0]=1;
b1[1]=2;
b1[2]=3;
b1[3]=4;
b1[4]=5;
byte[,] b2 = new byte[2, b1.Length];
for(int x=0;x < b1.Length;x++)
{
b2[0,x]=b1[x];
}
All the best,
Martin
-- modified at 6:58 Wednesday 30th May, 2007
|
|
|
|
|
Hai Friends,
i have to develop a .net appllication that will read windows events like
1. installation/Uninstalling of a software
2. pluging or pluging out of new Hardware
i will make my program as windows service or exe that will run always
now when these (above mentioned ) events occeres. i have to capture and show this message to user
how to do that?
plese help me. it is very urgent.
any idea? any Consepts? or any linkes?
plese help me
thank u
"Help Others U will be helped"
========>Joe<=============
-- modified at 1:37 Wednesday 30th May, 2007
|
|
|
|
|
|
Dear Friend,
thanks For your replay. i went throw the link
it was bit helpfull but i am unable to understand fully, and complete my problem
if U know please Explain me.
thank u
joe
|
|
|
|
|
Hi,
if you need further help, the best is you ask detailed questions in the forum of the article.
|
|
|
|
|
Does anyone here have a source code on internet speed?
What i mean is, I want to implement a program which can detect the speed of an internet. or just like the http://speedtest.net
I have a code already on client to server connection
using Net.Socket
Can you help me please. I`m a newbie in C# and also newbie in codeproject.com
Thanks guys.
just want to know everything...that`s it.
|
|
|
|
|
A speed test works by tracking the progress of a fair size file. So, you can set up a big file and download it, and see how long it takes to come down. Obviously, you can only test speed so long as your connection is slower than the server of the file. It seems to also be testing the speed of ping, that's also a reasonable test.
C#Coudou wrote: I`m a newbie in C# and also newbie in codeproject.com
I recommend you buy a beginner book on C# and work through learning hte language a bit, if you're really new to it. Too many people here will never know how to code, because all they are learning is how to ask for snippets and paste them into their apps.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Wow, I like this forum, very fast to reply. thanks so much.
Christian Graus wrote: because all they are learning is how to ask for snippets and paste them into their apps.
this is what i want and like "snippets".
Yeah i have lots of books here of C#. I just want to go on directly on my app. broadband speed test
could you please help me.
this is the part of code and it works fine.
for server
IPAddress IPAdd = IPAddress.Parse("192.168.1.8"); // my local ip address.
// initialize listener
TcpListener myList = new TcpListener(IPAdd, 8080);
for client
TcpClient myClient = new TcpClient();
Console.WriteLine("Connecting to server...");
// use the specified ipaddress and port in server side
myClient.Connect("192.168.2.226", 8080);
----
you have a code on this->
Christian Graus wrote: It seems to also be testing the speed of ping, that's also a reasonable test.
to know everything is to know yourself...
|
|
|
|
|
C#Coudou wrote: myClient.Connect("192.168.2.226", 8080);
You're connecting to yourself here, right ? That's not going to test your web connection.
C#Coudou wrote: you have a code on this->
No, I don't. It just seems like a reasonable thing to test.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|