
Topics
24 Jan 2023, 15:33
627
1
Replies
dr_andy_larkin
24 Jan 2023, 17:45
Events not triggering
Yes, I've got problems since update to 4.6.1.12976. OnBar and OnTick don't trigger, and subscribing to the actual events makes no difference.
OS Name Microsoft Windows 10 Home
Version 10.0.19044 Build 19044
Best regards
Andy
@dr_andy_larkin
dr_andy_larkin
02 Jan 2025, 17:37 ( Updated at: 02 Jan 2025, 19:00 )
RE: Cannot add Winform to .Net 6 cBot
PanagiotisCharalampous said:
I know this is an old thread but the issue is still current. The solution is to put the following code into the project file of your code library (this is for both WPF and Forms - edit as appropriate). Assuming that your code doesn't use features from the higher version.
<ItemGroup>
<FrameworkReference Update="Microsoft.WindowsDesktop.App;Microsoft.WindowsDesktop.App.WPF;Microsoft.WindowsDesktop.App.WindowsForms" TargetingPackVersion="6.0.0" />
</ItemGroup>
Best regards
Andy
@dr_andy_larkin