[Gtk-sharp-list] UnhandledException

Baltasar GarcĂ­a Perez-Schofield baltasarq at gmail.com
Thu Jan 26 14:28:25 UTC 2017


Hi, Sascha,

You're using a plain Gtk.ComboBox, which does not have an Entry. You should
use the "ActiveText" property, so

DocType = cboDocType.ActiveText;


...will do the trick (remember that Active can be -1 if no option is
selected, and therefore ActiveText "").

About the error itself, in Gtk# you have Gtk.ComboBox and
Gtk.ComboBoxEntry. Probably when accessing the property Entry it tries to
cast itself to a Gtk.ComboBoxEntry, and fails.

-- Baltasar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.dot.net/pipermail/gtk-sharp-list/attachments/20170126/604adc68/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Saschasmall.jpg
Type: image/jpeg
Size: 31166 bytes
Desc: not available
URL: <http://lists.dot.net/pipermail/gtk-sharp-list/attachments/20170126/604adc68/attachment-0001.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: twitter.png
Type: image/png
Size: 1418 bytes
Desc: not available
URL: <http://lists.dot.net/pipermail/gtk-sharp-list/attachments/20170126/604adc68/attachment-0006.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: spacer.gif
Type: image/gif
Size: 1097 bytes
Desc: not available
URL: <http://lists.dot.net/pipermail/gtk-sharp-list/attachments/20170126/604adc68/attachment-0001.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: facebook.png
Type: image/png
Size: 956 bytes
Desc: not available
URL: <http://lists.dot.net/pipermail/gtk-sharp-list/attachments/20170126/604adc68/attachment-0007.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: linkedin.png
Type: image/png
Size: 1141 bytes
Desc: not available
URL: <http://lists.dot.net/pipermail/gtk-sharp-list/attachments/20170126/604adc68/attachment-0008.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: skype.png
Type: image/png
Size: 1632 bytes
Desc: not available
URL: <http://lists.dot.net/pipermail/gtk-sharp-list/attachments/20170126/604adc68/attachment-0009.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: github.png
Type: image/png
Size: 2345 bytes
Desc: not available
URL: <http://lists.dot.net/pipermail/gtk-sharp-list/attachments/20170126/604adc68/attachment-0010.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xing.png
Type: image/png
Size: 2636 bytes
Desc: not available
URL: <http://lists.dot.net/pipermail/gtk-sharp-list/attachments/20170126/604adc68/attachment-0011.png>


More information about the Gtk-sharp-list mailing list