Click here to Skip to main content
15,915,508 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Eliminate SAVE AS dialog box Pin
flias200124-Jul-07 9:20
flias200124-Jul-07 9:20 
GeneralRe: Eliminate SAVE AS dialog box Pin
Dave Kreskowiak24-Jul-07 9:25
mveDave Kreskowiak24-Jul-07 9:25 
QuestionChange font color on datagrid row Pin
Cory Kimble24-Jul-07 8:47
Cory Kimble24-Jul-07 8:47 
AnswerRe: Change font color on datagrid row Pin
Dave Kreskowiak24-Jul-07 9:13
mveDave Kreskowiak24-Jul-07 9:13 
QuestionNeed Help in Creating database project setup file Pin
bonny02022724-Jul-07 8:20
bonny02022724-Jul-07 8:20 
AnswerRe: Need Help in Creating database project setup file Pin
'Drew24-Jul-07 8:32
'Drew24-Jul-07 8:32 
AnswerRe: Need Help in Creating database project setup file Pin
Kschuler24-Jul-07 8:35
Kschuler24-Jul-07 8:35 
QuestionValidation Pin
programmervb.netc++24-Jul-07 7:27
programmervb.netc++24-Jul-07 7:27 
I am using a Component C1DateEdit. I commonUpDownButtonClick and a CommonValueChanged Handles on all of those controls. After either UpDownButtonClick or CommonValueChanged is executed it calls another routine that figures out which C1DateEdit was the sender if it was datDischargeDate then it calls sAbleDischargeReason().
 Private Sub sAbleDischargeReason()
    Dim bStatus As Boolean
    If IsDBNull(datDischargeDate.Value) And datDischargeDate.Text = String.Empty Then
        bStatus = False
    Else
        bStatus = True
    End If
    lblDischargeReasonNum.Enabled = bStatus
    cboDischargeReasonNum.Enabled = bStatus
End Sub


The problem that I am having is that when it hits the if in sAbleDischargeReason() it is always true because this code is being executed before the value is in either datDischargeDate.Value or datDischargeDate.Text
I am not sure how to make this execute after the value is already there.
Any help is much appreciated.
Thank you

Humble Programmer

AnswerRe: Validation Pin
Dave Kreskowiak24-Jul-07 7:40
mveDave Kreskowiak24-Jul-07 7:40 
GeneralRe: Validation Pin
programmervb.netc++24-Jul-07 7:49
programmervb.netc++24-Jul-07 7:49 
GeneralRe: Validation Pin
Dave Kreskowiak24-Jul-07 8:40
mveDave Kreskowiak24-Jul-07 8:40 
GeneralRe: Validation Pin
programmervb.netc++24-Jul-07 8:45
programmervb.netc++24-Jul-07 8:45 
GeneralRe: Validation Pin
Dave Kreskowiak24-Jul-07 9:05
mveDave Kreskowiak24-Jul-07 9:05 
QuestionChanging a database location Pin
ford8624-Jul-07 6:59
ford8624-Jul-07 6:59 
AnswerRe: Changing a database location Pin
Dave Kreskowiak24-Jul-07 7:42
mveDave Kreskowiak24-Jul-07 7:42 
GeneralRe: Changing a database location Pin
ford8624-Jul-07 7:48
ford8624-Jul-07 7:48 
GeneralRe: Changing a database location Pin
Dave Kreskowiak24-Jul-07 8:38
mveDave Kreskowiak24-Jul-07 8:38 
QuestionSQL Server Update Problem Pin
'Drew24-Jul-07 6:52
'Drew24-Jul-07 6:52 
AnswerRe: SQL Server Update Problem Pin
Dave Kreskowiak24-Jul-07 9:28
mveDave Kreskowiak24-Jul-07 9:28 
QuestionRe: SQL Server Update Problem Pin
'Drew24-Jul-07 10:29
'Drew24-Jul-07 10:29 
AnswerRe: SQL Server Update Problem Pin
Dave Kreskowiak24-Jul-07 12:40
mveDave Kreskowiak24-Jul-07 12:40 
GeneralQuestion about Threading Pin
Psycho-*Coder*-Extreme24-Jul-07 6:51
Psycho-*Coder*-Extreme24-Jul-07 6:51 
GeneralRe: Question about Threading Pin
Dave Kreskowiak24-Jul-07 9:11
mveDave Kreskowiak24-Jul-07 9:11 
GeneralRe: Question about Threading Pin
Psycho-*Coder*-Extreme24-Jul-07 9:35
Psycho-*Coder*-Extreme24-Jul-07 9:35 
GeneralRe: Question about Threading Pin
Dave Kreskowiak24-Jul-07 10:06
mveDave Kreskowiak24-Jul-07 10:06 

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.