Click here to Skip to main content
15,921,212 members
Home / Discussions / C#
   

C#

 
AnswerRe: Install SQL Server 2005 with custome App Pin
I Believe In GOD24-Jun-10 6:08
I Believe In GOD24-Jun-10 6:08 
QuestionHow to use Internal , Protected Internal across Assemblies.. Pin
a_ravindra24-Jun-10 2:01
a_ravindra24-Jun-10 2:01 
AnswerRe: How to use Internal , Protected Internal across Assemblies.. Pin
WoutL24-Jun-10 2:31
WoutL24-Jun-10 2:31 
AnswerRe: How to use Internal , Protected Internal across Assemblies.. Pin
#realJSOP24-Jun-10 2:32
professional#realJSOP24-Jun-10 2:32 
AnswerUse friend assemblies Pin
Sir Dot Net24-Jun-10 9:15
Sir Dot Net24-Jun-10 9:15 
GeneralRe: Use friend assemblies Pin
a_ravindra24-Jun-10 20:13
a_ravindra24-Jun-10 20:13 
AnswerRe: How to use Internal , Protected Internal across Assemblies.. Pin
Karthik Kalyanasundaram24-Jun-10 20:32
Karthik Kalyanasundaram24-Jun-10 20:32 
QuestionAppBar focus issue [modified] Pin
itcm24-Jun-10 1:52
itcm24-Jun-10 1:52 
I have created an AppBar. The AppBar always stays on top, when it loses focus, then to get back to the AppBar requires two clicks instead of one. I believe the first click activates the form and then with second click I receive the mouse click events (as expected). Can you give any ideas, what can be wrong here? My problem is similar to this one Appbar and focus issues[^]. Unfortunately the OP in that link hasn't posted his solution Frown | :(

I created the AppBar following this article from CodeProject C# does Shell, Part 3[^]

I looked into it with Spy++ but don't have any idea why this is happening.

Here is the Spy++ log which I obtained testing out this scenario (first click doesn't works, second does).

<00001> 00090CFE S WM_PARENTNOTIFY fwEvent:WM_LBUTTONDOWN xPos:25 yPos:17
<00002> 00090CFE R WM_PARENTNOTIFY
<00003> 00090CFE S WM_WINDOWPOSCHANGING lpwp:0418EAE4
<00004> 00090CFE R WM_WINDOWPOSCHANGING
<00005> 00090CFE S WM_ACTIVATEAPP fActive:True dwThreadID:00000000
<00006> 00090CFE R WM_ACTIVATEAPP
<00007> 00090CFE S WM_NCACTIVATE fActive:True
<00008> 00090CFE R WM_NCACTIVATE
<00009> 00090CFE S WM_ACTIVATE fActive:WA_CLICKACTIVE fMinimized:False hwndPrevious:(null)
<00010> 00090CFE S WM_IME_SETCONTEXT fSet:1 iShow:C000000F
<00011> 00090CFE S WM_IME_NOTIFY dwCommand:IMN_OPENSTATUSWINDOW dwCommand:00000002 dwData:00000000
<00012> 00090CFE R WM_IME_NOTIFY
<00013> 00090CFE R WM_IME_SETCONTEXT
<00014> 00090CFE S WM_SETFOCUS hwndLoseFocus:(null)
<00015> 00090CFE R WM_SETFOCUS
<00016> 00090CFE R WM_ACTIVATE

Now happens the second click (which works)
<00017> 00090CFE S WM_PARENTNOTIFY fwEvent:WM_LBUTTONDOWN xPos:25 yPos:17
<00018> 00090CFE R WM_PARENTNOTIFY
<00019> 00090CFE S WM_WINDOWPOSCHANGING lpwp:0418E40C
<00020> 00090CFE R WM_WINDOWPOSCHANGING


Looking at the Spy++ logs, I believe the problem is with activation, I think that it only receives WM_LBUTTONDOWN event if the window is activated. But how come other windows aren't activated but they still work with one click (i.e. I don't have to click it first).

EDIT:I think the problem is with the ToolStrip. I have a ToolStrip in my AppBar. Now how I verified this? Well on the same form I created a button and showed a message box in its click event and it is working fine. Now how to remedy that?

modified on Thursday, June 24, 2010 1:12 PM

Questionadding bottomns to tool tip Pin
mobasher24-Jun-10 0:39
mobasher24-Jun-10 0:39 
AnswerRe: adding bottomns to tool tip Pin
Abhinav S24-Jun-10 0:41
Abhinav S24-Jun-10 0:41 
AnswerRe: adding bottomns to tool tip Pin
William Winner24-Jun-10 8:28
William Winner24-Jun-10 8:28 
Questionhow to Link .jar file with c#? Pin
002comp24-Jun-10 0:16
002comp24-Jun-10 0:16 
AnswerMessage Closed Pin
24-Jun-10 0:18
stancrm24-Jun-10 0:18 
GeneralRe: how to Link .jar file with c#? Pin
002comp27-Jun-10 21:09
002comp27-Jun-10 21:09 
AnswerRe: how to Link .jar file with c#? Pin
Richard MacCutchan24-Jun-10 1:34
mveRichard MacCutchan24-Jun-10 1:34 
AnswerRe: how to Link .jar file with c#? Pin
002comp24-Jun-10 21:20
002comp24-Jun-10 21:20 
QuestionHow to create collection class in C# Pin
Chiman123-Jun-10 23:54
Chiman123-Jun-10 23:54 
GeneralRe: How to create collection class in C# Pin
harold aptroot24-Jun-10 0:08
harold aptroot24-Jun-10 0:08 
AnswerRe: How to create collection class in C# Pin
DaveyM6924-Jun-10 0:08
professionalDaveyM6924-Jun-10 0:08 
AnswerMessage Closed Pin
24-Jun-10 0:20
stancrm24-Jun-10 0:20 
GeneralRe: How to create collection class in C# Pin
DaveyM6925-Jun-10 2:06
professionalDaveyM6925-Jun-10 2:06 
Questionhow to:C# Datagridview must show only fixed number of rows Pin
Cobusvdvyver23-Jun-10 23:43
Cobusvdvyver23-Jun-10 23:43 
AnswerRe: how to:C# Datagridview must show only fixed number of rows Pin
Cobusvdvyver24-Jun-10 0:44
Cobusvdvyver24-Jun-10 0:44 
GeneralRe: how to:C# Datagridview must show only fixed number of rows Pin
Mycroft Holmes24-Jun-10 1:14
professionalMycroft Holmes24-Jun-10 1:14 
QuestionDetect scroll to end of document in a webbrowser control Pin
Chris Quinn23-Jun-10 22:39
Chris Quinn23-Jun-10 22:39 

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.