Shoutbox

Can you show a form on command? - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Forum: Plug-Ins (/forumdisplay.php?fid=28)
+------ Thread: Can you show a form on command? (/showthread.php?tid=38775)

Can you show a form on command? by SWINX on 02-18-2005 at 10:38 PM

In my ParseCommand function I have:

code:
            Dim frmCI As New frmCon
            frmCI.lblFriendlyName.Caption = MyFriend.FriendlyName
            frmCI.lblSigninName.Caption = MyFriend.SigninName
            frmCI.Show

but frmCI.Show doesn't work..
Isn't it possible to show a form, or do I make a mistake?

Hope somebody has an answer.
Thank you.


RE: Can you show a form on command? by Plik on 02-18-2005 at 10:43 PM

Off the top of my head shouldnt it be

code:
            Dim frmCI As frmCon
            set frmCI = New frmCon
            frmCI.lblFriendlyName.Caption = MyFriend.FriendlyName
            frmCI.lblSigninName.Caption = MyFriend.SigninName
            frmCI.Show

RE: Can you show a form on command? by SWINX on 02-18-2005 at 10:48 PM

I tried your possible solution, but mine should be ok too, I thought,

Anyway, it didn't work out...


RE: Can you show a form on command? by Plik on 02-18-2005 at 10:50 PM

does it give any errors or just refuse to show?


RE: Can you show a form on command? by SWINX on 02-18-2005 at 10:57 PM

It just gives the default Msg+ dialog "This command is not recognized" the same dialog when you try /gdgdsgsdsdt or something.

I added some message boxes in the function, they all show up, except for the one after frmCI.Show, the Msg+ dialog "There is no such command" appears here.


RE: Can you show a form on command? by Dempsey on 02-19-2005 at 12:28 AM

when you show a form from a plugin, you have to show it modally, so you need

code:
form1.show 1

RE: Can you show a form on command? by SWINX on 02-19-2005 at 04:49 PM

Thank you :)