Click here to Skip to main content
15,885,711 members
Home / Discussions / C#
   

C#

 
GeneralRe: TransparencyKey not working correctly Pin
leppie18-Aug-04 4:00
leppie18-Aug-04 4:00 
GeneralError while deploying with the emulator Pin
mathon17-Aug-04 7:50
mathon17-Aug-04 7:50 
Questionz-order equivalent for windows? Pin
ddelapasse17-Aug-04 7:34
ddelapasse17-Aug-04 7:34 
AnswerRe: z-order equivalent for windows? Pin
Stefan Troschuetz18-Aug-04 0:18
Stefan Troschuetz18-Aug-04 0:18 
GeneralExcel CSV Problems Pin
Member 120485117-Aug-04 7:12
Member 120485117-Aug-04 7:12 
Generalcommand line compiling Pin
Martin Marvinski17-Aug-04 7:06
Martin Marvinski17-Aug-04 7:06 
GeneralRe: command line compiling Pin
Nick Parker17-Aug-04 7:25
protectorNick Parker17-Aug-04 7:25 
GeneralCurious focus problem. Pin
MrEyes17-Aug-04 6:48
MrEyes17-Aug-04 6:48 
I have just encountered an interesting focus problem, which after doing some testing & searching I am at a loss to explain.

I have a COM object that under certain circumstance will show a form. This is a simple form with 2 buttons (ok, cancel) and a listview. By default the OK button has focus (through code by setting .Focus(), and through design by setting its tab order to 0).

The form is launched using [form object].ShowDialog()

When the form is displayed the button has focus because if I press return the code behind the button is executed (I am not using the AcceptButton property on the form) - the curious problem is how the button is rendered.

Normally if a button has focus a dotted line is drawn just inside the buttons bounds and the button shadow is enhanced. On the COM launched form the shadow is drawn but the inner line is not, but if I tab around to the button again it does have the dotted line.

If I add a Main() function to the form and launch it directly then the button is rendered correctly (with the shadow and the dotted line)

Does anybody have any ideas of what direction I should go to find a solution to this problem?

post.mode = postmodes.signature;
SELECT everything FROM everywhere WHERE something = something_else;
> 1 Row Returned
> 42
GeneralDropDown Button Pin
Anonymous17-Aug-04 6:10
Anonymous17-Aug-04 6:10 
GeneralRe: DropDown Button Pin
Syed Abdul Khader17-Aug-04 6:33
Syed Abdul Khader17-Aug-04 6:33 
GeneralRe: DropDown Button Pin
cjengler18-Aug-04 1:24
cjengler18-Aug-04 1:24 
GeneralSending XML file as a parameter Pin
sacoskun17-Aug-04 5:52
sacoskun17-Aug-04 5:52 
GeneralRe: Sending XML file as a parameter Pin
Stanciu Vlad17-Aug-04 6:52
Stanciu Vlad17-Aug-04 6:52 
GeneralRe: Sending XML file as a parameter Pin
leppie17-Aug-04 8:19
leppie17-Aug-04 8:19 
GeneralDataGrid not update Pin
Fule17-Aug-04 5:21
Fule17-Aug-04 5:21 
GeneralRe: DataGrid not update Pin
leppie17-Aug-04 5:54
leppie17-Aug-04 5:54 
GeneralRe: DataGrid not update Pin
dekhle17-Aug-04 5:56
dekhle17-Aug-04 5:56 
GeneralRe: DataGrid not update Pin
Heath Stewart18-Aug-04 11:02
protectorHeath Stewart18-Aug-04 11:02 
Generalclosing forms Pin
steve_rm17-Aug-04 5:20
steve_rm17-Aug-04 5:20 
GeneralRe: closing forms Pin
Anonymous17-Aug-04 5:53
Anonymous17-Aug-04 5:53 
GeneralRe: closing forms Pin
mav.northwind17-Aug-04 6:17
mav.northwind17-Aug-04 6:17 
GeneralRe: closing forms Pin
loop0722-Aug-04 17:19
loop0722-Aug-04 17:19 
GeneralRe: closing forms Pin
mav.northwind22-Aug-04 20:15
mav.northwind22-Aug-04 20:15 
GeneralMr ListView again Pin
yetanotherchris17-Aug-04 4:43
yetanotherchris17-Aug-04 4:43 
Generalfocus on next control in a WinForm Pin
Hovik Melkomian17-Aug-04 2:33
Hovik Melkomian17-Aug-04 2:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.