Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/content/f/e/r/ferasferas1/html/scriptslibrary/libraries/joomla/database/database.php:2) in /home/content/f/e/r/ferasferas1/html/scriptslibrary/libraries/joomla/session/session.php on line 423

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/content/f/e/r/ferasferas1/html/scriptslibrary/libraries/joomla/database/database.php:2) in /home/content/f/e/r/ferasferas1/html/scriptslibrary/libraries/joomla/session/session.php on line 423

Warning: Cannot modify header information - headers already sent by (output started at /home/content/f/e/r/ferasferas1/html/scriptslibrary/libraries/joomla/database/database.php:2) in /home/content/f/e/r/ferasferas1/html/scriptslibrary/libraries/joomla/session/session.php on line 426
Visual Basic.NET - The Scripts Library Community Free programming tutorial and source code for beginners and professional http://www.scriptslibrary.net/visual-basic-net 2010-09-06T19:59:04Z Joomla! 1.5 - Open Source Content Management Get Local IP Address List Using VB.NET 2009-11-28T15:43:49Z 2009-11-28T15:43:49Z http://www.scriptslibrary.net/visual-basic-net/123-get-local-ip-address-list-using-vbnet Feras ferasc@hotmail.com Get local IP address list using VB.NET.<br /> Get local IP address list using VB.NET.<br /> Get Computer Name Using VB.NET 2009-11-27T16:47:14Z 2009-11-27T16:47:14Z http://www.scriptslibrary.net/visual-basic-net/122-get-computer-name-using-vbnet- Feras ferasc@hotmail.com Get a computer’s name by using the static method Dns.GetHostName in VB.NET<br /><br />Required namespace for this snippet:<br /> Get a computer’s name by using the static method Dns.GetHostName in VB.NET<br /><br />Required namespace for this snippet:<br /> Count Words in a Text String in VB.NET 2009-11-27T04:32:41Z 2009-11-27T04:32:41Z http://www.scriptslibrary.net/visual-basic-net/121-count-words-in-a-text-string-in-vbnet Feras ferasc@hotmail.com A simple function that count number of words in a given text string, assuming that it’s delimited by spaces:<br /> A simple function that count number of words in a given text string, assuming that it’s delimited by spaces:<br /> Socket Connect and Data Send in VB.NET 2009-07-24T23:49:13Z 2009-07-24T23:49:13Z http://www.scriptslibrary.net/visual-basic-net/118-socket-connect-and-data-send-in-vbnet Feras payment@lebmailer.com Function to connect to host machine, and send data via TCP Socket in VB.NET<br /> <br />First, add the following namespace<br /> Function to connect to host machine, and send data via TCP Socket in VB.NET<br /> <br />First, add the following namespace<br /> Play Audio Files Using VB.NET 2009-06-29T02:17:43Z 2009-06-29T02:17:43Z http://www.scriptslibrary.net/visual-basic-net/114-play-audio-files-using-vbnet Feras ferasc@hotmail.com Here is a simple example of how to play audio file in VB.NET.<br /><br /> It requires the System.Media Namespace:<br /> {CODE brush: vb;}Imports System.Media{/CODE}<br /><br /> And the code:<br /> {CODE brush: vb;}    Sub PlaySound(ByVal filepath As String)<br />        Dim soundplayer As New SoundPlayer<br />        soundplayer.SoundLocation = filepath<br />        soundplayer.Play()<br />    End Sub<br />{/CODE}<br /> <br /> Happy Coding. Here is a simple example of how to play audio file in VB.NET.<br /><br /> It requires the System.Media Namespace:<br /> {CODE brush: vb;}Imports System.Media{/CODE}<br /><br /> And the code:<br /> {CODE brush: vb;}    Sub PlaySound(ByVal filepath As String)<br />        Dim soundplayer As New SoundPlayer<br />        soundplayer.SoundLocation = filepath<br />        soundplayer.Play()<br />    End Sub<br />{/CODE}<br /> <br /> Happy Coding. Using OleDbCommand to Insert New Record in VB.NET 2009-06-28T23:10:36Z 2009-06-28T23:10:36Z http://www.scriptslibrary.net/visual-basic-net/113-using-oledbcommand-to-insert-new-record-in-vbnet Feras ferasc@hotmail.com Here is a simple code to insert a new record into a MS Access database using the OleDbCommand Object in VB.NET.<br /> Here is a simple code to insert a new record into a MS Access database using the OleDbCommand Object in VB.NET.<br /> Using DataReader in VB.NET 2009-06-27T01:39:11Z 2009-06-27T01:39:11Z http://www.scriptslibrary.net/visual-basic-net/112-using-datareader-in-vbnet Feras ferasc@hotmail.com <p>In this tutorial we will work with <strong>DataReader </strong>to retrieve data from a MS Access database.<br /> First of all, a DataReader is an ADO.NET object that provides read-only, forward-only data faster than a DataAdapter. It’s a good choice over the other objects for read-only purpose.<br />Also, it’s forward-only, means you cant go back to previous data which was accessed. The cursor in DataReader goes from top to button by using the Method Read.<br /> <br />To fill a DataReader with Data, we are going to use the OleDbCommand object and execute the result onto it.<br /> First, we need to create a MS Access Database, with the following table in it:<br /> <br /> <strong>Table Name: Position</strong><br /> <u>Fileds:</u><br /> ID, Number, Primary Key<br /> Position, Text(50)</p> <p>In this tutorial we will work with <strong>DataReader </strong>to retrieve data from a MS Access database.<br /> First of all, a DataReader is an ADO.NET object that provides read-only, forward-only data faster than a DataAdapter. It’s a good choice over the other objects for read-only purpose.<br />Also, it’s forward-only, means you cant go back to previous data which was accessed. The cursor in DataReader goes from top to button by using the Method Read.<br /> <br />To fill a DataReader with Data, we are going to use the OleDbCommand object and execute the result onto it.<br /> First, we need to create a MS Access Database, with the following table in it:<br /> <br /> <strong>Table Name: Position</strong><br /> <u>Fileds:</u><br /> ID, Number, Primary Key<br /> Position, Text(50)</p> Bind an ADO.NET DataTable to a TreeView in VB.NET 2009-06-25T23:21:27Z 2009-06-25T23:21:27Z http://www.scriptslibrary.net/visual-basic-net/110-bind-an-adonet-datatable-to-a-treeview-in-vbnet Feras ferasc@hotmail.com This tutorial demonstrates how to bind an ADO.NET DataTable to a TreeView in VB.NET and MS Access database.<br /> First of all, you need to create two tables:<br /> <strong>Positions</strong><br /><img src="images/stories/positiontable.gif" border="0" alt="positions table" title="positions table" width="430" height="183" align="middle" /><br /> This tutorial demonstrates how to bind an ADO.NET DataTable to a TreeView in VB.NET and MS Access database.<br /> First of all, you need to create two tables:<br /> <strong>Positions</strong><br /><img src="images/stories/positiontable.gif" border="0" alt="positions table" title="positions table" width="430" height="183" align="middle" /><br /> Bind an ADO.NET DataTable to a ListBox in VB.NET 2009-06-25T19:44:15Z 2009-06-25T19:44:15Z http://www.scriptslibrary.net/visual-basic-net/109-bind-an-adonet-datatable-to-a-listbox-in-vbnet Feras ferasc@hotmail.com This example shows how to bind an ADO.NET DataTable to a ListBox in VB.NET and MS Access Database.<br /> First, create a MS Access Database, and name it as db. Add an Employees table to this database:<br /> <strong>Table name: Employees</strong><br /> <u>Fields:</u><br /> ID (number, primary key)<br /> Name (text)<br /> <br /> You can modify this Database to fit in your requirements.<br /><br /> Create a new windows project in Visual Studio.NET, and then add a form to this project.<br /> Add a ListBox to the form, name is as lstEmployees.<br /><br /><img src="images/stories/bindlistbox.gif" border="0" alt="bind listbox vb.net" title="bind listbox vb.net" width="338" height="333" align="middle" /><br /> This example shows how to bind an ADO.NET DataTable to a ListBox in VB.NET and MS Access Database.<br /> First, create a MS Access Database, and name it as db. Add an Employees table to this database:<br /> <strong>Table name: Employees</strong><br /> <u>Fields:</u><br /> ID (number, primary key)<br /> Name (text)<br /> <br /> You can modify this Database to fit in your requirements.<br /><br /> Create a new windows project in Visual Studio.NET, and then add a form to this project.<br /> Add a ListBox to the form, name is as lstEmployees.<br /><br /><img src="images/stories/bindlistbox.gif" border="0" alt="bind listbox vb.net" title="bind listbox vb.net" width="338" height="333" align="middle" /><br /> Get User Domain Name in VB.NET 2009-06-24T03:38:09Z 2009-06-24T03:38:09Z http://www.scriptslibrary.net/visual-basic-net/103-get-user-domain-name-in-vbnet Feras ferasc@hotmail.com <br />Get user domain name in vb.NET.<br /><br />{CODE brush: vb;}<br />Function GetUserDomainName() As String <br />     Return System.Environment.UserDomainName <br />End Function <br />{/CODE}<br />Done! <br />Get user domain name in vb.NET.<br /><br />{CODE brush: vb;}<br />Function GetUserDomainName() As String <br />     Return System.Environment.UserDomainName <br />End Function <br />{/CODE}<br />Done!