Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

toolstripmenuitem/can anybodyhelp me. plz

This is a discussion on toolstripmenuitem/can anybodyhelp me. plz within the VB.NET forums, part of the Software Development category; In my windows application, i've a toolstripmenuitem and and a mousehover event to display another dropdowntoolstrip loaded from the database. my problem is that i want the selected dropdownitem. i ...

Go Back   Geeks Talk > Software Development > VB.NET
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read

VB.NET Visualbasic.NET

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-11-2008
Junior Member
 
Join Date: Jul 2008
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
harilatha is on a distinguished road
Post toolstripmenuitem/can anybodyhelp me. plz

In my windows application, i've a toolstripmenuitem and and a mousehover event to display another dropdowntoolstrip loaded from the database.
my problem is that i want the selected dropdownitem.

i can get the owneritem but not d selected item.how could i get that perticular selected item................

my code is

Private Sub MTToolStripMenuItem_DropDownItemClicked(ByVal sender As Object, ByVal e As System.Windows.Forms.ToolStripItemClickedEventArgs) Handles MTToolStripMenuItem.DropDownItemClicked

Dim fileatstr As String = MTToolStripMenuItem.DropDown.OwnerItem.ToString
'Dim fwduser As String = MTToolStripMenuItem.DropDown.

here i was struked.


plz ...........anybody help me
end sub



Thanks in advance
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-21-2009
Junior Member
 
Join Date: Nov 2007
Posts: 26
Thanks: 2
Thanked 4 Times in 4 Posts
shilpa.c is on a distinguished road
Re: toolstripmenuitem/can anybodyhelp me. plz

To get the text of selected item you have to make use of ToolStripItemClickedEventArgs parameter,that is

e.ClickedItem.Text.

This will gives you selected item text.
Reply With Quote
Reply

  Geeks Talk > Software Development > VB.NET

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -4. The time now is 12:07 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved