Hi Baltasar,
On 26.01.2017 15:28, Baltasar García Perez-Schofield wrote: > 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. .ActiveText looks like that is aren't available in Gtk3. The compiler says: Error:(132, 34) CS1061: Glade.cs(132,34): error CS1061: Type `Gtk.ComboBox' does not contain a definition for `ActiveText' and no extension method `ActiveText' of type `Gtk.ComboBox' could be found. Are you missing an assembly reference? But the developer reference on https://developer.gnome.org/gtk3/stable/GtkComboBoxText.html#gtk-combo-box-text-get-active-text says it is available. Strange... -- <https://saigkill.github.io/> Sascha Manns [email protected] <mailto:[email protected]> GPG: 0x168428cdb1f20ab1 <http://pgpkey.org/pks/lookup?op=vindex&search=0x168428cdb1f20ab1&fingerprint=on> jabber:[email protected] <jabber:[email protected]> Maifeldstraße 10 56727 Mayen mobile: +49-1573-9242730 home: +49-2651-4014045 https://saigkill.github.io Twitter <https://twitter.com/saigkill> Facebook <https://www.facebook.com/sascha.manns> LinkedIn <https://de.linkedin.com/in/saigkill> Skype <skype:schurik0815?call> Github <https://github.com/saigkill> Xing <https://www.xing.com/profile/Sascha_Manns4>
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Gtk-sharp-list maillist - [email protected] http://lists.dot.net/mailman/listinfo/gtk-sharp-list
