Click here to Skip to main content
15,886,830 members
Home / Discussions / C#
   

C#

 
AnswerRe: tool.Strip1.Visible = false and toolStrip2.Visible = false? Pin
Eddy Vluggen15-Dec-14 3:02
professionalEddy Vluggen15-Dec-14 3:02 
GeneralRe: tool.Strip1.Visible = false and toolStrip2.Visible = false? Pin
Member 1041097215-Dec-14 5:35
Member 1041097215-Dec-14 5:35 
AnswerRe: tool.Strip1.Visible = false and toolStrip2.Visible = false? Pin
BillWoodruff15-Dec-14 3:15
professionalBillWoodruff15-Dec-14 3:15 
GeneralRe: tool.Strip1.Visible = false and toolStrip2.Visible = false? Pin
Member 1041097215-Dec-14 5:43
Member 1041097215-Dec-14 5:43 
QuestionHow to store GPS Device data in the SQL data base Pin
heyvid14-Dec-14 18:05
heyvid14-Dec-14 18:05 
AnswerRe: How to store GPS Device data in the SQL data base Pin
syed shanu14-Dec-14 20:50
mvasyed shanu14-Dec-14 20:50 
AnswerRe: How to store GPS Device data in the SQL data base Pin
Eddy Vluggen14-Dec-14 22:32
professionalEddy Vluggen14-Dec-14 22:32 
GeneralMind Your Language Pin
heyvid15-Dec-14 1:56
heyvid15-Dec-14 1:56 
// Server

using System;
using System.Text;
using System.Collections.Generic;
using System.Net.Sockets;

namespace OurSpiffyServer_ConsoleApp
{
class Program
{
const int Port = YourPort;
static void Main(string[] args)
{
try
{
System.Net.IPAddress serverAddress = System.Net.IPAddress.Parse(Your IP);
TcpListener listener = new TcpListener(serverAddress, Port);
listener.Start();
TcpClient ourTCP_Client = listener.AcceptTcpClient();
NetworkStream ourStream = ourTCP_Client.GetStream();
byte[] data = new byte[ourTCP_Client.ReceiveBufferSize];
int bytesRead = ourStream.Read(data, 0, System.Convert.ToInt32(ourTCP_Client.ReceiveBufferSize));
Console.WriteLine("Received : " + Encoding.ASCII.GetString(data, 0, bytesRead));
Console.ReadLine();
}
catch (Exception e) { }
}
}
}

// Client

using System;
using System.Text;
using System.Collections.Generic;
using System.Net.Sockets;

namespace consoleTCPClient
{
class Program22
{
const int ourPort = yourPort;
static void Main1(string[] args)
{
TcpClient ourMagicClient = new TcpClient();
ourMagicClient.Connect(YourIP, ourPort);
NetworkStream ourStream = ourMagicClient.GetStream();
byte[] data = Encoding.ASCII.GetBytes(" Welcome !");
ourStream.Write(data, 0, data.Length);
}
}
}
GeneralRe: Mind Your Language Pin
Eddy Vluggen15-Dec-14 3:00
professionalEddy Vluggen15-Dec-14 3:00 
AnswerRe: How to store GPS Device data in the SQL data base Pin
Simon_Whale14-Dec-14 23:46
Simon_Whale14-Dec-14 23:46 
QuestionMessage Removed Pin
14-Dec-14 5:38
owais201214-Dec-14 5:38 
QuestionGet the Processor / Bios MAC using C# Pin
Jassim Rahma14-Dec-14 4:21
Jassim Rahma14-Dec-14 4:21 
AnswerRe: Get the Processor / Bios MAC using C# Pin
OriginalGriff14-Dec-14 4:32
mveOriginalGriff14-Dec-14 4:32 
AnswerRe: Get the Processor / Bios MAC using C# Pin
Slalom Zhang14-Dec-14 4:34
Slalom Zhang14-Dec-14 4:34 
Questionextending an Enum in code outside the Enum : C# language feature Pin
BillWoodruff12-Dec-14 22:19
professionalBillWoodruff12-Dec-14 22:19 
AnswerRe: extending an Enum in code outside the Enum : C# language feature Pin
OriginalGriff12-Dec-14 23:08
mveOriginalGriff12-Dec-14 23:08 
GeneralRe: extending an Enum in code outside the Enum : C# language feature Pin
BillWoodruff12-Dec-14 23:53
professionalBillWoodruff12-Dec-14 23:53 
GeneralRe: extending an Enum in code outside the Enum : C# language feature Pin
OriginalGriff13-Dec-14 0:36
mveOriginalGriff13-Dec-14 0:36 
GeneralRe: extending an Enum in code outside the Enum : C# language feature Pin
BillWoodruff13-Dec-14 0:59
professionalBillWoodruff13-Dec-14 0:59 
Questionthread Safe Pin
Member 1082714012-Dec-14 20:56
Member 1082714012-Dec-14 20:56 
AnswerRe: thread Safe Pin
Richard MacCutchan12-Dec-14 22:08
mveRichard MacCutchan12-Dec-14 22:08 
QuestionWindows form controls reposition when DPI changes Pin
robwm112-Dec-14 11:42
robwm112-Dec-14 11:42 
AnswerRe: Windows form controls reposition when DPI changes Pin
Eddy Vluggen12-Dec-14 14:06
professionalEddy Vluggen12-Dec-14 14:06 
GeneralRe: Windows form controls reposition when DPI changes Pin
robwm115-Dec-14 7:56
robwm115-Dec-14 7:56 
GeneralRe: Windows form controls reposition when DPI changes Pin
Eddy Vluggen16-Dec-14 0:28
professionalEddy Vluggen16-Dec-14 0:28 

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.