I have been asking this for so long and i wasnt able to find a solution yet.
The problem is that i have a program with ShowInTaskBar=False and i cant hide the program from ALT+TAB, so, when u switch programs
with alt+tab you always see the icon of my program, but even worst it dont show the correct icon, it show a default one
I really need to find a way so it never show on the alt+tab list of programs, is there a such way?
The main problem about this come, since my program is a desktop toolbar, its hidded on the right side of your screen, and its
suposed to show uponce you click on that side, but, since its already on the running task, once you close your last application my
programs comes active and its show up, and i dont want that to happend..
Is there a way to fix that? 5 1324
On Sun, 28 Dec 2003 21:30:12 -0300, "Smoke" <sm***@netgate.com.uy>
wrote: I have been asking this for so long and i wasnt able to find a solution yet. The problem is that i have a program with ShowInTaskBar=False and i cant hide the program from ALT+TAB, so, when u switch programs with alt+tab you always see the icon of my program, but even worst it dont show the correct icon, it show a default one I really need to find a way so it never show on the alt+tab list of programs, is there a such way?
The main problem about this come, since my program is a desktop toolbar, its hidded on the right side of your screen, and its suposed to show uponce you click on that side, but, since its already on the running task, once you close your last application my programs comes active and its show up, and i dont want that to happend..
Is there a way to fix that?
One way is to use a tool window style. This will hide your app icon
from the ALT-TAB list.
Me.FormBorderStyle = FormBorderStyle.FixedToolWindow
or
Me.FormBorderStyle = FormBorderStyle.SizableToolWindow
Don't know if that fits your needs. I'm sure there are other ways
around this too.
// CHRIS
Well, actually, my window has no border, and, since its going to be a toolbar, i cant add that border style...
any other solution?
"Chris Morse" <ch***@sorry.no.spam.com> wrote in message news:t4********************************@4ax.com... On Sun, 28 Dec 2003 21:30:12 -0300, "Smoke" <sm***@netgate.com.uy> wrote:
I have been asking this for so long and i wasnt able to find a solution yet. The problem is that i have a program with ShowInTaskBar=False and i cant hide the program from ALT+TAB, so, when u switch
programswith alt+tab you always see the icon of my program, but even worst it dont show the correct icon, it show a default one I really need to find a way so it never show on the alt+tab list of programs, is there a such way?
The main problem about this come, since my program is a desktop toolbar, its hidded on the right side of your screen, and its suposed to show uponce you click on that side, but, since its already on the running task, once you close your last application
myprograms comes active and its show up, and i dont want that to happend..
Is there a way to fix that?
One way is to use a tool window style. This will hide your app icon from the ALT-TAB list.
Me.FormBorderStyle = FormBorderStyle.FixedToolWindow or Me.FormBorderStyle = FormBorderStyle.SizableToolWindow
Don't know if that fits your needs. I'm sure there are other ways around this too.
// CHRIS
On Sun, 28 Dec 2003 23:20:02 -0300, "Smoke" <sm***@netgate.com.uy>
wrote: Well, actually, my window has no border, and, since its going to be a toolbar, i cant add that border style...
any other solution?
Sure, I'm full of them!
I'll assume that you have Me.FormBorderStyle = FormBorderStyle.None
Then you can remove the icon from the ALT+TAB list by adding the
WS_EX_TOOLWINDOW style to your base win32 window.
I just fired up a test project and it worked fine for me.
Just do this:
'Import GetWindowLong()/SetWindowLong() from user32.dll
<System.Runtime.InteropServices.DllImport("user32. dll")> _
Public Shared Function GetWindowLong(ByVal hWnd As Integer, ByVal
nIndex As Integer) As Integer
End Function
<System.Runtime.InteropServices.DllImport("user32. dll")> _
Public Shared Function SetWindowLong(ByVal hWnd As Integer, ByVal
nIndex As Integer, ByVal dwNewLong As Integer) As Integer
End Function
In your Form Load Event:
Me.ShowInTaskbar = False
Me.FormBorderStyle = FormBorderStyle.None
'Get Handle To Window
Dim hWnd As Integer = Me.Handle().ToInt32()
'Get Extended Window Style (GWL_EXSTYLE = -20)
Dim nStyleEx As Integer = GetWindowLong(hWnd, -20)
'Add the WS_EX_TOOLWINDOW (0x80) Style
nStyleEx = nStyleEx Or &H80
'Update Window Style (GWL_EXSTYLE = -20)
SetWindowLong(hWnd, -20, nStyleEx)
Werked fur mee!
// CHRIS
Well, i dont know what im doing there, but it seems to work just fine.
i copy/paste the code and the icon is gone :)
Still dont understand what i did, but who cares! :)
Thanks a lot man
And, u said " I'm full of them!" , u mean full of solutions or full of programs that acts as toolbars?
if so, i would love to see them if possible, to learn :)
"Chris Morse" <ch***@sorry.no.spam.com> wrote in message news:0u********************************@4ax.com... On Sun, 28 Dec 2003 23:20:02 -0300, "Smoke" <sm***@netgate.com.uy> wrote:
Well, actually, my window has no border, and, since its going to be a toolbar, i cant add that border style...
any other solution?
Sure, I'm full of them!
I'll assume that you have Me.FormBorderStyle = FormBorderStyle.None
Then you can remove the icon from the ALT+TAB list by adding the WS_EX_TOOLWINDOW style to your base win32 window.
I just fired up a test project and it worked fine for me.
Just do this:
'Import GetWindowLong()/SetWindowLong() from user32.dll
<System.Runtime.InteropServices.DllImport("user32. dll")> _ Public Shared Function GetWindowLong(ByVal hWnd As Integer, ByVal nIndex As Integer) As Integer End Function
<System.Runtime.InteropServices.DllImport("user32. dll")> _ Public Shared Function SetWindowLong(ByVal hWnd As Integer, ByVal nIndex As Integer, ByVal dwNewLong As Integer) As Integer End Function
In your Form Load Event:
Me.ShowInTaskbar = False Me.FormBorderStyle = FormBorderStyle.None
'Get Handle To Window Dim hWnd As Integer = Me.Handle().ToInt32()
'Get Extended Window Style (GWL_EXSTYLE = -20) Dim nStyleEx As Integer = GetWindowLong(hWnd, -20)
'Add the WS_EX_TOOLWINDOW (0x80) Style nStyleEx = nStyleEx Or &H80
'Update Window Style (GWL_EXSTYLE = -20) SetWindowLong(hWnd, -20, nStyleEx)
Werked fur mee!
// CHRIS
On Mon, 29 Dec 2003 01:50:38 -0300, "Smoke" <sm***@netgate.com.uy>
wrote: Well, i dont know what im doing there, but it seems to work just fine. i copy/paste the code and the icon is gone :) Still dont understand what i did, but who cares! :)
Well, basically, every window (in Windows) has some basic properties.
Among them are a set number of "STYLES" and "EXTENDED STYLES" that
govern things like Is it visible? and Does it have a sizeable border?
Well, one of the extended styles is called a WS_EX_TOOLWINDOW, and
it's used for pretty much exactly what you're doing.
Thanks a lot man And, u said " I'm full of them!" , u mean full of solutions or full of programs that acts as toolbars? if so, i would love to see them if possible, to learn :)
I meant I'm full of solutions.. Usually.. :) Haven't done much
toolbar programming, though.
Cheers!
// CHRIS This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Kingdom |
last post by:
In my data base I have a list of componet types e.g. type A - I have 8 off
- type B I have 12 off etc.
I'm using
Set objRS = objDC.Execute("Select DISTINCT Component_Type FROM
Parts_Table")
...
|
by: cody |
last post by:
no this is no trollposting and please don't get it wrong but iam very
curious why people still use C instead of other languages especially C++.
i heard people say C++ is slower than C but i can't...
|
by: Charles |
last post by:
I am still having problems with sessions crossing over from other sessions. What I mean by this is that Mary may get just some or all of Renaeās information. I think that what is going on with...
|
by: Miro |
last post by:
I created an MDI form and made a child form.
On the child form I set the Min / Maximize buttons to false.
However when the child form displays, the minimize button and the "restore"
button...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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,...
|
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,...
|
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: 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...
| |