473,221 Members | 1,913 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,221 software developers and data experts.

Form Icon at Design Time

Is there any way to set the forms icon to one stored in the resources
at design time? Currently I am using the following code in the
FormLoad event to set it at run time:

Me.Icon = My.Resources.FormIcon

You can set images in resources to buttons and pictureboxes etc at
design time, why not icons?

Apr 16 '07 #1
2 1331
Can't you load the icon by adding it to your resources file, and then
access it?

Robin S.
--------------------------
"James Arnold" <ja****@gmail.comwrote in message
news:11**********************@b75g2000hsg.googlegr oups.com...
Is there any way to set the forms icon to one stored in the resources
at design time? Currently I am using the following code in the
FormLoad event to set it at run time:

Me.Icon = My.Resources.FormIcon

You can set images in resources to buttons and pictureboxes etc at
design time, why not icons?

Apr 17 '07 #2
On 17 Apr, 08:16, "RobinS" <Rob...@NoSpam.yah.nonewrote:
Can't you load the icon by adding it to your resources file, and then
access it?

Robin S.
--------------------------"James Arnold" <jar...@gmail.comwrote in message

news:11**********************@b75g2000hsg.googlegr oups.com...
Is there any way to set the forms icon to one stored in the resources
at design time? Currently I am using the following code in the
FormLoad event to set it at run time:
Me.Icon = My.Resources.FormIcon
You can set images in resources to buttons and pictureboxes etc at
design time, why not icons?
No, unlike with PictureBoxes and Buttons where you can select from the
list of current resources, when you click the "..." for the icon it
just shows a browse window to import an icon, which is saved in the
form's resx file and not the projects resources.

If you have an icon in the resources you can set it as the project
icon in the My Project tab, but not as the form icon.

Apr 19 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Nhmiller | last post by:
How is that done? Thanks. Neil Cat Paintings At Carol Wilson Gallery http://www.carolwilsongallery.com
14
by: alwayshouston | last post by:
Hi All! I am working on this very small database and I am confused in the designing a simple form. I only have three tables in the database. First Table: tblExpense Columns: ExpenseID ;...
2
by: Vic | last post by:
I am trying to change an icon associated with my application's main form and the application itself. 1. I selected my main form in IDE "Solution" tab and went to "Properties" window. 2. I found...
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...
2
by: Peter | last post by:
I have a base form from which many forms inherit. The base form is in one project, and the inherits form is in another project. Both projects are under the same solution space. Both forms...
3
by: Nina | last post by:
Hi there, I assigned icon for a window's form using form's Icon property at design time. Now I want to change the icon. I tried to replace the old icon with the new icon using form's Icon...
6
by: Ryan | last post by:
I have 2 forms, Form1.vb and Form2.vb. In Solution Explorer, Form2.vb no longer shows a Form icon nor do I have the option to open Form2.vb in the main explorer window where usually I have the...
3
by: Alan T | last post by:
I want to put an icon on a Windows Form top left hand corner but would like to hide the maximize and close box on the top right hand corner. Can I do that?
0
by: James Arnold | last post by:
Is it possible to set the form icon to the project icon at design time? I know you can choose an icon and embed it, but for each form the icon is embedded (resulting in a larger file size). I...
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
by: jimatqsi | last post by:
The boss wants the word "CONFIDENTIAL" overlaying certain reports. He wants it large, slanted across the page, on every page, very light gray, outlined letters, not block letters. I thought Word Art...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

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.