Click here to Skip to main content
15,911,142 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: System.InvalidOperationException Pin
Jon_Boy11-Dec-08 7:04
Jon_Boy11-Dec-08 7:04 
GeneralRe: System.InvalidOperationException Pin
Member 187172030-Dec-08 22:47
Member 187172030-Dec-08 22:47 
QuestionBinding Source Refresh Problem Pin
omiknight10-Dec-08 16:37
omiknight10-Dec-08 16:37 
AnswerRe: Binding Source Refresh Problem Pin
Brij11-Dec-08 17:23
mentorBrij11-Dec-08 17:23 
AnswerRe: Binding Source Refresh Problem Pin
ShilpaGInode14-Dec-08 20:56
ShilpaGInode14-Dec-08 20:56 
QuestionMigrating UDP Broadcast code from a C++ program to C# Pin
jwangAimCo10-Dec-08 11:46
jwangAimCo10-Dec-08 11:46 
QuestionRe: Migrating UDP Broadcast code from a C++ program to C# Pin
led mike11-Dec-08 4:53
led mike11-Dec-08 4:53 
QuestionRe: Migrating UDP Broadcast code from a C++ program to C# Pin
jwangAimCo11-Dec-08 5:56
jwangAimCo11-Dec-08 5:56 
Thank you "led mike" for that judicious response. You have been as helpful as you have been welcoming.

I guess I was mistaken when I thought that this forum was for learning things and helping each other. I am sorry for being new to this, but prefacing my post with, "I am new at both writing C# code and network protocol" obviously wasn't explainitory enough.

Unfortunately for you I don't just give up on learning things I don't know. I am still hoping that somebody could lend me a hand. I apologize for not being an elite coder, but then again if I knew how to do this I wouldn't be posting.

In my pseudo code I wasn't looking for the code to be written for me, I was merely posting some of the things that I was currently playing around with, however here is the code that I am working on right now. It won't compile (disclaimer), because it is buried in a larger namespace, but I have included the localized button code and the System files that I was using. Should be a simple copy paste.

using System.Net.Sockets;
using System.Net;


//CODE ASSOCIATED WITH A BUTTON 
        private void button_SearchAgain_Click(object sender, EventArgs e)
        {
            byte[] data = new byte[1024];
            string input, stringData;

            IPEndPoint ipep = new IPEndPoint(IPAddress.Broadcast, 20034);
            UdpClient udp = new UdpClient();
            Socket server = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);
            
            string burnR = "NRUBR";
            data = Encoding.ASCII.GetBytes(burnR.ToCharArray());
            //server.SendTo(data, data.Length, SocketFlags.None, ipep);
            udp.Connect(ipep);
            udp.Send(data, data.Length);

            IPEndPoint client = new IPEndPoint(IPAddress.Any, 20034);
            EndPoint Remote = (EndPoint)client;

            byte[] rcvdata = new byte[1024];
            if (udp.Available>0)
            {
                MessageBox.Show("You are here.");
            }
            //int recv = server.ReceiveFrom(rcvdata, ref Remote);

            server.Close();

AnswerRe: Migrating UDP Broadcast code from a C++ program to C# Pin
led mike11-Dec-08 6:24
led mike11-Dec-08 6:24 
AnswerRe: Migrating UDP Broadcast code from a C++ program to C# Pin
Christian Graus11-Dec-08 15:00
protectorChristian Graus11-Dec-08 15:00 
AnswerRe: Migrating UDP Broadcast code from a C++ program to C# Pin
jwangAimCo17-Dec-08 8:36
jwangAimCo17-Dec-08 8:36 
QuestionCan't open Scramble Dictionary download Pin
David Kinsella10-Dec-08 8:00
David Kinsella10-Dec-08 8:00 
AnswerRe: Can't open Scramble Dictionary download Pin
Dave Kreskowiak10-Dec-08 11:00
mveDave Kreskowiak10-Dec-08 11:00 
GeneralRe: Can't open Scramble Dictionary download Pin
David Kinsella10-Dec-08 13:51
David Kinsella10-Dec-08 13:51 
GeneralRe: Can't open Scramble Dictionary download Pin
Dave Kreskowiak10-Dec-08 14:29
mveDave Kreskowiak10-Dec-08 14:29 
QuestionHow to fecth email attribues(subject,from,date etc.) from an .msg file Pin
gsdeepak10-Dec-08 1:48
gsdeepak10-Dec-08 1:48 
AnswerRe: How to fecth email attribues(subject,from,date etc.) from an .msg file Pin
Giorgi Dalakishvili10-Dec-08 2:43
mentorGiorgi Dalakishvili10-Dec-08 2:43 
QuestionVietnampathfinder Travel Pin
vntravel10-Dec-08 0:15
vntravel10-Dec-08 0:15 
QuestionFacing a problem to create a dyanmic event at runtime Pin
Member 29821779-Dec-08 21:26
Member 29821779-Dec-08 21:26 
AnswerRe: Facing a problem to create a dyanmic event at runtime Pin
PC Player11-Dec-08 10:14
PC Player11-Dec-08 10:14 
AnswerRe: Facing a problem to create a dyanmic event at runtime Pin
Dragonfly_Lee24-Dec-08 19:25
Dragonfly_Lee24-Dec-08 19:25 
QuestionFacing a problem while implementing Balloon Callout Using Asp.Net Ajax Tool Kit Pin
Rankee RK9-Dec-08 8:52
Rankee RK9-Dec-08 8:52 
AnswerRe: Facing a problem while implementing Balloon Callout Using Asp.Net Ajax Tool Kit Pin
Giorgi Dalakishvili9-Dec-08 8:56
mentorGiorgi Dalakishvili9-Dec-08 8:56 
Questionorder of execution of mark and compact algorithms Pin
mukkanti0079-Dec-08 0:25
mukkanti0079-Dec-08 0:25 
GeneralRe: order of execution of mark and compact algorithms Pin
Luc Pattyn9-Dec-08 0:42
sitebuilderLuc Pattyn9-Dec-08 0:42 

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.