Question : How do I view ALL my Methods and Functions in Object Browser.

In the olden days of VB6, I used to be able to view ALL my methods and functions in one long list in the Object Browser - which was very handy.

I think that I used to click on the word "<globals>", and **all** the methods and functions would appear.

Now, with the Object Browser included with VB Express 2008, I cannot seem to list all of them.

I can click on, say, a Module, and, hence, list its various methods and functions, but I cannot seem to get a combined listing of ALL the methods and functions in all the Modules.

So, for example, if I want to navigate my way to a particular function via the Object Browser, I have to try to remember which module, class, form etc this partuclar function is in - which makes life more difficult.

Does anyone know if it is possible to list ALL my methods and functions in just one list in the Object Browser?

Thank you.

Answer : How do I view ALL my Methods and Functions in Object Browser.

Sorry, I don't know of an existing one, but if you use BigStringEditor and UITypeEditor for the "?"s, and define a class BigStringEditor as in the included code (sorry, I don't have VB.Net on my machine, but the code should be almost the same) then when you click in the property a "..." will appear (I think you need to set Browsable(true) also)  and if you click on that a 100x100 dialog will appear which will let you edit.
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
public class BigStringEditor: UITypeEditor
    {
        public override UITypeEditorEditStyle GetEditStyle(System.ComponentModel.ITypeDescriptorContext context)
        {
            return UITypeEditorEditStyle.Modal;
        }

        IWindowsFormsEditorService editorService = null;

        public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value)
        {
            if (provider != null)
            {
                editorService =
                    provider.GetService(typeof(IWindowsFormsEditorService)) as IWindowsFormsEditorService;
            }

            if (editorService != null)
            {
                Form foo = new Form();
                TextBox tb = new TextBox();
                tb.Multiline = true;
                tb.Height = 100;
                tb.Width = 100;
                foo.Height = 100;
                foo.Width = 100;
                tb.Text = value.ToString();
                foo.Controls.Add(tb);
                editorService.ShowDialog(foo);
                return tb.Text;
            }

            return value;
        }


    }
Random Solutions  
 
programming4us programming4us