Answered by:
Design Scheduler Control using Calendar in Vb .net

Question
-
Hello
I want to design scheduler control to schedule each day work of employee, that means i want to add event on each date of month and set reminder for each day's of events. Can you tell me the solution for it. For that, i have designed a one windows form with one month calendar.
For reference, attached herewith screenshot of form.
Please do help me and suggest me some free control for calendar.
Thanks & Regards
Rushali
Friday, February 12, 2016 4:48 AM
Answers
-
Hello Sir,
I have not used SelectionRange because when i am trying to use Selectionrange, it give me notification as
Error 5 'SelectionRange' is not a member of 'WindowsFormsCalendar.Calendar'
I don't think that you have used the buit-in winforms control.
You've used this one?
http://www.codeproject.com/Articles/38699/A-Professional-Calendar-Agenda-View-That-You-Will
So I can't help on this, please refer to the documentation/code to see what methods are supported for that.
Fouad Roumieh
- Edited by Fouad Roumieh Monday, February 15, 2016 7:30 AM
- Proposed as answer by Herro wongMicrosoft contingent staff Tuesday, February 23, 2016 1:08 AM
- Marked as answer by Herro wongMicrosoft contingent staff Monday, February 29, 2016 7:28 AM
Monday, February 15, 2016 7:30 AM
All replies
-
If its about date scheduling, then the above control should be enough for your requirement, you need to add a combobox for the employee where the user select the employee and date then save it into the the DB in the Schedules table for example.
When you say setting a reminder, is it something to send via email, or when the users login they can see their own events schedule in a widget like style?
Check the below calendar if you want more advanced view with time:
https://bettercalendar.codeplex.com/
Fouad Roumieh
Friday, February 12, 2016 6:10 AM -
@Fouad:- Hello Sir, I want to show each day events with the corresponding date directly. I want to implement the same as calendar of mobile, in that we can directly add events on selected date and after that we can see directly on that specific dates events.
So can you help me to achieve this, because i am first time work on calendar control to design scheduler.
Thanks & Regards
Rushali
Friday, February 12, 2016 7:08 AM -
>>> I want to show each day events with the corresponding date directly.
If you want to show all the events for all the employees on the selected date, you can simply place a ListBox control under the calendar and once the user selects a cell, you can connect to your DB grap the events of that Date and show it in the ListBox.
>>>I want to implement the same as calendar of mobile,
That view not available in the standard .net calendar control, the one I posted above could help on that.
>>>So can you help me to achieve this, because i am first time work on calendar control to design scheduler.
We don't do a full task here, no one has time for that, we can give you hints or help on specific coding problems. You need to start and later you can post specific question on issue that is blocking you.
I suggest that you start designing the DB and then decided how it will look the UI, then implementation.
Fouad Roumieh
Friday, February 12, 2016 7:31 AM -
Hello
I have designed windows application form for scheduler with windows form calender. I want to store the data of each day into sql server database, but i am not getting the selected date columns data. Can you tell me the solution for it.
For reference, attached herewith screenshots of form and code.
Please do needful.
Imports System Imports System.Collections.Generic Imports System.ComponentModel Imports System.Data Imports System.Drawing Imports System.Linq Imports System.Text Imports System.Windows.Forms Imports WindowsFormsCalendar Public Class Form4 Private _items As New List(Of CalendarItem)() Public Sub New() End Sub Private Sub Form4_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load InitializeComponent() Dim item As New CalendarItem(Me.calendar1, DateTime.Now, DateTime.Now, "TEST") _items.Add(item) 'MsgBox(item.ToString) End Sub Private Sub calendar1_LoadItems(sender As System.Object, e As WindowsFormsCalendar.CalendarLoadEventArgs) For Each calendarItem As CalendarItem In _items If Me.calendar1.ViewIntersects(calendarItem) Then Me.calendar1.Items.Add(calendarItem) End If Next End Sub Private Sub monthView1_SelectionChanged(sender As System.Object, e As System.EventArgs) Handles monthView1.SelectionChanged Me.calendar1.SetViewRange(Me.monthView1.SelectionStart.[Date], Me.monthView1.SelectionEnd.[Date]) End Sub Private Sub calendar1_ItemSelected(sender As Object, e As WindowsFormsCalendar.CalendarItemEventArgs) Handles calendar1.ItemSelected 'TextBox1.Text = calendar1.GetSelectedItems().ToString End Sub End Class
Thanks & Regards
Rushali
Saturday, February 13, 2016 11:23 AM -
Which calendar did you use?
Fouad Roumieh
Saturday, February 13, 2016 1:45 PM -
@Fouad Roumieh :- Hello Sir,
I have used windows form calender month view and calender.
Monday, February 15, 2016 4:37 AM -
@Fouad Roumieh :- Hello Sir,
I have used windows form calender month view and calender.
Did you try the SelectionRange
Check the example here.
Fouad Roumieh
Monday, February 15, 2016 5:31 AM -
Hello Sir,
I have not used SelectionRange because when i am trying to use Selectionrange, it give me notification as
Error 5 'SelectionRange' is not a member of 'WindowsFormsCalendar.Calendar'
I want to get the each days events data, so that i will store it in database.
- Edited by rushuMT Monday, February 15, 2016 6:58 AM
Monday, February 15, 2016 6:53 AM -
Hello Sir,
I have not used SelectionRange because when i am trying to use Selectionrange, it give me notification as
Error 5 'SelectionRange' is not a member of 'WindowsFormsCalendar.Calendar'
I don't think that you have used the buit-in winforms control.
You've used this one?
http://www.codeproject.com/Articles/38699/A-Professional-Calendar-Agenda-View-That-You-Will
So I can't help on this, please refer to the documentation/code to see what methods are supported for that.
Fouad Roumieh
- Edited by Fouad Roumieh Monday, February 15, 2016 7:30 AM
- Proposed as answer by Herro wongMicrosoft contingent staff Tuesday, February 23, 2016 1:08 AM
- Marked as answer by Herro wongMicrosoft contingent staff Monday, February 29, 2016 7:28 AM
Monday, February 15, 2016 7:30 AM