Today I was adding some custom controls on a MaxCustomControls.MaxForm, and for some reason ShowModeless method doesn’t work, returns:
– Runtime error: No method found which matched argument list
So I implemented it myself using the standard Show method and there it was, my window is totally overpowered by Max with a new title that says:
“All Your Windows Are Belong To Us”
Anyone seen this? Pretty funny (:
Anyway here is the code to see it:
(
local MainForm = DotNetObject "MaxCustomControls.MaxForm"
MainForm.ClientSize = DotNetObject "System.Drawing.Size" 185 500
MainForm.Text = "Where is my title?"
MainForm.FormBorderStyle = (DotNetClass "System.Windows.Forms.FormBorderStyle").FixedToolWindow
local p = DotNetObject "System.IntPtr" ( Windows.GetMAXHWND() )
local maxHwnd = DotNetObject "MaxCustomControls.Win32HandleWrapper" p
MainForm.Show ( maxHwnd )
)
Light