Click here to Skip to main content
15,887,875 members
Home / Discussions / C#
   

C#

 
GeneralRe: Create autoplay bots Pin
merger12310-Nov-09 21:27
merger12310-Nov-09 21:27 
QuestionGetting the cells data when clicked on it in gridview asp.net Pin
sure_suresh8-Nov-09 23:27
sure_suresh8-Nov-09 23:27 
Questionabout treeview, Pin
miss YY8-Nov-09 22:35
miss YY8-Nov-09 22:35 
AnswerRe: about treeview, Pin
Luc Pattyn8-Nov-09 23:16
sitebuilderLuc Pattyn8-Nov-09 23:16 
AnswerRe: about treeview, Pin
Shameel8-Nov-09 23:41
professionalShameel8-Nov-09 23:41 
GeneralRe: about treeview, Pin
miss YY9-Nov-09 0:13
miss YY9-Nov-09 0:13 
QuestionWeird problem in C#.NET [Solved ^_^] Pin
Bilg218-Nov-09 22:35
Bilg218-Nov-09 22:35 
AnswerRe: Weird problem in C#.NET Pin
Jorg DD8-Nov-09 23:43
Jorg DD8-Nov-09 23:43 
Hi,because you've put the data receiving code in the 'if(tcpListener.Pending()){} statement this only works when you put a breakpoint on it. That is because only then the client has the time to send data before the next time the timer fires an event and the tcpListener.Pending() returns false.

This should solve it:

if (tcpListener.Pending() == true)
{
    hostSocket = tcpListener.AcceptSocket();
}
else if (hostSocket != null)
{
    if (hostSocket.Available != 0)
    {
        int numBytes = hostSocket.Available;
        Byte[] data = new Byte[numBytes];
        hostSocket.Receive(data);
        string msg = System.Text.ASCIIEncoding.ASCII.GetString(data);
        string[] co = msg.Split(' '); Console.WriteLine(msg);
        timer1.Stop();
    }
}


Regards
GeneralRe: Weird problem in C#.NET Pin
Bilg218-Nov-09 23:53
Bilg218-Nov-09 23:53 
QuestionVisual Studio Dataset Designer Shows Only Markup Pin
anderslundsgard8-Nov-09 22:20
anderslundsgard8-Nov-09 22:20 
QuestionImplement Output PlugIn in C#.net Pin
codeproject_Tarun8-Nov-09 22:16
codeproject_Tarun8-Nov-09 22:16 
AnswerRe: Implement Output PlugIn in C#.net Pin
Richard MacCutchan8-Nov-09 23:39
mveRichard MacCutchan8-Nov-09 23:39 
GeneralRe: Implement Output PlugIn in C#.net Pin
codeproject_Tarun9-Nov-09 22:08
codeproject_Tarun9-Nov-09 22:08 
GeneralRe: Implement Output PlugIn in C#.net Pin
Richard MacCutchan10-Nov-09 2:27
mveRichard MacCutchan10-Nov-09 2:27 
QuestionHttpWebRequest with certificate Pin
am1974po8-Nov-09 21:58
am1974po8-Nov-09 21:58 
AnswerRe: HttpWebRequest with certificate Pin
Shameel8-Nov-09 23:49
professionalShameel8-Nov-09 23:49 
Questionsql query Pin
sujeet3082@yahoo.com8-Nov-09 21:52
sujeet3082@yahoo.com8-Nov-09 21:52 
AnswerRe: sql query Pin
Christian Graus8-Nov-09 23:32
protectorChristian Graus8-Nov-09 23:32 
AnswerRe: sql query Pin
Shameel8-Nov-09 23:51
professionalShameel8-Nov-09 23:51 
GeneralRe: sql query Pin
ragnaroknrol9-Nov-09 2:53
ragnaroknrol9-Nov-09 2:53 
GeneralRe: sql query Pin
Shameel9-Nov-09 7:29
professionalShameel9-Nov-09 7:29 
AnswerRe: sql query Pin
padmanabhan N9-Nov-09 0:29
padmanabhan N9-Nov-09 0:29 
QuestionLogin failed for user 'NT AUTHORITY\ANONYMOUS LOGON'. How to connect to SQL server on another machine? Pin
Chesnokov Yuriy8-Nov-09 21:41
professionalChesnokov Yuriy8-Nov-09 21:41 
AnswerMessage Closed Pin
8-Nov-09 21:53
stancrm8-Nov-09 21:53 
AnswerRe: Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'. How to connect to SQL server on another machine? Pin
Chesnokov Yuriy8-Nov-09 22:09
professionalChesnokov Yuriy8-Nov-09 22:09 

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.