Methods and Events of Forms, text box controls, etc.

How can I see all available methods & properties of a form or controls on a form such as textboxes within the code window Is there a way In Visual Foxpro, it will show you all available methods and properties within code window. Sorry guys if Im comparing C# with Visual Foxpro, VFP is a Datacentric and RAD tools but I really want to be well versed in C# programming.




Answer this question

Methods and Events of Forms, text box controls, etc.

  • Rohith Rty

    I think some of you guys mis-interpret my post. Intellisense is there, but its better if we can see all the properties and methods from the form.cs, when we're there, i just call it code window, we see it at the top left combo was TYPES where in at the right side combo was members, here at members we can see only methods/events that has code already, yes I find it where to look for the methods/events for a form and its on the properties.

    How I wish that it shows in the code window, and also at the TYPES combo box where in we click on the dropdown arrow, it shows the form we're coding at and its added controls, e.g textboxes, linklabel, command buttons etc.

    If you have'nt try Visual Foxpro 5-9 before, you might not get what im saying here.

    Thanks.



  • rakeeb

    hi,

    exposing form objects as public objects you can see and edit from outside of your form is a not good thing to do at least it contradict the OOp's concept of encapsulation so instead of exposing the control itself you can expose the properties that you need using properties like for example

    form1


    ublic partial class Form1 : Form

    {
    //form contain a button

    public Form1()
    {
    InitializeComponent();
    }
    private void button1_Click(object sender, EventArgs e)
    {
    Form2 frm = new Form2();
    frm.Textbox1 =
    "hello";
    frm.Show();
    }
    }


    form 2




    public
    partial class Form2 : Form

    {
    //form contain a textbox

    public Form2()
    {
    InitializeComponent();
    }

    public string Textbox1
    {
    get { return textBox1.Text; }
    set { textBox1.Text = value; }
    }

    }


    hope this helps



  • Aynemail

    Hi,

    I dont think its the navigation bar, If you can see the multi-page window where the default is Start Page, if you had an open projects, you modify a Windows Form and it will add the Form1.Designer.cs, Form1.cs*, Form1.cs[Design]* at the page frame if you click on the Form1.cs* you can see two combo boxes/drop down list, the left one shows Projectname.Form1 (move your mouse cursor to the dropdown list and the ToolTip text is TYPES) and the right one shows the methods/events for the current windows form and the ToolTip text is MEMBERS.

    This is where im saying that its lacking something, e.g. showing all the methods/properties of a selected TYPES(I just call it controls ).

    If a control is on the left drop down list, let say a form is being coded, this form's methods/events shows at the MEMBERS drop down list only those methods/events which has code, but it will not show all those method/events available for the form. Where in Visual Foxpro, it shows both added controls on the left drop down list and if you select a control, e.g. text box, you can see all the available methods/events when you click at the right drop down list.

    This is the one im talking about.

    Note: I found it that if your forms properties window is open, click events (the one which like a thunder image) shows all available methods & properties. Same if your in a forms added controls, it will list also the available methods & properties. From here, just double click the desired method or properties you want to put some code.

    How I wish that it shows in the drop down list...to lessen the open windows at the IDE.

    Thanks.



  • Sarita Bafna

    I'm not sure whether you are describing the navigation bar or saying it is missing something.

    If the navigation bar is not there, it is on by default, then tools>options>text editor>c#>check 'navigation bar'

    It then appears above the code editor, under the tabs.



  • ba2007_2008

    Maybe I've misunderstood as shakalama has answered a different question.

    But apart from intellisense which lists them all when you type it, you can scroll in the drop down and click to get a tooltip definition; there's the object browser which lists all in a new tab and class view which lists only those referenced in a tool area.

    Class view seems to be hidden, but you can get it by "Ctrl+w, c"

    If  you double click a method/property it will open the object browser to show a small definition anyway.

     

    Edit: oh, its not hidden at all, its right there at the top of the view menu :p



  • Methods and Events of Forms, text box controls, etc.