Can someone confirm this behaviour please :o)

  • Thread starter Thread starter pigeonrandle
  • Start date Start date
P

pigeonrandle

Hi,

I have been trying to find an answer, even a hint, but despite posting
the following question on various forums i haven't even had a single
reply for nearly two weeks :o(.


"Why do treeview tooltips flash if the main form has its
transparencykey set?"


Could a couple of people please try this (its a 67 second job) just so
i know it isn't just my PC :o)


You can replicate this behaviour really easily by (vb VS2003)


1) creating a new vb windows application
2) set Form1.TransparencyKey to the same as Form1.BackColor
3) Add a treeview to the form
4) Add a node to TreeView1 whose text is too long to display (i used
'whyisthishappeningwhyisthishappeningwhyisthishappeningwhywhywhy')
5) run the application and hover your mouse over the node.


Many thanks,


James.


Also posted in c# as it also happens with a c# application ....
arrrgggghhhhhhhhh.
 
Hello,

I use VB 2005, so I switched off the application framework.

I can confirm that the tooltips flash when hovering over it.

This, however, does not happen if I switch the framework on.

Regards,
P. Di Stolfo
 
P,
Thanks for replying. I was beginning to think i had offended the entire
internet community!

When you say you switched the framework off/on, what do you mean?

Thanks again,
James
 
Hello,

using VB 2005 (I don't know if this works with previous versions, too), you
can choose to activate or not activate the application framework in Projects
-> Properties, so you can activate XP styles and so on. When I deactivate
them, I'll get the same error as you get with that control.

Regards,
P. Di Stolfo
 
P, Amdrit,
Thankyou both for your words of wisdom, and for taking the time to help
me out.

Amdrit was right!

i changed my Main() to

[STAThread]
static void Main()
{
System.Windows.Forms.Application.EnableVisualStyles();
Application.Run(new frmMain());
}

and no more disco effect! Yay.

Many many many thanks to you both,
James Randle.
 
When i said 'Amdrit was right!' i of course meant you were both right
:0).
Thanks again.

P, Amdrit,
Thankyou both for your words of wisdom, and for taking the time to help
me out.

Amdrit was right!

i changed my Main() to

[STAThread]
static void Main()
{
System.Windows.Forms.Application.EnableVisualStyles();
Application.Run(new frmMain());
}

and no more disco effect! Yay.

Many many many thanks to you both,
James Randle.

Perhaps then you can set Application.EnableVisualStyles to resolve this
issue?
 
Back
Top