Click here to Skip to main content
15,898,374 members
Home / Discussions / C#
   

C#

 
QuestionBindingList based on array Pin
AndrusM21-Aug-07 6:12
AndrusM21-Aug-07 6:12 
Questionbrowse through elemnts of container / subscribe event Pin
ezazazel21-Aug-07 6:11
ezazazel21-Aug-07 6:11 
AnswerRe: browse through elemnts of container / subscribe event Pin
Hessam Jalali21-Aug-07 9:03
Hessam Jalali21-Aug-07 9:03 
GeneralRe: browse through elemnts of container / subscribe event Pin
ezazazel21-Aug-07 21:43
ezazazel21-Aug-07 21:43 
QuestionWriting byte stream Pin
gauthee21-Aug-07 5:38
gauthee21-Aug-07 5:38 
AnswerRe: Writing byte stream Pin
Luc Pattyn21-Aug-07 5:48
sitebuilderLuc Pattyn21-Aug-07 5:48 
QuestionThread Synchronization Pin
topksharma198221-Aug-07 4:14
topksharma198221-Aug-07 4:14 
AnswerRe: Thread Synchronization Pin
Luc Pattyn21-Aug-07 5:27
sitebuilderLuc Pattyn21-Aug-07 5:27 
Hi,

the events go to the active message pump, that is the GUI trhead of the
currently active window (which normally means: the main thread for all windows).
So Panel_leave and Before_Select normally get handled by the same thread,
that will not be the problem.

Are you sure Before_Select does not fire? How did you figure that?
Best way is: add log statements such as log("begin of Before_Select");
and provide a log method in every interested class, e.g.
public static void log(string s) {
    s=DateTime.Now.ToString("hh:mm:ss.fff")+" "+s;
    Console.WriteLine(s);
}


If however you try to manipulate some controls from inside another thread,
then you must use Control.InvokeRequired property and Control.Invoke() method;
if not, all kinds of strange things may and will happen.

Smile | :)



Luc Pattyn [Forum Guidelines] [My Articles]


this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google


QuestionApplication terminates when window gets closed Pin
MarioMARTIN21-Aug-07 3:59
MarioMARTIN21-Aug-07 3:59 
AnswerRe: Application terminates when window gets closed Pin
MarioMARTIN21-Aug-07 5:07
MarioMARTIN21-Aug-07 5:07 
GeneralRe: Application terminates when window gets closed Pin
Not Active21-Aug-07 5:44
mentorNot Active21-Aug-07 5:44 
GeneralRe: Application terminates when window gets closed Pin
MarioMARTIN21-Aug-07 5:47
MarioMARTIN21-Aug-07 5:47 
GeneralRe: Application terminates when window gets closed Pin
Not Active21-Aug-07 11:03
mentorNot Active21-Aug-07 11:03 
GeneralRe: Application terminates when window gets closed Pin
MarioMARTIN21-Aug-07 19:30
MarioMARTIN21-Aug-07 19:30 
GeneralRe: Application terminates when window gets closed Pin
Not Active22-Aug-07 0:21
mentorNot Active22-Aug-07 0:21 
AnswerRe: Application terminates when window gets closed Pin
Luc Pattyn21-Aug-07 5:52
sitebuilderLuc Pattyn21-Aug-07 5:52 
GeneralRe: Application terminates when window gets closed Pin
MarioMARTIN21-Aug-07 6:00
MarioMARTIN21-Aug-07 6:00 
GeneralRe: Application terminates when window gets closed Pin
Luc Pattyn21-Aug-07 6:23
sitebuilderLuc Pattyn21-Aug-07 6:23 
AnswerRe: Application terminates when window gets closed Pin
MarioMARTIN21-Aug-07 6:19
MarioMARTIN21-Aug-07 6:19 
GeneralRe: Application terminates when window gets closed Pin
Martin#21-Aug-07 8:17
Martin#21-Aug-07 8:17 
GeneralRe: Application terminates when window gets closed Pin
MarioMARTIN21-Aug-07 19:21
MarioMARTIN21-Aug-07 19:21 
GeneralRe: Application terminates when window gets closed Pin
Martin#21-Aug-07 21:17
Martin#21-Aug-07 21:17 
AnswerRe: Application terminates when window gets closed Pin
MarioMARTIN21-Aug-07 19:35
MarioMARTIN21-Aug-07 19:35 
Questionc# Pin
lankaudaranga21-Aug-07 2:40
lankaudaranga21-Aug-07 2:40 
AnswerRe: c# Pin
Justin Perez21-Aug-07 2:43
Justin Perez21-Aug-07 2:43 

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.