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




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




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
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 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

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)

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!"

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

ActiveX Calender
Does anyone know how I can utilise this and make it write back to a table?
I am wanting to create a very simple tracker system of Staff Sickness and have come accross this calender control. Trouble is I am not sure how to make it record the dates which I select back to a table.

If this possible? Or should I just use a couple of drop down boxes with a start and end date recorded back to the table?
Cheers
Pr0

Some Help Needed With Calender......
I don't know if this is the correct forum but here is my question:

I am making a simple program that has the calender control invisible and my program is supposed to read in the current date and see if it matches the date stored in a file. The code works except I don't know too much about the calender control and for some reason it never updates the date to the current date. i tried not setting a value and the date came out as 0/0/0 then i set the date as 10/24/02 and i checked it the next day and it still said that the date was 10/24/02... Do I need to add code to run this or what if so what is the code? Please help I'd really like to get this application working...


and again sorry if I posted in the wrong forum cause i'm new here!

thankx for any help you can provide...

How To Get The First Day Of Calender Month
i have txt box which enter today's date. and get first day of calender month

Create A Calender
i have a small application that has a access backend all i want to do is get information on employees brith date (the data is pulled from a query) and create a calender for a period of time, be it 12 months from DateStart to DateEnd, that the person can then view or print out. how do i create something like this? how to i create a calender that has months running horizontal and the days running verticle so i can put it all on one page?


cheers

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?

Date From Calender
Dear Guys,

In a form, i want to pick a date from calender. User should not type any date, and that date to be stored in access field...

Please guide me !!

Calender Date Help Plz!!!
Hey guys,

I am currently working on a database with the ability to input dates with clicks on the built in calender.

There are rules which the program must abide by for this program when the user clicks on a date.

1. - an input date must be 7 days in advance
2 - an input date must also be within 2 months.

Here's my code for this feature:


VB Code:
Private Sub Calendar1_Click()datetxt.Text = Calendar1.Valuedate1 = datetxt.TextIf date1 < (date + 7) Then    MsgBox "Please book at least 7 days in advance"If date1 > (date + 60) Then    MsgBox "You cannot book more than 2 months in advance"End IfEnd If


However, the above code does not work!
NO matter where i click on the calender, the msgboxes never come up!!

Thanks for any help!!!

Dlookup And Calender
I am trying to use an Access query with a Calender in VB6. I can pick the from date DTpicker1, store it in an Access table.Same with the to date DTpicker2. I`ve tried DLookUp("field","table") which shows the date OK. How do i show between the two DTpicker dates ? Do i need to do this on a second query ?

Calender Table
Im creating a contracts application...The user inputs a duration length eg. 24 months. I need to create a table in the db which would record payment dates..for example if the user inputs 24 months then the system should create a table with 24 rows. The contract will have a payment date each month and on that day the system has to record that the debit has been paid......

How could I do that??

Calender Questions
Don't flame I'm new

Does anybody have a code to do this...

I select a date on the calender example 19/09/2003, I want it to store the date of the Monday of the chosen date (15/09/2003).

can anyone help?

thanks guys,

Active Calender ..
If anybody can provide me the OCX of Active Calender Control will be very helpfull.

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?

Help In Calender/dates
i would like to design calender that i choose 2 dates. i need to compare the 2 dates. the first one must be earlier than the 2nd. someone please help me. thanks.

Calender Question
hello all,

is there a calender control available that is compatible with VB vers5 Enterprise Editon??

i know vers6 comes with this, would it work with my version??

kind regards.

Help With The Calender Object
Hi,
I have a database which contains information including a date. I would like to use a calender object in vb to click on a date in the calender and the information for that date is called into a datagrid from the database if there is information with that date or a message box appears if there isn't.
I don't really know where to begin with this so any ideas or help will be great.
Thanks,
Phill

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 Schedule
Hey,

How would i make it so that it would kno the # of days to the month and year?

please help.

Calender Controls
I've just be told I need to use a calender control to store appointments in a database but can't find any information on how they work

Has anyone got any ideas of how they work or where I can get information

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

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

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....urgent Help
hi all,
i need this calender control where in ...if i click on any day on the calender .
i should be able to assign some task for the day for which i 'll get reminder.

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

Calender + DataBase
Front end :VB
Back end : Access
I want to develop a Movement Planner Application in a Tablular Form in which on the very Left hand side column will contain the names of the persons and the and 1st upper row should contain Dates /Day of the months , dates should be automatically updated as we change the month and all the information should be stored in database also so as to refer in future . How this can be a done. If u have any other way to do this its also welcome .

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