By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,573 Members | 1,786 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,573 IT Pros & Developers. It's quick & easy.

Ownerdraw menuItem

P: n/a
I use the ownerdraw methode to customize my menu.

So, inside the sub OnDrawItem I need to know the size of my form

Do you have any idea to do that.

I dont want to use the reference to the name of my Form because I use
a class and I wish to use it with any name.
Thanks in advance
Nov 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Michel,
I use the ownerdraw methode to customize my menu.

So, inside the sub OnDrawItem I need to know the size of my form

Do you have any idea to do that.


Dim main As MainMenu = Me.GetMainMenu()
If Not main Is Nothing Then
theSize = main.GetForm().Size
End If

Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/
Please reply only to the newsgroup.
Nov 20 '05 #2

P: n/a
Wonderfull. Exactly what I want. Thanks Mattias

"Mattias Sjögren" <ma********************@mvps.org> a écrit dans le message
de news: OP*************@tk2msftngp13.phx.gbl...
Michel,
I use the ownerdraw methode to customize my menu.

So, inside the sub OnDrawItem I need to know the size of my form

Do you have any idea to do that.


Dim main As MainMenu = Me.GetMainMenu()
If Not main Is Nothing Then
theSize = main.GetForm().Size
End If

Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/
Please reply only to the newsgroup.

Nov 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.