Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/visual-studio-2008/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Visual studio 2008 智能感知没有显示我写的任何东西_Visual Studio 2008_Intellisense - Fatal编程技术网

Visual studio 2008 智能感知没有显示我写的任何东西

Visual studio 2008 智能感知没有显示我写的任何东西,visual-studio-2008,intellisense,Visual Studio 2008,Intellisense,我正在使用Visual C#2008 express。我也在运行Windows7。我创建了一个简单的表单,但是Intellisense没有显示我写的任何东西。 我写道: 然后当我写rbtn时,Intellisense会弹出,但它不会显示rbtn\u sortLocation。但在写出一整行之后,它并没有抱怨错误。如何让Intellisense显示我的方法等 另外:这只发生在我在这台计算机上创建的解决方案上。我在旧XP机器上创建的所有解决方案都运行良好。您可以尝试一下Ctrl+Space。这是一种

我正在使用Visual C#2008 express。我也在运行Windows7。我创建了一个简单的表单,但是Intellisense没有显示我写的任何东西。 我写道:

然后当我写
rbtn
时,Intellisense会弹出,但它不会显示
rbtn\u sortLocation
。但在写出一整行之后,它并没有抱怨错误。如何让Intellisense显示我的方法等


另外:这只发生在我在这台计算机上创建的解决方案上。我在旧XP机器上创建的所有解决方案都运行良好。

您可以尝试一下
Ctrl+Space
。这是一种手动打开Intellisense菜单的方法


您还可以检查选项以确保其已打开。我相信intellisense选项位于
工具->选项->文本编辑器->(所有语言或您使用的语言)->语句完成部分->自动列表成员-/code>

您在哪里编写“rbtn”并试图打开intellisense?还有,这个单选按钮在哪里申报

Intellisense使用基于范围的选项填充菜单。例如:(假设RadioButton是在类级别声明的)


对不起,我把问题写错了。菜单确实出现了,但它不包括我的方法或我写的任何东西。
private RadioButton rbtn_sortLocation;
class MyClass 
{
    private RadioButton rbtn_sortLocation;

    // Intellisense will not show the RadioButton in this scope.
    // This is the class scope, not in a method.

    static void StaticMethod() 
    {
        // Intellisense will not show the RadioButton in this scope.
        // The RadioButton is not static, so it requires an instance.
    }

    class InnerClass
    {
        // Intellisense will not show the RadioButton in this scope.
        // This is the class scope, not in a method.

        void InnerClassMethod()
        {
            // Intellisense will not show the RadioButton in this scope.
            // Members of the outer class are not accessible to an inner class.
        }
    }

    public MyClass()
    {
        // Intellisense WILL show the radio Button in this scope.
        // class members are accessible to the constructor.
    }

    void Method()
    {
        // Intellisense WILL show the radio Button in this scope.
        // class members are accessible to instance methods.
    }
}