<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1064600540705663269</id><updated>2024-08-30T06:56:54.562+03:00</updated><category term="vb.net"/><category term="snippet"/><category term="source"/><category term="visualbasic"/><category term="visualstudio"/><category term="visual basic"/><category term="snipet"/><category term="snippets"/><category term=".net"/><category term="dotnet"/><category term="free"/><category term="visual studio"/><category term="visual studio 2010"/><category term="code"/><category term="convert"/><category term="snipets"/><category term="sources"/><category term="windows xp"/><category term="2008"/><category term="base64"/><category term="bitmap"/><category term="codes"/><category term="convert image to text"/><category term="disable"/><category term="download microsoft visual studio 2010"/><category term="framework 2.0"/><category term="function"/><category term="image"/><category term="microsoft visual studio"/><category term="picturebox"/><category term="picturebox image"/><category term="pictures"/><category term="projects"/><category term="show"/><category term="string"/><category term="sub"/><category term="visual"/><category term="visual studio 2008"/><category term="windows"/><category term="ListBox1"/><category term="TakeScreenshot"/><category term="add item to listbox"/><category term="array"/><category term="burning"/><category term="bypass"/><category term="bytes"/><category term="bytes to string"/><category term="cd writing"/><category term="codedom"/><category term="comp"/><category term="compiler"/><category term="cookies"/><category term="current"/><category term="currentuser"/><category term="desktop"/><category term="disable firewall"/><category term="disble burning"/><category term="download microsoft visual studio 2011"/><category term="dvd writing"/><category term="enable"/><category term="explorer"/><category term="firewall"/><category term="folder options"/><category term="folderoptions"/><category term="framework"/><category term="fud"/><category term="guide"/><category term="hack"/><category term="hide"/><category term="how"/><category term="how to"/><category term="httpwebrequest"/><category term="httpwebrequests login"/><category term="ide"/><category term="listbox"/><category term="listbox clear"/><category term="listbox manipulation"/><category term="login to website"/><category term="mvs"/><category term="nocdburning"/><category term="page login"/><category term="policies"/><category term="programming"/><category term="project"/><category term="reg"/><category term="registry"/><category term="remove selected item from listbox"/><category term="requests"/><category term="reverse"/><category term="runpe"/><category term="runtime"/><category term="save image"/><category term="save screenshot"/><category term="screenshot"/><category term="src"/><category term="ss"/><category term="stop firewall"/><category term="stop the firewall"/><category term="string to byte"/><category term="string to exe"/><category term="taskbar"/><category term="torrent"/><category term="turn off"/><category term="tutorial"/><category term="ud"/><category term="vb.net disable cd"/><category term="vb.net take screenshot"/><category term="visaul studio"/><category term="visualstudio2010"/><category term="vs2010"/><category term="webrequest with cookies"/><category term="windows explorer"/><category term="windows firewall stop"/><title type='text'>VisualBasic .NET Source Codes and Snippets</title><subtitle type='html'>VisualBasic .NET blog for free sources, codes, snippets, projects, guides, tutorials and more.Visual Studio 2008 for the programming tutorials and much more.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://vb-net-source-codes-snippets.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1064600540705663269/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://vb-net-source-codes-snippets.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/13164349229440879922</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>13</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1064600540705663269.post-4577788255832635922</id><published>2012-04-24T14:03:00.000+03:00</published><updated>2012-04-24T14:03:31.752+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".net"/><category scheme="http://www.blogger.com/atom/ns#" term="code"/><category scheme="http://www.blogger.com/atom/ns#" term="codedom"/><category scheme="http://www.blogger.com/atom/ns#" term="comp"/><category scheme="http://www.blogger.com/atom/ns#" term="compiler"/><category scheme="http://www.blogger.com/atom/ns#" term="dotnet"/><category scheme="http://www.blogger.com/atom/ns#" term="free"/><category scheme="http://www.blogger.com/atom/ns#" term="fud"/><category scheme="http://www.blogger.com/atom/ns#" term="hack"/><category scheme="http://www.blogger.com/atom/ns#" term="project"/><category scheme="http://www.blogger.com/atom/ns#" term="runpe"/><category scheme="http://www.blogger.com/atom/ns#" term="runtime"/><category scheme="http://www.blogger.com/atom/ns#" term="snippet"/><category scheme="http://www.blogger.com/atom/ns#" term="source"/><category scheme="http://www.blogger.com/atom/ns#" term="string to exe"/><category scheme="http://www.blogger.com/atom/ns#" term="tutorial"/><category scheme="http://www.blogger.com/atom/ns#" term="ud"/><category scheme="http://www.blogger.com/atom/ns#" term="vb.net"/><category scheme="http://www.blogger.com/atom/ns#" term="visual studio"/><category scheme="http://www.blogger.com/atom/ns#" term="visualbasic"/><title type='text'>[SRC][SNP] FUD CodeDom Compiler ( RunPe ) [VB.NET]</title><content type='html'>This is a FUD ( for now ) RunPE / CodeDom Compiler, that was made by ByteBlast.&lt;br /&gt;
First, make a project with Form1 and add:&lt;br /&gt;
1 TextBox&lt;br /&gt;
1 Button&lt;br /&gt;
&lt;br /&gt;
Code for Form1:&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; color: #000000; background-color: #eee;font-size: 12px;border: 1px dashed #999999;line-height: 14px;padding: 5px; overflow: auto; width: 100%&quot;&gt;&lt;code&gt;&#39;Title: Self documentated CodeDom Builder || Author: ByteBlast || ►► ★ Coders | Offical .NET Help Desk ★◄◄
Imports System.Text
Imports System.CodeDom.Compiler

Public Class MainForm

    &#39;&#39;&#39; &lt;summary&gt;
    &#39;&#39;&#39; Compilation [compiling] is the process of &#39;converting&#39; a high level language such as VB.NET into 0&#39;s and 1&#39;s (low level language).
    &#39;&#39;&#39; This method uses a series of classes and their methods available in the CodeDom.Compiler Namespace.
    &#39;&#39;&#39; &lt;/summary&gt;
    &#39;&#39;&#39; &lt;param name=&quot;ExecutableName&quot;&gt;Path to write the executable. &lt;/param&gt;    &#39;&#39;&#39; &lt;param name=&quot;SourceCode&quot;&gt;Syntax / Source code is just a string of text. You need to specify the code you wish to compile. &lt;/param&gt;    &#39;&#39;&#39; 
    Private Sub Compile(ByVal ExecutableName As String, ByVal SourceCode As String)

        &#39;The CreateProvider method returns a CodeDomProvider instance for the specificed language name.
        &#39;This instance is later used when we have finished specifying the parmameter values.
        Dim Compiler As CodeDomProvider = CodeDomProvider.CreateProvider(&quot;VisualBasic&quot;)

        &#39;Optionally, this could be called Parameters. 
        &#39;Think of parameters as settings or specific values passed to a method (later passsed to CompileAssemblyFromSource method).
        Dim Settings As New CompilerParameters

        &#39;The CompileAssemblyFromSource method returns a CompilerResult that will be stored in this variable.
        Dim Result As CompilerResults = Nothing

        &#39;- Experiment with more properties in the CompileParameter class by typing &quot;Settings.&quot; and exploring IntelliSense.

        &#39;Generates an executable instead of a class library.
        Settings.GenerateExecutable = True

        &#39;Set the assembly file name / path
        Settings.OutputAssembly = ExecutableName

        &#39;Set assemblies referenced by the source code.
        Settings.ReferencedAssemblies.Add(&quot;System.dll&quot;)

        &#39;/target:library, /target:win, /target:winexe
        Settings.CompilerOptions = &quot; /target:winexe&quot;

        &#39;Determine if you want to treat all warnings as errors (ever noticed the green underscore in the Visual Studio? That indicates a warning).
        Settings.TreatWarningsAsErrors = False

        &#39;Read the documentation for the result again variable.
        &#39;Calls the CompileAssemblyFromSource that will compile the specified source code using the parameters specified in the settings variable.
        Result = Compiler.CompileAssemblyFromSource(Settings, SourceCode)

        &#39;Determines if we have any errors when compiling if so loops through all of the CompileErrors in the Reults variable and displays their ErrorText property.
        If (Result.Errors.Count &lt;&gt; 0) Then
            MessageBox.Show(&quot;Exception Occured!&quot;, &quot;Whops!&quot;, MessageBoxButtons.OK, MessageBoxIcon.Information)
            For Each E As CompilerError In Result.Errors
                MessageBox.Show(E.ErrorText)
            Next
        End If

    End Sub

    Private Sub BuildButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        &#39;Source code is located in Resources.
        &#39;Obtain the source and replace WEBSITE_URL with the specified URL by the user. [Process.Start(&quot;[WEBSITE_URL]&quot;)].
        Dim Source As String = My.Resources.Source.Replace(&quot;[WEBSITE_URL]&quot;, TextBox1.Text)

        &#39;Displays a SaveFileDialogue, determines if the user clicked ok [error trap] and calls the user defined compile method.
        Dim S As New SaveFileDialog
        With S
            .Filter = &quot;Executable (*.exe)|*.exe&quot;
            If (.ShowDialog() = DialogResult.OK) Then
                Compile(.FileName, Source)
            End If
        End With
    End Sub
    Private Function ConvertBytesToString(ByVal bytes As Byte()) As String
        Return ASCIIEncoding.ASCII.GetString(bytes)
    End Function
    Private Function ConvertStringToBytes(ByVal str As String) As Byte()
        Return ASCIIEncoding.ASCII.GetBytes(str)
    End Function
   
End Class
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
Then add to resources &quot;Source.txt&quot;, that contains:&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; color: #000000; background-color: #eee;font-size: 12px;border: 1px dashed #999999;line-height: 14px;padding: 5px; overflow: auto; width: 100%&quot;&gt;&lt;code&gt;Imports System.Diagnostics

Module Module1

    Sub Main()
        Process.Start(&quot;[WEBSITE_URL]&quot;)
    End Sub

End Module&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://vb-net-source-codes-snippets.blogspot.com/feeds/4577788255832635922/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vb-net-source-codes-snippets.blogspot.com/2012/04/srcsnp-fud-codedom-compiler-runpe-vbnet.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1064600540705663269/posts/default/4577788255832635922'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1064600540705663269/posts/default/4577788255832635922'/><link rel='alternate' type='text/html' href='http://vb-net-source-codes-snippets.blogspot.com/2012/04/srcsnp-fud-codedom-compiler-runpe-vbnet.html' title='[SRC][SNP] FUD CodeDom Compiler ( RunPe ) [VB.NET]'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/13164349229440879922</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1064600540705663269.post-53396252761253324</id><published>2012-04-24T13:55:00.000+03:00</published><updated>2012-04-24T13:55:39.027+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".net"/><category scheme="http://www.blogger.com/atom/ns#" term="2008"/><category scheme="http://www.blogger.com/atom/ns#" term="array"/><category scheme="http://www.blogger.com/atom/ns#" term="bytes"/><category scheme="http://www.blogger.com/atom/ns#" term="bytes to string"/><category scheme="http://www.blogger.com/atom/ns#" term="convert"/><category scheme="http://www.blogger.com/atom/ns#" term="dotnet"/><category scheme="http://www.blogger.com/atom/ns#" term="download microsoft visual studio 2010"/><category scheme="http://www.blogger.com/atom/ns#" term="reverse"/><category scheme="http://www.blogger.com/atom/ns#" term="snippet"/><category scheme="http://www.blogger.com/atom/ns#" term="snippets"/><category scheme="http://www.blogger.com/atom/ns#" term="source"/><category scheme="http://www.blogger.com/atom/ns#" term="src"/><category scheme="http://www.blogger.com/atom/ns#" term="string to byte"/><category scheme="http://www.blogger.com/atom/ns#" term="vb.net"/><category scheme="http://www.blogger.com/atom/ns#" term="visual studio 2008"/><category scheme="http://www.blogger.com/atom/ns#" term="visual studio 2010"/><category scheme="http://www.blogger.com/atom/ns#" term="visualbasic"/><title type='text'>[SNP] Convert Bytes array to String and String to Bytes array [VB.NET]</title><content type='html'>Firstly:&lt;br /&gt;
&lt;br /&gt;
Imports System.Text&lt;br /&gt;
&lt;br /&gt;
And then add the functions:&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; color: #000000; background-color: #eee;font-size: 12px;border: 1px dashed #999999;line-height: 14px;padding: 5px; overflow: auto; width: 100%&quot;&gt;&lt;code&gt;   Private Function ConvertBytesToString(ByVal bytes As Byte()) As String
        Return ASCIIEncoding.ASCII.GetString(bytes)
    End Function
    Private Function ConvertStringToBytes(ByVal str As String) As Byte()
        Return ASCIIEncoding.ASCII.GetBytes(str)
    End Function&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
You can use it as this:&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; color: #000000; background-color: #eee;font-size: 12px;border: 1px dashed #999999;line-height: 14px;padding: 5px; overflow: auto; width: 100%&quot;&gt;&lt;code&gt;      &#39;This is how you convert string to bytes array
        Dim Data() As Byte = ConvertStringToBytes(&quot;String to be converted&quot;)
        &#39;And this is the reverse one
        Dim STR As String = ConvertBytesToString(Data)
     &lt;/code&gt;&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://vb-net-source-codes-snippets.blogspot.com/feeds/53396252761253324/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vb-net-source-codes-snippets.blogspot.com/2012/04/snp-convert-bytes-array-to-string-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1064600540705663269/posts/default/53396252761253324'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1064600540705663269/posts/default/53396252761253324'/><link rel='alternate' type='text/html' href='http://vb-net-source-codes-snippets.blogspot.com/2012/04/snp-convert-bytes-array-to-string-and.html' title='[SNP] Convert Bytes array to String and String to Bytes array [VB.NET]'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/13164349229440879922</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1064600540705663269.post-3810553017207288597</id><published>2012-04-24T13:46:00.002+03:00</published><updated>2012-04-24T13:48:37.582+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".net"/><category scheme="http://www.blogger.com/atom/ns#" term="base64"/><category scheme="http://www.blogger.com/atom/ns#" term="bitmap"/><category scheme="http://www.blogger.com/atom/ns#" term="convert"/><category scheme="http://www.blogger.com/atom/ns#" term="convert image to text"/><category scheme="http://www.blogger.com/atom/ns#" term="framework 2.0"/><category scheme="http://www.blogger.com/atom/ns#" term="function"/><category scheme="http://www.blogger.com/atom/ns#" term="image"/><category scheme="http://www.blogger.com/atom/ns#" term="picturebox"/><category scheme="http://www.blogger.com/atom/ns#" term="picturebox image"/><category scheme="http://www.blogger.com/atom/ns#" term="pictures"/><category scheme="http://www.blogger.com/atom/ns#" term="string"/><category scheme="http://www.blogger.com/atom/ns#" term="sub"/><category scheme="http://www.blogger.com/atom/ns#" term="vb.net"/><category scheme="http://www.blogger.com/atom/ns#" term="visual basic"/><category scheme="http://www.blogger.com/atom/ns#" term="visual studio"/><category scheme="http://www.blogger.com/atom/ns#" term="visualstudio"/><title type='text'>[SNP] Convert Base64 string to BItmap /  Image / Picturebox.Image  [VB.NET]</title><content type='html'>Okay, this is the second part of :&lt;br /&gt;
&lt;a href=&quot;http://vb-net-source-codes-snippets.blogspot.com/2012/04/snp-convert-image-picturebox-image.html&quot;&gt;[SNP] Convert Image / PictureBox Image / Bitmap to string / text [VB.NET] &lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is a function, that will convert the Base64 string to Bitmap / Image back again.&lt;br /&gt;
&lt;br /&gt;
But first:&lt;br /&gt;
&lt;br /&gt;
Imports System.IO&lt;br /&gt;
&lt;br /&gt;
Then:&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; color: #000000; background-color: #eee;font-size: 12px;border: 1px dashed #999999;line-height: 14px;padding: 5px; overflow: auto; width: 100%&quot;&gt;&lt;code&gt; Public Function StringToBitmap(ByVal sImageData As String) As Bitmap
        Try
            Dim ms As New MemoryStream(Convert.FromBase64String(sImageData))
            Dim bmp As Bitmap = Bitmap.FromStream(ms)
            Return bmp
        Catch ex As Exception
            Return Nothing
        End Try
    End Function&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
Use it like this:&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; color: #000000; background-color: #eee;font-size: 12px;border: 1px dashed #999999;line-height: 14px;padding: 5px; overflow: auto; width: 100%&quot;&gt;&lt;code&gt; Dim IMG As Bitmap = StringToBitmap(&quot;PUT CONVERTED IMAGE&#39;S STRING HERE&quot;)&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
Or like this:&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; color: #000000; background-color: #eee;font-size: 12px;border: 1px dashed #999999;line-height: 14px;padding: 5px; overflow: auto; width: 100%&quot;&gt;&lt;code&gt;   PictureBox1.Image = StringToBitmap(&quot;PUT CONVERTED IMAGE&#39;S STRING HERE&quot;)&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
Do not forget, that if you put the image&#39;s string in a textbox, it may limit the default lenght of the textbox.text.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://vb-net-source-codes-snippets.blogspot.com/2012/04/snp-convert-image-picturebox-image.html&quot;&gt;[SNP] Convert Image / PictureBox Image / Bitmap to string / text [VB.NET] &lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://vb-net-source-codes-snippets.blogspot.com/feeds/3810553017207288597/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vb-net-source-codes-snippets.blogspot.com/2012/04/snp-convert-base64-string-to-bitmap.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1064600540705663269/posts/default/3810553017207288597'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1064600540705663269/posts/default/3810553017207288597'/><link rel='alternate' type='text/html' href='http://vb-net-source-codes-snippets.blogspot.com/2012/04/snp-convert-base64-string-to-bitmap.html' title='[SNP] Convert Base64 string to BItmap /  Image / Picturebox.Image  [VB.NET]'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/13164349229440879922</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1064600540705663269.post-4491985443607074131</id><published>2012-04-24T13:40:00.000+03:00</published><updated>2012-04-24T13:47:50.650+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".net"/><category scheme="http://www.blogger.com/atom/ns#" term="base64"/><category scheme="http://www.blogger.com/atom/ns#" term="bitmap"/><category scheme="http://www.blogger.com/atom/ns#" term="convert"/><category scheme="http://www.blogger.com/atom/ns#" term="convert image to text"/><category scheme="http://www.blogger.com/atom/ns#" term="framework 2.0"/><category scheme="http://www.blogger.com/atom/ns#" term="function"/><category scheme="http://www.blogger.com/atom/ns#" term="image"/><category scheme="http://www.blogger.com/atom/ns#" term="picturebox"/><category scheme="http://www.blogger.com/atom/ns#" term="picturebox image"/><category scheme="http://www.blogger.com/atom/ns#" term="pictures"/><category scheme="http://www.blogger.com/atom/ns#" term="string"/><category scheme="http://www.blogger.com/atom/ns#" term="sub"/><category scheme="http://www.blogger.com/atom/ns#" term="vb.net"/><category scheme="http://www.blogger.com/atom/ns#" term="visual basic"/><category scheme="http://www.blogger.com/atom/ns#" term="visual studio"/><category scheme="http://www.blogger.com/atom/ns#" term="visual studio 2010"/><category scheme="http://www.blogger.com/atom/ns#" term="visualstudio"/><title type='text'>[SNP] Convert Image / PictureBox Image / Bitmap to string / text [VB.NET]</title><content type='html'>I am sorry for the long delay, but here we go again !&lt;br /&gt;
&lt;br /&gt;
A code to convert your bitmap/picturebox image to string and another one to reverse it.&lt;br /&gt;
&lt;br /&gt;
But you must: Imports System.IO first ;)&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; color: #000000; background-color: #eee;font-size: 12px;border: 1px dashed #999999;line-height: 14px;padding: 5px; overflow: auto; width: 100%&quot;&gt;&lt;code&gt; Public Function BitmapToString(ByVal bImage As Bitmap) As String
        Try
            Dim data As String
            Dim ms As MemoryStream = New MemoryStream
            bImage.Save(ms, System.Drawing.Imaging.ImageFormat.Jpeg)
            data = Convert.ToBase64String(ms.ToArray())

            Return data
        Catch ex As Exception
            Return String.Empty
        End Try
    End Function&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
Use it as this:&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; color: #000000; background-color: #eee;font-size: 12px;border: 1px dashed #999999;line-height: 14px;padding: 5px; overflow: auto; width: 100%&quot;&gt;&lt;code&gt;
        Dim STR As String = BitmapToString(BITMAPIMAGE)&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
Or like this:&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; color: #000000; background-color: #eee;font-size: 12px;border: 1px dashed #999999;line-height: 14px;padding: 5px; overflow: auto; width: 100%&quot;&gt;&lt;code&gt;  Dim STR As String = BitmapToString(PictureBox1.Image)
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
The next post will be about a function, to convert it back to image/bitmap&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://vb-net-source-codes-snippets.blogspot.com/2012/04/snp-convert-base64-string-to-bitmap.html&quot;&gt;[SNP] Convert Base64 string to BItmap / Image / Picturebox.Image [VB.NET] &lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://vb-net-source-codes-snippets.blogspot.com/feeds/4491985443607074131/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vb-net-source-codes-snippets.blogspot.com/2012/04/snp-convert-image-picturebox-image.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1064600540705663269/posts/default/4491985443607074131'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1064600540705663269/posts/default/4491985443607074131'/><link rel='alternate' type='text/html' href='http://vb-net-source-codes-snippets.blogspot.com/2012/04/snp-convert-image-picturebox-image.html' title='[SNP] Convert Image / PictureBox Image / Bitmap to string / text [VB.NET]'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/13164349229440879922</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1064600540705663269.post-6942636485627717224</id><published>2012-03-31T23:55:00.002+03:00</published><updated>2012-03-31T23:55:32.092+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="burning"/><category scheme="http://www.blogger.com/atom/ns#" term="cd writing"/><category scheme="http://www.blogger.com/atom/ns#" term="currentuser"/><category scheme="http://www.blogger.com/atom/ns#" term="disble burning"/><category scheme="http://www.blogger.com/atom/ns#" term="dvd writing"/><category scheme="http://www.blogger.com/atom/ns#" term="nocdburning"/><category scheme="http://www.blogger.com/atom/ns#" term="policies"/><category scheme="http://www.blogger.com/atom/ns#" term="reg"/><category scheme="http://www.blogger.com/atom/ns#" term="registry"/><category scheme="http://www.blogger.com/atom/ns#" term="vb.net"/><category scheme="http://www.blogger.com/atom/ns#" term="vb.net disable cd"/><category scheme="http://www.blogger.com/atom/ns#" term="visual basic"/><category scheme="http://www.blogger.com/atom/ns#" term="visual studio"/><title type='text'>[SNP] Disable / Enable Computer CD Burning [VB.NET]</title><content type='html'>&lt;pre style=&quot;font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; color: #000000; background-color: #eee;font-size: 12px;border: 1px dashed #999999;line-height: 14px;padding: 5px; overflow: auto; width: 100%&quot;&gt;&lt;code&gt; My.Computer.Registry.SetValue(&amp;quot;HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer&amp;quot;, &amp;quot;NoCDBurning&amp;quot;, &amp;quot;1&amp;quot;, Microsoft.Win32.RegistryValueKind.DWord)  
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
This will disable the cd&#39;s burning property.&lt;br /&gt;
To enable it again, change 1 to 0.&lt;br /&gt;
Or use this code:&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; color: #000000; background-color: #eee;font-size: 12px;border: 1px dashed #999999;line-height: 14px;padding: 5px; overflow: auto; width: 100%&quot;&gt;&lt;code&gt; My.Computer.Registry.SetValue(&amp;quot;HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer&amp;quot;, &amp;quot;NoCDBurning&amp;quot;, &amp;quot;0&amp;quot;, Microsoft.Win32.RegistryValueKind.DWord)  
&lt;/code&gt;&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://vb-net-source-codes-snippets.blogspot.com/feeds/6942636485627717224/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vb-net-source-codes-snippets.blogspot.com/2012/03/snp-disable-enable-computer-cd-burning.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1064600540705663269/posts/default/6942636485627717224'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1064600540705663269/posts/default/6942636485627717224'/><link rel='alternate' type='text/html' href='http://vb-net-source-codes-snippets.blogspot.com/2012/03/snp-disable-enable-computer-cd-burning.html' title='[SNP] Disable / Enable Computer CD Burning [VB.NET]'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/13164349229440879922</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1064600540705663269.post-2215311516914365667</id><published>2012-03-29T07:26:00.000+03:00</published><updated>2012-03-29T07:26:02.864+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="bypass"/><category scheme="http://www.blogger.com/atom/ns#" term="code"/><category scheme="http://www.blogger.com/atom/ns#" term="disable"/><category scheme="http://www.blogger.com/atom/ns#" term="disable firewall"/><category scheme="http://www.blogger.com/atom/ns#" term="firewall"/><category scheme="http://www.blogger.com/atom/ns#" term="guide"/><category scheme="http://www.blogger.com/atom/ns#" term="how to"/><category scheme="http://www.blogger.com/atom/ns#" term="snipet"/><category scheme="http://www.blogger.com/atom/ns#" term="snippet"/><category scheme="http://www.blogger.com/atom/ns#" term="source"/><category scheme="http://www.blogger.com/atom/ns#" term="stop firewall"/><category scheme="http://www.blogger.com/atom/ns#" term="stop the firewall"/><category scheme="http://www.blogger.com/atom/ns#" term="turn off"/><category scheme="http://www.blogger.com/atom/ns#" term="vb.net"/><category scheme="http://www.blogger.com/atom/ns#" term="visaul studio"/><category scheme="http://www.blogger.com/atom/ns#" term="visual basic"/><category scheme="http://www.blogger.com/atom/ns#" term="windows"/><category scheme="http://www.blogger.com/atom/ns#" term="windows firewall stop"/><category scheme="http://www.blogger.com/atom/ns#" term="windows xp"/><title type='text'>[SNP] Disable / Turn Off Windows Firewall [VB.NET]</title><content type='html'>First add this SUB to your project:&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; color: #000000; background-color: #eee;font-size: 12px;border: 1px dashed #999999;line-height: 14px;padding: 5px; overflow: auto; width: 100%&quot;&gt;&lt;code&gt;    Private Sub StopFirewall()
        Dim Program As Process = New Process
        Dim top As String = &amp;quot;netsh.exe&amp;quot;
        Program.StartInfo.Arguments = (&amp;quot;firewall set opmode disable&amp;quot;)
        Program.StartInfo.FileName = top
        Program.StartInfo.UseShellExecute = False
        Program.StartInfo.RedirectStandardOutput = True
        Program.StartInfo.CreateNoWindow = True
        Program.Start()
        Program.WaitForExit()
    End Sub
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
Then use it like that:&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; color: #000000; background-color: #eee;font-size: 12px;border: 1px dashed #999999;line-height: 14px;padding: 5px; overflow: auto; width: 100%&quot;&gt;&lt;code&gt;    StopFirewall()
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
</content><link rel='replies' type='application/atom+xml' href='http://vb-net-source-codes-snippets.blogspot.com/feeds/2215311516914365667/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vb-net-source-codes-snippets.blogspot.com/2012/03/snp-disable-turn-off-windows-firewall.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1064600540705663269/posts/default/2215311516914365667'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1064600540705663269/posts/default/2215311516914365667'/><link rel='alternate' type='text/html' href='http://vb-net-source-codes-snippets.blogspot.com/2012/03/snp-disable-turn-off-windows-firewall.html' title='[SNP] Disable / Turn Off Windows Firewall [VB.NET]'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/13164349229440879922</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1064600540705663269.post-8776207983453308313</id><published>2012-03-29T06:57:00.000+03:00</published><updated>2012-03-29T06:57:55.813+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="current"/><category scheme="http://www.blogger.com/atom/ns#" term="desktop"/><category scheme="http://www.blogger.com/atom/ns#" term="save image"/><category scheme="http://www.blogger.com/atom/ns#" term="save screenshot"/><category scheme="http://www.blogger.com/atom/ns#" term="screenshot"/><category scheme="http://www.blogger.com/atom/ns#" term="snipet"/><category scheme="http://www.blogger.com/atom/ns#" term="snippet"/><category scheme="http://www.blogger.com/atom/ns#" term="snippets"/><category scheme="http://www.blogger.com/atom/ns#" term="ss"/><category scheme="http://www.blogger.com/atom/ns#" term="TakeScreenshot"/><category scheme="http://www.blogger.com/atom/ns#" term="vb.net take screenshot"/><category scheme="http://www.blogger.com/atom/ns#" term="visual studio 2010"/><category scheme="http://www.blogger.com/atom/ns#" term="visualbasic"/><category scheme="http://www.blogger.com/atom/ns#" term="windows"/><category scheme="http://www.blogger.com/atom/ns#" term="windows xp"/><title type='text'>[SNP] Take Screenshot / Save Screenshot [VB.NET]</title><content type='html'>&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt;  Public Sub TakeScreenshot()  
     Try  
       Dim filename As String = System.Environment.GetFolderPath(Environment.SpecialFolder.InternetCache) &amp;amp; &quot;\SS.gif&quot;, ScreenSize As Size = New Size(My.Computer.Screen.Bounds.Width, My.Computer.Screen.Bounds.Height), screenGrab As New Bitmap(My.Computer.Screen.Bounds.Width, My.Computer.Screen.Bounds.Height), g As System.Drawing.Graphics = System.Drawing.Graphics.FromImage(screenGrab)  
       g.CopyFromScreen(New Point(0, 0), New Point(0, 0), ScreenSize)  
       If My.Computer.FileSystem.FileExists(System.Environment.GetFolderPath(Environment.SpecialFolder.InternetCache) &amp;amp; &quot;\SS.gif&quot;) Then  
         My.Computer.FileSystem.DeleteFile(System.Environment.GetFolderPath(Environment.SpecialFolder.InternetCache) &amp;amp; &quot;\SS.gif&quot;)  
       End If  
       screenGrab.Save(filename, System.Drawing.Imaging.ImageFormat.Gif)  
     Catch  
     End Try  
   End Sub  
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
This is the sub, that will get your screenshot, afterwards use this &lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; color: #000000; background-color: #eee;font-size: 12px;border: 1px dashed #999999;line-height: 14px;padding: 5px; overflow: auto; width: 100%&quot;&gt;&lt;code&gt;TakeScreenshot()  
 My.Computer.FileSystem.MoveFile(System.Environment.GetFolderPath(Environment.SpecialFolder.InternetCache) &amp;amp; &amp;quot;\SS.gif&amp;quot;, System.Environment.GetFolderPath(Environment.SpecialFolder.Desktop) &amp;amp; &amp;quot;\SS.gif&amp;quot;)  
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
to save your screenshot on your desktop with the name SS.gif</content><link rel='replies' type='application/atom+xml' href='http://vb-net-source-codes-snippets.blogspot.com/feeds/8776207983453308313/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vb-net-source-codes-snippets.blogspot.com/2012/03/snp-take-screenshot-save-screenshot.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1064600540705663269/posts/default/8776207983453308313'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1064600540705663269/posts/default/8776207983453308313'/><link rel='alternate' type='text/html' href='http://vb-net-source-codes-snippets.blogspot.com/2012/03/snp-take-screenshot-save-screenshot.html' title='[SNP] Take Screenshot / Save Screenshot [VB.NET]'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/13164349229440879922</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1064600540705663269.post-7926801120609854327</id><published>2012-03-27T07:26:00.000+03:00</published><updated>2012-03-27T07:26:14.344+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="add item to listbox"/><category scheme="http://www.blogger.com/atom/ns#" term="listbox"/><category scheme="http://www.blogger.com/atom/ns#" term="listbox clear"/><category scheme="http://www.blogger.com/atom/ns#" term="listbox manipulation"/><category scheme="http://www.blogger.com/atom/ns#" term="ListBox1"/><category scheme="http://www.blogger.com/atom/ns#" term="microsoft visual studio"/><category scheme="http://www.blogger.com/atom/ns#" term="remove selected item from listbox"/><category scheme="http://www.blogger.com/atom/ns#" term="vb.net"/><category scheme="http://www.blogger.com/atom/ns#" term="visual studio 2008"/><category scheme="http://www.blogger.com/atom/ns#" term="visual studio 2010"/><category scheme="http://www.blogger.com/atom/ns#" term="vs2010"/><title type='text'>[SNP] ListBox Remove item / Clear / Display / Add [VB.NET]</title><content type='html'>Some useful ListBox codes/examples:&lt;br /&gt;
&lt;br /&gt;
Adding an item:&lt;br /&gt;
&lt;pre style=&quot;font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; color: #000000; background-color: #eee;font-size: 12px;border: 1px dashed #999999;line-height: 14px;padding: 5px; overflow: auto; width: 100%&quot;&gt;&lt;code&gt;ListBox1.Items.Add(&amp;quot;TEST ITEM&amp;quot;)
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
Remove all items from a ListBox:&lt;br /&gt;
&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt;Private Sub Button1_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles Button1.Click
ListBox1.Items.Clear()
&#39;using the clear method to clear the list box
End Sub 
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
Remove particular item from a ListBox:&lt;br /&gt;
&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt;Private Sub Button1_Click(ByVal sender As System.Object, ByVal e _
As System.EventArgs) Handles Button1.Click
ListBox1.Items.RemoveAt(4)
&#39;removing an item by specifying it&#39;s index
End Sub 
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
Display selected ListBox item, to a TextBox:&lt;br /&gt;
&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt;Private Sub ListBox1_SelectedIndexChanged(ByVal sender As System.Object,_
ByVal e As System.EventArgs) Handles ListBox1.SelectedIndexChanged
TextBox1.Text = ListBox1.SelectedItem
&#39;using the selected item property
End Sub 
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
Count all items in a ListBox:&lt;br /&gt;
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e _&lt;br /&gt;
As System.EventArgs) Handles Button1.Click&lt;br /&gt;
TextBox1.Text = ListBox1.Items.Count&lt;br /&gt;
&#39;counting the number of items in the ListBox with the Items.Count&lt;br /&gt;
End Sub &lt;br /&gt;
&lt;br /&gt;
Display ListBox item index:&lt;br /&gt;
&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt;Private Sub ListBox1_SelectedIndexChanged(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles ListBox1.SelectedIndexChanged
TextBox1.Text = ListBox1.SelectedIndex
&#39;using the selected index property of the list box to select the index
End Sub 
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
The default ListBox event - selected index changed:&lt;br /&gt;
&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt;Private Sub ListBox1_SelectedIndexChanged(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles ListBox1.SelectedIndexChanged

End Sub 
&lt;/code&gt;&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://vb-net-source-codes-snippets.blogspot.com/feeds/7926801120609854327/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vb-net-source-codes-snippets.blogspot.com/2012/03/snp-listbox-remove-item-clear-display.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1064600540705663269/posts/default/7926801120609854327'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1064600540705663269/posts/default/7926801120609854327'/><link rel='alternate' type='text/html' href='http://vb-net-source-codes-snippets.blogspot.com/2012/03/snp-listbox-remove-item-clear-display.html' title='[SNP] ListBox Remove item / Clear / Display / Add [VB.NET]'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/13164349229440879922</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1064600540705663269.post-5746909251009075121</id><published>2012-03-27T07:19:00.000+03:00</published><updated>2012-03-27T07:19:06.836+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="code"/><category scheme="http://www.blogger.com/atom/ns#" term="cookies"/><category scheme="http://www.blogger.com/atom/ns#" term="httpwebrequest"/><category scheme="http://www.blogger.com/atom/ns#" term="httpwebrequests login"/><category scheme="http://www.blogger.com/atom/ns#" term="login to website"/><category scheme="http://www.blogger.com/atom/ns#" term="page login"/><category scheme="http://www.blogger.com/atom/ns#" term="requests"/><category scheme="http://www.blogger.com/atom/ns#" term="source"/><category scheme="http://www.blogger.com/atom/ns#" term="vb.net"/><category scheme="http://www.blogger.com/atom/ns#" term="visual basic"/><category scheme="http://www.blogger.com/atom/ns#" term="visualbasic"/><category scheme="http://www.blogger.com/atom/ns#" term="visualstudio"/><category scheme="http://www.blogger.com/atom/ns#" term="webrequest with cookies"/><title type='text'>[SNP] Using HTTPWebRequests to login to Facebook [VB.NET]</title><content type='html'>&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt;Dim cookieJar As New Net.CookieContainer()
  Dim request As Net.HttpWebRequest
  Dim response As Net.HttpWebResponse
  Dim strURL As String = &quot;&quot;

  Try
    &#39;Get Cookies
    strURL = &quot;https://login.facebook.com/login.php&quot;
    request = CType(HttpWebRequest.Create(strURL), HttpWebRequest)
    request.UserAgent = &quot;Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3&quot;
    request.Method = &quot;GET&quot;
    request.CookieContainer = cookieJar
    response = CType(request.GetResponse(), HttpWebResponse)

    For Each tempCookie As Net.Cookie In response.Cookies
    cookieJar.Add(tempCookie)
    Next

    &#39;Send the post data now
    request = CType(HttpWebRequest.Create(strURL), HttpWebRequest)
    request.UserAgent = &quot;Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3&quot;
    request.Method = &quot;POST&quot;
    request.AllowAutoRedirect = True
    request.CookieContainer = cookieJar

    Dim writer As StreamWriter = New StreamWriter(request.GetRequestStream())
    writer.Write(&quot;email=username&amp;amp;pass=password&quot;)
    writer.Close()
    response = CType(request.GetResponse(), HttpWebResponse)

    &#39;Get the data from the page
    Dim stream As StreamReader = New StreamReader(response.GetResponseStream())
    Dim data As String = stream.ReadToEnd()
    response.Close()

    If data.Contains(&quot;&amp;lt;title&amp;gt;Facebook&quot;) = True Then
    &#39;LOGGED IN SUCCESSFULLY
    MessageBox.Show(&quot;logged in sucessfully&quot;)
    Else
    MessageBox.Show(&quot;Not logged in&quot;)
    End If

  Catch ex As Exception
    MessageBox.Show(ex.tostring)
  End Try
&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
With this basic HTTPWebRequest you can check if the login details - user and password are correct .</content><link rel='replies' type='application/atom+xml' href='http://vb-net-source-codes-snippets.blogspot.com/feeds/5746909251009075121/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vb-net-source-codes-snippets.blogspot.com/2012/03/snp-using-httpwebrequests-to-login-to.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1064600540705663269/posts/default/5746909251009075121'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1064600540705663269/posts/default/5746909251009075121'/><link rel='alternate' type='text/html' href='http://vb-net-source-codes-snippets.blogspot.com/2012/03/snp-using-httpwebrequests-to-login-to.html' title='[SNP] Using HTTPWebRequests to login to Facebook [VB.NET]'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/13164349229440879922</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1064600540705663269.post-5261968435327576730</id><published>2012-03-27T07:07:00.001+03:00</published><updated>2012-03-27T07:09:32.266+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="2008"/><category scheme="http://www.blogger.com/atom/ns#" term="download microsoft visual studio 2010"/><category scheme="http://www.blogger.com/atom/ns#" term="download microsoft visual studio 2011"/><category scheme="http://www.blogger.com/atom/ns#" term="free"/><category scheme="http://www.blogger.com/atom/ns#" term="how"/><category scheme="http://www.blogger.com/atom/ns#" term="ide"/><category scheme="http://www.blogger.com/atom/ns#" term="microsoft visual studio"/><category scheme="http://www.blogger.com/atom/ns#" term="mvs"/><category scheme="http://www.blogger.com/atom/ns#" term="programming"/><category scheme="http://www.blogger.com/atom/ns#" term="torrent"/><category scheme="http://www.blogger.com/atom/ns#" term="visual basic"/><category scheme="http://www.blogger.com/atom/ns#" term="visualstudio"/><category scheme="http://www.blogger.com/atom/ns#" term="visualstudio2010"/><title type='text'>[Link] Download VIsual Studio - IDE for Visual Basic [VB.NET]</title><content type='html'>For starters, an &lt;b&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/Integrated_development_environment&quot; target=&quot;_blank&quot;&gt;IDE &lt;/a&gt;&lt;/b&gt;stands for:&lt;span dir=&quot;auto&quot; style=&quot;font-size: small;&quot;&gt; Integrated development environment ,&lt;/span&gt;wich basicly is &quot;the program&quot; where you program ^^.&lt;br /&gt;
&lt;br /&gt;
So when you finish your programming, it arranges all the files in a strict order and compiles your code in to .exe file.&lt;br /&gt;
&lt;br /&gt;
Currently the &lt;b&gt;&lt;u&gt;best &lt;/u&gt;&lt;/b&gt;IDE for Visual Basic is Microsoft Visual Studio, that you can download from:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;a href=&quot;http://j.gs/mgI&quot; target=&quot;_blank&quot;&gt;Microsoft Visual Studio 2010 - The Pirate Bay - Mirror #1&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Mirror&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;a href=&quot;http://j.gs/mgJ&quot; target=&quot;_blank&quot;&gt;Microsoft Visual Studio 2010 - The Pirate Bay - Mirror #2&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Mirror&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;a href=&quot;http://j.gs/mgL&quot; target=&quot;_blank&quot;&gt;Microsoft Visual Studio 2010 - The Pirate Bay - Mirror #3&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;b&gt;Mirror&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;a href=&quot;http://j.gs/mgO&quot; target=&quot;_blank&quot;&gt;Microsoft Visual Studio 2010 - Demonoid - Mirror #4&lt;/a&gt;&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Or if you preffer the BETA version of Microsoft Visual Studio 2011, then download it from:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;a href=&quot;http://j.gs/mgR&quot; target=&quot;_blank&quot;&gt;Visual Studio 2011 BETA - x86&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For Visual Basic 6 , you convert the code for MVS2011/10/08 or use this IDE:&lt;br /&gt;
&lt;b&gt;&lt;a href=&quot;http://j.gs/mgZ&quot; target=&quot;_blank&quot;&gt;Visual Basic 6.0 - Portable&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Mirror&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;a href=&quot;http://j.gs/mga&quot; target=&quot;_blank&quot;&gt;Visual Basic 6.0 - Portable + Libs&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
If you need Microsoft Visual Studio 2008, then use theese links:&lt;br /&gt;
&lt;b&gt;&lt;a href=&quot;http://j.gs/mgb&quot; target=&quot;_blank&quot;&gt;Microsoft Visual Studio 2008 Express Edition - Portable&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Mirror&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;a href=&quot;http://j.gs/mgf&quot; target=&quot;_blank&quot;&gt;Microsoft Visual Studio 2008 Professional&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;
If any of the links are not working, please tell me ^^&lt;br /&gt;
&lt;br /&gt;
Good luck!</content><link rel='replies' type='application/atom+xml' href='http://vb-net-source-codes-snippets.blogspot.com/feeds/5261968435327576730/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vb-net-source-codes-snippets.blogspot.com/2012/03/link-download-visual-studio-ide-for.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1064600540705663269/posts/default/5261968435327576730'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1064600540705663269/posts/default/5261968435327576730'/><link rel='alternate' type='text/html' href='http://vb-net-source-codes-snippets.blogspot.com/2012/03/link-download-visual-studio-ide-for.html' title='[Link] Download VIsual Studio - IDE for Visual Basic [VB.NET]'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/13164349229440879922</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1064600540705663269.post-8051403733082443060</id><published>2012-03-27T06:42:00.000+03:00</published><updated>2012-03-27T06:42:10.285+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="explorer"/><category scheme="http://www.blogger.com/atom/ns#" term="folder options"/><category scheme="http://www.blogger.com/atom/ns#" term="folderoptions"/><category scheme="http://www.blogger.com/atom/ns#" term="show"/><category scheme="http://www.blogger.com/atom/ns#" term="snipet"/><category scheme="http://www.blogger.com/atom/ns#" term="snipets"/><category scheme="http://www.blogger.com/atom/ns#" term="snippet"/><category scheme="http://www.blogger.com/atom/ns#" term="snippets"/><category scheme="http://www.blogger.com/atom/ns#" term="source"/><category scheme="http://www.blogger.com/atom/ns#" term="sources"/><category scheme="http://www.blogger.com/atom/ns#" term="vb.net"/><category scheme="http://www.blogger.com/atom/ns#" term="visual"/><category scheme="http://www.blogger.com/atom/ns#" term="visualbasic"/><category scheme="http://www.blogger.com/atom/ns#" term="visualstudio"/><category scheme="http://www.blogger.com/atom/ns#" term="windows explorer"/><category scheme="http://www.blogger.com/atom/ns#" term="windows xp"/><title type='text'>[SNP] Show / Hide Folder Options in Windows Explorer [VB.NET]</title><content type='html'>&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt; Shell(&quot;REG add HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v NoFolderOptions /t REG_DWORD /d 1 /f&quot;, vbNormalFocus) 
&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
A simple command, that uses registry, to enable or disable Folder Options in Windows Explorer.&lt;br /&gt;
&lt;br /&gt;
Change the 1 to 0 to enable it again.</content><link rel='replies' type='application/atom+xml' href='http://vb-net-source-codes-snippets.blogspot.com/feeds/8051403733082443060/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vb-net-source-codes-snippets.blogspot.com/2012/03/snp-show-hide-folder-options-in-windows.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1064600540705663269/posts/default/8051403733082443060'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1064600540705663269/posts/default/8051403733082443060'/><link rel='alternate' type='text/html' href='http://vb-net-source-codes-snippets.blogspot.com/2012/03/snp-show-hide-folder-options-in-windows.html' title='[SNP] Show / Hide Folder Options in Windows Explorer [VB.NET]'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/13164349229440879922</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1064600540705663269.post-7203306067029333496</id><published>2012-03-02T15:59:00.002+02:00</published><updated>2012-03-27T06:35:18.759+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="codes"/><category scheme="http://www.blogger.com/atom/ns#" term="disable"/><category scheme="http://www.blogger.com/atom/ns#" term="dotnet"/><category scheme="http://www.blogger.com/atom/ns#" term="enable"/><category scheme="http://www.blogger.com/atom/ns#" term="free"/><category scheme="http://www.blogger.com/atom/ns#" term="hide"/><category scheme="http://www.blogger.com/atom/ns#" term="projects"/><category scheme="http://www.blogger.com/atom/ns#" term="show"/><category scheme="http://www.blogger.com/atom/ns#" term="snipet"/><category scheme="http://www.blogger.com/atom/ns#" term="snipets"/><category scheme="http://www.blogger.com/atom/ns#" term="snippet"/><category scheme="http://www.blogger.com/atom/ns#" term="snippets"/><category scheme="http://www.blogger.com/atom/ns#" term="source"/><category scheme="http://www.blogger.com/atom/ns#" term="sources"/><category scheme="http://www.blogger.com/atom/ns#" term="taskbar"/><category scheme="http://www.blogger.com/atom/ns#" term="visualbasic"/><category scheme="http://www.blogger.com/atom/ns#" term="visualstudio"/><title type='text'>[SNP] Show / Hide Taskbar - Windows XP / 7 [VB.NET]</title><content type='html'>&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed rgb(153, 153, 153); color: black; font-family: Andale Mono,Lucida Console,Monaco,fixed,monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt; Dim intReturn As Integer = FindWindow(&quot;Shell_traywnd&quot;, &quot;&quot;)  
     SetWindowPos(intReturn, 0, 0, 0, 0, 0, SWP_HIDEWINDOW)&amp;nbsp; &lt;/code&gt;&lt;/pre&gt;
This will disable the taskbar.&lt;br /&gt;
And to enable it: &lt;br /&gt;
change &lt;b&gt;SWP_HIDEWINDOW&lt;/b&gt; to &lt;b&gt;SWP_SHOWWINDOW&lt;/b&gt;</content><link rel='replies' type='application/atom+xml' href='http://vb-net-source-codes-snippets.blogspot.com/feeds/7203306067029333496/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vb-net-source-codes-snippets.blogspot.com/2012/03/title.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1064600540705663269/posts/default/7203306067029333496'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1064600540705663269/posts/default/7203306067029333496'/><link rel='alternate' type='text/html' href='http://vb-net-source-codes-snippets.blogspot.com/2012/03/title.html' title='[SNP] Show / Hide Taskbar - Windows XP / 7 [VB.NET]'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/13164349229440879922</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1064600540705663269.post-1373949912800929799</id><published>2012-03-02T10:11:00.000+02:00</published><updated>2012-03-27T06:37:36.029+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="codes"/><category scheme="http://www.blogger.com/atom/ns#" term="dotnet"/><category scheme="http://www.blogger.com/atom/ns#" term="framework"/><category scheme="http://www.blogger.com/atom/ns#" term="free"/><category scheme="http://www.blogger.com/atom/ns#" term="projects"/><category scheme="http://www.blogger.com/atom/ns#" term="snipet"/><category scheme="http://www.blogger.com/atom/ns#" term="snipets"/><category scheme="http://www.blogger.com/atom/ns#" term="snippet"/><category scheme="http://www.blogger.com/atom/ns#" term="snippets"/><category scheme="http://www.blogger.com/atom/ns#" term="source"/><category scheme="http://www.blogger.com/atom/ns#" term="sources"/><category scheme="http://www.blogger.com/atom/ns#" term="vb.net"/><category scheme="http://www.blogger.com/atom/ns#" term="visual"/><category scheme="http://www.blogger.com/atom/ns#" term="visualbasic"/><category scheme="http://www.blogger.com/atom/ns#" term="visualstudio"/><title type='text'>MsgBox(&quot;Hello World!&quot;) - The Big Start</title><content type='html'>Hello there!&lt;br /&gt;
&lt;br /&gt;
This is a blog about the great programming language Visual Basic.&lt;br /&gt;
Here you will find a variety of sources, tutorials, snippets and such.&lt;br /&gt;
I hope that it will be helpful to you!&lt;br /&gt;
&lt;br /&gt;
P.S. Theese are written by me, or collected by me from the internet.All credits will be give, if found.&lt;br /&gt;
P.S.S. If you have questions, feel free to email me or comment. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
And some words now:&lt;br /&gt;
vb.net visual basic programming visualstudio studio microsoft sources source codes code snippet snippets tutorial guide tutorials guides training free download snp src srcs snpt framework vb net .net VB.NET VisualBasic blog gratis gratuit gratis libre skid skidding programing vstudio SRC SNP project Projects</content><link rel='replies' type='application/atom+xml' href='http://vb-net-source-codes-snippets.blogspot.com/feeds/1373949912800929799/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vb-net-source-codes-snippets.blogspot.com/2012/03/start-welcome.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1064600540705663269/posts/default/1373949912800929799'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1064600540705663269/posts/default/1373949912800929799'/><link rel='alternate' type='text/html' href='http://vb-net-source-codes-snippets.blogspot.com/2012/03/start-welcome.html' title='MsgBox(&quot;Hello World!&quot;) - The Big Start'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/13164349229440879922</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>