It seems a little bit delayed?

Sep 1, 2011 at 6:51 AM

import clr

clr.AddReference('System.Windows.Forms')
from System.Windows.Forms import *
class MyForm(Form):

    def __init__(self): 

        button = Button()

        button.Text = 'Click Me' 

        self.Controls.Add(button)

#when I type the word "self" with a dot want to list the member under self. But the member Dialog didnt pop up.

I have to delete the dot and wait a while then type the dot to show the member.

 


form = MyForm()

Application.Run(form)

Sep 1, 2011 at 11:45 AM
Edited Sep 1, 2011 at 11:50 AM

Update:

mport clr

clr.AddReference('System.Windows.Forms')
from System.Windows.Forms import *
class MyForm(Form):

    def __init__(self): 

        button = Button()

        button.Text = 'Click Me' 

        self.Controls.Add(button)

 #when I type the word "self" with a dot want to list the member under self. But the member Dialog didn't pop up.

#I have to delete the dot and wait a while then type the dot to show the member.

 

#Update:I find a trick to avoid the delay, Firstly type a statement ,then insert a new line in front of  the statement .Now type the "self." the members will show up immediately

#I think this feature maybe a bug for PTVS,It seems PTVS can not identify variable which shows up at the last line of  function definition very well .

form = MyForm()

Application.Run(form)