Results 1 to 2 of 2

Thread: Disabling Controls

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 2004
    Posts
    235

    Disabling Controls

    Hi, got a problem here about calendar.

    I got this program.

    DatePicker1.MinDate = Now()
    DatePicker1.MaxDate = Now.AddDays(7)

    Meaning it will start from today's date till 7days from today's date.

    From here, how do I disable other date apart from what I have set. Disable as in do not let other people click at it.

    Thanks for any help.

  2. #2
    Hyperactive Member LeeSalter's Avatar
    Join Date
    Oct 2002
    Location
    Notts, England
    Posts
    307
    You could try:-

    Code:
    If DatePicker1.Date < DatePicker1.MinDate Then
         DatePicker1.Date=DatePicker1.MinDate
    Elseif DatePicker1.Date > DataPicker1.MaxDate Then
         DatePicker1.Date=DataPicker1.MaxDate
    End if
    "I'm Brian and so is my Wife"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width