Checkboxes get disabled by theirself - c++-cli

i have a problem in the application that i'm currently trying to make. In checkboxs' properties it says it's Enabled = True but after i debug and open it they all are disabled. Why did this happen? Any helps?

I think the problem here may be one of terminology. You're accessing the 'Enabled' property, but I think you may want the 'Checked' property.
The Enabled property is set by you, and controls whether the user can click on the checkbox or not. The Checked property is set either by you or by the user, and it changes whenever the user clicks on the checkbox.
Here's a picture of four checkboxes:
Check Box One is Enabled, and not Checked.
Check Box Two is Enabled, and Checked.
Check Box Three is not Enabled, and not Checked.
Check Box Four is not Enabled, and Checked.

Related

Checkbox component presents different behavior for different users

I have a Windows Form application with a checkbox that presents different behaviour according to the user. The component appears in the form only for the user who installed first the application.
For other users that have the same privileges, in the same machine, the checkbox is not visible. I already tried to uninstall and reinstall the application with different users, but the problem persists.
In my code, there´s nothing that changes the Visible property to true or false, I just let the default value to true
Appreciate any help, thanks!
Try resize the window that contains the checkbox. You are probably setting the size or the location of the checkbox in a wrong way. Try to use proper anchor property and see if the problem resolves.

Can't use Textbox in Webbrowser control

I have a WebBrowser control and the user can navigate to various sites.
But after setting the address
WebBrowser1.Navigate(Address)​
I can't use any textbox. All the buttons and links work as usual though.
EDIT:
By saying "i cant use" i mean no interaction is possible. I can't enter any test nor paste anything into them
Check the properties of your textbox.
The ReadOnly property has to be set to False and the Enabled property needs to be True.
If it still doesn't work:
Can you interact with the textbox before navigating to the address? If yes, check for possible unwanted actions concerning the textbox in the WebBrowser1.Navigating Event, if you have one.

How do I uniquely identify enabled/disabled objects in QTP

In my application, I have to verify if a particular button is enabled or not. It gets enabled after I fill in certain values.
But, the problem is the properties for the button is EXACTLY the same when its enabled and disabled. (Even the value of isEnabled is false in both cases)
If I try to click on that button, it gets clicked in both cases (even it gets clicked when its disabled but however since its disabled nothing happens)
So, how do I proceed now?
Are you sure all the properties are exactly same? Do you have access to the color property? Font color or background color. If yes, then I am sure color for enabled and disabled button would be different. If this is the case- viola!
You can check the height and width of the object to identify the object .
Mostly in masked scenario it will be zero .
Well, if the button is disabled, then clicking it will yield no result. If this is for a web-based application, then you can include a checkpoint in your code to check that no request/response is sent from the webpage. (ie. no communication is initiated from the browser).

Checking a check box that can be checked

To share a profile, check box is used.
There are three type of check boxes
check box which is read-only
check box which is already checked
check box which is not checked
In the above scenario, how to verify using selenium web-driver (java)
verify read-only check box is read-only
verify checking a check box whether checked or not
how to automate checking a check box when there are multiple
unchecked check box
try this code
boolean b=driver.findElement(By.name("Check Box Locator")).isEnabled();
above code returns true if checked and false if not checked....
or try this code too...
String status=driver.findElement(By.name("Check Box Locator")).getAttribute("Checked");
this string prints the attribute value whether it is checked or unckecked
based on attribute value you can prepare your report
hope this helps you

Silverlight 4 : Restrict checking of checkbox to box only

I wanted to know if its possible to disallow checking/unchecking of checkbox on clicking checkbox label and only allow checking/uncecking of the box on the box only.
PS: I want to pull it off without using an additional label for the checkbox i.e I wish to disable check/uncheck of checkbox on the checbox label
checking the template (here), can't see clearly how to do that. Additionally it does not have any NamedPart. For me the easiest way is that you suggested... or create your own checkbox.