473,480 Members | 2,164 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

SetConsoleIcon

Anybody has a declaration for SetConsoleIcon?

Have only found for title:
class Win32API
{
[DllImport("Kernel32.dll")]
public static extern bool SetConsoleTitle(String
lpConsoleTitle );
}
/K
Nov 21 '05 #1
6 2200
"kurt sune" <ap*@apa.cx> schrieb:
Anybody has a declaration for SetConsoleIcon?


No, because there is no such function.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #2
"kurt sune" <ap*@apa.cx> schrieb:
Anybody has a declaration for SetConsoleIcon?


No, because there is no such function.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #3
Got it working with this:

<DllImport("Kernel32.dll")> _
Public Shared Function SetConsoleIcon(ByVal hicon As IntPtr) As Boolean
End Function

/k

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:uZ**************@TK2MSFTNGP15.phx.gbl...
"kurt sune" <ap*@apa.cx> schrieb:
Anybody has a declaration for SetConsoleIcon?


No, because there is no such function.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #4
Got it working with this:

<DllImport("Kernel32.dll")> _
Public Shared Function SetConsoleIcon(ByVal hicon As IntPtr) As Boolean
End Function

/k

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:uZ**************@TK2MSFTNGP15.phx.gbl...
"kurt sune" <ap*@apa.cx> schrieb:
Anybody has a declaration for SetConsoleIcon?


No, because there is no such function.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #5
"kurt sune" <ap*@apa.cx> schrieb:
Got it working with this:

<DllImport("Kernel32.dll")> _
Public Shared Function SetConsoleIcon(ByVal hicon As IntPtr) As Boolean
End Function


Notice that this is an undocumented function, so there is no guarantee that
it will always work and what it won't affect the application's behavior in a
negative way.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #6
"kurt sune" <ap*@apa.cx> schrieb:
Got it working with this:

<DllImport("Kernel32.dll")> _
Public Shared Function SetConsoleIcon(ByVal hicon As IntPtr) As Boolean
End Function


Notice that this is an undocumented function, so there is no guarantee that
it will always work and what it won't affect the application's behavior in a
negative way.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #7

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

Similar topics

0
302
by: kurt sune | last post by:
Anybody has a declaration for SetConsoleIcon? Have only found for title: class Win32API { public static extern bool SetConsoleTitle(String lpConsoleTitle ); }
0
7051
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
6915
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
7097
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
6750
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...
1
4794
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
4493
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
2993
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
567
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
193
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.