|
-
Oct 31st, 2003, 03:10 AM
#1
MenuItem.DefaultItem -> cant set to flase once set to true???
I have a menu item which has a few sub-menu items. I've set one of the sub menu item's DefaultItem to true. I tried setting it to false at run time, but it still looks bold... why is it like this?
if you dont understand, I have something like this
File
----New
---------Blank (.DefaultItem = true)
---------From Tempalate
---------Custom
once the user clicks on any item in the New menu, I try to set the DefaultItem property of all menu items to false, and set the DefaultItem property of the clicked menu to true. But for some it's not making any changes
why is this happening?
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
-
Oct 31st, 2003, 05:19 PM
#2
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
-
Nov 2nd, 2003, 07:10 PM
#3
bump
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
-
Nov 5th, 2003, 11:04 AM
#4
and a 3rd bump
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
-
Nov 5th, 2003, 11:41 AM
#5
Instead of setting it to false try setting another menuitem to true. Maybe one has to be default and thus it wont let you change to false but will automatically change to false if another is set to true kind og like a group of radio buttons. Just a guess.
-
Nov 6th, 2003, 12:02 AM
#6
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
-
Nov 6th, 2003, 12:07 AM
#7
Well I tried.
-
Nov 6th, 2003, 12:10 AM
#8
Originally posted by Edneeis
Well I tried.
you tried!? no excuses!
hehe sorry, just kidding...
umm someone in gotdotnet said that he had the same problem but fixed it by toggling the visible property of the menu items. Seems to be a bug in the framework.....
I just cant believe how MS could write the framework with these obvious bugs. Those idiots probably knew about a bug as obvious as this one... I'm gonno try this visible thingie, hope it's gonno work
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
-
Nov 6th, 2003, 12:17 AM
#9
no need for code, but what the heck
VB Code:
Private Sub mnuiFlip_SubMenu_Click_ToggleDefaultItem(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mnuiFlipBoth.Click, mnuiFlipH.Click, mnuiFlipV.Click
Dim menuI, clickedMenu As MenuItem
clickedMenu = DirectCast(sender, MenuItem)
For Each menuI In mnuiFlip.MenuItems
menuI.DefaultItem = False
' A bug in .NET framework requires to toggle the visible property
' this is because we are changing the defaultItem property
menuI.Visible = False
menuI.Visible = True
Next
clickedMenu.DefaultItem = True
End Sub
beautiful sub name hehe seems to work fine
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|