Click here to Skip to main content
15,889,808 members
Home / Discussions / C#
   

C#

 
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 
AnswerRe: cannot launch exe from windows service?? Pin
turbochimp21-Jan-06 20:38
turbochimp21-Jan-06 20:38 
GeneralRe: cannot launch exe from windows service?? Pin
mdroz821-Jan-06 20:57
mdroz821-Jan-06 20:57 
GeneralRe: cannot launch exe from windows service?? Pin
turbochimp21-Jan-06 21:03
turbochimp21-Jan-06 21:03 
GeneralRe: cannot launch exe from windows service?? Pin
mdroz822-Jan-06 4:38
mdroz822-Jan-06 4:38 
QuestionTab Control problem Pin
Ph@ntom21-Jan-06 19:45
Ph@ntom21-Jan-06 19:45 
Questionmdi child form termination Pin
edel_ong21-Jan-06 18:42
edel_ong21-Jan-06 18:42 
AnswerRe: mdi child form termination Pin
edel_ong22-Jan-06 3:28
edel_ong22-Jan-06 3:28 

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.