Category Archives: VB.NET 2 AND ASP.NET 2

How to get country list from windows OS

The code below comes from this link, http://msforums.ph/forums/p/53854/269887.aspx You can get it from the registry (if you’re not using windows 7) Private Sub GetCountryListFromRegistry(ByVal cbo As ComboBox)         Dim countryList As RegistryKey = Registry.LocalMachine.OpenSubKey(“Software\Microsoft\Windows\CurrentVersion\Telephony\Country List”)         If countryList IsNot Nothing … Continue reading

Posted in VB.NET 2 AND ASP.NET 2 | Leave a comment

How to move items up and down in listbox?

Moving items up and down in listbox. Here is my version of moving items up and down based on the references that I have collected and derive this code in vb.net. ‘moving up             If Me.lbRoles.SelectedIndex > 0 Then                 … Continue reading

Posted in VB.NET 2 AND ASP.NET 2 | Leave a comment

How to automatically generate labels and textboxes derive from database

Here is the problem: I have able to generate several labels and textboxes based on a table in the database during runtime. My problem is that I could not get these values from these textboxes whenever a user changes these … Continue reading

Posted in VB.NET 2 AND ASP.NET 2 | Leave a comment