Click here to Skip to main content
15,905,612 members
Home / Discussions / C#
   

C#

 
QuestionEvents Pin
CodingYoshi18-Aug-08 4:56
CodingYoshi18-Aug-08 4:56 
QuestionRe: Events Pin
led mike18-Aug-08 5:02
led mike18-Aug-08 5:02 
AnswerRe: Events Pin
Thomas Stockwell18-Aug-08 5:37
professionalThomas Stockwell18-Aug-08 5:37 
GeneralRe: Events Pin
CodingYoshi18-Aug-08 6:19
CodingYoshi18-Aug-08 6:19 
GeneralRe: Events Pin
DaveyM6918-Aug-08 7:59
professionalDaveyM6918-Aug-08 7:59 
GeneralRe: Events Pin
led mike18-Aug-08 8:48
led mike18-Aug-08 8:48 
GeneralRe: Events Pin
CodingYoshi18-Aug-08 9:35
CodingYoshi18-Aug-08 9:35 
GeneralRe: Events Pin
led mike18-Aug-08 11:21
led mike18-Aug-08 11:21 
CodingYoshi wrote:
The scope of SizeRun is public else it will give me compilation errors.


public is an Access Modifier which determines the Visibility[^] of the variable and is not the same thing as Scope[^]

So we still don't know the Scope of the variable

CodingYoshi wrote:
The method RaiseEvent() fires the event.


The method RaiseEvent is called from OnValidated which appears to be an event handler

CodingYoshi wrote:
public void OnValidated(EventArgs e)
{
RaiseEvent(Validated, e);
}

The code you posted does not show OnValidated being called or if it is a registered event handler we are not seeing where the event is being fired. Therefore it is possible that your VB code is trigging the event for a different instance of SizeRun class than the one that is used to register the event handler. This is the potential disconnect that I am talking about.


led mike

QuestionIndexers [modified] Pin
c242318-Aug-08 4:50
c242318-Aug-08 4:50 
AnswerRe: Indexers Pin
led mike18-Aug-08 4:59
led mike18-Aug-08 4:59 
GeneralRe: Indexers Pin
c242318-Aug-08 5:04
c242318-Aug-08 5:04 
GeneralRe: Indexers Pin
led mike18-Aug-08 9:00
led mike18-Aug-08 9:00 
AnswerRe: Indexers Pin
User 665818-Aug-08 5:05
User 665818-Aug-08 5:05 
GeneralRe: Indexers Pin
c242318-Aug-08 5:17
c242318-Aug-08 5:17 
GeneralRe: Indexers Pin
User 665818-Aug-08 5:34
User 665818-Aug-08 5:34 
GeneralRe: Indexers Pin
c242318-Aug-08 5:51
c242318-Aug-08 5:51 
GeneralRe: Indexers Pin
User 665818-Aug-08 6:03
User 665818-Aug-08 6:03 
GeneralRe: Indexers Pin
Dr. Emmett Brown18-Aug-08 9:03
Dr. Emmett Brown18-Aug-08 9:03 
GeneralRe: Indexers Pin
c242319-Aug-08 5:16
c242319-Aug-08 5:16 
GeneralRe: Indexers Pin
c242319-Aug-08 5:15
c242319-Aug-08 5:15 
QuestionDateTime control issue Pin
laziale18-Aug-08 4:37
laziale18-Aug-08 4:37 
AnswerRe: DateTime control issue Pin
vikas amin18-Aug-08 7:46
vikas amin18-Aug-08 7:46 
QuestionProblems with System colors and Brush Pin
vinay_K18-Aug-08 3:37
vinay_K18-Aug-08 3:37 
AnswerRe: Problems with System colors and Brush Pin
leppie18-Aug-08 4:05
leppie18-Aug-08 4:05 
GeneralRe: Problems with System colors and Brush Pin
vinay_K18-Aug-08 4:18
vinay_K18-Aug-08 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.