StrataFrame Forum

Help with ThemedLinkMenu

http://forum.strataframe.net/Topic23952.aspx

By Elio Reyes - 7/29/2009

Hi



I'm trying to find a way to start the presentation of a



MicroFour.StrataFrame.UI.Windows.Forms.ThemedLinkMenu



Open in the first item showing the items inside it.



I attach to pictures showing what I want



Thanks in advanced
By Trent L. Taylor - 7/29/2009

Are you referring to Sub-Items for a link menu item? If so, what is your question? Just FYI, there were no pictures attached.
By Elio Reyes - 7/29/2009

The pictures = I dont Know how to up pictures.


By Trent L. Taylor - 7/29/2009

There is an attachments section at the bottom when posting a topic. Just add them as attachments.
By Elio Reyes - 7/29/2009

Thanks ...
By Trent L. Taylor - 7/29/2009

OK, so what is it you are trying to accomplish? Sorry, I can be a little slow sometimes. Smile
By Elio Reyes - 7/29/2009

The first image is close (default ), the second one if you see is open and I can see the sub-links inside it, but I want that start open when I run the program.



Thanks
By Elio Reyes - 7/29/2009

If you want I can send you a video.



Thanks a Lot


By Elio Reyes - 7/29/2009

I did something Wrong ?
By Elio Reyes - 7/29/2009

I found it, sorry for your time



I put in the form.load this



MenuPanel.ClickItem("100")



The "100" is the key of the first Item



Thanks for all
By Trent L. Taylor - 7/29/2009

Actually you will be far better off if you set the active menu item versus forcing a click.



C#

this.MyThemedLinkMenu.SetActiveItem(0);




or



VB.NET

Me.MyThemedLinkMenu.SetActiveItem(0)




You can also do it by item which would look something like this:



C#

this.MyThemedLinkMenu.SetActiveItem(MyThemedLinkMenu.ItemCollection["MyKey"]);




or



VB.NET

Me.MyThemedLinkMenu.SetActiveItem(MyThemedLinkMenu.ItemCollection("MyKey"))
By Elio Reyes - 7/29/2009

Excellent, Thanks