I've added a LostFocus Event to the DateTimePicker and checked the value there and it is now working correctly.
Why it works there and not on the Validated event I cannot understand!
I'm using VS2008 and have an unbound DateTimePicker control on a windows form.
It's working correctly if I select a date from the calendar and then press tab to exit.
I have a "Validated" event and the Text property (and value property) show the value as displayed.
However, If I go back and...
After many hours of searching have found the cause of the problem.
When you have the 'EditMode' property of the DataGridView set to 'EditOnEnter' you cannot delete the row even if you select the entire row on the row header and press the delete key.
I have reset it to 'EditOnKeystroke' or...
I have an unbound DataGridView. Previously I was able to select the row header and press the Delete key to delete the row. This no longer works. I don't know when it stopped working. I have 'AllowUserToDeleteRows' set to True.
The entire row is selected and pressing the Delete key erases...
Whenever I add a new TabPage to a TabControl the property UseVisualStyleBackColor is set to true on all the other TabPages on the TabControl. This causes all my background colors to disappear and I have to manually go into each TabPage and set the property back to False.
Does anyone know why...
As mentioned by earthandfire previously, Delphi makes use of 'With' statements.
However, there is one very big disadvantage when using this in Delphi and that is with debugging. When you hit a breakpoint you cannot simply hovver over the variable using the mouse to show the current values as...
If items such as textboxes or labels are placed on tabsheets on a windows form and you programatically change a value on a tabsheet which is not visible (or not previously been shown), when you save the record the change is never updated.
If the user selects the tabsheet prior to saving the...
Great, It does what I want.
I never thought of setting ReadOnly, I've always tended to use Enable/Disable.
I still would be interested to know how to change the ForeColor of disabled items.
I have disabled text boxes which are greyed out and I have no control of the font color.
I can do something like
c.ForeColor = Color.Red;
which works fine with enabled textboxes but is totally ignored on disabled boxes which remain a messy murky grey.
Thanks
This has not resolved the problem. Having spent many hours searching I found similar reported problems and it was also reported as a known MS bug.
Having pulled what little hair I have left out I kept trying different things.
Finally I have resolved it.
When the record position has...
I have a form with multiple tabsheets on it.
When the user is updating an existing record I am trying to perform certain validation dependant upon the checked state of a checkbox on one of the tabs.
The checkbox is bound to a dataset but the checked state of that check box is ONLY set when the...
I'm using .Net 1.1 and Sql Server database.
I have a situtation where a combo box is bound to a dataset and will quite happily update the column when the user changes the value.
The default value for the field is null. In this case the field is a Country ID code and has a foreign key on a...
The 'Hot' key shortcuts on all menus and buttons do not appear until after I press the ALT key. I may have a text property of E&xit on a menu or button. It shows as Exit, but the 'x' is not underscored until after I press the ALT key.
This seems to be a very basic requirement.
I'm sure there...
The problem has been resolved. I don't know exactly what was done to fix this but the administrator has altered proxy settings on the server. It was also ascertained that this only occurred for remote users that access the server through SmartPass.
I am trying to locate a problem we have on our site with Remote Desktop disconnecting.
Many of our users have reported this problem, I can only talk about it from my own experience.
Basically, we have tracked it down to minimizing Remote Desktop (either manually or by Windows + D to show the...
Whilst I might agree with you for a web application I don't think this is very professional for a normal windows app. For example I might be completing an order form, entering the customer account number at the beginning. The user would expect to see the account details like the address etc...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.