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

C#

 
AnswerRe: form closing reason problem Pin
Christian Graus4-Oct-09 21:32
protectorChristian Graus4-Oct-09 21:32 
GeneralRe: form closing reason problem Pin
Ajithevn5-Oct-09 0:30
Ajithevn5-Oct-09 0:30 
Answer[Message Deleted] Pin
Blikkies4-Oct-09 21:50
professionalBlikkies4-Oct-09 21:50 
GeneralRe: form closing reason problem Pin
Ajithevn5-Oct-09 0:32
Ajithevn5-Oct-09 0:32 
GeneralRe: form closing reason problem Pin
Blikkies5-Oct-09 1:11
professionalBlikkies5-Oct-09 1:11 
AnswerRe: form closing reason problem Pin
Mycroft Holmes4-Oct-09 22:33
professionalMycroft Holmes4-Oct-09 22:33 
GeneralRe: form closing reason problem Pin
Ajithevn5-Oct-09 0:27
Ajithevn5-Oct-09 0:27 
Questionwhat is the problem in this >>> see the code and pls help me Pin
amaankhan4-Oct-09 21:06
amaankhan4-Oct-09 21:06 
remoting dll >>>>
using System;
using System.Collections;
using System.Linq;
using System.Text;
using System.Runtime.Remoting;
using System.Runtime.Remoting.Channels;
using System.Runtime.Remoting.Channels.Http;


namespace Remoting
{
public class ChatServer : MarshalByRefObject
{
ArrayList client = new ArrayList();

public void AddClient(string s)
{
client.Add(s);

}
public ArrayList AllClient()
{
return client;
}

}
}

Server code >>>>>>>>

using System.Runtime.Remoting;
using System.Runtime.Remoting.Channels;
using System.Runtime.Remoting.Channels.Http;
using Remoting;

namespace Server
{
public partial class Form1 : Form
{
ChatServer server;
public Form1()
{
InitializeComponent();
HttpChannel ch = new HttpChannel(8080);
ChannelServices.RegisterChannel(ch, false);
RemotingConfiguration.RegisterWellKnownServiceType(typeof(ChatServer), "CS", WellKnownObjectMode.Singleton);


}

private void ShowClients_Click(object sender, EventArgs e)
{
server = new ChatServer();
ArrayList cn =server.AllClient();

foreach (string c in cn)
{
listBox1.Items.Add(c);
}


}
}
}

client code >>>>>

using System.Runtime.Remoting;
using System.Runtime.Remoting.Channels;
using System.Runtime.Remoting.Channels.Http;
using Remoting;

namespace Client
{
public partial class Form1 : Form
{
ChatServer client;
public Form1()
{
InitializeComponent();
HttpChannel ch = new HttpChannel();
ChannelServices.RegisterChannel(ch, false);
RemotingConfiguration.RegisterWellKnownClientType(typeof(ChatServer), "http://localhost:8080/CS");
client = new ChatServer();
client.AddClient("AAA");
}
}
}


>>>>>>>>> when i click on showclient its not showing ........ what is the problem.

Thanks in Advance
AnswerRe: what is the problem in this >>> see the code and pls help me Pin
Christian Graus4-Oct-09 21:08
protectorChristian Graus4-Oct-09 21:08 
GeneralRe: what is the problem in this >>> see the code and pls help me Pin
amaankhan4-Oct-09 21:13
amaankhan4-Oct-09 21:13 
GeneralRe: what is the problem in this >>> see the code and pls help me Pin
Christian Graus4-Oct-09 21:23
protectorChristian Graus4-Oct-09 21:23 
GeneralRe: what is the problem in this >>> see the code and pls help me Pin
amaankhan4-Oct-09 21:32
amaankhan4-Oct-09 21:32 
GeneralRe: what is the problem in this >>> see the code and pls help me Pin
amaankhan4-Oct-09 21:37
amaankhan4-Oct-09 21:37 
GeneralRe: what is the problem in this >>> see the code and pls help me Pin
Christian Graus4-Oct-09 21:37
protectorChristian Graus4-Oct-09 21:37 
GeneralRe: what is the problem in this >>> see the code and pls help me Pin
amaankhan4-Oct-09 21:42
amaankhan4-Oct-09 21:42 
GeneralRe: what is the problem in this >>> see the code and pls help me Pin
Christian Graus4-Oct-09 22:17
protectorChristian Graus4-Oct-09 22:17 
GeneralRe: what is the problem in this >>> see the code and pls help me Pin
amaankhan4-Oct-09 22:20
amaankhan4-Oct-09 22:20 
QuestionWinform DataGridView Host EXTCombo problem Pin
link27sea4-Oct-09 21:01
link27sea4-Oct-09 21:01 
QuestionPlaying scenarios in media player control Pin
Murthuja4-Oct-09 20:11
Murthuja4-Oct-09 20:11 
AnswerRe: Playing scenarios in media player control Pin
Christian Graus4-Oct-09 20:42
protectorChristian Graus4-Oct-09 20:42 
AnswerRe: Playing scenarios in media player control Pin
N a v a n e e t h4-Oct-09 20:43
N a v a n e e t h4-Oct-09 20:43 
GeneralRe: Playing scenarios in media player control Pin
Christian Graus4-Oct-09 20:46
protectorChristian Graus4-Oct-09 20:46 
GeneralRe: Playing scenarios in media player control Pin
N a v a n e e t h4-Oct-09 20:51
N a v a n e e t h4-Oct-09 20:51 
GeneralRe: Playing scenarios in media player control Pin
Christian Graus4-Oct-09 21:09
protectorChristian Graus4-Oct-09 21:09 
QuestionCustom monthCalendar control Pin
d.project4-Oct-09 13:07
d.project4-Oct-09 13:07 

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.