Click here to Skip to main content
15,897,718 members
Home / Discussions / C#
   

C#

 
GeneralRe: Multithreading in Windows UI Pin
Stefan Troschuetz4-Aug-04 9:04
Stefan Troschuetz4-Aug-04 9:04 
GeneralEnable System.Diagnostics.Trace.WriteLine Pin
Amir Zicherman3-Aug-04 19:13
Amir Zicherman3-Aug-04 19:13 
GeneralRe: Enable System.Diagnostics.Trace.WriteLine Pin
KevinMac3-Aug-04 19:35
KevinMac3-Aug-04 19:35 
GeneralRe: Enable System.Diagnostics.Trace.WriteLine Pin
Amir Zicherman3-Aug-04 20:37
Amir Zicherman3-Aug-04 20:37 
GeneralStaticlly Link Assemblys Pin
MKlucher3-Aug-04 19:11
MKlucher3-Aug-04 19:11 
GeneralRe: Staticlly Link Assemblys Pin
Colin Angus Mackay3-Aug-04 20:05
Colin Angus Mackay3-Aug-04 20:05 
GeneralRe: Staticlly Link Assemblys Pin
Nick Parker4-Aug-04 5:02
protectorNick Parker4-Aug-04 5:02 
GeneralPassng TextBox Object.... Pin
Anonymous3-Aug-04 18:22
Anonymous3-Aug-04 18:22 
Hi all, I'm relativily new to c#, and I was wondering if it was possible to pass a TextBox object to a constructor...

heres the deal, I'm making a namespace for another program I am making... This namespace was intended to do networking actions on my project. I wish to send the text box to the constructor so that I can display messages of connections to the server.

here is my namespace code:

<br />
<br />
sing System;<br />
using System.Net.Sockets;<br />
<br />
<br />
namespace Tito_Network<br />
{<br />
	public class Listen<br />
	{<br />
		<br />
		public Listen(TextBox one, TextBox two) //error occurs here..<br />
		{<br />
			TcpListener tcp = new TcpListener(2486);<br />
			tcp.Start();<br />
			<br />
			one.Text +="Server Activated...\n";<br />
<br />
			Socket soc_Client = tcp.AcceptSocket();<br />
<br />
			try<br />
			{<br />
				if(soc_Client.Connected)<br />
				{<br />
					while(true)<br />
					{<br />
						one.Text +="Client connected from"+soc_Client.AddressFamily;<br />
<br />
					}<br />
				}<br />
			}<br />
		<br />
			catch(Exception s)<br />
			{<br />
				MessageBox.Show(s);<br />
			}<br />
		}<br />
<br />
<br />
<br />
	}<br />
<br />
}<br />

GeneralRe: Passng TextBox Object.... Pin
Jay Shankar3-Aug-04 18:44
Jay Shankar3-Aug-04 18:44 
GeneralRe: Passng TextBox Object.... Pin
Korjiro3-Aug-04 19:41
Korjiro3-Aug-04 19:41 
GeneralRe: Passng TextBox Object.... Pin
Jay Shankar3-Aug-04 19:52
Jay Shankar3-Aug-04 19:52 
GeneralRe: Passng TextBox Object.... Pin
exhaulted3-Aug-04 22:51
exhaulted3-Aug-04 22:51 
GeneralVS 2003 Designer bug? -- Duplicate declaration error Pin
ddelapasse3-Aug-04 16:04
ddelapasse3-Aug-04 16:04 
General"sizeof" in C# Pin
crushinghellhammer3-Aug-04 12:55
crushinghellhammer3-Aug-04 12:55 
GeneralRe: &quot;sizeof&quot; in C# Pin
Member 11737603-Aug-04 13:31
Member 11737603-Aug-04 13:31 
GeneralRe: &quot;sizeof&quot; in C# Pin
NietzscheDisciple3-Aug-04 13:35
NietzscheDisciple3-Aug-04 13:35 
GeneralFilling a combo box from a database Pin
Jefferys3-Aug-04 12:25
Jefferys3-Aug-04 12:25 
GeneralRe: Filling a combo box from a database Pin
DougW483-Aug-04 12:38
DougW483-Aug-04 12:38 
GeneralListcontrol text alignment. Pin
Christian Graus3-Aug-04 12:22
protectorChristian Graus3-Aug-04 12:22 
GeneralRe: Listcontrol text alignment. Pin
Member 11737603-Aug-04 16:18
Member 11737603-Aug-04 16:18 
GeneralRe: Listcontrol text alignment. Pin
Christian Graus3-Aug-04 16:22
protectorChristian Graus3-Aug-04 16:22 
GeneralRe: Listcontrol text alignment. Pin
Member 11737603-Aug-04 16:37
Member 11737603-Aug-04 16:37 
GeneralRe: Listcontrol text alignment. Pin
Christian Graus3-Aug-04 16:44
protectorChristian Graus3-Aug-04 16:44 
GeneralRe: Listcontrol text alignment. Pin
Member 11737603-Aug-04 17:06
Member 11737603-Aug-04 17:06 
GeneralRe: Listcontrol text alignment. Pin
Christian Graus3-Aug-04 17:09
protectorChristian Graus3-Aug-04 17:09 

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.