Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I am using a Calendar control and I want it not to show the 'other month days' . How can I accomplish that ?

 

The best I did is that I set the foreground = background, so it doesn't really show but the user still can select them :(

Development & Research Department @ Elven Soft
Posted

thanks, I found

 

it's like that :

 

   Private Sub calResolutions_DayRender(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DayRenderEventArgs) Handles calResolutions.DayRender
       Dim d As CalendarDay = e.Day
       Dim c As TableCell = e.Cell

       If d.IsOtherMonth Then
           c.Controls.Clear()
       End If
   End Sub

Development & Research Department @ Elven Soft

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...