What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Making a control visible

Making a control visible
Author: Message:
johnnygoodface
New Member
*


Posts: 3
Joined: Sep 2006
O.P. Making a control visible
I'm sure it's easy but I just can't figure out how to programmatically set the .visible property of a control...

I've tried (assuming it's a StaticControl control called "LblTop"):

var ControlHandle = null;
ControlHandle = Wnd.GetControlHandle("LblTop");
ControlHandle.Visible = false;


or

Wnd.LblTop.Visible = true;

or

Wnd.LblTop.Visible(true);


or

Wnd.Control("LblTop").Visible = true;


But none work,


Thx

This post was edited on 09-10-2006 at 03:38 AM by johnnygoodface.
09-10-2006 03:33 AM
Profile PM Find Quote Report
Volv
Skinning Contest Winner
*****

Avatar

Posts: 1233
Reputation: 31
34 / Male / Flag
Joined: Oct 2004
RE: Making a control visible
To make invisible;
Interop.Call("User32", "ShowWindow", Wnd.GetControlHandle("LblTop"), 0);

To make visible;
Interop.Call("User32", "ShowWindow", Wnd.GetControlHandle("LblTop"), 1);

This post was edited on 09-10-2006 at 03:55 AM by Volv.
09-10-2006 03:49 AM
Profile PM Find Quote Report
johnnygoodface
New Member
*


Posts: 3
Joined: Sep 2006
O.P. RE: Making a control visible
You're my savior!!!!
Thx a lot Volv!

Where can I get more info on Interop.Call calls?

Bye
09-10-2006 03:54 AM
Profile PM Find Quote Report
ShawnZ
Veteran Member
*****

Avatar

Posts: 3146
Reputation: 43
32 / Male / Flag
Joined: Jan 2003
RE: Making a control visible
www.pinvoke.net
Spoiler:
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
09-10-2006 03:59 AM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »


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