Click here to Skip to main content
15,909,939 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Null Pin
No-e21-May-09 4:37
No-e21-May-09 4:37 
GeneralRe: Null Pin
Jon_Boy21-May-09 4:53
Jon_Boy21-May-09 4:53 
GeneralRe: Null Pin
No-e21-May-09 5:24
No-e21-May-09 5:24 
GeneralRe: Null Pin
Dave Kreskowiak21-May-09 6:41
mveDave Kreskowiak21-May-09 6:41 
GeneralRe: Null Pin
No-e21-May-09 7:04
No-e21-May-09 7:04 
AnswerRe: Null Pin
Thomas Krojer21-May-09 21:06
Thomas Krojer21-May-09 21:06 
QuestionDateTimePicker question Pin
Laser Steve21-May-09 1:38
Laser Steve21-May-09 1:38 
AnswerRe: DateTimePicker question Pin
Dalek Dave21-May-09 1:54
professionalDalek Dave21-May-09 1:54 
Private Sub DateTimePicker1_ValueChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DateTimePicker1.ValueChanged<br />
        Dim Datebefore As Date<br />
        Dim DateAfter As Date<br />
        Dim DatePicked As Date<br />
<br />
        Datebefore = ("01/01/2009")<br />
        DateAfter = ("31/12/2009")<br />
<br />
        DatePicked = DateTimePicker1.Value<br />
<br />
        If DatePicked > DateAfter Or DatePicked < Datebefore Then<br />
            MsgBox("Date Not Allowed", MsgBoxStyle.OkOnly)<br />
<br />
        End If<br />
<br />
    End Sub

Something like This?

Actually as I look at it I think you will need to put some kind of stop in there, I think it will loop, but I am sure you can manage that.

------------------------------------

"Possessions make you poor, wealth is measurable only in experience."
Sun Tzu 621BC

GeneralRe: DateTimePicker question Pin
Laser Steve21-May-09 3:22
Laser Steve21-May-09 3:22 
GeneralRe: DateTimePicker question Pin
Dalek Dave21-May-09 3:42
professionalDalek Dave21-May-09 3:42 
GeneralRe: DateTimePicker question Pin
Dave Kreskowiak21-May-09 3:45
mveDave Kreskowiak21-May-09 3:45 
GeneralRe: DateTimePicker question *** Answered *** Pin
Laser Steve21-May-09 3:52
Laser Steve21-May-09 3:52 
GeneralRe: DateTimePicker question Pin
Dalek Dave21-May-09 3:55
professionalDalek Dave21-May-09 3:55 
GeneralRe: DateTimePicker question Pin
Dave Kreskowiak21-May-09 4:25
mveDave Kreskowiak21-May-09 4:25 
GeneralRe: DateTimePicker question Pin
Dalek Dave21-May-09 4:32
professionalDalek Dave21-May-09 4:32 
GeneralRe: DateTimePicker question Pin
Dave Kreskowiak21-May-09 6:40
mveDave Kreskowiak21-May-09 6:40 
QuestionLoading image dynamically in crystal report Pin
Ovais Memon21-May-09 0:09
Ovais Memon21-May-09 0:09 
AnswerRe: Loading image dynamically in crystal report Pin
Kschuler26-May-09 7:57
Kschuler26-May-09 7:57 
QuestionSend SMS from a VB6 application. Pin
she-Developer20-May-09 23:31
she-Developer20-May-09 23:31 
AnswerRe: Send SMS from a VB6 application. Pin
EliottA21-May-09 3:03
EliottA21-May-09 3:03 
QuestionCyrstal Reports subreport Section hiding Pin
jinxster20-May-09 23:07
professionaljinxster20-May-09 23:07 
AnswerRe: Cyrstal Reports subreport Section hiding Pin
David Mujica21-May-09 3:13
David Mujica21-May-09 3:13 
GeneralRe: Cyrstal Reports subreport Section hiding Pin
jinxster21-May-09 5:53
professionaljinxster21-May-09 5:53 
GeneralRe: Cyrstal Reports subreport Section hiding Pin
David Mujica21-May-09 6:01
David Mujica21-May-09 6:01 
GeneralRe: Cyrstal Reports subreport Section hiding Pin
jinxster21-May-09 6:25
professionaljinxster21-May-09 6:25 

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.