Click here to Skip to main content
15,916,692 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to call default text editor Pin
thealca16-Aug-05 14:04
thealca16-Aug-05 14:04 
AnswerRe: How to call default text editor Pin
Mohamad Al Husseiny16-Aug-05 14:46
Mohamad Al Husseiny16-Aug-05 14:46 
AnswerRe: How to call default text editor Pin
therealmccoy16-Aug-05 19:16
therealmccoy16-Aug-05 19:16 
GeneralButton control and images Pin
Liunardu16-Aug-05 9:39
Liunardu16-Aug-05 9:39 
GeneralRe: Button control and images Pin
Mohamad Al Husseiny16-Aug-05 9:55
Mohamad Al Husseiny16-Aug-05 9:55 
GeneralSum of each column in a datagrid Pin
Srinivas Jonnalagadda16-Aug-05 8:21
Srinivas Jonnalagadda16-Aug-05 8:21 
GeneralTeam programming Pin
Genbox16-Aug-05 7:36
Genbox16-Aug-05 7:36 
GeneralRe: Team programming Pin
Colin Angus Mackay16-Aug-05 11:37
Colin Angus Mackay16-Aug-05 11:37 
using System.Net;
using System.Runtime.InteropServices;

class Arp
{

    [DllImport("iphlpapi.dll", ExactSpelling = true)]
    private static extern int SendARP(int DestIP, int SrcIP, [Out] byte[] pMacAddr, ref int PhyAddrLen);

    public string MyMethodName()
    {
        string LocalHostName = Dns.GetHostName();
        string[] Ipaddr = new string[3];
        Ipaddr[0] = LocalHostName;
        System.Net.IPHostEntry LocalIpAddress = Dns.GetHostEntry(LocalHostName);
        System.Net.IPAddress[] FirstAddress = LocalIpAddress.AddressList;
        foreach (IPAddress TempA in FirstAddress)
        {
            Ipaddr[1] = TempA.ToString();
            byte[] ab = new byte[6];
            int len = ab.Length;
            int r = SendARP((int)TempA.Address, 0, ab, ref len);
            Ipaddr[2] = BitConverter.ToString(ab, 0, 6);
        }
    }
}


To call this from some other code you first create an instance of Arp then you call the MyMethodName() method (you'll want to change this to a more suitable name)

Does this help?

By the way, given the price tag of Team system I doubt that you and a friend will want to use it once it is out of beta. It seems to be gears towards teams of 20+ (even although MS say 5+)


My: Blog | Photos
WDevs.com - Open Source Code Hosting, Blogs, FTP, Mail and More


GeneralRe: Team programming Pin
Anonymous16-Aug-05 20:16
Anonymous16-Aug-05 20:16 
GeneralRe: Team programming Pin
Genbox16-Aug-05 20:42
Genbox16-Aug-05 20:42 
GeneralDataGrid Sort Pin
Alomgir Miah16-Aug-05 7:33
Alomgir Miah16-Aug-05 7:33 
Generaldisable tab control page Pin
mhmo16-Aug-05 7:19
mhmo16-Aug-05 7:19 
GeneralRe: disable tab control page Pin
Mohamad Al Husseiny16-Aug-05 7:41
Mohamad Al Husseiny16-Aug-05 7:41 
GeneralAxWebBrowser - IHTMLSelectElement problem Pin
Romb16-Aug-05 7:18
Romb16-Aug-05 7:18 
Generallogin authentication Help needed Pin
ashkitt16-Aug-05 7:09
ashkitt16-Aug-05 7:09 
GeneralRe: login authentication Help needed Pin
Mohamad Al Husseiny16-Aug-05 9:46
Mohamad Al Husseiny16-Aug-05 9:46 
GeneralRe: login authentication Help needed Pin
ashkitt16-Aug-05 19:30
ashkitt16-Aug-05 19:30 
Questionplease help! this is urgent> how to retrieve data to my tabpage without using data form wizard? Pin
nidhelp16-Aug-05 6:59
nidhelp16-Aug-05 6:59 
AnswerRe: please help! this is urgent> how to retrieve data to my tabpage without using data form wizard? Pin
Mohamad Al Husseiny16-Aug-05 7:19
Mohamad Al Husseiny16-Aug-05 7:19 
GeneralRe: please help! this is urgent> how to retrieve data to my tabpage without using data form wizard? Pin
nidhelp16-Aug-05 7:41
nidhelp16-Aug-05 7:41 
GeneralRe: please help! this is urgent> how to retrieve data to my tabpage without using data form wizard? Pin
Mohamad Al Husseiny16-Aug-05 9:26
Mohamad Al Husseiny16-Aug-05 9:26 
GeneralRe: please help! this is urgent> how to retrieve data to my tabpage without using data form wizard? Pin
nidhelp16-Aug-05 17:43
nidhelp16-Aug-05 17:43 
GeneralDataSet Pin
samoore16-Aug-05 5:37
samoore16-Aug-05 5:37 
GeneralRe: DataSet Pin
Alomgir Miah16-Aug-05 6:11
Alomgir Miah16-Aug-05 6:11 
GeneralRe: DataSet Pin
Mohamad Al Husseiny16-Aug-05 7:06
Mohamad Al Husseiny16-Aug-05 7:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.