|
how can i send sms and recieved sms via smpp using c#.plz help me.
|
|
|
|
|
How to create a Web Page in C#.Net which gets IP adress of local machine and displays the country name..
|
|
|
|
|
This might give you an idea on how to get the ip:
using System;
using System.Net;
namespace GetIPCS
{
/// Gets IP addresses of the local machine
class classGetIPCS
{
[STAThread]
static void Main(string[] args)
{
// Get host name
String strHostName = Dns.GetHostName();
Console.WriteLine("Host Name: " + strHostName);
// Find host by name
IPHostEntry iphostentry = Dns.GetHostByName(strHostName);
// Enumerate IP addresses
int nIP = 0;
foreach (IPAddress ipaddress in iphostentry.AddressList)
{
Console.WriteLine("IP #" + ++nIP + ": " +
ipaddress.ToString());
}
}
}
}
-- modified at 4:02 Thursday 8th June, 2006
Edit: Just noticed that this was going to run in a web page.
The code used in ASP.NET run's on the server and is sent to the client ... the only way to get client info in .NET is to either run js on the client or use the HttpBrowserCapabilities class from the System.Web namespace wich dont have country or ip...
|
|
|
|
|
Hi,
A Client application needs to dial (using dialup) to a remote computer and uses that computer's internet connection. How to do this please..
Thanx.
-Arjun.
priyananth
|
|
|
|
|
If I remember well in the Platform SDK there is a good example of management of the RAS for the dial-up connections.
|
|
|
|
|
Does it allows to transfer the internet connection? and could u please tell me where i can find that sample code and document.
|
|
|
|
|
I don't know this, hovewer thake a look at msdn :
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/rras/rras/remote_access_service_reference.asp
|
|
|
|
|
Hi all.
I'm developing an application that i need to run on top of a full screen game like CS.
Does anyone know how to do this and could you provide some code examples for it.
I've seen my antivirus update message appearing on top when I'm inside the game, so it can be done somehow.
I have also problems sending global hotkeys as the game seems to block the hotkeys, but this I have also seen working with other applications.
Glad if anyone can help me about this and provide some C# code examples.
Thanks!
|
|
|
|
|
Have you tried setting the TopMost property of the form to true?
|
|
|
|
|
Yes, that don't help at all when using a full screen game.
I think the solution is not so easy and that i somehow need to program against the directx or something.
But i have no idea how to do this and can't find any articles about it.
But thanks for comment
|
|
|
|
|
You realise its quicker (and more fun) to learn to play the game well than to write a cheat?
Current blacklist
svmilky - Extremely rude | FeRtoll - Rude personal emails | ironstrike1 - Rude & Obnoxious behaviour
|
|
|
|
|
Well who has said that I need this for a cheat??...
I'm writing an in game application bar, where you can have a web browser that you can start from in game.
No integration against the game itself, only to graphic's, to get the application to run ontop of game.
The game is not CS, that was just an example.
So if you don't have any helpfull comments, don't bother to write.
|
|
|
|
|
How can i add checkbox control in a ListView Control in C#?
|
|
|
|
|
Use CheckedListBox. It allow to check multiple checkboxes.
To check each box programatically do like this:
for (int i = 0; i < checkedListBox1.Items.Count; i++)
{
checkedListBox1.SetItemCheckState(i, CheckState.Checked);
}
-------------------------------------------------------------------------
Or ListView
Set "CheckBoxes" property to true to display checkboxes.
To count number of checked boxes :
myListView.CheckedIndices.Count;
To get text from checked row on index i, first column :
myListView.CheckedItems[i].SubItems[0].Text;
To check row on index i
myListView.Items[i].Checked = true;
|
|
|
|
|
I want to print Html Table with header repeating on each page.Can anyone help me?
Thanks in advance
|
|
|
|
|
I got the answer to print html table.
This is the header | Body | footer |
By including thead tag ,we can print header part in all pages while printing
|
|
|
|
|
Hi,
How can i do comparison between 2 xml files weather they are ideal or different?
Thanks,
Hitesh
|
|
|
|
|
u can fill the dataset by dataset's readxml meathod
and then can compare the data of these dataset's
rahul
|
|
|
|
|
I think you can use 2 StreamReader class for opening the files and read and compare one line of each file with the ReadLine method.
In this way they are used less resources if the files are hudge.
|
|
|
|
|
Okay...I check it out with this one.
Thanks,
hitesh
|
|
|
|
|
In addition to what lmoelleb posted, I think it would be more reliable to use two XmlTextReader , call their Read methods to move from node to node and after each call compare their Value (and NodeType ) properties.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook
www.troschuetz.de
|
|
|
|
|
Notice that
<test><hello>world</hello></test>
is identical to
<test>
<hello>world</hello>
</test>
but it is NOT identical to
<test><hello>
world
</hello></test>
|
|
|
|
|
in this case the only solution i can think is load in dataset , as the first answer ... do you have other ideas?
|
|
|
|
|
One can use XmlTextReaders instead of the StreamReaders. Also possible but more memory consuming: Load both files into a XmlDocument and compare the strings returned by the InnerXml property.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook
www.troschuetz.de
|
|
|
|
|
I will use second case.
<test>
<hello>world
Thanks,
Hitesh
|
|
|
|