yeah thanks for the replies...
But i am not just creating a calendar...I will be making my calendar as something like a diary or alarm where i can set my reminders or any important events on the specific dates...
Besides, the MonthCalendar can not be customized to my desired design...

@Momerath: I will also be using the MySQL database for the storage of the events...

the database queries are the date and time functions in MySQL...that is used in making the calendar...

Hello guys,

I am making a calendar. My problem is that it when I click the Forward button, it does not display the calendar in an instant... it does not behave like the calendar in Windows 7...
There is a delay before the calendar is displayed.

Is there a way for it to solve my problem...?
Please help me guys...

Here is my code:

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using MySql.Data.MySqlClient;

namespace test2
public partial class Form1 : Form
string connString = "server=;database=sample;uid=root;password=march15";
public int currentYear, currentMonth, lastDay, firstDay;

    public Form1()

    private void lblClick(System.Object sender, EventArgs e)
        Control ctrl = (Control)sender;

    private void lblMouseHover(System.Object sender, EventArgs e)
        Control ctrl = (Control)sender;
        ctrl.ForeColor = Color.Blue;
        //ctrl.BackColor = Color.White;

    private void lblMouseLeave(System.Object sender, EventArgs e)
        Control ctrl = (Control)sender;
        ctrl.ForeColor = Color.Black;
        //ctrl.BackColor = Color.Black;

    public void initializeCalendar()
        int initYear, initMonth;
        MySqlConnection conn = new MySqlConnection(connString);            

            string query = "SELECT year(now()) as initYear, month(now()) as initMonth";
            MySqlCommand cmd = new MySqlCommand(query, conn);
            MySqlDataReader reader = cmd.ExecuteReader();
            while (reader.Read())
                initYear = Convert.ToInt32(reader["initYear"].ToString());
                initMonth = Convert.ToInt32(reader["initMonth"].ToString());                    

        catch (Exception ex)

    public void displayCalendar(int year, int month)
        MySqlConnection conn = new MySqlConnection(connString);
            string query = "SELECT monthname('" + year + "-" + month + "-01') as monthName, year('" + year + "-" + ...

i've gone to ROM Setup but I could not find the devices in my laptop...Im using Windows 7 now...Its a bit different from Win XP where you can view the name or manufacturer of the HDD... but I could not find the name or manufacturer of the devices in ROM/BIOS Setup....

there's an i attach in this post...

good day everyone...

i would like to make a project using barcode reader...
can somebody explain me how the the data from the barcode reader can be retrieved..?
does the barcode reader keeps on reading data, then you are just going to break the process thru your program codes...?

plz help me guys...tanx,

hello guys, i really have a problem in my laptop.... whenever i tried to open NetBeans IDE, a blue screen then appears with some messages in there...then it will reboot...then i go to the disk manager then storage, i could not found any hard drives in the list...the fact that there are 3 partitions... when i un.installed netbeans ide, still the same....when i tried to reformat and re.install Windows 7, there is an error telling Windows could not find any hard drives in the system....

can you please help me guys....thanx,
Any help would be greatly appreciated...

ahmmm, what are the libraries that to be imported in this project....?

/--- myCell is a Cell object

if (myCell.Value == null && myCell.Formula == "")
//--- Cell is empty


click on the form then on its properties, set Form Border Style to Fxed3D or FIxedDialog.....

I recommend you to use store the current values then use conditional statements in checking the values...

[QUOTE=adatapost;1113905][b]>i cant connect to my database[/b]

You need to download [URL="

better reformatt your pc...
use a bootable disc...

hey guys...
can anyone help me in connecting xammp to
xammp is a package and mySQL is one of its softwares...
i cant connect to my database...
can anyone give me a code/s....tanx guys....

i would recommend you to use TuneUP Utilities has an uninstall will surely remove any softwares you uninstalled to your system...

hello everyone.....
i just wonder f could i insert a flash animation to my form???
thats a .swf file....tanx,

what is its dll?

try this....on the command prompt type gpedit.msc
then click user configuration then system then select ctrl+alt+delete options..dn enable "Remove Task manager"...

rnyamonga commented: worth reading!! +1

Hello everyone...
I wonder if is there a way to access the words in MS Word?what i mean, accessing its if you have a word (when your program is running) if you are going to click a button, this will check if that word is valid... or existing....

its solved....thanx really a lot guys...
youre so helpful eversince i joined here....

Hello everyone...can anyone modify my code below....i have a database named "Database1.accdb"
with a table "Applicants"...The columns are ID(auto incremented),Name,and Age....
on this code, i can display the data from my database...
My problem is that how can i add a new record to my database...or delete a record...
I have read tutorials and code snippets here but i want a specific code...please help me guys...
On my designer form, i have dragged the Applicants node so in my form there is now the IDtextbox,
NameTextbox, and AgeTextbox...i have also added AddButton, DeleteButton, and UpdateButton...
How to write a code in which when i click the AddButtton, the values in the textboxes will
be added to my database...and when i delete then a record will be deleted....Please include
the namespace...or anything that needs to be declared....
By d way, im using MS Access 2007...Tanx guys...Any help will be greatly appreciated...

[CODE]using System.Data.OleDb;

    private void button1_Click(object sender, EventArgs e)
    const string connStr = @"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=D:\Bords\MyDocuments\Database1.accdb";
        string query1 = "Select * From Applicants"; 

        using (OleDbConnection conn = new OleDbConnection(connStr))
            using (OleDbCommand cmd = new OleDbCommand(query1, conn))
                using (OleDbDataReader dr = cmd.ExecuteReader())
                    if (dt != null)
                    dt = new DataTable();
                    dataGridView1.DataSource = dt;

okay, ill try it avirag...tanx

Hello could i make my database be in my exe project if im going to make my project a setup one...? what i mean if im going to acess my database (MS Access), there is a path of that database(depending where did i save it) in my code in order to access it.... what if im done in my project and i'll be going to create a exe file, how could i access that database?do i need to import that database to my project so that wherever i will run it, there will be no error?

why is it the "edit, help and more" ms dos command wont work???
only the dir,cd,cd/,and changing the drive works........please help guys...tanx,

is there any other way of playing .mp3 or .flv music files without using microsoft directX? there is a code snippets in playing music files here using ms dirextX but it was an error when i compiled the code... and i was able to play .wav files only....plz tell me guys...tanx,

hello everyone.... can you please give me a code on a registration form... what i mean is that how to write a code in which you are going to design like a registration form then if you are going to fill-in the info, it will be stored to a database... i can make the design but the problem is that how to write that code in which that could be stored to the database....plz help guys....

can you please explain the lines in opening a connection to a database?where will i base the datasource, the initial catalog, uid.....?

what is the syntax of delay (suspending for some seconds) in vc#?
like in c, ur just going to do in this way: delay(100000);

hello... i just want to ask for help on how to add or retrieve data in datagrid... in my case, i have my data and im just going to output it in datagrid view.... plz help me guys...