473,508 Members | 2,342 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Trouble focussing

I have a simple application with one form containing one MonthView control
and a command button labeled "Close" whose only action is to call "End".
It's ennoying to click on a specific date and then have to click thice on
"Close" button to be able to activate the "End".
The first click does bring the focus on the button and the second activates
it.
It should be activated on first click.
I think calling "SetFocus" on each click on the calendar is not a neat
solution.
I've met this ennoyance in many of my programs.

Does anybody have came up with a way to deal with this double click
ennoyance?

Thank you
Nicolas Poirier

Nov 9 '05 #1
3 3650
"Nicolas Poirier" <ni***********@tlb.sympatico.ca> wrote in message
news:Pi********************@news20.bellglobal.com
I have a simple application with one form containing one MonthView
control and a command button labeled "Close" whose only action is to
call "End".
FWIW, the only action in a Close button event should be "Unload Me". The
End statement is *never* needed in a VB application and can cause harm if
used to end an app before all cleanup has been done. It's nearly impossible
to use End completely safely. Don't use it.
It's ennoying to click on a specific date and then have
to click thice on "Close" button to be able to activate the "End".
The first click does bring the focus on the button and the second
activates it.
It should be activated on first click.
I think calling "SetFocus" on each click on the calendar is not a neat
solution.
I've met this ennoyance in many of my programs.

Does anybody have came up with a way to deal with this double click
ennoyance?


It's a bug with the MonthView so you've either got to not use that control
or work around it somehow.

--
Reply to the group so all can participate
VB.Net: "Fool me once..."

Nov 9 '05 #2
Yes it's a bug. See this:

http://support.microsoft.com/default...b;en-us;191859
"Nicolas Poirier" <ni***********@tlb.sympatico.ca> wrote in message
news:Pi********************@news20.bellglobal.com. ..
I have a simple application with one form containing one MonthView control
and a command button labeled "Close" whose only action is to call "End".
It's ennoying to click on a specific date and then have to click thice on
"Close" button to be able to activate the "End".
The first click does bring the focus on the button and the second
activates
it.
It should be activated on first click.
I think calling "SetFocus" on each click on the calendar is not a neat
solution.
I've met this ennoyance in many of my programs.

Does anybody have came up with a way to deal with this double click
ennoyance?

Thank you
Nicolas Poirier

Nov 10 '05 #3
You can use the mouse down event on the command button instead of the click
event to action on the first press. You'll also need some the code in the
Click event for keyboard users. You may need some logic to prevent double
presses.

Another plan is to design your own calendar control, that way if you use XP
themes the calendar doesn't look so out of place.

Regards
Dave O.

"Nicolas Poirier" <ni***********@tlb.sympatico.ca> wrote in message
news:Pi********************@news20.bellglobal.com. ..
I have a simple application with one form containing one MonthView control
and a command button labeled "Close" whose only action is to call "End".
It's ennoying to click on a specific date and then have to click thice on
"Close" button to be able to activate the "End".
The first click does bring the focus on the button and the second
activates
it.
It should be activated on first click.
I think calling "SetFocus" on each click on the calendar is not a neat
solution.
I've met this ennoyance in many of my programs.

Does anybody have came up with a way to deal with this double click
ennoyance?

Thank you
Nicolas Poirier

Nov 11 '05 #4

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

Similar topics

2
1863
by: James | last post by:
Hi I am having some trouble getting a asp page to load. Im a noob to the asp side. I have followed knowledege base Article 301305. I am running 2000 adv, IIS 5.0 I have the following...
4
3827
by: Jacek Dziedzic | last post by:
Hi! First of all, I hope my problem is not too loosely tied to the "standard C++" that is the topic of this group. I have some code that exhibits a strange behaviour: on one computer, where I...
0
1536
by: Paul C | last post by:
Hello, everybody. I am having trouble running some of the VS.NET samples, specifically the CarSelector web app, which is very simple. The symptom is that the web controls (drop down listboxes and...
0
1469
by: Alexandre Jaquet | last post by:
Hi does anybody know how to solve my trouble, when I try to create a MS Office project I always got trouble. I can't create office project when I try to create one vs.net restart ... :s
2
5761
by: Jeff | last post by:
/* -------------------------------------------------------------------------- Hello, I was experimenting with class templates and specializing member functions and came across a simple problem...
1
1986
by: Jim Bancroft | last post by:
Hi everyone, I'm running into a problem with my ASP.Net application. I've just created a new aspx page which uses some new components of mine that inherit from ServicedComponent and are...
6
3764
by: Daniel Walzenbach | last post by:
Hi, I have a web application which sometimes throws an “out of memory” exception. To get an idea what happens I traced some values using performance monitor and got the following values (for...
3
4969
by: Olivier BESSON | last post by:
Hello, I have a web service of my own on a server (vb.net). I must declare it with SoapRpcMethod to be used with JAVA. This is a simple exemple method of my vb source : ...
2
1542
by: JLupear | last post by:
I am having trouble with my code again, I had prepared a question and the code to upload, however I am having trouble posting it, are there limits to the amount of lines you can post? I split it...
0
1648
by: mrchatgroup | last post by:
news from http://www.mrchat.net/myblog/myblog/small-accidents-mean-big-trouble-for-supercollider.html Small Accidents Mean Big Trouble for Supercollider Image Scientists expect startup...
0
7229
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
7129
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
7333
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
7398
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7061
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
5057
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4716
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
1
769
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
428
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.