Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    Visual Basic




VB Calender Control


Hi,

I use Microsoft Calender Control in my program.
The calendar gives me the - Day / Month / Year.

Now How can I change the calendar to Month and Year view only e.g June 04
etc.

Regards,
Feroz




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Calender Control
Hi,
Just wondering, I have VB6 and the calender control, which is fine but takes up too much room - is there one available that shows when you hit a combo button or something (like VB.Net)

Calender Control
Hi

I'm using MS calender Control. I tried to, but failed, to color the days of my choice. Is there anyway to color some specific days in the control? I don't care wheater it is the text or background color, as long as it is a single day that is highlighted

VB6 Calender Control
Anybody had any problems using the Calender Control in VB6 under XP?
If so did you fix it?
And if you fixed it how did you do it?

Ta, Dazza

Calender Control -- Nothing
Hi There,

I use the vb calender control in a application. There is about in total 50 of them in the program. The problem is that about 5 of them, when you make it visisble it displays the control with no day values, the month and year is fine but only the days is effected. All the other controls is fine its just a specific nm of them that ****s around.

Please help!!!!

Calender Control
I need major help on this. I DONT NEED ANY CODE (although I might need some examples on how to make it work?).

so i added ms calender control from the components. dragged it on, and did a


VB Code:
Private Sub Calendar1_Click()MsgBox Calendar1.Day End Sub

so i get the day. ok heres my purpose:

I am a student, and I have 4 days to work on this project. I am trying to make an organizer. so like, on the main page a calender is shown, and if they click a date they can add what "TIME" things need to be done, and whens it due and stuff.

how do I store the info? what do i need? any other components?

anyone wanna send me some examples?

Calender Control
On one of my clients machines that numeric dates are not appearing in the calendar control, instead there are just *. I have ensured the mscal.ocx is installed & registered.

Any suggestions?

Calender Control
Hi BassTeQ, doesn't the help file give u any info on this?

Calender Control
How can you set the value of a textbox to what ever date you select in a calender control?

Calender Control In VBA
Hello,
I have to use a calender control in my project.
And my project is based on VBA.
As i don't know VBA, plz help me.
My client want a calender which have to show his appointments,follow ups and vacations.
I don't know how to proceed further with this project.
plz help me.
---------------------------------------------------
Project description:
This is a German Real Estate Company,they r maintaining their database in MS Access.He want me to convert his database into SQL Server.(Completed).
He want some additional features to his forms,
and a calender form. (regarding this, i need help)

Thanku all.

Calender Control
The calender control on one of the forms shows only the month and year.
I would like it to show the date as well. Using Vb 6.
--

Chilangisha B Changwe

email@removed
--
http://www.fastmail.fm - Faster than the air-speed velocity of an

unladen european swallow

Need A Calender Control
Hi,
Does anybody know where i can find a calender-control that displays a whole month or year and where i can fill in a value for each day ?
Then i want to put those values in a database.

Thanks


Calender Control
Hi everyone, seems to have been a while since I was last on the forum with a question, but can somebody tell me why a small program I wrote with calander control in it does not work correctly on a pc with W98 OS. The program has functioned ok for a long time then I made a small change to it and now the calender control shows in the program but with no information on it (the dates on the day boxes do not show, however if you click on them it gives the correct date) The program still works ok on two machines running win2000 (both also have vb6 installed). What is the reason for this ?
Thanks

Farpoint Calender Control
Select Dropdown and select Date(FarPoint Calender) and click on the button or form leaves a gray box(the image of the calender on the form).screen shot attached for reference.Please help

Will Calender Control Work For Me?
Hello,

I'm trying to figure out if the calender control will work for me. I want to have important events displayed INSIDE the calender on the date they occur (like the real calender everyone has in their kitchen). Like inside the box labelled Oct. 10th I might put "Doctor's appointment: 3:00". The data can be seen month by month for the whole year, like flipping the pages of a real calender. The user might double-click a date to open a text box to enter a new event. I'm pretty sure you can't display anything inside the calender control itself; it seems to be for just picking dates where you could then print events somewhere else in the form. But what good is that? If you want to make plans for the month you want to see everything you're doing all at once not just one day at a time, right?

Thanks in advance,
neef

How To Use Calender Control/(UNRESOLVED)
Hi friends,

I m designing application for school and i need to design school attendance report with form in VB6, my database is in access2000. I don't know how to design 31 text boxes in single form. SO please tell me how to use calender control for this.

it's really urgent for me as this question is on forum for last 3 days and more.

with regards
pratik mehta        

Problem With MS Calender Control.
Serveral users here have a vba app in which there is a form with the MS Calender control on it. However, for one user, his date is one day off from everyone else's. Makes no sense. It works fine otherwise.

I've checked his system date and that is correct. I've also tried un-registering and re-registering the ocx. But no luck.

Does anyone have any ideas as to why this could be happening?




Bruce

"If at first you don't succeed, try, try again. Then quit. No use being a damn fool about it." --W.C. Fields

Saba

HELP In Calender User Control
Hello,

Can anyone help me take a look at a Calender User Control coding that was able to compile before but as I develop it, it gives me a type mismatch error in:

k = Weekday(mday) - 1
mday = WeekdayName(Weekday(mday))

// Below is the whole coding source, please help me out. Thank you so much.



Private Sub UserControl_Initialize()
load = 1
mrow = 1
mcol = 1
With MnthCmb
.AddItem "January"
.AddItem "February"
.AddItem "March"
.AddItem "April"
.AddItem "May"
.AddItem "June"
.AddItem "July"
.AddItem "August"
.AddItem "September"
.AddItem "October"
.AddItem "November"
.AddItem "December"
End With
For i = 1980 To 2020
yrcmb.AddItem i
Next
yrcmb.ListIndex = 24
i = Month(Date)
MnthCmb.ListIndex = i - 1
Call loadgrid
End Sub
Private Sub loadgrid()
With MsCalGrd
.clear
i = 0
For i = 0 To 6
.ColWidth(i) = 500
Next
.TextMatrix(0, 0) = "Sun"
.TextMatrix(0, 1) = "Mon"
.TextMatrix(0, 2) = "Tue"
.TextMatrix(0, 3) = "Wed"
.TextMatrix(0, 4) = "Thu"
.TextMatrix(0, 5) = "Fri"
.TextMatrix(0, 6) = "Sat"
mday = (MnthCmb.ListIndex + 1) & "/1/" & yrcmb.Text
k = Weekday(mday) - 1
mday = WeekdayName(Weekday(mday))
mdays = Left(Right(DateSerial(yrcmb.Text, MnthCmb.ListIndex + 2, 0), 7), 2)
i = 1
j = 1
Do While (True)
.TextMatrix(j, k) = i
i = i + 1
If k = 6 Then j = j + 1
k = (k + 1) Mod 7
If i > mdays Then
Exit Do
End If
Loop
End With
End Sub
Private Sub MenuCmd_Click()
Unload Me
MainMenu.Show
End Sub
Private Sub MnthCmb_Change()
Call MnthCmb_Click
End Sub
Private Sub MnthCmb_Click()
If load = 1 Then
yrcmb.Text = Year(Date)
load = 2
End If
Call loadgrid
End Sub
Public Sub MsCalGrd_Click()
With MsCalGrd
mdate = .TextMatrix(.Row, .Col)
If mdate <> "" Then
.FocusRect = flexFocusHeavy
mdate = MnthCmb.Text & " " & mdate & "," & yrcmb.Text
datelbl.Caption = mdate
If .Row = 0 Then
Exit Sub
End If
actrow = .Row
actcol = .Col
.CellBackColor = vbBlue
.Row = mrow
.Col = mcol
.CellBackColor = vbWhite
mrow = actrow
mcol = actcol
.Row = actrow
.Col = actcol
End If
End With
RaiseEvent change
End Sub
Private Sub YrCmb_Change()
Call YrCmb_Click
End Sub
Private Sub YrCmb_Click()
Call loadgrid
End Sub
Sub clear()
With MsCalGrd
.CellBackColor = vbWhite
.FocusRect = flexFocusNone
End With
End Sub

Select Dates From Calender Control.
Hi, how can I use the MS calender control and select either a date or a range of dates? Thanks

Microsoft Calender Control Version 11
Hai friends ,

I am using VB6.0 and office 2003.
I am having a date control on a form . Pressing <f5> i open a form with a microsoft calender control .

Now the problem is the font size even though i set during the design mode , in the executable the font is not displayed properly. It displays as small dots.

Also if i keep the same control on a form in a separate project and make EXE , the same problem occurs.

kindly if any one has faced this problem let me know the solution

Thanx in Advance

Calender Control - Date YES But Which Week ....
Hi there,

I'm trying to figure out if it is possible to use the Calender control and somehow when you click the date can also find the week of that date (say it's "date = week 32 of the 2006) just like in a dairy. If it has to be any other control fine, but I would prefer the Calender cntrol to work with.

Thanks aktell

Calender Control Finnish Problems
HEEEELLLLPPPPPPPP


I have installed a system in Finland onto a Finnish PC. Now the calender control doesnt work on that pc. The OCX is there and vb6 runtimes are present but for some reason the chars dont appear???

Anyone had this before?

Calender In Common Control (resolve)
i am using date picker under ms common control.how do i change the date format to dd/mm/yyyy (eg 12 Janunary 1950) thanks!

Calender Control Current Date
Hello,

I have a Microsoft Calender control embedded in a form. I would like the control, when opened, to display the current date. Is there a way of setting the value of the calender control with the current date. Any help would be appreciated. Thanks,

Hellboy

Runtime Error While Using Calender Control??
hi,
  can any help me to solve the runtime error while using calender control.the screen image attached.plz do the needful.

Jayakumar

Storing A String On A Calender Control
im making a project and i want to have it so when you type something in and press a button it save a value and highlight the date on the calander you saved it to how would i do that?



Edited by - Split on 12/10/2005 2:08:29 PM

Calender Control 10.0 Application Kick Out
About a year ago I experience an application kick out when I clicked on the VB6.0 calender control 10.0. It only did it on one of my PC and not on the others. The solution was to go into the PC set up and reset a calender funtion. After I made the adjustment all worked fine. A year later I havent been able to fine those instructions on any of my search sourses.

Can you help diect nme to this fix.

Ron

Calender View Control Position On Screen
Hi All

I click a number of buttons to open a calender view

Can anyone tell me how to get my calender view to always open next to the button i pressed to open it

thanks

Gibbo

Changing Recordsource Of Calender Control During Run Time
hi,
I am doing a project using calender control in vb and databases. I couldnt change the recordsource of the calender control during runtime. I need.... whenever i select a day from calender control the corresponding datas from the database should display in the datagrid used in the same form. I ll be very thankful if you give some suggestion for it.

Is There Any Control Equivalent Of MS Calender Control 8.0
we can specify dates but not time with a calendar control. Is there a control which allows to choose time too? Or do we have to include madkEd box or something like that?

thanks

Srikanth

A Calender For VB6
Hi

I'm looking for a calender for VB6 which can be quite large but within each box representing a day i'd like to put writing into it. Maybe similar to Outlook Calender - Month View.

Is there one around preferably free???

Thanks in advance

Calender
Im new to VB
what can the calendar control do?? can i put text in it or is it just used to see the date??

IE.. i want to use the calendar to so what appointments coming up is this possiable????

Calender
i'm new to the whole VB coding thing and was wondering if any 1 cud help me put a calender on my user form.

i'm using VB6 in win word

any fed bck wud be helpful

peace

~3~

Calender
Hi... Can anyone tell me how to create a small squarish calender on a user form with all the dates for user to choose when a user click on a combox ..for input of dates.Thanks!!

Calender
hey
alright, im developing a more complex calendar type program, the thing i have looked around for but couldnt really find is
1. what is the best way to make a form looking like a calendar? is there a specific way to do this, or am i going to need a ****load of picboxes/listboxes?

i would like to think VB has something i can use, and i know windows does and i could link it through windows, but i need a blank one i can fill up with different data, like the task schedular that everyone has on windows, but never uses. except i need it completely on its own to fill up with, for example, a class schedule for my semesters.
any ideas on the best way to do that?
hope i did not confuse...

Calender
Hi,

I am using a dialog box where the user needs to enter a date. Is there anyway of using windows calender. I know VB6 has this but as far as I know VB5 Enterprise doesn't have this.

Any ideas?

Calender
Is there anyone who know how Microsoft Calender Control works ??
Anyone who made a project including it who can send it to me ??

****'*****'*****'*****'*****
Thanks
andreas@sweden.com

Calender
Hi,

I am Making a Calender in vb6.i have one Combo box for months Displaying,one array contols (1 to 31),textbox for entering Month number.if user enterd a number between 1 to 12 the number of days display in controol array.i did every thing.but while enternig a number in text box the index of combo is not set to textbox value .if i enterd in text box value"2" the result must be display 1 to 28. But it Goes to march . i Dont know whats Wrong With my Code.u will Hope Responding .also i need help with combo box. during run time it must be show selected with blue color.

thanks


Code:

Private TotalMoths(1 To 12) As String
Private MonthStore As Integer
Private Monthsname(1 To 12) As String
Private MonthName As Integer
Private StartYear As Integer
Public Function Months()
TotalMoths(1) = "31"
TotalMoths(2) = "28"
TotalMoths(3) = "31"
TotalMoths(4) = "30"
TotalMoths(5) = "31"
TotalMoths(6) = "30"
TotalMoths(7) = "31"
TotalMoths(8) = "31"
TotalMoths(9) = "30"
TotalMoths(10) = "31"
TotalMoths(11) = "30"
TotalMoths(12) = "31"

End Function

Private Sub CmdOk_Click()
Dim i As Integer
On Error GoTo errorlable
Call Months
For i = 1 To TotalMoths(TxtMonth.Text)
CmdDays(i).Caption = i

Next i
Combo2.ListIndex = TxtMonth.Text


errorlable:
End Sub

Private Sub Combo2_Click()
Dim i, j As Integer
For i = 1 To Combo2.ListIndex
TxtMonth.Text = Combo2.ListIndex

Next i
Call Months

For i = 1 To TotalMoths(TxtMonth.Text)
CmdDays(i).Caption = ""

Next i

MonthStore = TxtMonth.Text
MonthStore = MonthStore + 1
TxtMonth.Text = MonthStore

For j = 1 To TotalMoths(Combo2.ListIndex + 1)
CmdDays(j).Caption = j

Next j

End Sub

Private Sub Command1_Click()
Dim NextMonth, i As Integer
Dim Years As Integer
MonthStore = TxtMonth.Text

For i = 1 To TotalMoths(TxtMonth.Text)
CmdDays(i).Caption = ""

Next i

MonthStore = TxtMonth.Text
MonthStore = MonthStore + 1
TxtMonth.Text = MonthStore

Call CmdOk_Click

Dim BackYear As Integer
Dim j As Integer

If TxtMonth.Text = "12" Then
MsgBox " Year " & StartYear & " Starts "
StartYear = StartYear + 1
TxtMonth.Text = "1"
txtStore.Text = ""

End If

txtStore.Text = StartYear
Combo2.ListIndex = TxtMonth.Text
End Sub

Private Sub Command2_Click()
Dim NextMonth, i As Integer
MonthStore = TxtMonth.Text
For i = 1 To TotalMoths(TxtMonth.Text)
CmdDays(i).Caption = ""
Next i

MonthStore = TxtMonth.Text
MonthStore = MonthStore - 1
TxtMonth.Text = MonthStore

Call CmdOk_Click
End Sub

Public Function Monthsnames()
Monthsname(1) = "January"
Monthsname(2) = "February"
Monthsname(3) = "March"
Monthsname(4) = "April"
Monthsname(5) = "May"
Monthsname(6) = "June"
Monthsname(7) = "July"
Monthsname(8) = "Agust"
Monthsname(9) = "September"
Monthsname(10) = "October"
Monthsname(11) = "November"
Monthsname(12) = "December"
End Function

Private Sub Form_Load()
Combo2.Text = "January"
Combo2.AddItem "January"
Combo2.AddItem "February"
Combo2.AddItem "March"
Combo2.AddItem "April"
Combo2.AddItem "May"
Combo2.AddItem "June"
Combo2.AddItem "July"
Combo2.AddItem "Agust"
Combo2.AddItem "September"
Combo2.AddItem "October"
Combo2.AddItem "November"
Combo2.AddItem "Decmber"

StartYear = 2007
End Sub

Calender
I use Microsoft calender control 8.0

When i click the date in calender, it show me the activities.

So if i use tab, how to invisible the tab if i click at the calender date

Private Sub Cal1_Click()
Dim StartDate As String 'Declare variables.
Dim Day1, Day2, Day3, Day4 As Double
Dim SecondDate As Date

'day i have click at calender contol will plus this value and show in textbox of their activies
Day1 = 1
Day2 = 2
Day3 = 3
'Day4 = 4

'ca1 is my calender control name
StartDate = Cal1.Value
SecondDate = CDate(StartDate)

' activities will show here using textbox
Text1.Text = DateTime.DateAdd("d", Day1, SecondDate)
Text2.Text = DateTime.DateAdd("d", Day2, SecondDate)
Text3.Text = DateTime.DateAdd("d", Day3, SecondDate)
'Text4.Text = DateTime.DateAdd("d", Day4, SecondDate)
End Sub

Calender
i want to use small calender in vb form

OLE Calender - How To Use?
Has anyone got a fairly simple example of how to programme the OLE Calender control?

All I need is the ability to select the drop boxes and (possibly) the ability to select a date or range of dates.

Can anyone help?

MSDN has lots of examples for .NET but almost nothing for VB6...

J.


The human brain is still the best search-engine...

Calender
pls help me out I need help

I am making input form in which i need in input thre date

Is there any calender ocx i can use expect the
Microsoft Calender Control 8.0
it takes lot of space on the Form

I need something which will Drop Down One.. Pls Help....

CALENDER
HOW CAN I INCORPORATE CALENDER FUNCTIONS IN VB
CAN I DO IT USING ANY CONTROL? IF SO CAN U SPECIFY THE WEBSITE WHERE I CAN GET ENOUGH INFO ON HOW TO DO?
THANKS
SMITHA

smitha_verghese@yahoo.com

Combo Box And Calender.
i need someone help.... actually, i got a problem to link combo box with calender.. few days ago, i found one complete system from planet source code.... the url is http://www.planet-source-code.com/vb...04211434300 9

please run the system, click on report and see the bottom of the system and u will see the "date combo box". when u click the combo box, the calender will pop-up. i want to do exactly same like that but i dont know how..... someone please tell me how can i do that on my new system... thanks for any help!!!

VB 6 Calender Function
Hey, Does anyone know how to use the calender function (from the components menu) cos I want to be able to select a date and have a memo attached to it somehow so when you click on the date a memo appears in a the text box.

Ta muchly
Q

Calender Object
Is there anyway of having a calender object on an Access from - the idea being to be able to select a date without having to type it in.

http://www.geocities.com/lemmie_1916/calender.jpg

perhaps something like the image above (taken from task scheduler)

any suggestions?

Calender Notes
I'm wondering if someone can help me get started. I want to write a program that will randomly input notes in a calender display. Take a look at your calender on the wall. Today it says "Labor Day" in the box for Sept. 6th. I want to add a note like "Labor Day" into a box.

I tried using the calender control: calender1.Value = "test" but I received an error - "object required".

Active X Calender
Does anybody know how to use the active x calendar control? I need it to save the date into a database. if anybody could help it would be greatly appreciated.

Display A Calender
I am trying to write a program that will allow a user to enter a date and then a form will display that months calender. I want the user to either select a month from a list box and enter a year into a text box -or- enter a date in a text box, either a month and year (mm/yyyy) or a full date (mm/dd/yyyy) [two different textboxes].

The form displayed will have the month and year in the form caption and a regular looking calender on the form. I also want an option to display the choosen month and year as well as the previous 11 months to that date.

I tried making one form for input and 12 forms for display (1 for each month). But I don't know how to tell VB which column to put the day numbers on the calenders. You know like the 1st of Nov may be on Mon (column 2) in 2001 but Sat (column 7) in 1999. Can anyone help me code this?

Calender Functions In Vb???
Hello all,

does anyone know anything about setting up callenders that will negate using specified dates and times automatically?

this can be either in vb or within access!

ie: i want to start a job on friday which will take 26 hours, but there are only 6 hours in the working day for friday.

i would like to be able to offset the start time of the job by the non working time, but still acknowledge that the leadtime is still 26 hours, showing a period of non activity (18 hours).

are there any functions that do this in vb, or do i have to code this from scratch?

if i do have to code this from scratch, has anyone got any ideas on how best to go about this?

thanks,
A.

"Smoke me a kipper I'll be back for breakfast!"

Copyright © 2005-08 www.BigResource.com, All rights reserved