By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,114 Members | 1,574 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,114 IT Pros & Developers. It's quick & easy.

Is there an Icon control?

P: n/a
What's the best way to put an Icon in the client area of a form (not in the
ControlBox)? Everything I've tried seems to produce unsatisfactory results.
A picture box doesn't give me the icon size I want. I've been using a
PictureBox, hooking its Paint event and doing it manually. Is there a better
way?
Thanks,
Jacob
Nov 16 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Jacob,

If the picture box doesn't give you what you want, have you considered
painting the icons yourself?

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Jacob" <js@hotmail.com> wrote in message
news:uY*************@TK2MSFTNGP09.phx.gbl...
What's the best way to put an Icon in the client area of a form (not in
the ControlBox)? Everything I've tried seems to produce unsatisfactory
results. A picture box doesn't give me the icon size I want. I've been
using a PictureBox, hooking its Paint event and doing it manually. Is
there a better way?
Thanks,
Jacob

Nov 16 '05 #2

P: n/a
Ya, as I mentioned.... that's what I've been doing. Anything else?

Thanks,
Jacob


"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:eh**************@TK2MSFTNGP15.phx.gbl...
Jacob,

If the picture box doesn't give you what you want, have you considered
painting the icons yourself?

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Jacob" <js@hotmail.com> wrote in message
news:uY*************@TK2MSFTNGP09.phx.gbl...
What's the best way to put an Icon in the client area of a form (not in
the ControlBox)? Everything I've tried seems to produce unsatisfactory
results. A picture box doesn't give me the icon size I want. I've been
using a PictureBox, hooking its Paint event and doing it manually. Is
there a better way?
Thanks,
Jacob


Nov 16 '05 #3

P: n/a
Jacob,

That's pretty much about it. I'm curious though, what are the results
that you are getting with the picturebox which are unsatisfactory?

Other than that, I would make sure to refactor the code out into another
user control so that you can easily reuse the code.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Jacob" <js@hotmail.com> wrote in message
news:eJ**************@TK2MSFTNGP11.phx.gbl...
Ya, as I mentioned.... that's what I've been doing. Anything else?

Thanks,
Jacob


"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote
in message news:eh**************@TK2MSFTNGP15.phx.gbl...
Jacob,

If the picture box doesn't give you what you want, have you considered
painting the icons yourself?

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Jacob" <js@hotmail.com> wrote in message
news:uY*************@TK2MSFTNGP09.phx.gbl...
What's the best way to put an Icon in the client area of a form (not in
the ControlBox)? Everything I've tried seems to produce unsatisfactory
results. A picture box doesn't give me the icon size I want. I've been
using a PictureBox, hooking its Paint event and doing it manually. Is
there a better way?
Thanks,
Jacob



Nov 16 '05 #4

P: n/a
What I was referencing when I said unsatisfactory results is when the icon
returns the incorrect size. The Icon class is supposed to automatically
choose the best icon size and bit-depth. Sometimes it doesn't. There is an
Icon constructor to request an icon of a certain size, but no method to know
which sizes there are.

Most of the time, if you create an Icon it will be the 32x32 copy which is
the system default in most cases. It just seems that there is no simple
approach.

Jacob
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:eS**************@TK2MSFTNGP09.phx.gbl...
Jacob,

That's pretty much about it. I'm curious though, what are the results
that you are getting with the picturebox which are unsatisfactory?

Other than that, I would make sure to refactor the code out into
another user control so that you can easily reuse the code.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Jacob" <js@hotmail.com> wrote in message
news:eJ**************@TK2MSFTNGP11.phx.gbl...
Ya, as I mentioned.... that's what I've been doing. Anything else?

Thanks,
Jacob


"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote
in message news:eh**************@TK2MSFTNGP15.phx.gbl...
Jacob,

If the picture box doesn't give you what you want, have you
considered painting the icons yourself?

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Jacob" <js@hotmail.com> wrote in message
news:uY*************@TK2MSFTNGP09.phx.gbl...
What's the best way to put an Icon in the client area of a form (not in
the ControlBox)? Everything I've tried seems to produce unsatisfactory
results. A picture box doesn't give me the icon size I want. I've been
using a PictureBox, hooking its Paint event and doing it manually. Is
there a better way?
Thanks,
Jacob



Nov 16 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.