how to restore dialog mouse/keyboard focus after catching exception???
My application throws an exception in a grid control that is attached to a
dialog. The parent window of the dialog correctly catches the exception but
mouse/keyboard focus is not restored to the parent window. I've tried a
number of things (e.g. SetFocus, CaptureMouse, etc) but the parent window
does not get mouse/keyboard control and so my application has effectively
been shut down. I am forced to use the debugger to exit from the
application. Would anyone have any suggestions how to resolve this problem.
Ideally, I would like to catch the exception in the parent window or is t...regarding focus
I have MDI MFC application .
I click a menu item and a modeless dialog CPalette is created.
I have added a variable to CMainFrame i.e. CPalette *mypal;
Now real problem is
When this dialog is displayed it gets all the focus and my main frame,
view loses focus
and there is some color change in the title bar of these windows. If
focus gets to frame or
view then dialogs loses focus and some color change occurs to dialog
title. which is very irritating.
I dont want this. I want the CPalette dialog to look like a component
of MainFrame. There should...Outlook Client Is Losing Connection To Microsoft CRM While Online
Hi. I have Rollup 2 installed on both the Outlook Client and the server.
On my laptop, I am running Win XP Pro with SP 2 and all the updates applied
and Outlook 2003 with all the updates applied.
I am noticing that I seem to be losing the connection to Microsoft CRM from
the Outlook Client. Right after I boot my laptop I am able to access to
Microsoft CRM from the Outlook Client for between 4 hours to a day. After
that if I click on the Accounts, Contacts or Leads folders nothing seems to
happen. I have waited up to 10 minutes after clicking and nothing. At this
point I can still use...Set the focus to the top of the form that has a tabcontrol
I have a form which consists of a tab control.
When users switch between tabs, I want to set the focus of the entire form
to the top of the form each time instead of where they let the form on their
Is this possible?
I tried to set the focus to the top of the form by using the following:
But it doesn't work. I'm not sure of where I should put the code. Is this
the right one to use or would something else be better?
I also read somewhere in one of the forums I can set the focus first to the
mainform by using
Forms...Why do I lose contacts?
I enter a contact and a few days later (after a reboot) it's gone?
Sometimes I show 80 contacts. Sometimes 1518? What is up with that?
On Sun, 29 Nov 2009 22:12:01 -0800, Davis Straub wrote:
> I enter a contact and a few days later (after a reboot) it's gone?
> Sometimes I show 80 contacts. Sometimes 1518? What is up with that?
Not a clue. I ran Windows Live Mail without signing in to Windows Live
Services for three, or four days. My Contacts list never changed, or
disappeared during that time. It is, however, different than the Contacts
list I normally see ...SS#'s lose lose formatting in .csv
I have a user who is entering a list of ss numbers. She
has to have them in this format:
First off, we can't get the leading 0 to stay, it just
disappears. I have tried formatting the column as text, as
numbers, as custom #########, and like '983474744. No
matter what we do, after saving and opening it again, the
leading 0's are gone and some number turn in exponential
notations. Can someone please help?? This should be an
easy fix, but it seems the formatting I put on this does
not hold!! thanks in advance.....Bill
Select the column
Either cl...losing pictures
I had produced a 3 fold brochure and printed it successfully for months. Then one day 2 of the jpg files stopped printing. I have reloaded Publisher, done everything I can think of, but can not get those files to print on the office color printer. They will print on the Black and white. The brochure will print from someone else's computer!!!! if I save the file on a CD and print it from someone who has Publisher. I talked to Gateway and they said it was my problem, this is a new 2003 computer, with 2002 Publisher. Can anyone help
Update your printer driver from the website of your prin...Lose Focus
I want a control on a Dialog to be losed focus after it is disabled by
I don't care who will get the focus, so I don't want to use SetFocus().
Is there a way?
>I want a control on a Dialog to be losed focus after it is disabled by
>I don't care who will get the focus, so I don't want to use SetFocus().
>Is there a way?
Try using CDialog::NextDlgCtrl or maybe PostMessage WM_NEXTDLGCTL to
That is exactly what I want.
> Try using CDial...Losing online passwords
Money 2001. Recently, when I connect to online services, the password for my
Discover Card account is sometimes missing. The other online banks remember
their passwords. I always re-enter it and check "remember passwords", but
about every 6 times I log on, the Discover password is missing. I just
recently installed XP. Can anyone explain?
I have noticed the same problem on my 98SE Money 2004. Must be on
"OhMarty" <email@example.com> wrote in message
Money 2001. Recently, when I connect to o...Changing ISP / email address
My friend is about to change ISP and get a new email address. He doesn't use
webmail only Outlook. He has many folders containing emails he wants to
keep, and also all his contacts. Can someone please tell me, if he changes
email address will all the folder contents and contact details remain in
Outlook? Are they on his hardrive or not? Thanks!
Outlook data is stored locally. If he uses the same data file all his
information will be there.
"Alfa Mum" <Alfa Mum@discussions.microsoft.com> wrote in message
news:54C0F148-C087-4A8A-A25C-A...Last Form to have Focus error
I have an app where the user wants to copy the current record (2 tables) and
create a new record. Since there is a ton of available data I pop up a
screen that allows them to select what parts of the record they want. Works
pretty well (cannot seem to get the calling form to go to the new record).
This copy form can be called from two different forms. So I was trying to
use the following so I would know which form called it as to make some
In the same database I am using this code when calling my own type of
message box (ex 1) and it works great. I use it to change the b...You will find that with a quartz watch, you will on average lose or gain up to one second per week. Compare that to a mechanical watch, which can potentially lose or gain up to one minute per week.
You will find that with a quartz watch, you will on average lose or
gain up to one second per week. Compare that to a mechanical watch,
which can potentially lose or gain up to one minute per week. It is
obvious that quartz watches are much more accurate and reliable than a
mechanical watch. What makes quartz so accurate is its extremely high
oscillations of up to 32,768 cycles per second
...Trapping losing commands
In our applications once in a while the commands don't get through to the SQL
Server for different reasons. Since it is an automatic process there is
nobody in the front end to rerun those command, and they are getting lost.
The rezones for the lost could be: Time out, broken connections, Deadlocks
Is there a way SQL can trap these and replay them?
Gal (Gal@discussions.microsoft.com) writes:
> In our applications once in a while the commands don't get through to
> the SQL Server for different reasons. Since it is an automatic process
> there is nobody in th...losing a toolbar
I'm trying to setup my default workbook/sheet. Everything is working so far,
except I cannot get rid of the standard toolbar. It keeps coming back. I do
I get it out of my default preferences?
Right click on any toolbar and unchech the checkbox for the toolbar you
don't want to see anymore.
Save the file, close Excel and the next time you start it, it must not be
More Excel ? www.rosenkrantz.nl or firstname.lastname@example.org
"shank" <email@example.com...Inserting Rows...but losing "FORMAT"
I have a spreadsheet that I have used for 5 years...with daily data being
inputted (in newly inserted rows), then Grand Totaled at the bottom of the
spreadsheet. I have never had a problem...UNTIL RECENTLY.
One of my columns is the time of day, such as 2:54pm, and presently, all of
my inserted rows, except for only 3 of them, depict the time as 2:54 (WITHOUT
THE AM or PM), so, I use the Format Painter, and I Fix the problem...that is,
until the next day, when the same incident again occurs.
I do not know why this is happening, but I must use this extra step (Format
Painter) ...Losing Sound
i encountered this problem more frequently now, after listening to music or
video thesound is suddenly muted and i need to restart XP to get back.
If the pc has an add-on sound card,open device mgr,expand the sound
tree,R.click all the sound card listings (one at a time),select "uninstall",
do not restart pc after each,once thru,exit device,shutdown pc.Move the
sound card to another PCI slot,start pc,xp will reinstall it..If its
do the same w/o the card move.Also,one can go to run,type: DXDIAG
Run the Direct X sound tests..
...SBS 2008 keeps losing default gateway
Strangely enough "route print" shows a default route, but the default
gateway is missing in the network connection properties, and I have to
manually reenter it to restore Internet connectivity. Anyone got any
ideas what's up?
Possibly related is that the Internet router actually tries to proxy ARP
for all IP addresses, which rather confused the configuration wizard.
If it happens again, open regedit, navigate to
and double click the DefaultGateway value....Outlook loses graphics
I receive an email with background, pics, special fonts,
etc. But when I forward it, it goes out plain text, with
pics as separate attachments. All formatting stripped.
How can I send out what I received, in same format?
At work we're sharing a spreadsheet with everyone saving on a regular basis
so everyone can see the updates. Unfortunately, the spreadsheet keeps
Is this most likely due to someone doing something not so bright? or
Is this most likely due to someone's computer dying? or
Can "saving as" (say I make a copy for my own personal use because of all
the crashes) a different sheet cause it?
Thanks for any help regarding this situation.
Merry Christmas Robert Newton
I have to say that my experience with sharing Excel has always been ...Losing citations and sources when using track changes and merging
Whenever I use track changes, share my documents between people, get the
multiple files back, and merge all files all my citations and sources are
lost, and it's a pain to re-enter them. What's going on?
Once an email is read, it disappears. Not into deleted mail folder--it just
View | Current View. You want: Show All Messages, not Hide Read Messages.
Imperial Beach, CA
"sfish714" <firstname.lastname@example.org> wrote in message
> Once an email is read, it disappears. Not into deleted mail folder--it
"sfish714" <email@example.com> kirjutas sõnumis
news:A...How do I merge two columns without losing data?
If I want to split a column in two, I know I can use the Text to Column
feature. How can I go from two columns to one without losing data in the
"Caseybay" <Caseybay@discussions.microsoft.com> wrote in message
> If I want to split a column in two, I know I can use the Text to Column
> feature. How can I go from two columns to one without losing data in the
(use a helper column of formulas.)
Caseybay wrote...Excel wants focus from VB app
(I posted this last Friday, and I recall checking it before I left work, but
it seems to have been gobbled up by the group goblins I guess. Don't know
where it went.)
I'm opening a workbook (visible) and reading a range from a sheet. I'm
leaving the workbook open so the user can make changes. Then they can click
a command button to re-read the range (for error checking).
The problem is that in the compiled version the Excel window wants the focus
after I come back to the VB app window and click the command button. The
Excel button on the taskbar starts flashin...How set focus to subform
When I click on a button on my main form I want to switch the focus to a
control on a subform. What is the syntax? I tried Me!mySubForm.Form.Setfocus
and it said 'Invalid method".
Try this for the syntax:
askdoctoraccess dot com
> When I click on a button on my main form I want to switch the focus to a
> control on a subform. What is the syntax? I tried Me!mySubForm.Form.Setfocus
> and it said 'Invalid method".
Actually, all I had to code was:
I do a lot of work in Management Studio connected to a SQL 2008 server from
my workstation. Sometimes I lose connection after accessing fine all day. I
am using Windows 7 and have the latest SQL Server service pack. The message
I get is
"A network-related or instance-specific error occurred while establishing a
connection to SQL Server. The server was not found or was not accessible.
Verify that the instance is correct and that SQL Server is configured to
allow remote connections. (provider: Named Pipes Provider, error: 40 - Could
not open a connection to SQL Server) ...