473,466 Members | 2,016 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Application Icon problem when group together in taskbar

3 New Member
I really need help with this one, I'm trying to set the app icon during run time. There is no problem when the app is not group together, it still have the set icon but when group together if you look at the taskbar, you saw the default icon. I'm using VB.NET, here is the code:

Public Sub SetIcon(ByVal strIcon As String)
Dim thisExe As System.Reflection.Assembly = _
System.Reflection.Assembly.GetExecutingAssembly() _
Dim v_AssemblyName As String = thisExe.GetName.Name & "."

Dim Asm As System.Reflection.Assembly = _
System.Reflection.Assembly.GetExecutingAssembly
Dim s As System.IO.Stream
Select Case strIcon.ToUpper()
Case "icon1"
s = Asm.GetManifestResourceStream(v_AssemblyName _
& "icon1.ico")
Case "icon2"
s = Asm.GetManifestResourceStream(v_AssemblyName _
& "icon2.ico")
Case "icon3"
s = Asm.GetManifestResourceStream(v_AssemblyName _
& "icon3.ico")
End Select

Me.Icon = New Icon(s)
s.Close()
End Sub
Jan 25 '07 #1
3 3157
jmbernz
3 New Member
Anyone? Any idea.
Jan 26 '07 #2
jmbernz
3 New Member
Up

Up

Up
Jan 30 '07 #3
Dude1
1 New Member
I had this problem too, that I got a default icon and unwanted text when the taskbar grouped the applications. Took some time to figure it out.

Individual icons and titles

If you want to change the individual application's textual name during runtime, just go into the form's code and use this.Text = "Some Text"; (Me.Text = "Some Text" for VB.NET) whenever you'd like to change the text. This you might want to do if you open a file in your program and want the title to reflect this.

The individual form icon you set in design mode by setting the Icon property of the form. Simply click the form's border and find the Icon property in the Properties window.

Group icon and title

Now, for taskbar grouping, you need to go to the AssemblyInfo.cs file and edit the values AssembyTitle (perhaps also AssemblyDescription), for instance
Expand|Select|Wrap|Line Numbers
  1. [assembly: AssemblyTitle("My Application")]
. This is the text that will appear when taskbar is grouping applications, no matter what individual applications are called.

You can set the group icon if you, in Visual Studio 2005, set the value of Project/[...] Properties.../Application/Resources/Icon to a icon file.
Jun 26 '07 #4

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

Similar topics

3
by: Will Mathies | last post by:
I have changed the icon used for my C# windows form application. Now I am having problems. When my app has several windows open they get grouped on the taskbar. The icon that this group uses is...
3
by: Sam | last post by:
I've been googling for a couple of hours now and tried some different things, but I've been unable to get the icon for a distributed access application to do anything but display the default...
2
by: Elad Gutman | last post by:
Hi Everyone, I'm facing an annoying problem and any help will be most appreciated . .. . I have a main application form and its icon is functioning excellent: it appears both in the taskbar...
1
by: Pawel Bojkowski | last post by:
Hi! Can someone tell me how do I must set up my C# windows form solution to get the feature: "Group similar taskbar buttons" + same application icon + a groupe name.
4
by: Grumpy Aero Guy | last post by:
I've looked far and wide, but can't find any info on this. I have found the property for a FORM that allows you indicate whether, or not, the form appears in the TASK BAR... What about if I...
0
by: Mike | last post by:
Greetings, I have an application that is launched and controlled (hide or show) via DDE messages from another application. The first time the application is launched it shows as it should and...
1
by: KK | last post by:
I have a C# application with different projects in the solution. I need to change the application icon based on build configuration. I have different build configurations for branding the...
1
by: vijay | last post by:
Hi all, I am working with .net 2005 C# windows application.And my client is require the Icon and application name for the application on taskbar.Problem is that he doesn't want...
1
by: sfirouz | last post by:
Hi: I am new to .net stuff and to make the matter worst, I am converting from Borland to Microsoft world. So I am having real hard time figuring things out in VC++ .net. (I am using VS 2008) ...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.