PROKA Posted May 15, 2005 Posted May 15, 2005 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 :( Quote Development & Research Department @ Elven Soft
Moderators Robby Posted May 18, 2005 Moderators Posted May 18, 2005 Check the e in the dayRender event, I'm sure you'll find a property to disable in there. Quote Visit...Bassic Software
PROKA Posted May 22, 2005 Author Posted May 22, 2005 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 Quote Development & Research Department @ Elven Soft
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.