Click here to Skip to main content
15,891,976 members
Home / Discussions / C#
   

C#

 
QuestionForm Closing Validation Problem Pin
PriteshMalvan6-May-07 19:55
PriteshMalvan6-May-07 19:55 
AnswerRe: Form Closing Validation Problem Pin
Sandeep Akhare6-May-07 20:24
Sandeep Akhare6-May-07 20:24 
GeneralRe: Form Closing Validation Problem Pin
Jaiprakash M Bankolli6-May-07 22:16
Jaiprakash M Bankolli6-May-07 22:16 
GeneralRe: Form Closing Validation Problem Pin
Sandeep Akhare6-May-07 22:25
Sandeep Akhare6-May-07 22:25 
AnswerRe: Form Closing Validation Problem Pin
Jaiprakash M Bankolli6-May-07 22:14
Jaiprakash M Bankolli6-May-07 22:14 
AnswerRe: Form Closing Validation Problem Pin
AFSEKI7-May-07 1:28
AFSEKI7-May-07 1:28 
AnswerRe: Form Closing Validation Problem Pin
AFSEKI9-May-07 0:42
AFSEKI9-May-07 0:42 
Questionneed help with remoting limitation pls Pin
neodeaths6-May-07 19:35
neodeaths6-May-07 19:35 
hi i am using remoting on c#.net window application trying to pass 1 int value to the server thru the network.

i have decided to use remoting but i feel that there is some limitation to it that dont fit what i need please advice me pls.
(i will post my test program below)

firstly i realise that when the client connect to the server the client just create an instance with the server's class and not actually passing any value over to the server...

secondly i cant find a way for the server to react when the client pass some values to it.




the class object:
<br />
namespace ClassLibrary1<br />
{<br />
    public class Class1 : MarshalByRefObject<br />
    {<br />
        string aa;<br />
        public Class1()<br />
        {<br />
            aa = "55";    <br />
        }<br />
        public string abc(string ab)<br />
        {<br />
            <br />
            return (ab + aa);<br />
        }<br />
    }<br />
}


server:
private void Form1_Load(object sender, EventArgs e)<br />
        {<br />
            // Create an instance of a channel<br />
            TcpChannel channel = new TcpChannel(8080);<br />
            ChannelServices.RegisterChannel(channel);<br />
<br />
            // Register as an available service with the name HelloWorld<br />
            RemotingConfiguration.RegisterWellKnownServiceType(<br />
                typeof(ClassLibrary1.Class1),<br />
                "HelloWorld",<br />
                WellKnownObjectMode.SingleCall);<br />
        }


client:
private void Form1_Load(object sender, EventArgs e)<br />
        {<br />
<br />
            TcpChannel chan = new TcpChannel();<br />
            ChannelServices.RegisterChannel(chan);<br />
<br />
            // Create an instance of the remote object<br />
            ClassLibrary1.Class1 obj = (ClassLibrary1.Class1)Activator.GetObject(<br />
                typeof(ClassLibrary1.Class1),<br />
                "tcp://localhost:8080/HelloWorld");<br />
            //"tcp://172.17.168.51:8080/HelloWorld");<br />
           <br />
            string lala = obj.abc("kings");<br />
            label1.Text = lala;<br />
<br />
        }

AnswerRe: need help with remoting limitation pls Pin
_mubashir7-May-07 1:44
_mubashir7-May-07 1:44 
GeneralRe: need help with remoting limitation pls Pin
neodeaths7-May-07 22:33
neodeaths7-May-07 22:33 
QuestionProblem with for each statement Pin
kalaveer6-May-07 19:26
kalaveer6-May-07 19:26 
AnswerRe: Problem with for each statement Pin
Ravi Bhavnani6-May-07 19:28
professionalRavi Bhavnani6-May-07 19:28 
GeneralRe: Problem with for each statement Pin
kalaveer6-May-07 20:07
kalaveer6-May-07 20:07 
GeneralRe: Problem with for each statement Pin
sujithkumarsl6-May-07 22:52
sujithkumarsl6-May-07 22:52 
AnswerRe: Problem with for each statement Pin
Christian Graus6-May-07 20:45
protectorChristian Graus6-May-07 20:45 
GeneralRe: Problem with for each statement Pin
kalaveer7-May-07 0:20
kalaveer7-May-07 0:20 
GeneralRe: Problem with for each statement Pin
Christian Graus7-May-07 1:12
protectorChristian Graus7-May-07 1:12 
AnswerRe: Problem with for each statement Pin
Martin#6-May-07 20:46
Martin#6-May-07 20:46 
GeneralRe: Problem with for each statement Pin
kalaveer6-May-07 21:39
kalaveer6-May-07 21:39 
GeneralRe: Problem with for each statement Pin
Guffa6-May-07 21:48
Guffa6-May-07 21:48 
GeneralRe: Problem with for each statement Pin
kalaveer6-May-07 22:57
kalaveer6-May-07 22:57 
GeneralRe: Problem with for each statement Pin
Christian Graus7-May-07 1:11
protectorChristian Graus7-May-07 1:11 
GeneralRe: Problem with for each statement Pin
Martin#6-May-07 21:52
Martin#6-May-07 21:52 
AnswerRe: Problem with for each statement Pin
Sandeep Akhare6-May-07 20:52
Sandeep Akhare6-May-07 20:52 
QuestionWebBrowser crawling problem Pin
Green Fuze6-May-07 18:22
Green Fuze6-May-07 18:22 

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.