Exception using CheckBoxComboBox from CodeProject - combobox

I am using .NET 3.5 and programming in VB. I recently came accross the need to have a multi select dropdown box. I tried to disuade my manager from I did my usual google searches as .NET does not come with a standard drop down component that allows this functionality.
I found this Article
I downloaded the demo and it works exactly the way I want it to work in my application. However when I attempt to add this component to my project, it fails at base.WndProc(ref m) and says that the string is an invalid boolean. Ideally I would debug this and pass in a boolean as it sounds like it's getting a string instead of the expected boolean. But I can't modify the WndProc() method. Or can I?
Or if anyone else has looked at this article and gotten it to successfully work. I'd appreciate any advice on the matter.

Related

Windows UI Automation tools (Visual UIAVerify, Inspect.exe) recognizes the Buttons as Pane

I am using UI Automation library - TestStack.White to automate a Windows Application, where I utilize Inspect.exe to get the UI Elements from the WinForms. I have had no issues with the Inspect.exe so far except currently I am stuck with an issue in my development machine where the tool started recognizing the "Buttons" as "Pane" and the behavior is same across Visual UIA Verify, TestStack(White). Eventually all the tests are getting failed since it couldn't identify the Buttons (returns Null).
Here's what it looks like now,
[]
Here's what it used to look and it looks in a Fresh VM,
Expected,
[]
Can someone please through some light regarding this behavior or point out what would have gone wrong here ?
Thanks in Advance !
Hmm... It looks like a bug in UIAutomationCore.dll or a target application issue. I think you can't do something with that on client side. But some workarounds are possible. It's still recognized as a class name with BUTTON inside. So it's possible to do some part of your automation with a tool that can support both UI Automation (for complicated controls like WinForms list views etc) and Win32 API (like here, when it has NativeWindowHandle and adequate ClassName).
If you can consider changing the automation tool, one of the options is pywinauto. It can use Win32 API or UI Automation under the hood by your choice. The high level API is almost the same. So you can easily switch between 2 backends for different actions (having 2 different Application objects connected to one target app instance). Getting Started Guide will bring you initial guidance for the core concept.

Controlling SilverLight application using selenium does not work

I am trying to automate an web application where in I am trying to control the silver light application.
I need to play pause and stop the player embedded in HTML.
There is an object tag which has an id for player.
I am trying to execute the JavaScript as follows
return document.getElementById('wptv_services_common_widgets_player_silverlight_PlayerObject_0').CurrentState
How ever I am not getting anything in return. What I get is just None as a result.
Similarly I also try to pause the player but I get different errors:
document.getElementById('wptv_services_common_widgets_player_silverlight_PlayerObject_0').Pause()
but i get
error: 'document.getElementById(...).Pause is not a function'
If I edit the code to use with ' () ' then there is no error but nothing happens on the video ie. it does not pause.
Note: I got the link How do I pause/play/seek a silverlight video using javascript and this is exactly what i want to achieve but the solution mentioned is not working for me.
I worked for youtube player and reference their API and similar functions were working just fine.
I am not familiar with silver-light application myself so a bit detailed information will be helpful.
Any help will be highly appreciated.
Silverlight doesn't expose a DOM that is accessible to Selenium. If you have the sourcecode to the Silverlight application, you can expose specific functions to javascript host.
If you don't have source, you can use TestStack.White with Silverlight. Although it may be a bit clunky (because it works with standard accessibility that's built into Silverlight), it works.
For more information see https://github.com/TestStack/White

Creating Custom data type in umbraco 7.3 without using AngularJS

I want to create a custom data type in Umbraco 7.3 without using AngularJS but I cannot do it because I don't have any knowledge about AngularJs.
I googled and saw that all of examples wrote by using AngularJs.
Is there any way to create a custom data type in Umbraco 7.3 without using Angular?
If not, please introduce some good sources to learning Angular that should be simple and practical.
No I don't believe it is possible since the interface is all in Angular but I could be wrong. Certainly the method that the team would prefer us to use is the Angular method. I have to be honest it was a little bit of a leap for me too creating my first editor but it's really not that difficult, trust me.
There is a good thread in the Umbraco form here: https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/46925-Custom-datatype-in-umbraco-701
And I would advise downloading the Umbraco source as the best examples are in the source itself.
If I remember correctly, you can generate custom property editors using just C# classes and class attributes. Or you can extend existing data types and tweak them. The only problem is you're limited to lists and displaying existing JSON feeds - most of which is best done using extensions like uComponents and NuPickers.
Have you viewed Nibble's blog? He's the primary source for most things data type related.
For your situation, the nuPickers dot net extensions sounds best. There's examples on this link.

How are you integrating help into your WPF application. Any recommendations?

The question says it all really. If you are writing a WPF application, how are you integrating the application help? What is the state of play in mid-2013?
It seems that there is no clear answer to this from an afternoon with a search engine, but several options:
Write your own fancy tooltip based help (but where are you getting your data from?)
Use .CHM files and the Windows Forms help system (seems archaic to me).
Use Microsoft Help Viewer 1.X or Microsoft Help 2.0.
There is some confusion as to which is more recent / approved of by MS. It appear Help Viewer 1.X might be the recommended option over Microsoft Help 2.0. It doesn't help that the names are so similar...
What is the status of 2.0? Should we use it? Was it ever fully deployed?
Use a third-party product to author your help files and link to them somehow - DocToHelp/NetHelp, NetAdvantage on-line help, etc...
Furthermore, what XAML based mark-up / attributes are you using to provide the necessary context? What is the recommended method?
It seems surprising there is no clear path for supporting application based help in WPF.
My current preference is to use a third party help authorizing system to generate HTML based help.
We then use a WebBrowser to display this help as needed. The authoring system we use makes it fairly easy to extract out a single page from the main help (each "topic" is a single HTML file, and can be included with full contents or not as desired).
Granted, this definitely felt like a bit of a nasty hack at first - but once we wrote the basic plumbing (some attached properties for xaml to specify attributes for context location and add behavior to trigger help, etc), it's fairly clean.
One very nice advantage to this approach, however, is a single help system build works perfectly in all contexts - we can include the documentation online, expose it locally for use in a browser, and use it with context from within our application directly.

implementing localization from database instead of properties file in springs

I am new to spring-mvc.
localization is working fine using properties file.But
I have translations in the database(Key,Value_en,value_native)how to implement localizations from database.I saw the answers implementing abstractmessagesource,didn't get that.I didn't get that how to switch languages and configure in dispatcher servlet.
Help me little bit clear about to get the idea.
A simple googlins took me to this article you should take a look at:
http://blog.javaforge.net/post/32188367580/database-driven-message-source-in-spring
The base idea is extending AbstractMessageSource with a couple of alternative classes: you choose which to use depending how your application grows (fixed languages vs fixed keys).

Resources