[Gtk-sharp-list] More vb gtk# examples
Carlos Alberto Cortez
zero@dev.cu.buap.mx
20 Mar 2003 10:16:49 -0600
--=-9XB3OSJcKeSmwCmicUYQ
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
Hello!
Well, the codes in vb I sent, well ... can't be compiled, because the
mbas compiler sends an error message if any line different of "imports
..." appears in the beginning ... so, quit my comments, and any other
space, so the first line is "imports System"
Bye the way, I included a pair of vb gtk# little apps ..
Regards,
Carlos.
--
--------------------------------------------------
/* The definition of myself */
using Cortez;
using GeniusIntelligence;
public class Carlos : Human, IGenius, ILinuxUser {
static void Main () {
Me.Born();
}
}
--------------------------------------------------
--=-9XB3OSJcKeSmwCmicUYQ
Content-Disposition: attachment; filename=togglebutton-basic.vb
Content-Type: x-directory/normal; name=togglebutton-basic.vb
Content-Transfer-Encoding: base64
aW1wb3J0cyBTeXN0ZW0KaW1wb3J0cyBHdGsKaW1wb3J0cyBHdGtTaGFycAoKIFB1YmxpYyBNb2R1
bGUgVG9nZ2xlQnV0dG9ucwoKCVN1YiBPbkRlbGV0ZUV2ZW50ICggQnlWYWwgb2JqIGFzIG9iamVj
dCwgQnlWYWwgYXJncyBhcyBEZWxldGVFdmVudEFyZ3MgKQoKCQlBcHBsaWNhdGlvbi5RdWl0KCkK
CglFbmQgU3ViCgoJU3ViIE9uRXhpdEJ1dHRvbkV2ZW50ICggQnlWYWwgb2JqIGFzIG9iamVjdCwg
QnlWYWwgYXJncyBhcyBFdmVudEFyZ3MgKQoKCQlBcHBsaWNhdGlvbi5RdWl0KCkKCglFbmQgU3Vi
CgoJUHVibGljIFN1YiBNYWluICgpCgoJCUFwcGxpY2F0aW9uLkluaXQoKQoKCQlEaW0gd2luZG93
IGFzIFdpbmRvdyA9IG5ldyBXaW5kb3coIlRvZ2dsZSBCdXR0b25zIikKCQlBZGRIYW5kbGVyIHdp
bmRvdy5EZWxldGVFdmVudCwgQWRkcmVzc09mIE9uRGVsZXRlRXZlbnQKCQl3aW5kb3cuQm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ZXIgYnV0dG9uLkNs
aWNrZWQsIEFkZHJlc3NPZiBPbkV4aXRCdXR0b25FdmVudAoKCQlib3gzLlBhY2tTdGFydChidXR0
b24sIHRydWUsIHRydWUsIDApCgkJYnV0dG9uLkNhbkRlZmF1bHQgPSB0cnVlCgkJYnV0dG9uLkdy
YWJEZWZhdWx0KCkKCQlidXR0b24uU2hvdygpCgoJCXdpbmRvdy5TaG93QWxsKCkgCgoJCUFwcGxp
Y2F0aW9uLlJ1bigpCgoJRW5kIFN1YgoKIEVuZCBNb2R1bGUKCg==
--=-9XB3OSJcKeSmwCmicUYQ
Content-Disposition: attachment; filename=fileselect-basic.vb
Content-Type: x-directory/normal; name=fileselect-basic.vb
Content-Transfer-Encoding: base64
aW1wb3J0cyBTeXN0ZW0KaW1wb3J0cyBHdGsKaW1wb3J0cyBHdGtTaGFycAoKIFB1YmxpYyBNb2R1
bGUgRmlsZVNlbAoKCURpbSBmaWxldyBhcyBGaWxlU2VsZWN0aW9uCgoJU3ViIEZpbGVPa1NlbEV2
ZW50ICggQnlWYWwgb2JqIGFzIG9iamVjdCwgQnlWYWwgYXJncyBhcyBFdmVudEFyZ3MgKQoKCQlD
b25zb2xlLldyaXRlTGluZSgiezB9XG4iLCBmaWxldy5GaWxlbmFtZSkKCglFbmQgU3ViCgoJU3Vi
IE9uRGVsZXRlRXZlbnQgKCBCeVZhbCBvYmogYXMgb2JqZWN0LCBCeVZhbCBhcmdzIGFzIERlbGV0
ZUV2ZW50QXJncyApCgoJCUFwcGxpY2F0aW9uLlF1aXQoKQoKCUVuZCBTdWIKCglTdWIgT25DYW5j
ZWxFdmVudCAoIEJ5VmFsIG9iaiBhcyBvYmplY3QsIEJ5VmFsIGFyZ3MgYXMgRXZlbnRBcmdzICkK
CgkJQXBwbGljYXRpb24uUXVpdCgpCgoJRW5kIFN1YgoKCVB1YmxpYyBTdWIgTWFpbiAoKQoKCQlB
cHBsaWNhdGlvbi5Jbml0KCkKCgkJZmlsZXcgPSBuZXcg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