473,545 Members | 1,310 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 3653
"Nicolas Poirier" <ni***********@ tlb.sympatico.c a> wrote in message
news:Pi******** ************@ne ws20.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.c a> wrote in message
news:Pi******** ************@ne ws20.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.c a> wrote in message
news:Pi******** ************@ne ws20.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
1867
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 settings to the folder that has the asp. Application settings
4
3829
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 compile with g++-3.2 it compiles and works fine, on another computer, whether I compile with g++-3.0 or g++-2.95 (unfortunately 3.2 is not...
0
1540
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 such) do not render correctly. They're almost invisible, and the others don't work at all, but just show their caption text. Not what should happen ...
0
1472
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
5765
by: Jeff | last post by:
/* -------------------------------------------------------------------------- Hello, I was experimenting with class templates and specializing member functions and came across a simple problem which I can't figure out. I have a simple class C with 2 template member objects, and a function print() that prints the value of these objects. I...
1
1987
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 designed to run under COM+. This page works fine, unless I get fancy and hit my browser's refresh button quickly, as a test. Then, what I see happen is...
6
3769
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 one day): \\FFDS24\ASP.NET Applications(_LM_W3SVC_1_Root_ATV2004)\Errors During Execution: 7 \\FFDS24\ASP.NET Apps...
3
4976
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 : >************************************************************************ > <WebMethod(), System.Web.Services.Protocols.SoapRpcMethod()> _ > Public Function...
2
1543
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 into 4 parts and am still having trouble uploading it. What am I doing wrong?
0
1655
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 glitches in the massive, complex machines they use to smash atoms.
0
7457
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main...
0
7391
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7651
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7802
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7410
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7746
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5962
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 projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3443
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1010
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.