Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Calendar & DropDown boxes for changing Calendar Month, Day, Year

Calendar & DropDown boxes for changing Calendar Month, Day, Year

Scheduled Pinned Locked Moved Visual Basic
questioncsharphelp
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    iamalexCode
    wrote on last edited by
    #1

    I have a calendar in web application vb.net. I have a month dropdown box, a day dropdownbox and a year dropdown box. When I select the Month, I can get my calendar to change to month but right now have hard code at end for /1/2003. How do I get it to change for month and stay on whatever day and year. And then select the day I want in the dropdown box and change the day in calendar but keep the month i just selected and year shown. And then select the Year I want in the dropdown box and change the year in calendar but keep month and day I just selected in other dropdown boxes? Can't figure it out. This is my dropdown list so for for the Month which works , but then I need it to stay on the selected month and change for day, year. Can't figure out without hard code at end "/1/2003" which I don't want, because day and year dropdown lists when selected need to change for whatever I select. PLEASE HELP!!!!! Thank you.... Alex Private Sub ddlMonth_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ddlMonth.SelectedIndexChanged 'ddlMonth.DataValueField = Calendar1.SelectedDate.Month Calendar1.SelectedDate = CDate(ddlMonth.SelectedIndex + 1 & "/1/2003") Calendar1.VisibleDate = CDate(ddlMonth.SelectedIndex + 1 & "/1/2003") End Sub

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups