Click here to Skip to main content
15,893,486 members
Home / Discussions / C#
   

C#

 
GeneralRe: select from a datatable Pin
playout27-Sep-06 19:53
playout27-Sep-06 19:53 
AnswerRe: select from a datatable Pin
Not Active27-Sep-06 4:51
mentorNot Active27-Sep-06 4:51 
GeneralRe: select from a datatable Pin
Nader Elshehabi27-Sep-06 4:59
Nader Elshehabi27-Sep-06 4:59 
GeneralRe: select from a datatable Pin
playout27-Sep-06 19:51
playout27-Sep-06 19:51 
GeneralRe: select from a datatable Pin
Not Active28-Sep-06 2:09
mentorNot Active28-Sep-06 2:09 
GeneralRe: select from a datatable Pin
playout27-Sep-06 19:56
playout27-Sep-06 19:56 
GeneralRe: select from a datatable Pin
Not Active28-Sep-06 2:11
mentorNot Active28-Sep-06 2:11 
QuestionAccess metod from thread Pin
Neuromancer_27-Sep-06 4:20
Neuromancer_27-Sep-06 4:20 
Please help! How can i access metod UpdateRows from another thread in this code?
Thanks.

using ...

namespace pddServer
{
public partial class Form1 : Form
{
public class ThreadedTcpServer
{
public void StartServer()
{
ConnectionThread newconnection = new ConnectionThread();
Thread newthread = new Thread(new ThreadStart(newconnection.HadnleConnection));

newthread.Start();
}

class ConnectionThread
{
public void HadnleConnection()
{
connections++;

//
// How can i call method UpdateRows from this place?
//
connections--;
}
}
}

private Thread ServerThread;

public Form1()
{
InitializeComponent();

ThreadedTcpServer Server = new ThreadedTcpServer();
ServerThread = new Thread(new ThreadStart(Server.StartServer));
ServerThread.Start();
}

private void Form1_FormClosing(object sender, FormClosingEventArgs e)
{
ServerThread.Abort();
}

public void UpdateRows()
{
dataGridView1.Rows.Add();
}
}
}
AnswerRe: Access metod from thread Pin
Nader Elshehabi27-Sep-06 4:34
Nader Elshehabi27-Sep-06 4:34 
QuestionHere's a free db connection object for all!! Any improvement ideas? Pin
Goalie3527-Sep-06 3:49
Goalie3527-Sep-06 3:49 
AnswerRe: Here's a free db connection object for all!! Any improvement ideas? Pin
Colin Angus Mackay27-Sep-06 5:41
Colin Angus Mackay27-Sep-06 5:41 
AnswerRe: Here's a free db connection object for all!! Any improvement ideas? Pin
Michael P Butler27-Sep-06 6:33
Michael P Butler27-Sep-06 6:33 
QuestionProgrammatically grouping taskbar buttons Pin
Wjousts27-Sep-06 3:40
Wjousts27-Sep-06 3:40 
AnswerRe: Programmatically grouping taskbar buttons Pin
Ed.Poore27-Sep-06 4:19
Ed.Poore27-Sep-06 4:19 
GeneralRe: Programmatically grouping taskbar buttons Pin
Wjousts27-Sep-06 5:10
Wjousts27-Sep-06 5:10 
GeneralRe: Programmatically grouping taskbar buttons Pin
Ed.Poore27-Sep-06 5:20
Ed.Poore27-Sep-06 5:20 
GeneralRe: Programmatically grouping taskbar buttons Pin
Wjousts27-Sep-06 6:16
Wjousts27-Sep-06 6:16 
GeneralRe: Programmatically grouping taskbar buttons Pin
Ed.Poore27-Sep-06 8:19
Ed.Poore27-Sep-06 8:19 
GeneralRe: Programmatically grouping taskbar buttons Pin
Wjousts27-Sep-06 10:14
Wjousts27-Sep-06 10:14 
GeneralRe: Programmatically grouping taskbar buttons Pin
Ed.Poore27-Sep-06 11:40
Ed.Poore27-Sep-06 11:40 
Questionsearch button Pin
faladrim27-Sep-06 3:39
faladrim27-Sep-06 3:39 
AnswerRe: search button Pin
Wjousts27-Sep-06 3:44
Wjousts27-Sep-06 3:44 
GeneralRe: search button Pin
faladrim27-Sep-06 3:52
faladrim27-Sep-06 3:52 
GeneralRe: search button Pin
Eric Dahlvang27-Sep-06 4:12
Eric Dahlvang27-Sep-06 4:12 
GeneralRe: search button Pin
faladrim27-Sep-06 4:18
faladrim27-Sep-06 4:18 

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.