|
-
Jan 15th, 2006, 08:24 PM
#1
Thread Starter
Frenzied Member
-
Jan 18th, 2006, 10:35 AM
#2
Thread Starter
Frenzied Member
-
Jan 18th, 2006, 10:46 AM
#3
Thread Starter
Frenzied Member
Re: Icon On Taskbar!
Well guys, this is how you can always make the icon on the Taskbar look "depressed" when your app is in the focus but the user is not working with the main Form of your app but with some other Form other than the main Form:
VB Code:
Private Const GWL_HWNDPARENT = -8
Private Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
Private Sub Form_Load()
SetWindowLong Me.hwnd, GWL_HWNDPARENT, 0
End Sub
But I must confess that when I searched for the solution in this Forum, I found it pretty strange that no one has asked this question ever in this Forum & I am pretty sure that I definitely must not be the first VB programmer in this world to encounter this problem!
Anyways............all's well that ends well
ARPAN
IF YOU HAVE AN APPLE & I HAVE AN APPLE AND WE EXCHANGE THE APPLES, THEN YOU & I WILL STILL HAVE ONE APPLE BUT IF YOU HAVE AN IDEA & I HAVE AN IDEA AND WE EXCHANGE OUR IDEAS, THEN EACH OF US WILL HAVE TWO IDEAS!
NOTHING IS IMPOSSIBLE IN THIS WORLD.....EVEN THE WORD IMPOSSIBLE SAYS I'M POSSIBLE!
PRACTICE MAKES A MAN PERFECT BUT NOBODY IS PERFECT; SO WHY PRACTICE?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|