|
How do I ping another computer?
Ross
|
|
|
|
|
There is a nice little Ping class for that...
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/AllLanguages/General
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
There is is 2.0 but not in 1.1 iirc.
|
|
|
|
|
correct.
Long time ago I did if for 1.0 with some 100 lines of code, using Socket.SendTo
and Socket.ReceiveFrom in a separate thread.
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/AllLanguages/General
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
System.Net.NetworkInformation.Ping
or
My.Computer.Network.Ping()
The second one only returns a boolean value whether or not the ping succeeded.
You'll have to tweak it a bit to make it work.
I made an app that does the same thing "ping Google.com" does in command prompt. I can get you the basics if you wish.
|
|
|
|
|
`Drew wrote: System.Net.NetworkInformation.Ping
well that's 2.0 also
`Drew wrote: My.Computer.Network.Ping()
I do almost everything using C#, and it does not have that nice My thingy.
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
Luc Pattyn wrote: `Drew wrote:
System.Net.NetworkInformation.Ping
well that's 2.0 also
Is that bad? I'm running 3.5 beta on my Vista machine.
Luc Pattyn wrote: `Drew wrote:
My.Computer.Network.Ping()
I do almost everything using C#, and it does not have that nice My thingy.
Hmm, I'm glad I'm stuck with VB.NET. What is the C# equal to My.settings?
|
|
|
|
|
`Drew wrote: well that's 2.0 also
Is that bad?
No, but my first answer was the Ping class, which got commented as being 2.0
`Drew wrote: I'm glad I'm stuck with VB.NET. What is the C# equal to My.settings?
Most of the things VB collected under My are available in all CLR languages, but not
through an equivalent for My. Total Physical Memory is one of those things only VB's My
offers. If you need to know how to do settings in C# I suggest you read MSDN about that.
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
hello friends.!!
i want to scroll or move text in my project to display the latest news but i dnt knw hw i will do tht is there any control in vb.net like in vb 6 marquee ???
plz help n tel me hw i will move or scrool text
thnks in advance
~~~Charanjot~~~
|
|
|
|
|
cnthlpyddntndrstndsnglwrdysd
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/AllLanguages/General
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
Hi every one. Please help.
I am connecting to a database via a webservice and it works great..
but then i have to connect my GUI via my codebehind page to the webservice and then i get this error.....
Everything works at home on a stand alone computer but not here at college on a networked computer. Can anyone tell me why and what i can do to fix it? Thanks
--------------------------------------------------------------------
error attached
--------------------------------------------------------------------
No connection could be made because the target machine actively refused it
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it
Source Error:
Line 61: string theight,
Line 62: string tphoto) {
Line 63: object[] results = this.Invoke("InsertClient", new object[] {
Line 64: tfirstName,
Line 65: tlastName,
Source File: c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\web page\c818c298\b074d3c7\App_WebReferences.qyhgim7u.1.cs Line: 63
Stack Trace:
[SocketException (0x274d): No connection could be made because the target machine actively refused it]
System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) +200
System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP) +60
System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception) +579
[WebException: Unable to connect to the remote server]
System.Net.HttpWebRequest.GetRequestStream() +732
System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) +176
localhost.WebServ.InsertClient(String tfirstName, String tlastName, Int32 tidNumber, String taddress, String tpostalCode, String tcellPhone, String temail, String tpassword, String tusername, String tquestion, String tanswer, String tgender, String thair, String teyes, String tethnic, String theight, String tphoto) in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\web page\c818c298\b074d3c7\App_WebReferences.qyhgim7u.1.cs:63
Reg.cmdSubmit_Click1(Object sender, EventArgs e) in C:\Documents and Settings\craig\Desktop\Web Page\reg.vb:70
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +96
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +116
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +31
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +32
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +72
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3839
|
|
|
|
|
Please don't cross post.
---
single minded; short sighted; long gone;
|
|
|
|
|
Do not cross post. Your small code snippet says you're using C#. Post the question there and stick with that forum.
|
|
|
|
|
Hi guys n gals .....
i need ur help... actly i want to set app(application path) for picture. i m using picture in my project n whnever i chnge the drive i.e. chnge frm one drive to another i hve to chnge the picture path also in code so tht it will be visible whn i run it.....so smebdy tel me hw i set the app path tht paicture so the whn drive chnge it will fetch path automatically plzzz plzzz plzzz help me
thnks in advance
~~~Charanjot~~~
|
|
|
|
|
Application.StartupPath will give you the current location of your Exe
good luck
|
|
|
|
|
Hello Friends,
I want to know How to freeze a particular column in flexgrid .
Eg.
I want to freeze a first column while horizontal scrollbar is used.
how to freeze it.
Give a example
pls Urgent
Thanks
Kankeyan J
|
|
|
|
|
Please read forum guidelines before posting a question.
Here is the link for same Forum Guidelines.
If you google this question you can find the answer.
|
|
|
|
|
hi frnds..
i used to draw the menu's using the draw item & measured item events.. & its nice..but the pblm is how can i give shortcut for that menu items...
|
|
|
|
|
if the menu is of the type toolstripmenuitem you can do it like this:
Dim mnuzoeken As New ToolStripMenuItem("zoeken")
mnuzoeken.ShortcutKeys = CType((System.Windows.Forms.Keys.Control Or System.Windows.Forms.Keys.F), System.Windows.Forms.Keys)
|
|
|
|
|
were i can find the toolstripmenuitem class
|
|
|
|
|
Public Class ToolStripMenuItem
Inherits System.Windows.Forms.ToolStripDropDownItem
Member of: System.Windows.Forms
|
|
|
|
|
Hi,
Whatever way you paint a menu item, you can assign a shortcut to it using the Shortcut
property.
If the menu item is OwnerDraw, and ShowShortcut is true, you may want to
visualize the shortcut.
You would have to do that yourself, in whatever way you consider appropriate.
The Shortcut.ToString() method may help you here.
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/AllLanguages/General
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
Hi,
I'm using Visual Basic 2005 Express windows application with SQL Server 2005 Express. The first form contains a Datagrid where the user can enter data, and when the Save Menu is clicked, these data should go into two tables at a time. How do I go about it? What is the best option? Should I use a Stored Procedure?
Thanks
|
|
|
|
|
It's impossible based on the loose info you have given, to give an answer remotely as helpful as the many you' find if you googled the question. What do you mean by 'two tables at a time' ?
Yes, it's always best to use a stored proc.
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
Use triggers. it will seperate the incoming data into two insert that into to two diffrent tables.
if we pass the second tables dataes as value for this triggers as input..
create trigger Trigger1 on trigtable1 for insert
as
declare @st1 varchar(10)
declare @st2 int
select @st1=(select trigtable1.F1Name from inserted)
select @st2=(select trigtable1.F2Name from inserted)
insert into trigtable2 values(@st1,@st2)
where Trigger1 <-- Trigger Name
trigtable1,trigtable2 <-- Table Name
str1 & str2 as variable for that triggers
Senthil S
|
|
|
|