Hot toolbar

  • Thread starter Thread starter mohit.akl
  • Start date Start date
M

mohit.akl

hey guys
I got trouble implementing hot toolbar like intertnet explorer in my
win forms. Could someone please give me ideas...

thanks
 
I need my button to change the image to a hot image when I take the
mouse over it (e.g. internet explorer.. ). I tried using mousehover but
doesn't work properly. I need ideas to implement it... Microsoft has
done that and there would be a way to do it in c#.. help help
thanks
 
Hi,

How it does not work properly? Can you post some code?

Have search some third party tool? I bet than in codeproject you will find
code for this (or for something similar)
 
i used simple mousehover. and when this event happens then i change the
imagelist of the whole tool bar... should not b this... and if i keep
the button at the same place then bigger problem... as the mouse hover
keeps on changing the image from hot to regular and vice versa..
code:
private void toolbarMain_MouseHover(object sender, System.EventArgs e)
{
if (toolbarMain.ImageList != imglstTbMainHot)
{
toolbarMain.ImageList = imglstTbMainHot;
}
else
{
toolbarMain.ImageList = imglstTBMain;
}
}

u can see in the code i am just switching the image list... not a good
way atall... there would b something done and i don't wana reinvent the
wheel. :)
 
not solved as yet !!! :(



i used simple mousehover. and when this event happens then i change the
imagelist of the whole tool bar... should not b this... and if i keep
the button at the same place then bigger problem... as the mouse hover
keeps on changing the image from hot to regular and vice versa..
code:
private void toolbarMain_MouseHover(object sender, System.EventArgs e)
{
if (toolbarMain.ImageList != imglstTbMainHot)
{
toolbarMain.ImageList = imglstTbMainHot;
}
else
{
toolbarMain.ImageList = imglstTBMain;
}
}

u can see in the code i am just switching the image list... not a good
way atall... there would b something done and i don't wana reinvent the
wheel. :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top