Is there any way to resize or move a none-border form? (without any extra code)
Printable View
Is there any way to resize or move a none-border form? (without any extra code)
It takes code to do everything!
You can make resizer controls out of image controls (without images in them) To move it, just search the forums for moving a borderless window.
Move a Borderless Form: http://www.vbshelf.com/snippets.php?...cat=forms&id=5
Thanks Hobo... I took your advice and found this:
I didn't know how to search it before.Quote:
Originally posted by Hack
VB Code:
Private Declare Function SendMessage Lib "User32" Alias "SendMessageA" (ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long Private Declare Sub ReleaseCapture Lib "User32" () Private Sub Picture1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single) Const WM_NCLBUTTONDOWN = &HA1 Const HTCAPTION = 2 If Button = 1 Then ReleaseCapture SendMessage Me.hWnd, WM_NCLBUTTONDOWN, HTCAPTION, 0& End If End Sub
Ok... since that you said the "magic word" before, how about resizing it? and having a task (in the task bar)
This is how I handled form resizing when I was working on a Skinning Application. It should give you a good idea (I never finished the project, so it's still buggy):
Ok... I've already achieve to resize and move a borderless window. Any way to have a task in the task bar?
Set the ShowInTaskbar property to True?
Could that be that easy? It seems that the ShowInTaskBar sets to false when you set to borderless. Is there anyway to set its icon?
When you change a forms property to borderless, it does set ShowInTaskbar to False, but you can then return it to True.
An icon in the taskbar with it is going to be tricky. I don't think you can just do it normally. It might take API and/or subclasing.