473,396 Members | 2,093 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

disable monthcalendar refresh

A monthcalendar checks every 2 minutes if theres a new day. Does anyone
knows how to disable this ?

The problem is that, everytime a monthcalendar checks this, the form
where the monhcalendar is on, gets the focus, which is VERY annoying.
Thanks,

Steven
Nov 21 '05 #1
13 3625
Steven,

I have now 5 minutes a montcalandar on my screen which not has the focus,

Why not try it yourself with a new project with only a textbox and a
monthcalander and set than the focus on the textbox.

I am curious about the reason by the way.

I hope this helps anyway to find your problem?

Cor
Nov 21 '05 #2
Steven,

I have now 5 minutes a montcalandar on my screen which not has the focus,

Why not try it yourself with a new project with only a textbox and a
monthcalander and set than the focus on the textbox.

I am curious about the reason by the way.

I hope this helps anyway to find your problem?

Cor
Nov 21 '05 #3
"steven" <us**@example.net> schrieb:
A monthcalendar checks every 2 minutes if theres a new day. Does anyone
knows how to disable this ?

The problem is that, everytime a monthcalendar checks this, the form where
the monhcalendar is on, gets the focus, which is VERY annoying.


I am not able to repro that using .NET 1.0 on Windows XP Professional SP2.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #4
"steven" <us**@example.net> schrieb:
A monthcalendar checks every 2 minutes if theres a new day. Does anyone
knows how to disable this ?

The problem is that, everytime a monthcalendar checks this, the form where
the monhcalendar is on, gets the focus, which is VERY annoying.


I am not able to repro that using .NET 1.0 on Windows XP Professional SP2.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #5
Herfried K. Wagner [MVP] wrote:
"steven" <us**@example.net> schrieb:
A monthcalendar checks every 2 minutes if theres a new day. Does anyone
knows how to disable this ?

The problem is that, everytime a monthcalendar checks this, the form where
the monhcalendar is on, gets the focus, which is VERY annoying.

I am not able to repro that using .NET 1.0 on Windows XP Professional SP2.

Hi,

I forgot to mention: my application exist of more than 1 form. I've
tried to begin a new application, and the problem persist.

When a form without the monthcalendar has the focus, at a certain
moment, the form with the monthcalendar gets the focus!

Any solutions ?

Thanks,

Steven
Nov 21 '05 #6
Herfried K. Wagner [MVP] wrote:
"steven" <us**@example.net> schrieb:
A monthcalendar checks every 2 minutes if theres a new day. Does anyone
knows how to disable this ?

The problem is that, everytime a monthcalendar checks this, the form where
the monhcalendar is on, gets the focus, which is VERY annoying.

I am not able to repro that using .NET 1.0 on Windows XP Professional SP2.

Hi,

I forgot to mention: my application exist of more than 1 form. I've
tried to begin a new application, and the problem persist.

When a form without the monthcalendar has the focus, at a certain
moment, the form with the monthcalendar gets the focus!

Any solutions ?

Thanks,

Steven
Nov 21 '05 #7
Cor Ligthert wrote:
Steven,

I have now 5 minutes a montcalandar on my screen which not has the focus,

Why not try it yourself with a new project with only a textbox and a
monthcalander and set than the focus on the textbox.

I am curious about the reason by the way.

I hope this helps anyway to find your problem?

Cor

Hi,

I forgot to mention: my application exist of more than 1 form. I've
tried to begin a new application, and the problem persist.

When a form without the monthcalendar has the focus, at a certain
moment, the form with the monthcalendar gets the focus!

Any solutions ?

Thanks,

Steven
Nov 21 '05 #8
Cor Ligthert wrote:
Steven,

I have now 5 minutes a montcalandar on my screen which not has the focus,

Why not try it yourself with a new project with only a textbox and a
monthcalander and set than the focus on the textbox.

I am curious about the reason by the way.

I hope this helps anyway to find your problem?

Cor

Hi,

I forgot to mention: my application exist of more than 1 form. I've
tried to begin a new application, and the problem persist.

When a form without the monthcalendar has the focus, at a certain
moment, the form with the monthcalendar gets the focus!

Any solutions ?

Thanks,

Steven
Nov 21 '05 #9
"steven" <us**@example.net> schrieb:
A monthcalendar checks every 2 minutes if theres a new day. Does anyone
knows how to disable this ?

The problem is that, everytime a monthcalendar checks this, the form
where the monhcalendar is on, gets the focus, which is VERY annoying.


I am not able to repro that using .NET 1.0 on Windows XP Professional
SP2.


I forgot to mention: my application exist of more than 1 form. I've tried
to begin a new application, and the problem persist.

When a form without the monthcalendar has the focus, at a certain moment,
the form with the monthcalendar gets the focus!


My test application also had two forms, one containing the MonthCalendar.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #10
"steven" <us**@example.net> schrieb:
A monthcalendar checks every 2 minutes if theres a new day. Does anyone
knows how to disable this ?

The problem is that, everytime a monthcalendar checks this, the form
where the monhcalendar is on, gets the focus, which is VERY annoying.


I am not able to repro that using .NET 1.0 on Windows XP Professional
SP2.


I forgot to mention: my application exist of more than 1 form. I've tried
to begin a new application, and the problem persist.

When a form without the monthcalendar has the focus, at a certain moment,
the form with the monthcalendar gets the focus!


My test application also had two forms, one containing the MonthCalendar.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #11
Steven,

I made 2 forms on form2 a calendar than this code in form1

\\\
Private Sub Form1_Load(ByVal sender As Object, _
ByVal e As System.EventArgs) Handles MyBase.Load
Dim frm As New Form2
frm.Show()
End Sub
///

And setted by hand the focus back to form1

I did not see in 2 minutes a change of focus.

How do you do this to simulate this?

Cor

Nov 21 '05 #12
Steven,

I made 2 forms on form2 a calendar than this code in form1

\\\
Private Sub Form1_Load(ByVal sender As Object, _
ByVal e As System.EventArgs) Handles MyBase.Load
Dim frm As New Form2
frm.Show()
End Sub
///

And setted by hand the focus back to form1

I did not see in 2 minutes a change of focus.

How do you do this to simulate this?

Cor

Nov 21 '05 #13
Herfried K. Wagner [MVP] wrote:
"steven" <us**@example.net> schrieb:
A monthcalendar checks every 2 minutes if theres a new day. Does anyone
knows how to disable this ?

The problem is that, everytime a monthcalendar checks this, the form
where the monhcalendar is on, gets the focus, which is VERY annoying.

I am not able to repro that using .NET 1.0 on Windows XP Professional
SP2.


I forgot to mention: my application exist of more than 1 form. I've tried
to begin a new application, and the problem persist.

When a form without the monthcalendar has the focus, at a certain moment,
the form with the monthcalendar gets the focus!

My test application also had two forms, one containing the MonthCalendar.

Try this code in your form with the monthcalendar (and an empty
datagrid) (Form2 is an empty form):

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim frm As Form
frm = New Form2
frm.Show()
End Sub
Private Sub MonthCalendar1_DateChanged(ByVal sender As Object,
ByVal e As System.Windows.Forms.DateRangeEventArgs) Handles
MonthCalendar1.DateChanged
Dim dt As New DataTable
Dim dr As DataRow
dt.Columns.Add("test")
dr = dt.NewRow()
dr.Item("test") = "test: " + Now.ToShortTimeString
DataGrid1.DataSource = dt
End Sub
you'll see after a while (every 2 minutes), the function is being
called, and the datagrid is filled with the testdata. Within my
application, the focus of the form is set, but if I make a new
application, the form with the monthcalendar is not getting the focus
indeed. Anyway, disable the monthcalendar refresh will solve my problem.

Does anyone knows how to disable this monthcalendar refresh ? I've tried
to dynamically add/remove the handler from the monthcalendar, but that
didn't work.

Thanks,

Steven
Nov 21 '05 #14

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Ty Smith via AccessMonster.com | last post by:
I noticed that the week numbers in Stephan Leban's MonthCalendar are not consistent with Microsoft Outlook (they are shifted one week forward). Is there any way I can sync these two up by changing...
3
by: michael_hk | last post by:
Hi, I am new to Windows Form programming and now have a simple Q about MonthCalendar. I want to hightlight some days in the calendar by changing the background color of these days. But I...
0
by: steven | last post by:
A monthcalendar checks every 2 minutes if theres a new day. Does anyone knows how to disable this ? The problem is that, everytime a monthcalendar checks this, the form where the monhcalendar is...
8
by: vbmark | last post by:
I want the MonthCalendar control to return the single day selected. I have MaxSelectionCount = 1. What I get back though is this: "SelectionRange: Start: 5/5/2005 12:00:00 AM, End: 5/5/2005...
3
by: RG | last post by:
For a Windows project in VB.NET 2003: I need a Calendar that’s much larger than the MonthCalendar control in the toolbox; it needs to fill the whole screen (at least approximately ). VB...
1
by: DS | last post by:
I seem to have run into another strange anomaly with the monthCalendar control. I want to display 6 months at time with either the first half of the year (January-June) or the later half of the...
0
by: Mini Nutz | last post by:
Hi to everyone, I am currently designing a form that uses the MonthCalendar control, other panels are displayed for each day selected with the month calendar. My problem is that after 2...
2
by: meska | last post by:
Hi all, Scenario: I have a MonthCalendar control, and DataGridView. Depending on dates displayed in MonthCalendar I want to update information from database. The Possible Solution: So I...
11
by: Randy | last post by:
I have a MonthCalendar on one of my forms. I have disovered that the DateChanged event is triggered not only when the user clicks on a new date, but also if they click on the Previous or Next...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.