Posted 7 years ago by Kanha
Version: 12.1.0302
Platform: .NET 4.0
Environment: Windows 7 (64-bit)
Avatar

Can't able to get the intelligengence when we try to handle the event

say form.SizeChanged += <No intelligence>

[Modified 7 years ago]

Comments (8)

Posted 7 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi,

Sorry but we don't provide automated IntelliPrompt for that scenario at this time.  I'll write down your feature request.


Actipro Software Support

Posted 7 years ago by Kanha
Avatar

:)

[Modified 7 years ago]

Posted 7 years ago by Anchit Porwal
Avatar

So can you tell me is there any other way to achieve this functionality

Posted 7 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

You'd want to watch for space being typed after a += and in that scenario build up a member list of available types that inherit the EventHandler type that the event is.  The problem is that our WinForms version of the add-on doesn't have a nice way you can point at an offset and get a resolved type like our newer WPF/Silverlight versions do.  So there you wouldn't know what event type the SizeChanged event is.  

Similarly, our WPF/Silverlight versions have a nice object model where you could query all known types and look for event handler types but in WinForms, we have slightly more limited methods you can call on the DotNetProjectResolver and IProjectContent objects to get types/members.  

So to sum up, it would be a bit of work when doing it in the WPF/Silverlight versions of the add-on but should be possible there.  In the WinForms version, I'm not sure we expose enough information to allow you to write similar code and make this happen.


Actipro Software Support

Posted 7 years ago by Anchit Porwal
Avatar

Can you provide the sample code for winforms version to implement that

[Modified 7 years ago]

Posted 7 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Anchit,

I'm sorry but it's not a quick thing to write and if we had the sample code, we'd have it built into the product itself.


Actipro Software Support

Posted 6 years ago by Lathoub
Avatar

Hi

Any plans to have this feature as part of the product in the near future?

Thanks

Posted 6 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hello, can you specify which exact features you'd like to see?  Such as do you want to see something pop up that says press TAB to insert a method name and then after pressing Tab, another popup that says press TAB to code generate a new method handler?


Actipro Software Support

The latest build of this product (v2020.1 build 0400) was released 7 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.