Shoutbox

How To Show A Form? - 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: How To Show A Form? (/showthread.php?tid=28457)

How To Show A Form? by TheCodeSmith on 07-10-2004 at 07:05 PM

I'll be coding a plugin in VB6 - any forms that i add to the DLL never show up, even when called from a menu/text command.

How are we able to show config or about screens if this is disabled? Is it related to this...?

code:
'//   Technical Note: the message must be sent from the same thread  //
'//   Initialize() was called, else, Messenger Plus! will reject the //
'//   call for security reasons.                                     //
EDIT: i've just noticed a previous thread by CMI that's kinda related to this, even still, any feedback posted here will be gladly received.

All help is appreciated, thanks.
~ TheCodeSmith
RE: How To Show A Form? by dotNorma on 07-10-2004 at 07:23 PM

Erm , If you want to show a form in Basics you have to show it as a model.

code:
Form1.Show 1


instead of

code:
Form1.Show


RE: How To Show A Form? by Stigmata on 07-10-2004 at 07:31 PM

form1.show 1 will show it as a modual and it will the top window


RE: How To Show A Form? by TheCodeSmith on 07-10-2004 at 07:35 PM

Excellent.
That's opened my eyes to a lot of new stuff.

Thanks for the help.

PS: Was this explained somewhere in the readme or did i just miss it?


RE: How To Show A Form? by Stigmata on 07-10-2004 at 07:39 PM

its basic visual basic :)


if u want anymore help just pm me :)


RE: RE: How To Show A Form? by TheCodeSmith on 07-10-2004 at 07:42 PM

quote:
Originally posted by jackass_wanabe
its basic visual basic :)

if u want anymore help just pm me :)

Thanks, i've been coding VB for 5 years and i've never found a use for the modal "1" on the Form.Show event.:o
RE: How To Show A Form? by dotNorma on 07-10-2004 at 07:48 PM

quote:
Originally posted by TheCodeSmith
Thanks, i've been coding VB for 5 years and i've never found a use for the modal "1" on the Form.Show event.:o

Its actually quite useful for like about windows and stuff. So that the window is limited to that window.

If you need any help we have alot of Developers here. :-)
RE: How To Show A Form? by Millenium_edition on 07-10-2004 at 10:51 PM

I suggest you to learn using constants.
Why? Because some aren't always constant depending on system config. I think vbLeftButton is one of them.

Anyway, the constant you should use instead of "1" is vbModal