If I choose CUT or DELETE from the context menu, I get a DBNull error popping up. Of course, this is not expected (is it ever?) since I spent a good chunk of time yesterday wrestling with the null issue and the image. I thought I had that thing licked.
What can I do about the delete/cut process on the pictureedit control?
Thanks,Bill
This works. I am still running some tests, but at least I have a way around the issue.
this
That is why my navigation disappeared. And, also explains the confirmation popup when closing the window.
Whew! Glad that's over.Bill
(note: cross-posted on purpose--http://forum.strataframe.net/Topic13453-7-1.aspx)
Thanks for the help!Bill
private void SketchPictureEdit_EditValueChanged(object sender, EventArgs e){ if (SketchPictureEdit.EditValue == new byte[] {}) { this.partsBO1.sketch = new byte[] {}; SketchPictureEdit.EditValue = string.Empty; } else { this.partsBO1.sketch = (byte[])SketchPictureEdit.EditValue; }}
Since I have the control bound to the data already, this was redundant. And, it caused other navigation problems at various points in the user experience.