In programming, you always write an event handler, the code that tells the program what to do once an event has been fired. You write this between the start and end of the skeleton.
-- Chris Hallsworth e-mail: christopherh40@xxxxxxxxxxxxxx MSN: ch9675@xxxxxxxxxxx Skype: chrishallsworth7266----- Original Message ----- From: "sameer manohtra" <sameermanohtra@xxxxxxxxx>
To: <programmingblind@xxxxxxxxxxxxx> Sent: Wednesday, July 08, 2009 1:44 PM Subject: Re: query about adding menu items
greetings everyone. well, i'm keeping the thread alive, as i've searched the same from my sent folder. last time, before i went for vacations, i've asked that how to code for menu items. unfortunately, the confusion still persists. elfe bro, nice, nice post that is, and it has definetly given me a nice idea how to add menuStrip items, and other items under that particular menu. now, i'm able to create menus in my program like file, edit, view, insert, tools, etc. i can even add items under these menus like new, open, save, or, cut, copy, paste, etc. but, the problem is, that i don't understand how to code for these items. for example, i want that some code should be written inside the item call new which is situated under file menu which can open a new file. i know the code, or i can even confirm the same with my instructor, or you nice intelectuals as well, but i could never, never understand, that where to write that code? there is nothing between the private sub MenuStrip1 and end sub. means, how to defined, that i want some coding for a menu item called new, as it is not visible to me in form of any special line. i know, that why nothing happens when i enter on my menu items while running the program, but i am sure, that there is only way to make it activated, and that's to code something for it. for sure a program is nothing without coding, but look this pathetic person, i even don't know where to write that code. so, please friends, (i think i can call you friends now?) please help me, my cited counterparts are going forward, but i am not able to move due to this problem i'm facing. i know there are many many knoledgable people on this list, as your intelegent posts always indicates, but please spare a few of your valuable moments for this guy, so he can also learn a bit about your world as you people are already master of this paradise. hope to see some responses now, i've seen people not replying to my posts, is there any mistake that i've done? i said many a times, i'm not that mannered while comes the matter of these mailing list, as i'm subscribed only and only to one mailing list that is the same nice family of we all. appologies for anything unfruitful if you have found in my posts. ok, not much irritation for you now, signing off. quriously waiting for your responses, please, come up, please? sameer manohtra. On 6/27/09, The Elf <inthaneelf@xxxxxxxxxxxxxx> wrote:ok, I work mainly in VB 6, and know only a little about vb.net, so keep this in mind, I have collected some hints as to using Visual studios with screenreadersso here is a post that I picked up on visual studios and working with menustrips:" 1. Enter the form where you wish the menu strip to be placed. You can dothis by arrowing down in the "Solution Explorer" until your chosen form ishighlighted. Once it is highlighted press enter.2. Go to the toolbox and add a menu strip to your form. You can enter thetoolbox in one of two ways. 1. Press ctrl+alt+x. 2. Press ctrl+w and then after releasing this key combination press x. The menu strip control can be found under the group labeled "Menus and Toolbars". It may be necessary for you to open this group, if so, afterhighlighting the group press the right arrow. When the group is open "MenuStrip" is the third item down under this group. Press enter to place the control on the form. 3. Highlight the menu strip. If you just added the menu strip to your form, and have done nothing else, the menu strip should automatically behighlighted. If it is not highlighted press tab until you here "Menu Strip1". 4. Press your applications key. This is akin to right clicking the menu strip. 5. Arrow down to "Edit Items...", and press enter. 6. Tab to the combo box where it says: "Select Item and Add to List Below".7. Select the type of item you want to add. The option labeled "Menu Item"adds a menu item to your menu strip that will become the different menus such as "File", "Edit", etc. Then tab once to the "Add" button and press enter. The newly added control is now listed in the listbox located justafter the "Add" button and just before the "Remove" button. The newly addedcontrol should be labeled "Tool Strip Menu Item #". The "#" representing how many items you've added that have this name. The last added controlshould be automatically selected. You can arrow up and down to be sure ofthis.8. To set the options for the selected control tab three times. You shouldfind yourself in a list of attributes associated with the selected control.Set these attributes as best suits your application by selecting the attribute you wish to change, tab once and select or type the value you desire for the selected attribute. *NOTE* When you first load Visual Studio the list of attributes is grouped by"Category". However, you may change this organization by tabbing only twicefrom your list of controls to "Categorize Button" and left/right arrowing to"Alphabetical Button". Your screen reader should inform you which of thetwo buttons is currently checked. To check the other one simply press thespacebar once the appropriate button is highlighted. 9. (Optional) If you wish to add menu items beneath the menu you just constructed then arrow through the list of attributes to "Drop Down Items", and then tab twice to "Brows..." and press enter. This will take you into the area to add and edit items within the menu you've recently added. 10. Repeat 6-9 until you have things satisfactory for the menu you areworking on. Then tab to "ok" and press enter. This will return you to theform in stages depending on how many menu levels deep you went *NOTE*Every level of a menu works the same as described above. Steps 6-9 can befollowed no matter the depth of your menus. HTH, Eunice " i Hope this Helps, inthane proprietor, The Grab Bag, for blind computer users and programmers http://grabbag.alacorncomputer.com Owner: Alacorn Computer Enterprises "own the might and majesty of a Alacorn!" www.alacorncomputer.com Owner: Agemtree "merchants in fine facetted and cabochon gemstones" www.agemtree.com __________ View the list's information and change your settings at //www.freelists.org/list/programmingblind__________ View the list's information and change your settings at //www.freelists.org/list/programmingblind
__________View the list's information and change your settings at //www.freelists.org/list/programmingblind