Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / VB.NET / July 2008

Tip: Looking for answers? Try searching our database.

ContextMenuStrip Bug??

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bill Schanks - 18 Jul 2008 15:08 GMT
VB.NET 2005 SP1... I have two drop down items on a contextmenustip:

DropDown1 (Enabled)
DropDown2 (Disabled)

If i hover over dropdown1 to see the items, and then hover over
dropdown2 it will show the items and fire the dropdown event which can
crash the app as I expect the dropdown event only to fire if the menu
item is enabled.

If I don't hover over DropDown1 first it behaves as expected. Is this
a bug, or should I be doing something different?
Herfried K. Wagner [MVP] - 19 Jul 2008 02:07 GMT
"Bill Schanks" <wschanks@gmail.com> schrieb:
> VB.NET 2005 SP1... I have two drop down items on a contextmenustip:
>
[quoted text clipped - 5 lines]
> crash the app as I expect the dropdown event only to fire if the menu
> item is enabled.

What's the exact type of 'DropDown1' and 'DropDown2'? 'ToolStripMenuItem'
does not have a 'DropDown' event.

Signature

M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://dotnet.mvps.org/dotnet/faqs/>

Bill Schanks - 21 Jul 2008 02:31 GMT
It's a context menu strip.. On the toolbox under Menus & Toolbars, I
drop the Context Menu strip on my form. It allows you to right click
on a control (Datagridview, listbox, etc...)

On Jul 18, 8:07 pm, "Herfried K. Wagner [MVP]" <hirf-spam-me-
h...@gmx.at> wrote:
> "Bill Schanks" <wscha...@gmail.com> schrieb:
>
[quoted text clipped - 15 lines]
> M V P  <URL:http://dotnet.mvps.org/>
>  V B   <URL:http://dotnet.mvps.org/dotnet/faqs/>
kimiraikkonen - 19 Jul 2008 17:22 GMT
> VB.NET 2005 SP1... I have two drop down items on a contextmenustip:
>
[quoted text clipped - 8 lines]
> If I don't hover over DropDown1 first it behaves as expected. Is this
> a bug, or should I be doing something different?

Hi,
Maybe DropDown1 is a ToolStripMenuItem of your ContextMenuStrip
control? And DropDown2 is child (sub) item of DropDown2? Those are may
be the just names of ToolStripMenuItem(s) based on my guess without
specific information which is not given in your post.

Thanks,

Onur Güzel

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.