-
Apr 4th, 2006, 04:20 AM
#1
Thread Starter
Member
Form Position [RESOLVED]
Hi All,
I want to make my form so it is NOT on top, I want my form to be pinned to the desktop so to speak. I have been trying to find a way to do it but I cannot and it is driving me mad now.
Can anyone help?
Many Thanks,
TrUz
Last edited by Hack; Apr 4th, 2006 at 09:29 AM.
Reason: Added green "resolved" checkmark
-
Apr 4th, 2006, 05:12 AM
#2
Re: Form Position
Originally Posted by Truz
Hi All,
I want to make my form so it is NOT on top, I want my form to be pinned to the desktop so to speak. I have been trying to find a way to do it but I cannot and it is driving me mad now.
Can anyone help?
Many Thanks,
TrUz
Can you either more clearly state your question or attach an image of what you are looking to do.
Regards,
Mark
Please remember to rate posts! Rate any post you find helpful. Use the link to the left - "Rate this Post". Please use [highlight='vb'] your code goes in here [/highlight] tags when posting code. When a question you asked has been resolved, please go to the top of the original post and click "Thread Tools" then select "Mark Thread Resolved."
-
Apr 4th, 2006, 05:24 AM
#3
Re: Form Position
do you want your form to be on top always or not
If an answer to your question has been helpful, then please, Rate it!
Have done Projects in Access and Member management systems using BioMetric devices, Smart cards and BarCodes.
-
Apr 4th, 2006, 05:51 AM
#4
Thread Starter
Member
Re: Form Position
No I do not want my form to be on top. I want it to be always on the bottom so nothing can be under it.
Hope this is a little more clear.
Many Thanks,
sfx
-
Apr 4th, 2006, 06:14 AM
#5
Re: Form Position
Originally Posted by Truz
No I do not want my form to be on top. I want it to be always on the bottom so nothing can be under it.
Hope this is a little more clear.
Many Thanks,
sfx
If you want it to be last form why not make it invisible? Also do you want to for to be the last form in your application or for windows?
Regards,
Mark
Please remember to rate posts! Rate any post you find helpful. Use the link to the left - "Rate this Post". Please use [highlight='vb'] your code goes in here [/highlight] tags when posting code. When a question you asked has been resolved, please go to the top of the original post and click "Thread Tools" then select "Mark Thread Resolved."
-
Apr 4th, 2006, 06:27 AM
#6
Re: Form Position
please explain the reason why do you want to make so, it might help people to help you
If an answer to your question has been helpful, then please, Rate it!
Have done Projects in Access and Member management systems using BioMetric devices, Smart cards and BarCodes.
-
Apr 4th, 2006, 06:36 AM
#7
Thread Starter
Member
Re: Form Position
I want it to be the last form for windows. So no other application can be under it. The form cannot be invisible as there is controls on it that users need to use.
I want this for to be under everything because I call other DLL's from this form and when ever I call a DLL the form comes to the top and it is very annoying.
Thanks,
sfx
-
Apr 4th, 2006, 06:40 AM
#8
Re: Form Position
mmm....the form will come into focus when you try to execute any statement in it...
If an answer to your question has been helpful, then please, Rate it!
Have done Projects in Access and Member management systems using BioMetric devices, Smart cards and BarCodes.
-
Apr 4th, 2006, 07:15 AM
#9
Re: Form Position
Originally Posted by ganeshmoorthy
mmm....the form will come into focus when you try to execute any statement in it...
Good point!
Regards,
Mark
Please remember to rate posts! Rate any post you find helpful. Use the link to the left - "Rate this Post". Please use [highlight='vb'] your code goes in here [/highlight] tags when posting code. When a question you asked has been resolved, please go to the top of the original post and click "Thread Tools" then select "Mark Thread Resolved."
-
Apr 4th, 2006, 07:24 AM
#10
Form Always on Bottom
This will keep your form always at the bottom
VB Code:
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" ( _
ByVal lpClassName As String, _
ByVal lpWindowName As String) As Long
Private Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" ( _
ByVal hWnd1 As Long, _
ByVal hWnd2 As Long, _
ByVal lpsz1 As String, _
ByVal lpsz2 As String) As Long
Private Declare Function SetParent Lib "user32" ( _
ByVal hWndChild As Long, _
ByVal hWndNewParent As Long) As Long
Private Sub Form_Load()
Dim ProgMan&, shellDllDefView&, sysListView&
ProgMan = FindWindow("progman", vbNullString)
shellDllDefView = FindWindowEx(ProgMan&, 0&, "shelldll_defview", vbNullString)
sysListView = FindWindowEx(shellDllDefView&, 0&, "syslistview32", vbNullString)
SetParent Me.hwnd, sysListView
End Sub
Last edited by bushmobile; Apr 7th, 2006 at 05:17 AM.
Reason: changed title of post
-
Apr 4th, 2006, 07:54 AM
#11
Re: Form Position
Neat trick, just set the desktop as parent.
-
Apr 4th, 2006, 07:56 AM
#12
Thread Starter
Member
Re: Form Position
Thanks bushmobile,
I will give it a bash.
Thanks,
TrUz
-
Apr 4th, 2006, 08:21 AM
#13
Re: Form Position
Don't forget to mark this thread resolved.
Regards,
Mark
Please remember to rate posts! Rate any post you find helpful. Use the link to the left - "Rate this Post". Please use [highlight='vb'] your code goes in here [/highlight] tags when posting code. When a question you asked has been resolved, please go to the top of the original post and click "Thread Tools" then select "Mark Thread Resolved."
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
|