<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>VB.NET Forum RSS Feed (Replies Included)</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the 'VB.NET' forum at Programmer's Heaven, including replies.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Sat, 18 May 2013 05:53:35 -0700</pubDate>
    <lastBuildDate>Sat, 18 May 2013 05:53:35 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>Re: Two Dimensional Arrays in VB.NET</title>
      <link>http://www.programmersheaven.com/mb/VBNET/408945/432095/re-two-dimensional-arrays-in-vbnet/#432095</link>
      <description>this program will how to use a two dimensional array in vb.net ..&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://net-informations.com/vbprj/programflow/multi-dimensional-array.htm"&gt;http://net-informations.com/vbprj/programflow/multi-dimensional-array.htm&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
mitch.&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBNET/408945/432095/re-two-dimensional-arrays-in-vbnet/#432095</guid>
      <pubDate>Wed, 15 May 2013 23:32:11 -0700</pubDate>
      <category>VB.NET</category>
    </item>
    <item>
      <title>get something like alias from a  sql database column</title>
      <link>http://www.programmersheaven.com/mb/VBNET/432088/432088/get-something-like-alias-from-a--sql-database-column/</link>
      <description>hi&lt;br /&gt;
i have a datagridview in my form that get data from a sql database through a datatable .&lt;br /&gt;
in database tables has a name that it use as datatable's column headerName.but i want to named column headerNames by a different name like alias of each column of sql table .&lt;br /&gt;
but i dont know how can get an alias name or a description of each database column ( as alias ) from database . please help me about it .&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBNET/432088/432088/get-something-like-alias-from-a--sql-database-column/</guid>
      <pubDate>Wed, 15 May 2013 10:02:37 -0700</pubDate>
      <category>VB.NET</category>
    </item>
    <item>
      <title>get somthing like alias from a  sql database column</title>
      <link>http://www.programmersheaven.com/mb/VBNET/432087/432087/get-somthing-like-alias-from-a--sql-database-column/</link>
      <description>hi&lt;br /&gt;
i have a datagridview in my form that get data from a sql database through a datatable .&lt;br /&gt;
in database tables has a name that it use as datatable's column headerName.but i want to named column headerNames by a different name like alias of each column of sql table .&lt;br /&gt;
but i dont know how can get an alias name or a description of each database column ( as alias ) from database . please help me about it .&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBNET/432087/432087/get-somthing-like-alias-from-a--sql-database-column/</guid>
      <pubDate>Wed, 15 May 2013 09:57:24 -0700</pubDate>
      <category>VB.NET</category>
    </item>
    <item>
      <title>How to disable "E" symbol in large digits?</title>
      <link>http://www.programmersheaven.com/mb/VBNET/432065/432065/how-to-disable-e-symbol-in-large-digits/</link>
      <description>Hi!&lt;br /&gt;
&lt;br /&gt;
I'm creating Bytes Calculator in Visual Basic 2012.&lt;br /&gt;
I'm beginner on platform .net, before I was using VB6.&lt;br /&gt;
&lt;br /&gt;
In calculator is possible to convert e.g. PB to B.&lt;br /&gt;
So large symbols displays:&lt;br /&gt;
1 PB = 1,12589990684262E+15 B&lt;br /&gt;
&lt;br /&gt;
HOW TO DISABLE SYMBOL "E" TO SHOW NUMBER AS IS?&lt;br /&gt;
&lt;br /&gt;
Many many thanks for every help, reply or comments.&lt;br /&gt;
&lt;br /&gt;
Miro&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBNET/432065/432065/how-to-disable-e-symbol-in-large-digits/</guid>
      <pubDate>Mon, 13 May 2013 12:42:34 -0700</pubDate>
      <category>VB.NET</category>
    </item>
    <item>
      <title>Re: How to read the content of a web page in VB.NET ??</title>
      <link>http://www.programmersheaven.com/mb/VBNET/249957/432033/re-how-to-read-the-content-of-a-web-page-in-vbnet-/#432033</link>
      <description>you should Imports System.Net&lt;br /&gt;
&lt;br /&gt;
        webRequest = webRequest.Create(TextBox1.Text)&lt;br /&gt;
        webresponse = webRequest.GetResponse()&lt;br /&gt;
        inStream = New StreamReader(webresponse.GetResponseStream())&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://vb.net-informations.com/communications/vb.net_read_url.htm"&gt;http://vb.net-informations.com/communications/vb.net_read_url.htm&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
winston.&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBNET/249957/432033/re-how-to-read-the-content-of-a-web-page-in-vbnet-/#432033</guid>
      <pubDate>Sat, 11 May 2013 23:30:17 -0700</pubDate>
      <category>VB.NET</category>
    </item>
    <item>
      <title>Re: How to read the content of a web page in VB.NET ??</title>
      <link>http://www.programmersheaven.com/mb/VBNET/249957/432032/re-how-to-read-the-content-of-a-web-page-in-vbnet-/#432032</link>
      <description>you should Imports System.Net&lt;br /&gt;
&lt;br /&gt;
        webRequest = webRequest.Create(TextBox1.Text)&lt;br /&gt;
        webresponse = webRequest.GetResponse()&lt;br /&gt;
        inStream = New StreamReader(webresponse.GetResponseStream())&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://vb.net-informations.com/communications/vb.net_read_url.htm"&gt;http://vb.net-informations.com/communications/vb.net_read_url.htm&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
winston.&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBNET/249957/432032/re-how-to-read-the-content-of-a-web-page-in-vbnet-/#432032</guid>
      <pubDate>Sat, 11 May 2013 23:28:25 -0700</pubDate>
      <category>VB.NET</category>
    </item>
    <item>
      <title>Re: How to read the content of a web page in VB.NET ??</title>
      <link>http://www.programmersheaven.com/mb/VBNET/249957/432031/re-how-to-read-the-content-of-a-web-page-in-vbnet-/#432031</link>
      <description>you should Imports System.Net&lt;br /&gt;
&lt;br /&gt;
        webRequest = webRequest.Create(TextBox1.Text)&lt;br /&gt;
        webresponse = webRequest.GetResponse()&lt;br /&gt;
        inStream = New StreamReader(webresponse.GetResponseStream())&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://vb.net-informations.com/communications/vb.net_read_url.htm"&gt;http://vb.net-informations.com/communications/vb.net_read_url.htm&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
winston.&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBNET/249957/432031/re-how-to-read-the-content-of-a-web-page-in-vbnet-/#432031</guid>
      <pubDate>Sat, 11 May 2013 23:26:34 -0700</pubDate>
      <category>VB.NET</category>
    </item>
    <item>
      <title>connect to an access database on a server</title>
      <link>http://www.programmersheaven.com/mb/VBNET/431995/431995/connect-to-an-access-database-on-a-server/</link>
      <description>Hi all, &lt;br /&gt;
&lt;br /&gt;
I'm having problems with connecting to my database. The computer i'm on is connected to a server called BPL. That server is connected to a mainserver. &lt;br /&gt;
&lt;br /&gt;
My database is on a hidden testmap called "publicshare$"&lt;br /&gt;
&lt;br /&gt;
my connection string would normaly be :&lt;br /&gt;
&lt;br /&gt;
 Dim dbconn As New 0leDbConnection("Provider=Microsoft.ACE.OLEDB.12.0
;Data Source= \\mainserver\publicshare$\TestTomDatabase\woordens
pelNederlands.accdb")&lt;br /&gt;
&lt;br /&gt;
You don't need a password to connect to the database, but i need to implement an other user name (eg. admin ) and a password (eg. adminpas) to connect to the map.&lt;br /&gt;
&lt;br /&gt;
How should i chance my connectionstring so that i can do this ?&lt;br /&gt;
&lt;br /&gt;
Br, &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBNET/431995/431995/connect-to-an-access-database-on-a-server/</guid>
      <pubDate>Wed, 08 May 2013 05:55:40 -0700</pubDate>
      <category>VB.NET</category>
    </item>
    <item>
      <title>Need Help with Browsers in VB.Net</title>
      <link>http://www.programmersheaven.com/mb/VBNET/431993/431993/need-help-with-browsers-in-vbnet/</link>
      <description>I am a total Beginners and just trying to create a simple progamme.&lt;br /&gt;
&lt;br /&gt;
I want the user to click a button which will open a web page within the forum.I used the following code&lt;br /&gt;
&lt;br /&gt;
Private Sub RPRulesToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles RPRulesToolStripMenuItem.Click&lt;br /&gt;
        WebBrowser.Visible = True&lt;br /&gt;
        WebBrowser.Navigate("http://ucwonline.freeforums.org/")&lt;br /&gt;
    End Sub&lt;br /&gt;
&lt;br /&gt;
However when I run the Programme,all I get is a black screen in the VB.Net Browser.No text,nothing.Other sites such as Google and youtube seems to work perfect but not this one (It works perfect in the normal Browser)..Anyone has some suggestions or workarounds? I want to display the text from the site or the whole page but within the form without using any external browser.&lt;br /&gt;
&lt;br /&gt;
Thanks!!&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBNET/431993/431993/need-help-with-browsers-in-vbnet/</guid>
      <pubDate>Wed, 08 May 2013 02:19:03 -0700</pubDate>
      <category>VB.NET</category>
    </item>
    <item>
      <title>Re: Two Dimensional Arrays in VB.NET</title>
      <link>http://www.programmersheaven.com/mb/VBNET/408945/431974/re-two-dimensional-arrays-in-vbnet/#431974</link>
      <description>hi sean,&lt;br /&gt;
i wanna ask you one question&lt;br /&gt;
do you have any notes regarding to vb.net because i tried many times to understand what i'd googled but i got a bit input. do you have any easy vb.net tutorial to be understand?&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBNET/408945/431974/re-two-dimensional-arrays-in-vbnet/#431974</guid>
      <pubDate>Tue, 07 May 2013 00:23:52 -0700</pubDate>
      <category>VB.NET</category>
    </item>
    <item>
      <title>Re: Barcode scanning check</title>
      <link>http://www.programmersheaven.com/mb/VBNET/428518/431951/re-barcode-scanning-check/#431951</link>
      <description>This &lt;a href="http://www.barcodelib.com/vb_net/barcode_symbologies/upca.html"&gt;VB.NET UPC-A Barcode Generator Library&lt;/a&gt; may solve your problem. It also offers detailed steps for generating UPC-A barcode in VB.NET.I think it's very simple.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBNET/428518/431951/re-barcode-scanning-check/#431951</guid>
      <pubDate>Tue, 23 Apr 2013 20:39:10 -0700</pubDate>
      <category>VB.NET</category>
    </item>
    <item>
      <title>Re: Barcode scanning check</title>
      <link>http://www.programmersheaven.com/mb/VBNET/428518/431950/re-barcode-scanning-check/#431950</link>
      <description>This &lt;a href="http://www.barcodelib.com/vb_net/barcode_symbologies/upca.html"&gt;VB.NET UPC-A Barcode Generator Library&lt;/a&gt; may solve your problem. It also offers detailed steps for generating UPC-A barcode in VB.NET.I think it's very simple.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBNET/428518/431950/re-barcode-scanning-check/#431950</guid>
      <pubDate>Tue, 23 Apr 2013 20:36:51 -0700</pubDate>
      <category>VB.NET</category>
    </item>
    <item>
      <title>Re: Error in VB.net with MYSql</title>
      <link>http://www.programmersheaven.com/mb/VBNET/431808/431920/re-error-in-vbnet-with-mysql/#431920</link>
      <description>Thank you Livetechs,&lt;br /&gt;
&lt;br /&gt;
I resolve the problem by myself. &lt;br /&gt;
The problem was a syntaxis error in mysql command.&lt;br /&gt;
&lt;br /&gt;
I modified the sql commmand adding ` single quote in the command. &lt;br /&gt;
strSQL = "INSERT INTO `Libros`(`Title`,`Desc`) VALUES ('" &amp;amp; Title_text.Text &amp;amp; "', '" &amp;amp; Desc_text.Text &amp;amp; "')"&lt;br /&gt;
&lt;br /&gt;
Thank you for you help.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBNET/431808/431920/re-error-in-vbnet-with-mysql/#431920</guid>
      <pubDate>Sat, 13 Apr 2013 07:45:30 -0700</pubDate>
      <category>VB.NET</category>
    </item>
    <item>
      <title>Re: Error in VB.net with MYSql</title>
      <link>http://www.programmersheaven.com/mb/VBNET/431808/431907/re-error-in-vbnet-with-mysql/#431907</link>
      <description>Hello,&lt;br /&gt;
&lt;br /&gt;
Please let me know the exact error message are you getting&lt;br /&gt;
&lt;br /&gt;
Thanks&lt;br /&gt;
[URL="http://www.traklive.com"]Bug Tracking[/url] - &lt;br /&gt;
[URL="http://www.livetecs.com"]Web Timesheet[/url]&lt;br /&gt;
[URL="http://www.livetecs.com"]Time Tracking Software[/url]</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBNET/431808/431907/re-error-in-vbnet-with-mysql/#431907</guid>
      <pubDate>Fri, 12 Apr 2013 03:42:31 -0700</pubDate>
      <category>VB.NET</category>
    </item>
    <item>
      <title>Embedded Font from Resources is not working on other Systems in VB.NET</title>
      <link>http://www.programmersheaven.com/mb/VBNET/431832/431832/embedded-font-from-resources-is-not-working-on-other-systems-in-vbnet/</link>
      <description>I've a font embedded from resources. on my System it's working perfectly (Win XP). but when I try to test the executable on other System (Only Windows 7), everything is working fine, bu embedded font is not showing up. It is applied on a label.&lt;br /&gt;
&lt;br /&gt;
 Public ReadOnly Property GetInstance(ByVal Size As Single, _&lt;br /&gt;
                                         ByVal style As FontStyle) As Font&lt;br /&gt;
        Get&lt;br /&gt;
            'IF THIS IS THE FIRST TIME GETTING AN INSTANCE&lt;br /&gt;
            'LOAD THE FONT FROM RESOURCES&lt;br /&gt;
            If fntCollect Is Nothing Then LoadFont()&lt;br /&gt;
&lt;br /&gt;
            'RETURN A NEW FONT OBJECT BASED ON THE SIZE AND STYLE PASSED IN&lt;br /&gt;
            Return New Font(fntCollect.Families(0), Size, style)&lt;br /&gt;
&lt;br /&gt;
        End Get&lt;br /&gt;
    End Property&lt;br /&gt;
&lt;br /&gt;
    Private Sub LoadFont()&lt;br /&gt;
        Try&lt;br /&gt;
            'INIT THE FONT COLLECTION&lt;br /&gt;
            fntCollect = New PrivateFontCollection&lt;br /&gt;
&lt;br /&gt;
            'LOAD MEMORY POINTER FOR FONT RESOURCE&lt;br /&gt;
            Dim fontMemPointer As IntPtr = _&lt;br /&gt;
                Marshal.AllocCoTaskMem( _&lt;br /&gt;
                My.Resources.DIGITAL.Length)&lt;br /&gt;
&lt;br /&gt;
            'COPY THE DATA TO THE MEMORY LOCATION&lt;br /&gt;
            Marshal.Copy(My.Resources.DIGITAL, _&lt;br /&gt;
                         0, fontMemPointer, _&lt;br /&gt;
                         My.Resources.DIGITAL.Length)&lt;br /&gt;
&lt;br /&gt;
            'LOAD THE MEMORY FONT INTO THE PRIVATE FONT COLLECTION&lt;br /&gt;
            fntCollect.AddMemoryFont(fontMemPointer, _&lt;br /&gt;
                               My.Resources.DIGITAL.Length)&lt;br /&gt;
&lt;br /&gt;
            'FREE UNSAFE MEMORY&lt;br /&gt;
            Marshal.FreeCoTaskMem(fontMemPointer)&lt;br /&gt;
        Catch ex As Exception&lt;br /&gt;
            MsgBox("Sorry! Error Loading Digital Font.")&lt;br /&gt;
&lt;br /&gt;
        End Try&lt;br /&gt;
&lt;br /&gt;
    End Sub&lt;br /&gt;
&lt;a href="http://www.hitechito.com/technology/microsoft-technologies/net-development/asp-net-development.php"&gt;ASP.Net Web Development&lt;/a&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBNET/431832/431832/embedded-font-from-resources-is-not-working-on-other-systems-in-vbnet/</guid>
      <pubDate>Sun, 07 Apr 2013 22:37:41 -0700</pubDate>
      <category>VB.NET</category>
    </item>
    <item>
      <title>Error in VB.net with MYSql</title>
      <link>http://www.programmersheaven.com/mb/VBNET/431808/431808/error-in-vbnet-with-mysql/</link>
      <description>Hi all,&lt;br /&gt;
&lt;br /&gt;
I do not have to much experience in VB.net. I am doing small application to practice.&lt;br /&gt;
&lt;br /&gt;
In this case I am creating a VB application conneting to a MYSQL Database.&lt;br /&gt;
&lt;br /&gt;
The problem I have is when I try to make a new register into the DDBB, I recieve a syntaxis error.&lt;br /&gt;
&lt;br /&gt;
INSERT INTO Libros(Titulo,Desc) VALUES ('" &amp;amp; Titulo_text.Text &amp;amp; "', '" &amp;amp; Desc_text.Text &amp;amp; "')&lt;br /&gt;
&lt;br /&gt;
However if I use the command into mysql server it works fine.&lt;br /&gt;
&lt;br /&gt;
INSERT INTO Libros(Title,Desc) VALUES ()&lt;br /&gt;
&lt;br /&gt;
Private Sub Save_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Save.Click&lt;br /&gt;
-----------------&lt;br /&gt;
&lt;br /&gt;
If sConnection.State = ConnectionState.Closed Then&lt;br /&gt;
sConnection.ConnectionString = "SERVER = my server; USERID = joserodriguezan; PASSWORD = Aberystwyth; DATABASE = Bibloteca;"&lt;br /&gt;
sConnection.Open()&lt;br /&gt;
End If&lt;br /&gt;
Try&lt;br /&gt;
strSQL = "INSERT INTO Libros(Title,Desc) VALUES ('" &amp;amp; Title_text.Text &amp;amp; "', '" &amp;amp; Desc_text.Text &amp;amp; "')"&lt;br /&gt;
Dim da As New MySqlDataAdapter(strSQL, sConnection)&lt;br /&gt;
da.Fill(dset)&lt;br /&gt;
Catch ex As Exception&lt;br /&gt;
MessageBox.Show("Error")&lt;br /&gt;
End Try&lt;br /&gt;
&lt;br /&gt;
Tittle_text.Text = ""&lt;br /&gt;
Desc_text.Text = ""&lt;br /&gt;
Class_combo.Text = ""&lt;br /&gt;
Date_text.Text = ""&lt;br /&gt;
Pres_text.Text = ""&lt;br /&gt;
Who_text.Text = ""&lt;br /&gt;
Title_text.Focus()&lt;br /&gt;
list()&lt;br /&gt;
End Sub&lt;br /&gt;
-----------------------&lt;br /&gt;
&lt;br /&gt;
Any knows how to resolve this problem?&lt;br /&gt;
Thank you.&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBNET/431808/431808/error-in-vbnet-with-mysql/</guid>
      <pubDate>Fri, 05 Apr 2013 12:49:37 -0700</pubDate>
      <category>VB.NET</category>
    </item>
    <item>
      <title>Cannot save record using Entity Framework</title>
      <link>http://www.programmersheaven.com/mb/VBNET/431802/431802/cannot-save-record-using-entity-framework/</link>
      <description>I am an absolute beginner. But I searched the net. There are not many example shown in VB anywhere.&lt;br /&gt;
 &lt;br /&gt;
I have created a test project which holds the win form. Then added another project which holds the Entity Model, after building the Model I added a reference of this to the Win form project. After that I added the Model object as a datasource.&lt;br /&gt;
 &lt;br /&gt;
I dragged the datasource controls into the form and added the below code.&lt;br /&gt;
 &lt;br /&gt;
 Collapse | Copy Code&lt;br /&gt;
Private context As TestModelEntities&lt;br /&gt;
 &lt;br /&gt;
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load&lt;br /&gt;
 &lt;br /&gt;
    context = New TestModelEntities&lt;br /&gt;
 &lt;br /&gt;
    Dim query = context.employees&lt;br /&gt;
    EmployeeBindingSource.DataSource = query.ToList&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
End Sub&lt;br /&gt;
 &lt;br /&gt;
Private Sub DepartmentBindingNavigatorSaveItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles EmployeeBindingNavigatorSaveItem.Click&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
    Try&lt;br /&gt;
        context.SaveChanges()&lt;br /&gt;
        MessageBox.Show("Changes saved to the database.")&lt;br /&gt;
        Me.Refresh()&lt;br /&gt;
    Catch ex As Exception&lt;br /&gt;
        MessageBox.Show(ex.Message)&lt;br /&gt;
    End Try&lt;br /&gt;
End Sub&lt;br /&gt;
 &lt;br /&gt;
I am scratching my head all day. Don't know what I am doing wrong.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBNET/431802/431802/cannot-save-record-using-entity-framework/</guid>
      <pubDate>Fri, 05 Apr 2013 05:26:20 -0700</pubDate>
      <category>VB.NET</category>
    </item>
    <item>
      <title>Re: Tic Tac Toe With PC Player</title>
      <link>http://www.programmersheaven.com/mb/VBNET/431690/431772/re-tic-tac-toe-with-pc-player/#431772</link>
      <description>After playing with my code. I think I may have it.  I think I took the easy way out of checking if computer can wind instead of blocking the human.  But still want to block.  So any info that be great.</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBNET/431690/431772/re-tic-tac-toe-with-pc-player/#431772</guid>
      <pubDate>Tue, 02 Apr 2013 18:50:59 -0700</pubDate>
      <category>VB.NET</category>
    </item>
    <item>
      <title>Tic Tac Toe With PC Player</title>
      <link>http://www.programmersheaven.com/mb/VBNET/431690/431690/tic-tac-toe-with-pc-player/</link>
      <description>Hi all,  Long time ago back when i was in school i created a 2 player tic tac toe game.  I reviewed my code and thought about adding a computer player to replace player 2.   I did that but the computer player is goofy.   It will play and then will stop and I can't click anywhere. When I was unable to click anywhere I notice my turn var was still o for computer.  Well computer never played.   Any Ideas?  I will be happy to share my code with anyone.   This is just for fun and building my learning on programming.</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBNET/431690/431690/tic-tac-toe-with-pc-player/</guid>
      <pubDate>Sun, 24 Mar 2013 13:25:07 -0700</pubDate>
      <category>VB.NET</category>
    </item>
    <item>
      <title>I want some help in my paint application</title>
      <link>http://www.programmersheaven.com/mb/VBNET/431687/431687/i-want-some-help-in-my-paint-application/</link>
      <description>Hi everyone I want some help in my paint application, I am using pictuerbox to draw on it but in  the last day my requirement  is change that the user want to open an image and do all the functionality on it.. I try to open an image but when I choose some option to draw on the image its didn’t show...&lt;br /&gt;
I want some clue quickly please …&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBNET/431687/431687/i-want-some-help-in-my-paint-application/</guid>
      <pubDate>Sun, 24 Mar 2013 10:52:28 -0700</pubDate>
      <category>VB.NET</category>
    </item>
    <item>
      <title>I want some help in my paint application</title>
      <link>http://www.programmersheaven.com/mb/VBNET/431686/431686/i-want-some-help-in-my-paint-application/</link>
      <description>Hi everyone I want some help in my paint application, I am using pictuerbox to draw on it but in  the last day my requirement  is change that the user want to open an image and do all the functionality on it.. I try to open an image but when I choose some option to draw on the image its didn’t show...&lt;br /&gt;
&lt;br /&gt;
I want some clue quickly please …&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBNET/431686/431686/i-want-some-help-in-my-paint-application/</guid>
      <pubDate>Sun, 24 Mar 2013 10:44:56 -0700</pubDate>
      <category>VB.NET</category>
    </item>
    <item>
      <title>Re: Problems Determining Patch.State - WindowsInstaller</title>
      <link>http://www.programmersheaven.com/mb/VBNET/431587/431657/re-problems-determining-patchstate---windowsinstaller/#431657</link>
      <description>Here's what we've gotten to work for us...&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;Type t = Type.GetTypeFromProgID("WindowsInstaller.Installer
");
                Installer iInstaller = (Installer)Activator.CreateInstance(t);

                string strPatchPath = null;
                string strPatchCode = null;
                string strProdCode = null;
                string strPatchXML = null;
                XmlDocument xmlMsiPatch = new XmlDocument();

                

                if (MinMsiVersion &amp;gt; Convert.ToDouble(iInstaller.Version.Substring(0, iInstaller.Version.IndexOf('.'))))
                {
                    MessageBox.Show("Minimum Windows Installer version " + MinMsiVersion + " required.  Current version is " + iInstaller.Version, "Windows Installer version problem...");
                }

                strPatchPath = "C:\\Program Files (x86)\\Synergis\\Adept80\\Client\\Install\\AdeptPa
tch.msp";
                strPatchXML = iInstaller.ExtractPatchXMLData(strPatchPath);

                xmlMsiPatch.LoadXml(strPatchXML);

                strPatchCode = xmlMsiPatch.DocumentElement.Attributes["PatchGUID"
].Value;
                strProdCode = xmlMsiPatch.GetElementsByTagName("TargetProductCod
e").Item(0).InnerText;

                //Now check if patch is applied...

                int rtn = 0;
                dynamic ePatch = iInstaller.get_Patches(strProdCode);
  
                if (ePatch.count &amp;gt; 0)
                {
                    for (var i = 0; i &amp;lt; ePatch.count; i++)
                    {
                        if (ePatch[i] == strPatchCode)
                        { 
                            MessageBox.Show("here");
                            rtn = 1;
                        }

                    }
                }&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Hope it helps someone.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBNET/431587/431657/re-problems-determining-patchstate---windowsinstaller/#431657</guid>
      <pubDate>Fri, 22 Mar 2013 11:57:04 -0700</pubDate>
      <category>VB.NET</category>
    </item>
    <item>
      <title>Dynamic Saving of Datas</title>
      <link>http://www.programmersheaven.com/mb/VBNET/431604/431604/dynamic-saving-of-datas/</link>
      <description>Hi All&lt;br /&gt;
&lt;br /&gt;
I am new to programming. I have created dynamic addition of controls(textbox, combobox) to my form. Now i have to save the data in the dynamically created controls in ms sql database. Please tell me how to assign it some variable or how to save it to my MS SQL Server.&lt;br /&gt;
&lt;br /&gt;
Thanks in Advance&lt;br /&gt;
Luxme&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBNET/431604/431604/dynamic-saving-of-datas/</guid>
      <pubDate>Sun, 17 Mar 2013 22:57:56 -0700</pubDate>
      <category>VB.NET</category>
    </item>
    <item>
      <title>Problems Determining Patch.State - WindowsInstaller</title>
      <link>http://www.programmersheaven.com/mb/VBNET/431587/431587/problems-determining-patchstate---windowsinstaller/</link>
      <description>Hi all,&lt;br /&gt;
I hope someone can help me here.  There aren't many good code examples out there dealing with Windows Installer patches (.msp).  We have an update widget that will install or apply a patch simply if the .msp is located in the application's update folder location.  I want to try to change that to first, determine if the patch actually needs to be applied.&lt;br /&gt;
&lt;br /&gt;
First, I need to grab the Patch/Product codes from the .msp, then check the Patch.State against the Product Code.  The first part is working fine, but I'm having problems checking the State...&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;1.	Const MinMsiVersion = "3.0" 'Minimum version to support functionality
2.	Const MSIPATCHSTATE_APPLIED = 1 'Patch is applied to this product instance.
3.	Const msiInstallContextMachine = 4 'Enumerate products that are under the machine account.
4.	 
5.	Dim iInstaller As WindowsInstaller.Installer
6.	Dim pPatch 'As WindowsInstaller.Patch
7.	        '= CreateObject("WindowsInstaller.Installer")
8.	 
9.	Dim strPatchPath, _
10.	    strPatchCode, _
11.	    strProdCode As String
12.	Dim strPatchXML As String
13.	Dim xmlMsiPatch As XmlDocument = New XmlDocument()
14.	 
15.	Try       
16.	    If MinMsiVersion &amp;gt; iInstaller.Version Then
17.	        MsgBox("Minimum Windows Installer version " &amp;amp; MinMsiVersion &amp;amp; " required.  Current version is " &amp;amp; iInstaller.Version, MsgBoxStyle.OkOnly, "Windows Installer version problem...")
18.	    End If
19.	 
20.	    iInstaller = CType(CreateObject("WindowsInstaller.Installer"),  _
21.	                   WindowsInstaller.Installer)
22.	 
23.	    strPatchPath = "C:\Program Files (x86)\MyComp\Adept80\MyApp\Install\MyAppPatch.msp"
24.	    strPatchXML = iInstaller.ExtractPatchXMLData(strPatchPath)
25.	 
26.	    xmlMsiPatch.LoadXml(strPatchXML)
27.	 
28.	    strPatchCode = xmlMsiPatch.DocumentElement.Attributes("PatchGUID"
).Value
29.	    strProdCode = xmlMsiPatch.GetElementsByTagName("TargetProductCod
e").Item(0).InnerText
30.	 
31.	    pPatch = iInstaller.Patch(strPatchCode, strProdCode, "", msiInstallContextMachine)
32.	 
33.	    If pPatch.State = MSIPATCHSTATE_APPLIED Then 'already applied
34.	        MsgBox("Write to log... Patch has already been applied (" &amp;amp; pPatch.State &amp;amp; ")!")
35.	    Else
36.	        MsgBox("I'm installing the patch")
37.	    End If
38.	 
39.	Catch ex As Exception
40.	    MsgBox(Err.Number)
41.	    MsgBox(Err.Description)
42.	    'MsgBox(ex.Message)
43.	    MsgBox(ex.ToString)
44.	 
45.	    'ERROR_PATCH_NOT_APPLIED
46.	End Try

&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
This code is failing on line 31 with an error 13 - Return Argument Has An Invalid Type.  Can anyone help get me around this?  I've attached an image with some more info from this error.&lt;br /&gt;
&lt;br /&gt;
Since all of this may have to be ported to C++, I wonder if its better to try to get the following code up and running...&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;1.	Const MinMsiVersion = "3.0" 'Minimum version to support functionality
2.	Const MSIPATCHSTATE_APPLIED = 1 'Patch is applied to this product instance.
3.	Const msiInstallContextMachine = 4 'Enumerate products that are under the machine account.
4.	 
5.	Dim iInstaller = CreateObject("WindowsInstaller.Installer")
6.	 
7.	Dim strPatchPath, _
8.	    strPatchCode, _
9.	    strProdCode As String
10.	Dim strPatchXML As String
11.	Dim xmlMsiPatch As XmlDocument = New XmlDocument()
12.	 
13.	Try
14.	 
15.	If MinMsiVersion &amp;gt; iInstaller.Version Then
16.	     MsgBox("Minimum Windows Installer version " &amp;amp; MinMsiVersion &amp;amp; " required.  Current version is " &amp;amp; iInstaller.Version, MsgBoxStyle.OkOnly, "Windows Installer version problem...")
17.	End If
18.	 
19.	strPatchPath = "C:\Program Files (x86)\MyComp\MyApp\Client\Install\MyAppPatch.msp"
20.	strPatchXML = iInstaller.ExtractPatchXMLData(strPatchPath)
21.	 
22.	xmlMsiPatch.LoadXml(strPatchXML)
23.	 
24.	strPatchCode = xmlMsiPatch.DocumentElement.Attributes("PatchGUID"
).Value
25.	strProdCode = xmlMsiPatch.GetElementsByTagName("TargetProductCod
e").Item(0).InnerText
26.	 
27.	Dim pPatch = iInstaller.Patch(strPatchCode, strProdCode, "", msiInstallContextMachine)
28.	 
29.	If pPatch.State = MSIPATCHSTATE_APPLIED Then 'already applied
30.	    MsgBox("Write to log... Patch has already been applied (" &amp;amp; pPatch.State &amp;amp; ")!")
31.	Else
32.	    MsgBox("I'm installing the patch")
33.	End If
34.	 
35.	Catch ex As Exception
36.	    MsgBox(Err.Number)
37.	    MsgBox(Err.Description)
38.	    'MsgBox(ex.Message)
39.	    MsgBox(ex.ToString)
40.	 
41.	    'ERROR_PATCH_NOT_APPLIED
42.	End Try

&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
However this code snippet was failing on...&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;If pPatch.State = MSIPATCHSTATE_APPLIED Then&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
The error number I eventually was able to get from it was -21470223249 which after digging a bit I found was ERROR_PATCH_NOT_APPLIED.&lt;br /&gt;
&lt;br /&gt;
I'm not currently able to handle if the patch has not been applied with this code. If the patch is installed, the return, 1, is fine and the log write would occur (in this case msgbox). If not installed or applied, BOOM!&lt;br /&gt;
&lt;br /&gt;
In the first code snipped, these were the imports...&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
Imports WindowsInstaller
Imports System
Imports System.Xml
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
In the second code segment, Windowsinstaller was commented out.&lt;br /&gt;
&lt;br /&gt;
I hope someone can help me as I think/hope I am very close to having some workable code to detect if a patch has been applied!&lt;br /&gt;
&lt;br /&gt;
Thanks in advance for any help!!!&lt;br /&gt;
&lt;br /&gt;
THANKS FOR YOUR HELP!!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBNET/431587/431587/problems-determining-patchstate---windowsinstaller/</guid>
      <pubDate>Fri, 15 Mar 2013 09:33:57 -0700</pubDate>
      <category>VB.NET</category>
    </item>
    <item>
      <title>Problems Determining Patch.State - WindowsInstaller</title>
      <link>http://www.programmersheaven.com/mb/VBNET/431586/431586/problems-determining-patchstate---windowsinstaller/</link>
      <description>Hi all,&lt;br /&gt;
I hope someone can help me here.  There aren't many good code examples out there dealing with Windows Installer patches (.msp).  We have an update widget that will install or apply a patch simply if the .msp is located in the application's update folder location.  I want to try to change that to first, determine if the patch actually needs to be applied.&lt;br /&gt;
&lt;br /&gt;
First, I need to grab the Patch/Product codes from the .msp, then check the Patch.State against the Product Code.  The first part is working fine, but I'm having problems checking the State...&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;1.	Const MinMsiVersion = "3.0" 'Minimum version to support functionality
2.	Const MSIPATCHSTATE_APPLIED = 1 'Patch is applied to this product instance.
3.	Const msiInstallContextMachine = 4 'Enumerate products that are under the machine account.
4.	 
5.	Dim iInstaller As WindowsInstaller.Installer
6.	Dim pPatch 'As WindowsInstaller.Patch
7.	        '= CreateObject("WindowsInstaller.Installer")
8.	 
9.	Dim strPatchPath, _
10.	    strPatchCode, _
11.	    strProdCode As String
12.	Dim strPatchXML As String
13.	Dim xmlMsiPatch As XmlDocument = New XmlDocument()
14.	 
15.	Try       
16.	    If MinMsiVersion &amp;gt; iInstaller.Version Then
17.	        MsgBox("Minimum Windows Installer version " &amp;amp; MinMsiVersion &amp;amp; " required.  Current version is " &amp;amp; iInstaller.Version, MsgBoxStyle.OkOnly, "Windows Installer version problem...")
18.	    End If
19.	 
20.	    iInstaller = CType(CreateObject("WindowsInstaller.Installer"),  _
21.	                   WindowsInstaller.Installer)
22.	 
23.	    strPatchPath = "C:\Program Files (x86)\MyComp\Adept80\MyApp\Install\MyAppPatch.msp"
24.	    strPatchXML = iInstaller.ExtractPatchXMLData(strPatchPath)
25.	 
26.	    xmlMsiPatch.LoadXml(strPatchXML)
27.	 
28.	    strPatchCode = xmlMsiPatch.DocumentElement.Attributes("PatchGUID"
).Value
29.	    strProdCode = xmlMsiPatch.GetElementsByTagName("TargetProductCod
e").Item(0).InnerText
30.	 
31.	    pPatch = iInstaller.Patch(strPatchCode, strProdCode, "", msiInstallContextMachine)
32.	 
33.	    If pPatch.State = MSIPATCHSTATE_APPLIED Then 'already applied
34.	        MsgBox("Write to log... Patch has already been applied (" &amp;amp; pPatch.State &amp;amp; ")!")
35.	    Else
36.	        MsgBox("I'm installing the patch")
37.	    End If
38.	 
39.	Catch ex As Exception
40.	    MsgBox(Err.Number)
41.	    MsgBox(Err.Description)
42.	    'MsgBox(ex.Message)
43.	    MsgBox(ex.ToString)
44.	 
45.	    'ERROR_PATCH_NOT_APPLIED
46.	End Try

&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
This code is failing on line 31 with an error 13 - Return Argument Has An Invalid Type.  Can anyone help get me around this?  I've attached an image with some more info from this error.&lt;br /&gt;
&lt;br /&gt;
Since all of this may have to be ported to C++, I wonder if its better to try to get the following code up and running...&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;1.	Const MinMsiVersion = "3.0" 'Minimum version to support functionality
2.	Const MSIPATCHSTATE_APPLIED = 1 'Patch is applied to this product instance.
3.	Const msiInstallContextMachine = 4 'Enumerate products that are under the machine account.
4.	 
5.	Dim iInstaller = CreateObject("WindowsInstaller.Installer")
6.	 
7.	Dim strPatchPath, _
8.	    strPatchCode, _
9.	    strProdCode As String
10.	Dim strPatchXML As String
11.	Dim xmlMsiPatch As XmlDocument = New XmlDocument()
12.	 
13.	Try
14.	 
15.	If MinMsiVersion &amp;gt; iInstaller.Version Then
16.	     MsgBox("Minimum Windows Installer version " &amp;amp; MinMsiVersion &amp;amp; " required.  Current version is " &amp;amp; iInstaller.Version, MsgBoxStyle.OkOnly, "Windows Installer version problem...")
17.	End If
18.	 
19.	strPatchPath = "C:\Program Files (x86)\MyComp\MyApp\Client\Install\MyAppPatch.msp"
20.	strPatchXML = iInstaller.ExtractPatchXMLData(strPatchPath)
21.	 
22.	xmlMsiPatch.LoadXml(strPatchXML)
23.	 
24.	strPatchCode = xmlMsiPatch.DocumentElement.Attributes("PatchGUID"
).Value
25.	strProdCode = xmlMsiPatch.GetElementsByTagName("TargetProductCod
e").Item(0).InnerText
26.	 
27.	Dim pPatch = iInstaller.Patch(strPatchCode, strProdCode, "", msiInstallContextMachine)
28.	 
29.	If pPatch.State = MSIPATCHSTATE_APPLIED Then 'already applied
30.	    MsgBox("Write to log... Patch has already been applied (" &amp;amp; pPatch.State &amp;amp; ")!")
31.	Else
32.	    MsgBox("I'm installing the patch")
33.	End If
34.	 
35.	Catch ex As Exception
36.	    MsgBox(Err.Number)
37.	    MsgBox(Err.Description)
38.	    'MsgBox(ex.Message)
39.	    MsgBox(ex.ToString)
40.	 
41.	    'ERROR_PATCH_NOT_APPLIED
42.	End Try

&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
However this code snippet was failing on...&lt;br /&gt;
&lt;br /&gt;
If pPatch.State = MSIPATCHSTATE_APPLIED Then&lt;br /&gt;
&lt;br /&gt;
The error number I eventually was able to get from it was -21470223249 which after digging a bit I found was ERROR_PATCH_NOT_APPLIED.&lt;br /&gt;
&lt;br /&gt;
I'm not currently able to handle if the patch has not been applied with this code. If the patch is installed, the return, 1, is fine and the log write would occur (in this case msgbox). If not installed or applied, BOOM!&lt;br /&gt;
&lt;br /&gt;
In the first code snipped, these were the imports...&lt;br /&gt;
&lt;br /&gt;
Imports WindowsInstallerImports SystemImports System.Xml&lt;br /&gt;
&lt;br /&gt;
In the second code segment, Windowsinstaller was commented out.&lt;br /&gt;
&lt;br /&gt;
I hope someone can help me as I think/hope I am very close to having some workable code to detect if a patch has been applied!&lt;br /&gt;
&lt;br /&gt;
Thanks in advance for any help!!!&lt;br /&gt;
&lt;br /&gt;
THANKS FOR YOUR HELP!!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBNET/431586/431586/problems-determining-patchstate---windowsinstaller/</guid>
      <pubDate>Fri, 15 Mar 2013 09:11:23 -0700</pubDate>
      <category>VB.NET</category>
    </item>
  </channel>
</rss>