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

C#

 
GeneralRe: Getting command line params in a windows forms app Pin
leppie14-Jul-08 5:37
leppie14-Jul-08 5:37 
GeneralRe: Getting command line params in a windows forms app Pin
Frank Horn14-Jul-08 8:23
Frank Horn14-Jul-08 8:23 
GeneralRe: Getting command line params in a windows forms app Pin
leppie14-Jul-08 8:30
leppie14-Jul-08 8:30 
GeneralRe: Getting command line params in a windows forms app Pin
Frank Horn14-Jul-08 9:13
Frank Horn14-Jul-08 9:13 
QuestionZoom the pannal or windows form in VS .Net 2005 Pin
ag4667714-Jul-08 3:32
ag4667714-Jul-08 3:32 
QuestionProperties Question Pin
Harvey Saayman14-Jul-08 3:24
Harvey Saayman14-Jul-08 3:24 
AnswerRe: Properties Question Pin
leppie14-Jul-08 4:07
leppie14-Jul-08 4:07 
GeneralRe: Properties Question Pin
Harvey Saayman14-Jul-08 4:18
Harvey Saayman14-Jul-08 4:18 
hey leppie

i get that the variable is 01/01/0001 00:00, but what i dont understand is the set block executing on construction(assumption)...

the Variable should be 01/01/0001 00:00 but in the TextBoxTextChanged_Handler i have something like this...

TextBoxTextChanged(object sender, EventArgs e)
{
    try
    {
        MyTime = DateTime.Parse(((TextBox)sender).Text);
    }
    catch
    {
    
    }
}


so then ONLY when a user changes the text value AND it can be parsed to a DateTime will the property change.

but it seems like the initial 01/01/0001 00:00 value of myTime somehow gets written in my textbox Confused | :confused:

Harvey Saayman - South Africa
Junior Developer
.Net, C#, SQL

you.suck = (you.passion != Programming)

GeneralRe: Properties Question Pin
leppie14-Jul-08 4:38
leppie14-Jul-08 4:38 
GeneralRe: Properties Question Pin
Alan Balkany14-Jul-08 4:38
Alan Balkany14-Jul-08 4:38 
GeneralRe: Properties Question Pin
DaveyM6914-Jul-08 4:41
professionalDaveyM6914-Jul-08 4:41 
GeneralRe: Properties Question Pin
Harvey Saayman14-Jul-08 4:50
Harvey Saayman14-Jul-08 4:50 
GeneralRe: Properties Question Pin
DaveyM6914-Jul-08 5:10
professionalDaveyM6914-Jul-08 5:10 
GeneralRe: Properties Question Pin
Harvey Saayman14-Jul-08 5:18
Harvey Saayman14-Jul-08 5:18 
GeneralRe: Properties Question Pin
DaveyM6914-Jul-08 5:26
professionalDaveyM6914-Jul-08 5:26 
QuestionCustomizing Setup Wizard Pin
Member 384581514-Jul-08 3:04
Member 384581514-Jul-08 3:04 
QuestionPick out a part of a textfile Pin
Ixzat14-Jul-08 2:35
Ixzat14-Jul-08 2:35 
AnswerRe: Pick out a part of a textfile Pin
CPallini14-Jul-08 2:54
mveCPallini14-Jul-08 2:54 
QuestionSplash Form Pin
jonhbt14-Jul-08 2:17
jonhbt14-Jul-08 2:17 
AnswerRe: Splash Form Pin
Pete O'Hanlon14-Jul-08 2:24
mvePete O'Hanlon14-Jul-08 2:24 
AnswerRe: Splash Form Pin
Giorgi Dalakishvili14-Jul-08 2:53
mentorGiorgi Dalakishvili14-Jul-08 2:53 
Questionsearch a keyword (query) in a big text Pin
enginço14-Jul-08 2:04
enginço14-Jul-08 2:04 
AnswerRe: search a keyword (query) in a big text Pin
CPallini14-Jul-08 2:56
mveCPallini14-Jul-08 2:56 
GeneralRe: search a keyword (query) in a big text Pin
enginço14-Jul-08 3:04
enginço14-Jul-08 3:04 
GeneralRe: search a keyword (query) in a big text Pin
CPallini14-Jul-08 8:29
mveCPallini14-Jul-08 8:29 

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.