Click here to Skip to main content
15,888,461 members
Home / Discussions / C#
   

C#

 
QuestionDoes anyone knows how to extract .pkg file in C# .Net 3.5 ? Pin
Thant Thi6-Apr-14 17:34
professionalThant Thi6-Apr-14 17:34 
AnswerRe: Does anyone knows how to extract .pkg file in C# .Net 3.5 ? Pin
Mycroft Holmes6-Apr-14 19:15
professionalMycroft Holmes6-Apr-14 19:15 
AnswerRe: Does anyone knows how to extract .pkg file in C# .Net 3.5 ? Pin
Pete O'Hanlon6-Apr-14 19:52
mvePete O'Hanlon6-Apr-14 19:52 
QuestionDevexpress gridview conditional row color based on value Pin
Member 106494956-Apr-14 11:52
Member 106494956-Apr-14 11:52 
QuestionFrom project to other project in one solution Pin
Member 97331316-Apr-14 3:55
Member 97331316-Apr-14 3:55 
AnswerRe: From project to other project in one solution Pin
Peter Leow6-Apr-14 4:50
professionalPeter Leow6-Apr-14 4:50 
GeneralRe: From project to other project in one solution Pin
Member 97331318-Apr-14 4:02
Member 97331318-Apr-14 4:02 
Questionhow to show ip address client to listview when client connected and shutdown,wakeup client using c# windows forms. Thanks Pin
Member 107057405-Apr-14 22:02
Member 107057405-Apr-14 22:02 
Code Server :
C#
public Form1()
  {
      InitializeComponent();
  }

  private void Form1_Load(object sender, EventArgs e)
  {
      IPAddress[] localip = Dns.GetHostAddresses(Dns.GetHostName());
      foreach (IPAddress address in localip)
      {
          if (address.AddressFamily == AddressFamily.InterNetwork)
          {
              textBox1.Text = address.ToString();
              textBox2.Text = "8888";
          }
      }
  }

  private void button1_Click(object sender, EventArgs e)
  {
      TcpListener listenner = new TcpListener(IPAddress.Any, int.Parse(textBox2.Text));
      listenner.Start();
      tcpclient = listenner.AcceptTcpClient();

  }

Code client :
namespace CLIENT
{
public partial class Form1 : Form
{
private TcpClient tcpclient;
public Form1()
{
InitializeComponent();
}

private void Form1_Load(object sender, EventArgs e)
{
labelmessage.Visible = false;
}

private void button1_Click(object sender, EventArgs e)
{
tcpclient = new TcpClient();
IPEndPoint ipe = new IPEndPoint(IPAddress.Parse(textBox1.Text), int.Parse(textBox2.Text));
try
{
tcpclient.Connect(ipe);
if (tcpclient.Connected)
{
labelmessage.Visible = true;
labelmessage.Text = "Conected...";
}
}
catch
{

}
}
}
}
QuestionRe: how to show ip address client to listview when client connected and shutdown,wakeup client using c# windows forms. Thanks Pin
Richard MacCutchan6-Apr-14 1:40
mveRichard MacCutchan6-Apr-14 1:40 
QuestionRoles in c# Winforms Pin
meloukoud5-Apr-14 7:42
meloukoud5-Apr-14 7:42 
QuestionThe dates of the next week and the previous week days Pin
ismail204-Apr-14 21:28
ismail204-Apr-14 21:28 
AnswerRe: The dates of the next week and the previous week days Pin
OriginalGriff4-Apr-14 22:16
mveOriginalGriff4-Apr-14 22:16 
GeneralRe: The dates of the next week and the previous week days Pin
ismail204-Apr-14 23:29
ismail204-Apr-14 23:29 
GeneralRe: The dates of the next week and the previous week days Pin
OriginalGriff4-Apr-14 23:35
mveOriginalGriff4-Apr-14 23:35 
GeneralRe: The dates of the next week and the previous week days Pin
ismail204-Apr-14 23:48
ismail204-Apr-14 23:48 
GeneralRe: The dates of the next week and the previous week days Pin
OriginalGriff5-Apr-14 0:27
mveOriginalGriff5-Apr-14 0:27 
GeneralRe: The dates of the next week and the previous week days Pin
ismail205-Apr-14 0:55
ismail205-Apr-14 0:55 
GeneralRe: The dates of the next week and the previous week days Pin
OriginalGriff5-Apr-14 3:34
mveOriginalGriff5-Apr-14 3:34 
GeneralRe: The dates of the next week and the previous week days Pin
ismail205-Apr-14 4:27
ismail205-Apr-14 4:27 
GeneralRe: The dates of the next week and the previous week days Pin
OriginalGriff5-Apr-14 4:35
mveOriginalGriff5-Apr-14 4:35 
GeneralRe: The dates of the next week and the previous week days Pin
ismail205-Apr-14 4:43
ismail205-Apr-14 4:43 
GeneralRe: The dates of the next week and the previous week days Pin
OriginalGriff5-Apr-14 4:49
mveOriginalGriff5-Apr-14 4:49 
GeneralRe: The dates of the next week and the previous week days Pin
ismail205-Apr-14 4:52
ismail205-Apr-14 4:52 
GeneralRe: The dates of the next week and the previous week days Pin
OriginalGriff5-Apr-14 5:13
mveOriginalGriff5-Apr-14 5:13 
GeneralRe: The dates of the next week and the previous week days Pin
ismail205-Apr-14 5:27
ismail205-Apr-14 5:27 

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.