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

C#

 
GeneralRe: data grid view Pin
Richard MacCutchan9-Oct-13 23:21
mveRichard MacCutchan9-Oct-13 23:21 
GeneralRe: data grid view Pin
Kawshik_itbd9-Oct-13 23:24
Kawshik_itbd9-Oct-13 23:24 
GeneralRe: data grid view Pin
Richard MacCutchan9-Oct-13 23:27
mveRichard MacCutchan9-Oct-13 23:27 
GeneralRe: data grid view Pin
Kawshik_itbd10-Oct-13 0:27
Kawshik_itbd10-Oct-13 0:27 
GeneralRe: data grid view Pin
Freak309-Oct-13 22:50
Freak309-Oct-13 22:50 
GeneralRe: data grid view Pin
Kawshik_itbd9-Oct-13 23:20
Kawshik_itbd9-Oct-13 23:20 
AnswerRe: data grid view Pin
sanket16410-Oct-13 0:49
sanket16410-Oct-13 0:49 
QuestionErro: No overload for method 'GetRegisteredActivatedServiceTypes' takes '3' arguments Pin
piano_Korg9-Oct-13 17:27
professionalpiano_Korg9-Oct-13 17:27 
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Runtime;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Runtime.Remoting;
using System.Runtime.Remoting.Channels;

using System.Runtime.Remoting.Channels.Tcp;
using Project1;


namespace Server
{
public partial class Form1 : Form
{
private TcpChannel tcpchannel = null;
private int port = 8998;
private Type type;
private WellKnownObjectMode wellknownobj;
private string objURL;



public Form1()
{
InitializeComponent();
}


private void Form1_Load(object sender, EventArgs e)
{

}

private void btnKhoi_Click(object sender, EventArgs e)
{

try {
btnTat.PerformClick();
port = Int32.Parse(txtPort.Text);
tcpchannel = new TcpChannel(port);
ChannelServices.RegisterChannel(tcpchannel,false);
type = typeof(Proxy);
objURL ="Prime_URL";
if(rdb_sTon.Checked==true)
wellknownobj = WellKnownObjectMode.Singleton;



else
wellknownobj = WellKnownObjectMode.SingleCall;
RemotingConfiguration.GetRegisteredActivatedServiceTypes(type,objURL,wellknownobj);//Error this line

txtTrThai.Text="Khoi dong server tai Port"+port.ToString()+"luc"+ DateTime.Now.ToString();
}catch(Exception ex){
MessageBox.Show("Loi", ex.Message);
}

}

private void btnTat_Click(object sender, EventArgs e)
{

if (ChannelServices.GetChannel("tcp") != null) {

ChannelServices.UnregisterChannel(tcpchannel);
txtTrThai.Text = "tat server tai port" + port.ToString() + "luc" + DateTime.Now.ToString();

}


}
}
}
AnswerRe: Erro: No overload for method 'GetRegisteredActivatedServiceTypes' takes '3' arguments Pin
Pete O'Hanlon9-Oct-13 20:05
mvePete O'Hanlon9-Oct-13 20:05 
QuestionNeed to make a GUI for reading from serial Port. And using Multiple forms Pin
alfie.max159-Oct-13 17:00
alfie.max159-Oct-13 17:00 
AnswerRe: Need to make a GUI for reading from serial Port. And using Multiple forms Pin
Mycroft Holmes9-Oct-13 17:07
professionalMycroft Holmes9-Oct-13 17:07 
GeneralRe: Need to make a GUI for reading from serial Port. And using Multiple forms Pin
alfie.max159-Oct-13 19:50
alfie.max159-Oct-13 19:50 
GeneralRe: Need to make a GUI for reading from serial Port. And using Multiple forms Pin
Freak309-Oct-13 21:09
Freak309-Oct-13 21:09 
AnswerRe: Need to make a GUI for reading from serial Port. And using Multiple forms Pin
lukeer10-Oct-13 20:52
lukeer10-Oct-13 20:52 
QuestionError Only assignment, call, increment, decrement, and new object expressions can be used as a statement. Pin
piano_Korg9-Oct-13 15:50
professionalpiano_Korg9-Oct-13 15:50 
AnswerRe: Error Only assignment, call, increment, decrement, and new object expressions can be used as a statement. Pin
Richard Andrew x649-Oct-13 16:44
professionalRichard Andrew x649-Oct-13 16:44 
GeneralRe: Error Only assignment, call, increment, decrement, and new object expressions can be used as a statement. Pin
Ron Beyer9-Oct-13 16:45
professionalRon Beyer9-Oct-13 16:45 
AnswerRe: Error Only assignment, call, increment, decrement, and new object expressions can be used as a statement. Pin
Ron Beyer9-Oct-13 16:44
professionalRon Beyer9-Oct-13 16:44 
GeneralRe: Error Only assignment, call, increment, decrement, and new object expressions can be used as a statement. Pin
piano_Korg9-Oct-13 17:25
professionalpiano_Korg9-Oct-13 17:25 
QuestionRe: Error Only assignment, call, increment, decrement, and new object expressions can be used as a statement. Pin
Richard MacCutchan9-Oct-13 21:34
mveRichard MacCutchan9-Oct-13 21:34 
Questionforward stdIn via ssh to application on linux server Pin
Beachi869-Oct-13 11:16
Beachi869-Oct-13 11:16 
QuestionAdd Table To DBML - Doesn't Show Up In Code Pin
Kevin Marois8-Oct-13 9:55
professionalKevin Marois8-Oct-13 9:55 
AnswerRe: Add Table To DBML - Doesn't Show Up In Code Pin
Richard MacCutchan8-Oct-13 9:59
mveRichard MacCutchan8-Oct-13 9:59 
GeneralRe: Add Table To DBML - Doesn't Show Up In Code Pin
Kevin Marois8-Oct-13 10:00
professionalKevin Marois8-Oct-13 10:00 
AnswerRe: Add Table To DBML - Doesn't Show Up In Code Pin
Member 100425318-Oct-13 19:24
Member 100425318-Oct-13 19:24 

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.