473,387 Members | 1,464 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Can an Icon be placed in pictureBox on Form

I want to be able to place one of the MessageBox Icons in a PictureBox that is on a form. I am trying to get the same effect as using a seterror (via ErrorProvider).

I would use an ErrorProvider with a Null errormsg but it turns off the icon.

I am basically trying to do something like the following:

myPictureBox.image = MessageBoxIcon.Hand;
Sep 27 '10 #1
1 2662
mzmishra
390 Expert 256MB
try to convert it to bitmap and see what happens.some thing like this

yPictureBox.Image =3DBitmap.FromHicon(SystemIcons.Hand.Handle);
Sep 28 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: ray | last post by:
I am trying to create an icon so that when someone reachs the end of a report page they can preview and print. Does anyone have any suggestions aboutte best way to do this. I can crate the...
2
by: Dickyb | last post by:
Extracting an Icon and Placing It On The Desktop (C# Language) I constructed a suite of programs in C++ several years ago that handle my financial portfolio, and now I have converted them to...
6
by: yxq | last post by:
Thank Armin Zingler, the codes below work well! But i want to put the icon into Picturebox1 instead of the Form1, how to do? the code ************************** If retval <> 0 Then Dim g As...
2
by: Sakharam Phapale | last post by:
Hi All, Actually, I am showing the icon on MDI form. Hence, I don't want to show any type of icon (including default) on child form. I tried that but I could not able to delete the icon at...
1
by: sandy1j | last post by:
hi everyone,I'am trying to place new control on toolbar's client area,but giving error like cotrol limit exceeds,any solution
0
by: =?Utf-8?B?Qm9i?= | last post by:
I have a GridView control in page called which is inheriting from a MasterPage. The normal code to export to GridView does not work and gives me an error - "Control of type GridView must be placed...
4
by: vishwaskothari | last post by:
Hi When I press the Tab key the controls on the form are not accessed sequentially. Why is it so? What should I do to make a sequential selection of the controls placed on the form. Regards...
2
by: \(O\)enone | last post by:
I wish to be able to copy a form's icon into a picturebox, in a similar way to how the Windows Taskbar copies each form's icon into each of its task panels. I can easily read out the icon of...
0
by: Bjarne Nielsen | last post by:
Hi all In my about box, I want to show an icon, so I have placed a picturebox control on my form. Now, I want to set the Image property of the picturebox to an icon, but it seems I cannot do it....
2
by: plevintampabay | last post by:
I have a borderless form in C#. The form has an icon specified in its properties and I also have the same icon specified for the project in the project properties. When I had a border on the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.