Flash Form instead of control

.NET Edition of the F-IN-BOX
jankrod
Posts: 8
Joined: Wed Jul 19, 2006 5:12 pm

Flash Form instead of control

Postby jankrod » Wed Jul 19, 2006 5:24 pm

I was looking at the flash form instead of the flash control. It does not seem to allow you to right click the taskbar and choose close, min, max, restore and so on. the menu does not even pull up when you right click on the task bar.

Softanics
Site Admin
Posts: 1402
Joined: Sat Sep 18, 2004 3:03 am
Location: Russia, St. Petersburg
Contact:

Postby Softanics » Sun Jul 23, 2006 3:34 pm

Thank you for your question.

You can add system menu using the following code:

Code: Select all

private const int GWL_STYLE = -16;
private const int WS_SYSMENU = 0x00080000;
private const int WS_MINIMIZEBOX = 0x00020000;
private const int WS_MAXIMIZEBOX = 0x00010000;
...
public MyTranslucencyForm()
{
    SetWindowLong(Handle.ToInt32(),
                            GWL_STYLE,
                            GetWindowLong(Handle.ToInt32(), GWL_STYLE) | WS_SYSMENU | WS_MINIMIZEBOX | WS_MAXIMIZEBOX);
}
Best regards, Artem A. Razin,
F-IN-BOX support
Ask your question here: http://www.f-in-box.com/support.html

jankrod
Posts: 8
Joined: Wed Jul 19, 2006 5:12 pm

Works

Postby jankrod » Thu Aug 31, 2006 6:17 pm

Thanks. worked perfect


Return to “.NET Edition”

Who is online

Users browsing this forum: No registered users and 14 guests

cron