Click here to Skip to main content
16,006,768 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: grayscale Color Pin
Christian Graus5-Feb-07 13:02
protectorChristian Graus5-Feb-07 13:02 
QuestionGraphical fonts vb.net Pin
anthony Glover5-Feb-07 12:36
anthony Glover5-Feb-07 12:36 
AnswerRe: Graphical fonts vb.net Pin
Christian Graus5-Feb-07 13:05
protectorChristian Graus5-Feb-07 13:05 
Questionsimple webbrowser interface - a problem Pin
noki15-Feb-07 12:15
noki15-Feb-07 12:15 
QuestionQuestion regarding update on a event Pin
godspeed1235-Feb-07 11:47
godspeed1235-Feb-07 11:47 
AnswerRe: Question regarding update on a event Pin
Christian Graus5-Feb-07 12:13
protectorChristian Graus5-Feb-07 12:13 
QuestionMAX value property problem for Datetime Picker Pin
parmi4u5-Feb-07 8:17
parmi4u5-Feb-07 8:17 
AnswerRe: MAX value property problem for Datetime Picker Pin
TwoFaced5-Feb-07 10:02
TwoFaced5-Feb-07 10:02 
The only suggestion I have is use a timer to refresh the maxvalue. You could set the timer to go off at a reasonable interval and when it does it would set the maxvalue to the current date. The other thing you might need to consider is someone changing the computers system clock. A persons PC isn't a reliable source for the date because in it could be anything. Also just as an insurance policy you could validate the date selected. If it's beyond the current date you would set the date back to whatever it was before the user changed it. This is just a quick example.
Public Class Form1
    Dim LastDate As Date = Nothing

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        'Initialize the LastDate to the current date selected
        'in the DateTimePicker1
        LastDate = DateTimePicker1.Value
    End Sub

    Private Sub DateTimePicker1_ValueChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles DateTimePicker1.ValueChanged
        'Validate the date selected.  If it's past the current date
        'then reset it to the last date selected
        If Date.Compare(DateTimePicker1.Value, Now) > 0 Then
            DateTimePicker1.Value = LastDate
        Else
            LastDate = DateTimePicker1.Value
        End If
    End Sub
End Class

GeneralRe: MAX value property problem for Datetime Picker Pin
TwoFaced5-Feb-07 10:55
TwoFaced5-Feb-07 10:55 
QuestionHandle Keyword? Pin
Rahithi5-Feb-07 7:40
Rahithi5-Feb-07 7:40 
AnswerRe: Handle Keyword? Pin
TwoFaced5-Feb-07 8:26
TwoFaced5-Feb-07 8:26 
GeneralRe: Handle Keyword? Pin
Rahithi5-Feb-07 11:34
Rahithi5-Feb-07 11:34 
GeneralRe: Handle Keyword? Pin
TwoFaced5-Feb-07 12:13
TwoFaced5-Feb-07 12:13 
QuestionProblem with Readline - I broke it ! Pin
rfrank53565-Feb-07 7:36
rfrank53565-Feb-07 7:36 
AnswerRe: Problem with Readline - I broke it ! Pin
Lucan075-Feb-07 13:04
Lucan075-Feb-07 13:04 
GeneralRe: Problem with Readline - I broke it ! Pin
rfrank53566-Feb-07 5:06
rfrank53566-Feb-07 5:06 
QuestionWindows Vista Purchase Pin
sidkraft5-Feb-07 7:25
sidkraft5-Feb-07 7:25 
AnswerRe: Windows Vista Purchase Pin
Christian Graus5-Feb-07 10:39
protectorChristian Graus5-Feb-07 10:39 
GeneralRe: Windows Vista Purchase Pin
Lucan075-Feb-07 11:58
Lucan075-Feb-07 11:58 
GeneralRe: Windows Vista Purchase Pin
sidkraft5-Feb-07 12:42
sidkraft5-Feb-07 12:42 
GeneralRe: Windows Vista Purchase Pin
Christian Graus5-Feb-07 13:41
protectorChristian Graus5-Feb-07 13:41 
GeneralRe: Windows Vista Purchase Pin
sidkraft5-Feb-07 14:58
sidkraft5-Feb-07 14:58 
QuestionByte data type in sql server Pin
manisghouri5-Feb-07 6:32
manisghouri5-Feb-07 6:32 
AnswerRe: Byte data type in sql server Pin
Colin Angus Mackay5-Feb-07 13:36
Colin Angus Mackay5-Feb-07 13:36 
GeneralRe: Byte data type in sql server Pin
manisghouri6-Feb-07 0:09
manisghouri6-Feb-07 0:09 

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.