Click here to Skip to main content
15,886,919 members
Home / Discussions / C#
   

C#

 
QuestionAuthentication Code in C# Pin
cdewzrd21-Jul-09 1:49
cdewzrd21-Jul-09 1:49 
AnswerRe: Authentication Code in C# Pin
stancrm21-Jul-09 2:45
stancrm21-Jul-09 2:45 
QuestionWindows Messaging Pin
Blubbo21-Jul-09 1:41
Blubbo21-Jul-09 1:41 
QuestionRealtime update of Label Pin
Dowse21-Jul-09 1:35
Dowse21-Jul-09 1:35 
AnswerRe: Realtime update of Label Pin
Luc Pattyn21-Jul-09 1:48
sitebuilderLuc Pattyn21-Jul-09 1:48 
GeneralRe: Realtime update of Label Pin
Dowse21-Jul-09 2:04
Dowse21-Jul-09 2:04 
GeneralRe: Realtime update of Label Pin
Luc Pattyn21-Jul-09 2:26
sitebuilderLuc Pattyn21-Jul-09 2:26 
AnswerRe: Realtime update of Label Pin
Wendelldh21-Jul-09 2:11
Wendelldh21-Jul-09 2:11 
Maybe I am understanding the question, so I will tell you what I would do...

Is it the case that this is an existing class that is used in many different places already, so you don't want to change it to much.

If you have access to the code, you can do this...

First change the member variable to private and rename.
private DateTime dateNext; 


The add an event.
public event EventHandler datenextChanged;


Then add a property with the existing name.
public DateTime datNext
{
   get{return dateNext;}
   set
   {
     if(!datNext.Equals(dateNext) && datenextChanged != null)
       datenextChanged(this, EventArgs.Empty);
   }
}


Then you just need to subscribe to this event on your object and update the label in the handler.

Maybe this will work for you if I am understanding the problem.

Thanks,
Wendell
AnswerRe: Realtime update of Label Pin
Nagy Vilmos21-Jul-09 2:13
professionalNagy Vilmos21-Jul-09 2:13 
QuestionCheck Box control in datagrid Pin
spankyleo12321-Jul-09 1:33
spankyleo12321-Jul-09 1:33 
AnswerRe: Check Box control in datagrid Pin
Rutvik Dave21-Jul-09 3:37
professionalRutvik Dave21-Jul-09 3:37 
QuestionMulti Forms Application Pin
vhassan21-Jul-09 1:15
vhassan21-Jul-09 1:15 
AnswerRe: Multi Forms Application Pin
musefan21-Jul-09 3:19
musefan21-Jul-09 3:19 
GeneralRe: Multi Forms Application Pin
vhassan21-Jul-09 17:41
vhassan21-Jul-09 17:41 
QuestionGet current file path hosted by an Excel process Pin
Muneeb Abdul Shakoor21-Jul-09 1:12
Muneeb Abdul Shakoor21-Jul-09 1:12 
QuestionLine Numbers display.... Pin
spalanivel21-Jul-09 0:34
spalanivel21-Jul-09 0:34 
AnswerRe: Line Numbers display.... Pin
Nagy Vilmos21-Jul-09 0:46
professionalNagy Vilmos21-Jul-09 0:46 
QuestionC# MDI Application Pin
sateesh villa20-Jul-09 23:40
sateesh villa20-Jul-09 23:40 
AnswerRe: C# MDI Application Pin
Manas Bhardwaj20-Jul-09 23:45
professionalManas Bhardwaj20-Jul-09 23:45 
GeneralRe: C# MDI Application Pin
sateesh villa21-Jul-09 0:34
sateesh villa21-Jul-09 0:34 
GeneralRe: C# MDI Application Pin
vhassan21-Jul-09 1:00
vhassan21-Jul-09 1:00 
QuestionGet the input values at the time of scrolling... Pin
spalanivel20-Jul-09 23:37
spalanivel20-Jul-09 23:37 
AnswerRe: Get the input values at the time of scrolling... Pin
Nagy Vilmos21-Jul-09 0:41
professionalNagy Vilmos21-Jul-09 0:41 
GeneralRe: Get the input values at the time of scrolling... Pin
spalanivel21-Jul-09 1:30
spalanivel21-Jul-09 1:30 
GeneralRe: Get the input values at the time of scrolling... Pin
Luc Pattyn21-Jul-09 1:55
sitebuilderLuc Pattyn21-Jul-09 1:55 

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.