What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Plug-Ins » Showing Form without vbModal in VB? For the programmers out there... :D

Showing Form without vbModal in VB? For the programmers out there... :D
Author: Message:
(CyBeRDuDe)
Senior Member
****


Posts: 512
Reputation: 21
38 / Male / –
Joined: Jul 2003
O.P. RE: Showing Form without vbModal in VB? For the programmers out there... :D
quote:
Originally posted by Matty
code:
Public Declare Function ShowWindow Lib "user32" Alias "ShowWindow" (ByVal hwnd As Long, ByVal nCmdShow As Long) As Long

Public Declare Function DestroyWindow Lib "user32" Alias "DestroyWindow" (ByVal hwnd As Long) As Long

Public Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long

Public Const SW_SHOW = 5
Public Const SW_HIDE = 0
Public Const WM_CLOSE = &H10

'Usage: Show Window
     ShowWindow Form1.hWnd, SW_SHOW

'Usage: Hide Window
     ShowWindow Form1.hWnd, SW_HIDE

'Usage: Close Window #1
     SendMessage Form1.hWnd, 0&, 0&, WM_CLOSE

'Usage: Close Window #2
     DestroyWindow Form1.hWnd


Hope that helps.
They all go into a module. Change them from Public to Private if you want to just put them in the Class.
This is SO NICE!!! :D..
Works perfectly.. Well.. At least until now.. :D..
Well.. I have some problems with my odl code.. just need to rewrite eveyrthing I think... But thanks.... I just didn't think you could use the ShowWindow api like that.. but It works brilliant, showing forms without putting Messenger on hold... Nice matty... :D..
Well.. I gues thread is kinda closed now.. :D..
05-21-2005 02:50 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Showing Form without vbModal in VB? For the programmers out there... :D - by (CyBeRDuDe) on 05-20-2005 at 08:00 PM
RE: Showing Form without vbModal in VB? For the programmers out there... :D - by matty on 05-21-2005 at 04:05 AM
RE: Showing Form without vbModal in VB? For the programmers out there... :D - by Mike on 05-21-2005 at 11:46 AM
RE: Showing Form without vbModal in VB? For the programmers out there... :D - by CookieRevised on 05-21-2005 at 01:11 PM
RE: Showing Form without vbModal in VB? For the programmers out there... :D - by RaceProUK on 05-21-2005 at 01:56 PM
RE: RE: Showing Form without vbModal in VB? For the programmers out there... :D - by CookieRevised on 05-21-2005 at 02:47 PM
RE: Showing Form without vbModal in VB? For the programmers out there... :D - by (CyBeRDuDe) on 05-21-2005 at 02:50 PM
RE: Showing Form without vbModal in VB? For the programmers out there... :D - by CookieRevised on 05-21-2005 at 03:10 PM
RE: Showing Form without vbModal in VB? For the programmers out there... :D - by DeVill on 07-03-2005 at 12:20 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On