Click here to Skip to main content
14,689,511 members
Home » Discussions » C#
   

C#

 
AnswerRe: form can not disappear after code visible=false Pin
Dave Kreskowiak13-Jun-09 22:49
mveDave Kreskowiak13-Jun-09 22:49 
Questioncrystal report data not showing Pin
neodeaths13-Jun-09 19:35
Memberneodeaths13-Jun-09 19:35 
AnswerRe: crystal report data not showing Pin
KIDYA13-Jun-09 20:20
MemberKIDYA13-Jun-09 20:20 
GeneralRe: crystal report data not showing Pin
neodeaths13-Jun-09 21:27
Memberneodeaths13-Jun-09 21:27 
Questiontablet pc application Pin
radhikasharma13-Jun-09 11:40
Memberradhikasharma13-Jun-09 11:40 
Questionshow tooltip even if treeview doesn't have focus? Pin
FocusedWolf13-Jun-09 10:41
MemberFocusedWolf13-Jun-09 10:41 
AnswerRe: show tooltip even if treeview doesn't have focus? Pin
Mycroft Holmes13-Jun-09 17:23
professionalMycroft Holmes13-Jun-09 17:23 
GeneralRe: show tooltip even if treeview doesn't have focus? Pin
FocusedWolf13-Jun-09 19:58
MemberFocusedWolf13-Jun-09 19:58 
yes in my derived treeview i override OnMouseMove and this code does seem to execute even if the control isnt focused... atleast the breakpoint fires when i slide the mouse over the non-focused control. It's just the call to toolTip.Show(...) which fails to display a tooltip when the control has no focus. hmm.

ok i checked out the Tooltip class with reflector and i see the problem. "IsWindowActive"... microsoft explicitly checks for being "active" before allowing a tooltip to show... i'll do more digging to see if their's an acceptable alternative to being focused.

//from .net framework ToolTip class
public void Show(string text, IWin32Window window, int x, int y)
{
if (window == null)
{
throw new ArgumentNullException("window");
}
if (this.HasAllWindowsPermission && this.IsWindowActive(window))
{
NativeMethods.RECT rect = new NativeMethods.RECT();
UnsafeNativeMethods.GetWindowRect(new HandleRef(window, Control.GetSafeHandle(window)), ref rect);
int pointX = rect.left + x;
int pointY = rect.top + y;
this.SetTrackPosition(pointX, pointY);
this.SetTool(window, text, TipInfo.Type.Absolute, new Point(pointX, pointY));
}
}
GeneralRe: show tooltip even if treeview doesn't have focus? Pin
Mycroft Holmes13-Jun-09 22:07
professionalMycroft Holmes13-Jun-09 22:07 
GeneralRe: show tooltip even if treeview doesn't have focus? Pin
FocusedWolf13-Jun-09 23:01
MemberFocusedWolf13-Jun-09 23:01 
QuestionRead from process Pin
thomaxz.tc13-Jun-09 10:37
Memberthomaxz.tc13-Jun-09 10:37 
AnswerRe: Read from process Pin
Luc Pattyn13-Jun-09 11:12
sitebuilderLuc Pattyn13-Jun-09 11:12 
GeneralRe: Read from process Pin
thomaxz.tc13-Jun-09 13:29
Memberthomaxz.tc13-Jun-09 13:29 
GeneralRe: Read from process Pin
Luc Pattyn13-Jun-09 13:37
sitebuilderLuc Pattyn13-Jun-09 13:37 
GeneralRe: Read from process Pin
thomaxz.tc13-Jun-09 13:47
Memberthomaxz.tc13-Jun-09 13:47 
GeneralRe: Read from process Pin
Luc Pattyn13-Jun-09 14:37
sitebuilderLuc Pattyn13-Jun-09 14:37 
GeneralRe: Read from process Pin
thomaxz.tc14-Jun-09 0:32
Memberthomaxz.tc14-Jun-09 0:32 
Questionload a lot of Images to memory Pin
nryk13-Jun-09 9:57
Membernryk13-Jun-09 9:57 
AnswerRe: load a lot of Images to memory Pin
Luc Pattyn13-Jun-09 10:37
sitebuilderLuc Pattyn13-Jun-09 10:37 
GeneralRe: load a lot of Images to memory Pin
harold aptroot13-Jun-09 12:55
Memberharold aptroot13-Jun-09 12:55 
GeneralRe: load a lot of Images to memory Pin
Luc Pattyn13-Jun-09 15:29
sitebuilderLuc Pattyn13-Jun-09 15:29 
GeneralRe: load a lot of Images to memory Pin
harold aptroot13-Jun-09 15:36
Memberharold aptroot13-Jun-09 15:36 
GeneralRe: load a lot of Images to memory Pin
Luc Pattyn13-Jun-09 16:17
sitebuilderLuc Pattyn13-Jun-09 16:17 
AnswerRe: load a lot of Images to memory Pin
nryk13-Jun-09 19:05
Membernryk13-Jun-09 19:05 
GeneralRe: load a lot of Images to memory Pin
Dave Kreskowiak13-Jun-09 22:46
mveDave Kreskowiak13-Jun-09 22:46 

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.