Click here to Skip to main content
15,903,175 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to launch Internet Explorer with a link Pin
ranzask22-Jan-06 11:26
ranzask22-Jan-06 11:26 
QuestionControl Tab Pin
webhay22-Jan-06 9:55
webhay22-Jan-06 9:55 
AnswerRe: Control Tab Pin
kourvoisier22-Jan-06 17:59
kourvoisier22-Jan-06 17:59 
GeneralRe: Control Tab Pin
webhay23-Jan-06 5:14
webhay23-Jan-06 5:14 
GeneralRe: Control Tab Pin
kourvoisier23-Jan-06 15:05
kourvoisier23-Jan-06 15:05 
QuestionThreadPool usage Pin
2hdass22-Jan-06 6:51
2hdass22-Jan-06 6:51 
AnswerRe: ThreadPool usage Pin
Curtis Schlak.22-Jan-06 9:38
Curtis Schlak.22-Jan-06 9:38 
QuestionRight to Left TabControl Pin
Gamil Mohamad22-Jan-06 6:48
Gamil Mohamad22-Jan-06 6:48 
Questionfire a parent control events from its childs events Pin
Mike Jeferson22-Jan-06 5:24
Mike Jeferson22-Jan-06 5:24 
AnswerRe: fire a parent control events from its childs events Pin
Curtis Schlak.22-Jan-06 9:43
Curtis Schlak.22-Jan-06 9:43 
QuestionEquation editor Pin
f_popovic22-Jan-06 4:43
f_popovic22-Jan-06 4:43 
QuestionDataAccessors Pin
zebos22-Jan-06 3:13
zebos22-Jan-06 3:13 
Questionhow i chang culture in control panel Pin
amrosaad22-Jan-06 0:04
amrosaad22-Jan-06 0:04 
GeneralRe: how i chang culture in control panel Pin
Guffa22-Jan-06 4:24
Guffa22-Jan-06 4:24 
QuestionAccess controls from Thread Pin
tray_gator21-Jan-06 23:37
tray_gator21-Jan-06 23:37 
When program loads I start new thread which tries to connect some DB server.
this.Load += new EventHandler(Labels_Load);
private void Labels_Load(object obj, EventArgs ea)
{
    Thread th = new Thread(new ThreadStart(myconnect));
    th.Start();
}

And I need to load some data to comboBox lastBookings. Is it possible to access some form controls from Threads ?
private void myconnect()
{
    mysql.mySqlConnect("localhost", "mydb", "usr", "psw");
    // ... some code here ...
    lastBookings.DataSource = new string[] { "dsdf", "dsfsd ", "dsfa" };       
}

I make a new thread because often there is no connection to DB server. And all net operations (if server is not availiable) slow up programm very much.
AnswerRe: Access controls from Thread Pin
CWIZO21-Jan-06 23:43
CWIZO21-Jan-06 23:43 
GeneralRe: Access controls from Thread Pin
tray_gator21-Jan-06 23:58
tray_gator21-Jan-06 23:58 
AnswerRe: Access controls from Thread Pin
mav.northwind22-Jan-06 0:02
mav.northwind22-Jan-06 0:02 
JokeRe: Access controls from Thread Pin
tray_gator22-Jan-06 0:28
tray_gator22-Jan-06 0:28 
GeneralRe: Access controls from Thread Pin
CWIZO22-Jan-06 2:23
CWIZO22-Jan-06 2:23 
GeneralRe: Access controls from Thread Pin
tray_gator22-Jan-06 3:25
tray_gator22-Jan-06 3:25 
QuestionHow to pass reference parameter to unmanaged dll Pin
Sriinii21-Jan-06 20:41
Sriinii21-Jan-06 20:41 
AnswerRe: How to pass reference parameter to unmanaged dll Pin
[Marc]22-Jan-06 10:21
[Marc]22-Jan-06 10:21 
GeneralRe: How to pass reference parameter to unmanaged dll Pin
Ravi Bhavnani22-Jan-06 11:25
professionalRavi Bhavnani22-Jan-06 11:25 
Questioncannot launch exe from windows service?? Pin
mdroz821-Jan-06 20:14
mdroz821-Jan-06 20:14 

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.