Re: Information about vs.net scripts

  • From: Varun Khosla <varun.lists@xxxxxxxxx>
  • To: programmingblind@xxxxxxxxxxxxx
  • Date: Fri, 26 Nov 2010 14:48:49 +0530

There's also a declarative way in which you don't have to leave the code window.

If you are working with C#, locate the form constructor :

public Form1()
{
InitializeComponents();
// Add any event handlers below, after initialize components
// press tab twice after you've typed new to generate the rest of the
statement and event method
this.Load += new /* tab twice here */ EventHandler(Form1_Load);
}

// Following method will be generated automatically if you had tabbed
twice as stated above.
void Form1_Load(object sender, System.EventArgs e)
{
// Make sure you delete the default throw new exception statement
written just here and then write your code.
}

This declarative syntax is used by designer implicitly but you don't
see it in form.cs file because design information is stored in
form.designer.cs file.

I use it coz for strange reasons I more often find myself unable to
reach to events button in designer property toolbar although
categorized and alphabetic buttons are always announced by Jaws.

Note you can use only the declarative syntax to bind an event to a
method at any time during the course of a program run.

For VB, since the constructor is within the designer.vb file itself,
you can create event handlers within form_load event which you can add
easily by pressing enter when you are in the designer and no control
is selected (press escape to de-select any selected control).


HTH


On 11/26/10, Sauro Cesaretti <saurocesaretti1983@xxxxxxxxx> wrote:
> Hi,
> Thanks a lot for all your advices.
> Ill try all these things rightaway.
> Best regards, have a nice day
> S.
>
>
>
> 2010/11/25, RicksPlace <ofbgmail@xxxxxxxxx>:
>> Followup: You might hit the space bar to select the items in the
>> comboboxes.
>> It has been some time since I have been in there working with that
>> software
>> but know it works since I use it as well as the technique mentioned by
>> Martain in a previous post.
>> Also, if you get into the Forms Designer for a page you can hit F4 I think
>> it is and open the Properties Window. Then, if you can get into the
>> Properties window you will see, tabbing around, a combobox with a list of
>> items on the page you are working on. You can open it and cursor and
>> select
>> any of the objects like buttons or textboxes etc... Then tab back to the
>> list of properties or events for that object and you can set them
>> accordingly. That is another method if the first 2 are not easy enough to
>> use.
>> Rick USA
>>
>>
>> ----- Original Message -----
>> From: "RicksPlace" <ofbgmail@xxxxxxxxx>
>> To: <programmingblind@xxxxxxxxxxxxx>
>> Sent: Thursday, November 25, 2010 7:53 AM
>> Subject: Re: Information about vs.net scripts
>>
>>
>>> Hi: If you are talking about the 2 dropdown list boxes, perhaps they are
>>> comboboxes, you can cursor down the first one to the control you want to
>>> add an event for and hit enter on it. You might have to make sure it took
>>> by verifying the events in the next combobox. After you pick the control
>>> you want in the first combobox you tab to the second combobox and cursor
>>> to the event you want to work with and hit enter on that event. I think
>>> you will be put into the code editor inside the subroutine that gets
>>> executed when that event occurs.
>>> In any case that event should be added to the code file so you can work
>>> with it.
>>> Note: the code file is the CSharp code file and not the html editor file
>>> as you would expect.
>>> Rick USA
>>> ----- Original Message -----
>>> From: "Sauro Cesaretti" <saurocesaretti1983@xxxxxxxxx>
>>> To: <programmingblind@xxxxxxxxxxxxx>
>>> Sent: Thursday, November 25, 2010 7:07 AM
>>> Subject: Information about vs.net scripts
>>>
>>>
>>>> Hello,
>>>> These days, I have started to work with c# and I have started to build
>>>> something from the fruit basked sample.
>>>> First, I'd like to thanks all the people that worked with these scripts.
>>>> You made a great job!!
>>>> Now, I'd like to ask you how can I select an event handler of a
>>>> particular object of my form using the comboboxes available above the
>>>> window code.
>>>> Thanks in advance,
>>>> regards, Sauro
>>>> __________
>>>> 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
>>
>>
> __________
> View the list's information and change your settings at
> //www.freelists.org/list/programmingblind
>
>


-- 
Varun
__________
View the list's information and change your settings at 
//www.freelists.org/list/programmingblind

Other related posts: