rosshodges Posted November 28, 2002 Posted November 28, 2002 Sorry to bother you yet again. I have two questions. Firstly I have a button how do I make it close just the form? and secondly I would like my dropdown menu(combo box) to display infomation e.g Freeserve but I would like the data for Freeserve to be smtp.freeserve.net Regards, Ross Quote "Drink wet cement and get really stoned"
Leaders John Posted November 29, 2002 Leaders Posted November 29, 2002 For the first part of your question: Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Me.Close() End Sub I can't be much help with the second part though sorry :-\ Orbity Quote "These Patriot playoff wins are like Ray Charles songs, Nantucket sunsets, and hot fudge sundaes. Each one is better than the last." - Dan Shaughnessy
*Gurus* Derek Stone Posted November 29, 2002 *Gurus* Posted November 29, 2002 The Add and AddRange methods of the Items collection take an Object as a parameter, meaning you can create a class that holds whatever you want in it. Just make sure the class overrides ToString() or you'll get a blank item displayed in the ComboBox. Quote Posting Guidelines
EliCat Posted December 2, 2002 Posted December 2, 2002 Check out this thread as well about the combobox. The example posted there as attachment has helped me a lot to make a combobox that passes along several variables. http://www.xtremedotnettalk.com/showthread.php?s=&threadid=49447 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.