Click here to Skip to main content
15,887,477 members
Home / Discussions / C#
   

C#

 
GeneralRe: Speed difference between two functions with unknown reason Pin
harold aptroot12-Mar-10 11:31
harold aptroot12-Mar-10 11:31 
GeneralRe: Speed difference between two functions with unknown reason Pin
Luc Pattyn12-Mar-10 11:41
sitebuilderLuc Pattyn12-Mar-10 11:41 
GeneralRe: Speed difference between two functions with unknown reason Pin
harold aptroot12-Mar-10 12:06
harold aptroot12-Mar-10 12:06 
GeneralRe: Speed difference between two functions with unknown reason Pin
Luc Pattyn12-Mar-10 12:29
sitebuilderLuc Pattyn12-Mar-10 12:29 
GeneralRe: Speed difference between two functions with unknown reason Pin
SimpleData12-Mar-10 22:35
SimpleData12-Mar-10 22:35 
GeneralRe: Speed difference between two functions with unknown reason Pin
SimpleData12-Mar-10 22:32
SimpleData12-Mar-10 22:32 
GeneralRe: Speed difference between two functions with unknown reason Pin
Pete O'Hanlon12-Mar-10 11:36
mvePete O'Hanlon12-Mar-10 11:36 
QuestionFloating child form linked to Treemap nodes Pin
boreland12-Mar-10 10:08
boreland12-Mar-10 10:08 
I'm quite new to c# and dot.net. I've been scratching my head on this one for quite a while. I'm trying to build functionality similar to that shown here:

http://finviz.com/forex.ashx

I'm using the treemap code. I'm using the the text from the e.node.tooltip to disquish when the mouse hovers over a different node. I want to create a new child form that tracks the cursor like that shown in the above example. When the cursor passes over a new nodes I want to close the currently displayed form and display a new form associated with the node the mouse cursor is now hovering over. Here is were I capture the mouseover event:

void tmcMap_NodeMouseHover(object sender, NodeEventArgs e)
{
Form2 frmForm2 = new Form2();
if (e.Node.ToolTip != lastValue && frmForm2.Created != true)
{
lastValue = e.Node.ToolTip;

frmForm2.Text = "Child " + e.Node.ToolTip;
frmForm2.SetDesktopLocation(Cursor.Position.X, Cursor.Position.Y);
frmForm2.Show();
}

)

My problem is how to close frmForm2 prior to creating a new frmForm2 when the cursor hovers over a different node?

Any help would be appreciated!
AnswerMessage Closed Pin
12-Mar-10 10:15
stancrm12-Mar-10 10:15 
GeneralRe: Floating child form linked to Treemap nodes [modified] Pin
boreland12-Mar-10 10:32
boreland12-Mar-10 10:32 
GeneralRe: Floating child form linked to Treemap nodes Pin
Dave Kreskowiak12-Mar-10 11:13
mveDave Kreskowiak12-Mar-10 11:13 
AnswerRe: Floating child form linked to Treemap nodes Pin
Luc Pattyn12-Mar-10 11:04
sitebuilderLuc Pattyn12-Mar-10 11:04 
GeneralRe: Floating child form linked to Treemap nodes Pin
boreland12-Mar-10 11:09
boreland12-Mar-10 11:09 
Questionabout remote desktop(noel) Pin
v_neil8712-Mar-10 8:54
v_neil8712-Mar-10 8:54 
QuestionHelp with C# Pin
Janded12-Mar-10 0:15
Janded12-Mar-10 0:15 
AnswerRe: Help with C# Pin
OriginalGriff12-Mar-10 0:59
mveOriginalGriff12-Mar-10 0:59 
GeneralRe: Help with C# Pin
riced12-Mar-10 4:42
riced12-Mar-10 4:42 
GeneralRe: Help with C# Pin
OriginalGriff12-Mar-10 4:53
mveOriginalGriff12-Mar-10 4:53 
GeneralUnivoter strikes! Pin
OriginalGriff12-Mar-10 5:35
mveOriginalGriff12-Mar-10 5:35 
GeneralRe: Univoter strikes! Pin
harold aptroot12-Mar-10 8:11
harold aptroot12-Mar-10 8:11 
GeneralRe: Univoter strikes! Pin
riced12-Mar-10 13:31
riced12-Mar-10 13:31 
GeneralRe: Univoter strikes! Pin
OriginalGriff12-Mar-10 21:59
mveOriginalGriff12-Mar-10 21:59 
AnswerRe: Help with C# Pin
The Man from U.N.C.L.E.12-Mar-10 8:21
The Man from U.N.C.L.E.12-Mar-10 8:21 
GeneralMessage Removed Pin
13-Mar-10 4:03
Janded13-Mar-10 4:03 
GeneralRe: Help with C# Pin
The Man from U.N.C.L.E.14-Mar-10 23:40
The Man from U.N.C.L.E.14-Mar-10 23:40 

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.