<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>Visual Basic Forum RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest threads from the 'Visual Basic' forum at Programmer's Heaven, excluding replies.</description>
    <language>en</language>
    <copyright>Copyright 2008 Programmers Heaven</copyright>
    <pubDate>Mon, 01 Dec 2008 19:22:01 -0700</pubDate>
    <lastBuildDate>Mon, 01 Dec 2008 19:22:01 -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>Customised Watch Window</title>
      <link>http://www.programmersheaven.com/mb/VBasic/382418/382418/customised-watch-window/</link>
      <description>Hello,&lt;br /&gt;
&lt;br /&gt;
I am in the middle of writing an Add-In to assist with some program conversions. I need to automate this as there are hundreds of legacy VB6 programs that need converting.&lt;br /&gt;
&lt;br /&gt;
What it will hopefully do is listen in on all ADODB ***.CommandText properties it finds and list any SQL sent to the server as the program executes it. This can then be analysed later.&lt;br /&gt;
&lt;br /&gt;
What I'd like to do is programmatically do the same thing as the Watch Window but allowing me to 'dump' the contents of variables and properties to a text file or database.&lt;br /&gt;
&lt;br /&gt;
Any ideas gratefully received.&lt;br /&gt;
&lt;br /&gt;
Matt.</description>
      <pubDate>Mon, 01 Dec 2008 08:10:06 -0700</pubDate>
      <category>Visual Basic</category>
    </item>
    <item>
      <title>VB6 PrintForm</title>
      <link>http://www.programmersheaven.com/mb/VBasic/382405/382405/vb6-printform/</link>
      <description>i am at novice level. Shortsightedly I have developed an extensive application only to realize too late that PrintForm is not all that it's cracked up to be.&lt;br /&gt;
&lt;br /&gt;
I have a single A4 sized form to print (the form is bigger than the screen size). There is a mixture of graphics and textboxes on the form. Without data populated in the textboxes, the form prints perfectly with "Form.PrintForm". But as soon as I run the program and populate the form (textboxes) with data, only half the page (actualy about 2/3) prints. The rest of the printed page is left blank. This makes me think that the problem might be memory related, but I still have no idea how to fix the problem.&lt;br /&gt;
&lt;br /&gt;
I have searched the internet for a solution and found that as early as 2004 a similar question surfaced. But the question was never answered or solved.&lt;br /&gt;
&lt;br /&gt;
Can anyone help me PLEASE. &lt;br /&gt;</description>
      <pubDate>Mon, 01 Dec 2008 04:23:09 -0700</pubDate>
      <category>Visual Basic</category>
    </item>
    <item>
      <title>Problem in maintaining Passwords in Visual Basic 6.0</title>
      <link>http://www.programmersheaven.com/mb/VBasic/382372/382372/problem-in-maintaining-passwords-in-visual-basic-60/</link>
      <description>I have found that the Visual Basic 6.0 has no security in maintaining passwords.&lt;br /&gt;
&lt;br /&gt;
To check This , do the Following,&lt;br /&gt;
&lt;br /&gt;
Step 1: Make an EXE file with a login form in Visual Basic 6.0 with some passwords.&lt;br /&gt;
&lt;br /&gt;
Step 2: Open Notepad and Drag that EXE file into Notepad.&lt;br /&gt;
&lt;br /&gt;
Step 3: In the Search Window Search for ASCII char 160(á) Followed By N-3 i.e. ( áN-3).&lt;br /&gt;
&lt;br /&gt;
The password lies before the cursor or after the cursor.&lt;br /&gt;
&lt;br /&gt;
prakashraj.sns @ gmail.com, prakashraj.viswanathan @ gmail.com&lt;br /&gt;</description>
      <pubDate>Sun, 30 Nov 2008 04:14:17 -0700</pubDate>
      <category>Visual Basic</category>
    </item>
    <item>
      <title>ADO/ODBC VB</title>
      <link>http://www.programmersheaven.com/mb/VBasic/382314/382314/adoodbc-vb/</link>
      <description>Hiya&lt;br /&gt;
&lt;br /&gt;
I have a problem with ADO, which works fine using ODBC&lt;br /&gt;
&lt;br /&gt;
I am connected to an SqlServer2000 database and execute a stored procedure of which the primary function is to insert a record into a table, but there are several audit trail inserts too.&lt;br /&gt;
&lt;br /&gt;
The stored procedure has a final argument of @ReturnResults int, which is set to 1, and if set, it selects the data to return to the caller.&lt;br /&gt;
&lt;br /&gt;
When I execute this in Query analyser, I get the results I would expect, ie, 1 recordset with 1 row. When I execute this through VB and use ODBC, I get the results I expect. However, when I use ADO, I get a recordset back but the recordset is closed and so when I try to access it I get the error "Operation is not allowed when the object is closed".&lt;br /&gt;
&lt;br /&gt;
I really want to use ADO, for the speed.&lt;br /&gt;
&lt;br /&gt;
My code is here:&lt;br /&gt;
&lt;br /&gt;
'Open the connection -- ADO&lt;br /&gt;
  oConn.Open "Provider=SQLOLEDB.1;Password=********;Persist Security Info=True;User ID=*******;Initial Catalog=MyDB;Data Source=DS;Trusted_Connection=No"&lt;br /&gt;
&lt;br /&gt;
'OPen the connection -- ODBC&lt;br /&gt;
oConn.Open "DSN=Test;Uid=******;pwd=********"&lt;br /&gt;
&lt;br /&gt;
Execute the procedure&lt;br /&gt;
&lt;br /&gt;
SQL string = "Exec stp_f_PurchaseOrdersFromSale 555567,0,1"&lt;br /&gt;
&lt;br /&gt;
(The last argument indicates return to me a recordset of the new PurchaseOrder)&lt;br /&gt;
&lt;br /&gt;
The execute code is:&lt;br /&gt;
&lt;br /&gt;
  Set O_CMD = New ADODB.Command&lt;br /&gt;
   Set O_CMD.ActiveConnection = oConn&lt;br /&gt;
   O_CMD.CommandType = adCmdText&lt;br /&gt;
   O_CMD.CommandText = SQLStr&lt;br /&gt;
   O_CMD.CommandTimeout = 0&lt;br /&gt;
   Set o_RS = O_CMD.Execute&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If I use ODBC and then say ? o_rs.recordcount, it returns 1&lt;br /&gt;
if I use ADO and then say ? o_rs.recordcount, it returns the error&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I have a feeling the problem is my connection properties for the ADO connection.&lt;br /&gt;
&lt;br /&gt;
Any help appreciated.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <pubDate>Fri, 28 Nov 2008 04:05:45 -0700</pubDate>
      <category>Visual Basic</category>
    </item>
    <item>
      <title>couter using VB DAO</title>
      <link>http://www.programmersheaven.com/mb/VBasic/382310/382310/couter-using-vb-dao/</link>
      <description>gud day, this is my new code of my counter using vb-DAO. if i were going use this code, this will happen (refer to my attachment). the quantity of the first product will added to its proceeding product. That is a very big mistake. My only problem right now is my counter. I want to know which product is most buy by the customer to get this is that I want to compare my product code and then sum up their quantity and display tally of the product being sold within the range of time.&lt;br /&gt;
&lt;br /&gt;
"code"&lt;br /&gt;
&lt;br /&gt;
Private Sub cmdSearch_Click()&lt;br /&gt;
Dim total As Currency&lt;br /&gt;
Dim x As Integer&lt;br /&gt;
Dim i As Integer&lt;br /&gt;
Dim Quantity As TableDef&lt;br /&gt;
'On Error GoTo abortsub&lt;br /&gt;
&lt;br /&gt;
Set Dbase = OpenDatabase(App.Path &amp;amp; "\Break.mdb")&lt;br /&gt;
Set SALE = Dbase.OpenRecordset("Select * from SalesTable")&lt;br /&gt;
&lt;br /&gt;
'Set SALE = Dbase.OpenRecordset("select ProdCode, sum(Quantity) , max(Date) from SalesTable GROUP BY ProdCode, Date;")&lt;br /&gt;
&lt;br /&gt;
SALE.MoveFirst&lt;br /&gt;
Do Until SALE.EOF&lt;br /&gt;
&lt;br /&gt;
If DTPicker1.Value &amp;lt;= SALE!Pitsa And _&lt;br /&gt;
DTPicker2.Value &amp;gt;= SALE!Pitsa Then&lt;br /&gt;
&lt;br /&gt;
If SALE!ProdCode = SALE!ProdCode Then&lt;br /&gt;
For i = 0 To SALE.EOF&lt;br /&gt;
x = x + SALE!Quantity&lt;br /&gt;
&lt;br /&gt;
'For Each Quantity In SALE!Quantity&lt;br /&gt;
'x = x + SALE!Quantity&lt;br /&gt;
&lt;br /&gt;
With grd&lt;br /&gt;
.Rows = .Rows + 1&lt;br /&gt;
.TextMatrix(.Rows - 1, 0) = SALE!ProdCode&lt;br /&gt;
.TextMatrix(.Rows - 1, 1) = SALE!ProdName&lt;br /&gt;
.TextMatrix(.Rows - 1, 2) = x 'SALE!Quantity + SALE!Quantity&lt;br /&gt;
.TextMatrix(.Rows - 1, 3) = Format((SALE!Price), "##.00")&lt;br /&gt;
.TextMatrix(.Rows - 1, 4) = Format((SALE!Price * .TextMatrix(.Rows - 1, 2)), "##.00")&lt;br /&gt;
End With&lt;br /&gt;
total = total + grd.TextMatrix(grd.Rows - 1, 4)&lt;br /&gt;
Next i&lt;br /&gt;
End If&lt;br /&gt;
End If&lt;br /&gt;
&lt;br /&gt;
SALE.MoveNext&lt;br /&gt;
Loop&lt;br /&gt;
grd.Rows = grd.Rows + 1&lt;br /&gt;
grd.TextMatrix(grd.Rows - 1, 3) = "Total"&lt;br /&gt;
grd.TextMatrix(grd.Rows - 1, 4) = Format(total, "#,##0.00")&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'abortsub:&lt;br /&gt;
'Exit Sub&lt;br /&gt;
End Sub&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&lt;br&gt;&lt;br&gt;&lt;strong&gt;Attachment:&lt;/strong&gt; &lt;a href="http://www.programmersheaven.com/mb/DownloadAttachment.aspx?AttachmentID=338"&gt;gui2.jpg&lt;/a&gt; (236840 bytes | downloaded 8 times)</description>
      <pubDate>Fri, 28 Nov 2008 00:59:30 -0700</pubDate>
      <category>Visual Basic</category>
    </item>
    <item>
      <title>Help reqd to update project from VB6 to VB8</title>
      <link>http://www.programmersheaven.com/mb/VBasic/382278/382278/help-reqd-to-update-project-from-vb6-to-vb8/</link>
      <description>Hi &lt;br /&gt;
&lt;br /&gt;
I am using an application built in VB6 in VB 8 express edition. When I try to open it, it asks me to update the project and then throws the following error : &lt;br /&gt;
&lt;strong&gt;&lt;br /&gt;
Upgrade failed: Exception occured: Could not load referenced component: &lt;br /&gt;
EParser.tlb (Asian CERC - Expression Parser 1.0.0) &lt;br /&gt;
You need to install this component before you upgrade the project. &lt;br /&gt;
It is recommended you install VB6.0, with all referenced components, and ensure the application compiles and runs before upgrading.&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
Can anyone help me here. I am kinda stuck here. &lt;br /&gt;
&lt;br /&gt;
Thanks in Anticipation. &lt;br /&gt;
&lt;br /&gt;
Adios... &lt;br /&gt;</description>
      <pubDate>Wed, 26 Nov 2008 21:22:13 -0700</pubDate>
      <category>Visual Basic</category>
    </item>
    <item>
      <title>How to create backup program in VB6</title>
      <link>http://www.programmersheaven.com/mb/VBasic/382264/382264/how-to-create-backup-program-in-vb6/</link>
      <description>Hey I was wondering how i could make a little backup program in VB to copy a small access database.  Im not sure where to even start.  I am just looking to get a small program working then I was going to try and advance onto copying this dbase to another computer on the network.</description>
      <pubDate>Wed, 26 Nov 2008 15:33:48 -0700</pubDate>
      <category>Visual Basic</category>
    </item>
    <item>
      <title>RELEASE: Jabaco 1.4.0 BETA - 2008-11-18</title>
      <link>http://www.programmersheaven.com/mb/VBasic/382259/382259/release-jabaco-140-beta---2008-11-18/</link>
      <description>Jabaco is a simple programming language with a BASIC like syntax that enables you to build powerful applications on the Java Framework.&lt;br /&gt;
&lt;br /&gt;
Features&lt;br /&gt;
&lt;br /&gt;
    * BASIC to Java Bytecode-Compiler&lt;br /&gt;
    * Open Source Framework with many Visual Basic functions and wrappers&lt;br /&gt;
    * Jabaco Debugger (over JDWP)&lt;br /&gt;
    * Graphical GUI-Editor for rapid application development&lt;br /&gt;
    * Source-Editor with autocompletion&lt;br /&gt;
    * Java Exe-Wrapper for Windows&lt;br /&gt;
&lt;br /&gt;
Jabaco in action: &lt;a href="http://www.jabaco.org/index.php?page=webcast"&gt;http://www.jabaco.org/index.php?page=webcast&lt;/a&gt;&lt;br /&gt;</description>
      <pubDate>Wed, 26 Nov 2008 12:43:29 -0700</pubDate>
      <category>Visual Basic</category>
    </item>
    <item>
      <title>Converting string to object pointer</title>
      <link>http://www.programmersheaven.com/mb/VBasic/382191/382191/converting-string-to-object-pointer/</link>
      <description>Hi,&lt;br /&gt;
&lt;br /&gt;
I'm using Visual Basic Express 2008.&lt;br /&gt;
I'm trying to update a button's background color (one of many buttons). I have a dialog box that use's a listbox to represent a list of buses. I want the user to select a bus number from the list, and then I want to change the background color of the button representing that bus (ie: buttonBus1.BackColor). Doing it directly, I can just do "buttonBus1.BackColor = Color.Blue". But I want to use the string returned from Dlg.ListBoxBus.SelectedItem (which contains the number of the bus) so I could do this by the program. How can you convert the string I would build (ie: buttonBus1 from "buttonBus" + "x") into a pointer to the real buttonBus1?&lt;br /&gt;
&lt;br /&gt;
Desperate, frustrated, and will be thankful to any who could help.&lt;br /&gt;</description>
      <pubDate>Mon, 24 Nov 2008 12:01:59 -0700</pubDate>
      <category>Visual Basic</category>
    </item>
    <item>
      <title>removing a sheet total at the end of crystal report</title>
      <link>http://www.programmersheaven.com/mb/VBasic/382167/382167/removing-a-sheet-total-at-the-end-of-crystal-report/</link>
      <description>hi!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is urgent, plz help me at this point of time!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
how can i remove the sheet total at the last page or end of crystal report. only the grand total will appear...&lt;br /&gt;
As of now, this is the preview of my report...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
this is the 1st page:&lt;br /&gt;
&lt;br /&gt;
          HEADER&lt;br /&gt;
SURNAME         AMOUNT&lt;br /&gt;
JAVIER          0.00&lt;br /&gt;
  &lt;br /&gt;
&lt;br /&gt;
      SHEET TOTAL  0.00&lt;br /&gt;
&lt;br /&gt;
THIS IS THE LAST PAGE ASSUMING:&lt;br /&gt;
&lt;br /&gt;
HEADER&lt;br /&gt;
SURNAME         AMOUNT&lt;br /&gt;
JAVIER          0.00&lt;br /&gt;
        &lt;br /&gt;
      GRAND TOTAL  0.00&lt;br /&gt;
&lt;br /&gt;
     &lt;strong&gt; SHEET TOTAL  0.00-THIS SHOULD BE REMOVED. HOW CAN I DO THIS?????&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <pubDate>Sun, 23 Nov 2008 23:32:15 -0700</pubDate>
      <category>Visual Basic</category>
    </item>
    <item>
      <title>Crystal reports groupwise calculation.</title>
      <link>http://www.programmersheaven.com/mb/VBasic/382166/382166/crystal-reports-groupwise-calculation/</link>
      <description>HI !!&lt;br /&gt;
&lt;br /&gt;
I want the groupwise calculation in the crystal report.&lt;br /&gt;
&lt;br /&gt;
It's look like...&lt;br /&gt;
&lt;br /&gt;
Group 24/9/2008&lt;br /&gt;
&lt;br /&gt;
Account Name                                   Credit     Debit&lt;br /&gt;
----------------------------------------------------------------------&lt;br /&gt;
Opening balance            (Cr)                     2000&lt;br /&gt;
----------------------------------------------------------------------&lt;br /&gt;
Jhon A/c                   (Cr)                     1000&lt;br /&gt;
Dwee A/c                   (Dr)                                500&lt;br /&gt;
----------------------------------------------------------------------&lt;br /&gt;
Total                                           1000       500&lt;br /&gt;
----------------------------------------------------------------------&lt;br /&gt;
Closing Balance  (Need This)   (Cr)                 2500&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Group 25/9/2008&lt;br /&gt;
&lt;br /&gt;
Account Name                                   Credit     Debit&lt;br /&gt;
----------------------------------------------------------------------&lt;br /&gt;
Opening balance  (Need This)    (Cr)                2500&lt;br /&gt;
----------------------------------------------------------------------&lt;br /&gt;
Varun A/c                       (Cr)                 100&lt;br /&gt;
Rajesh A/c                      (Dr)                             500&lt;br /&gt;
----------------------------------------------------------------------&lt;br /&gt;
Total                                            100         500&lt;br /&gt;
----------------------------------------------------------------------&lt;br /&gt;
Closing Balance  (Need This)    (Cr)                2100&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Please help .......&lt;br /&gt;</description>
      <pubDate>Sun, 23 Nov 2008 20:52:23 -0700</pubDate>
      <category>Visual Basic</category>
    </item>
    <item>
      <title>error in hive name</title>
      <link>http://www.programmersheaven.com/mb/VBasic/382146/382146/error-in-hive-name/</link>
      <description>can some one remove error from following code.&lt;br /&gt;
&lt;br /&gt;
strComputer = "."&lt;br /&gt;
 &lt;br /&gt;
Set objWMIService = GetObject("winmgmts:\\" &amp;amp; strComputer &amp;amp; "\root\default")&lt;br /&gt;
 &lt;br /&gt;
Set colEvents = objWMIService.ExecNotificationQuery _&lt;br /&gt;
    ("SELECT * FROM RegistryKeyChangeEvent WHERE Hive='HKEY_CURRENT_USER' AND " &amp;amp; _&lt;br /&gt;
        "KeyPath='CONSOLE'") &lt;br /&gt;
 &lt;br /&gt;
Do&lt;br /&gt;
    Set objLatestEvent = colEvents.NextEvent&lt;br /&gt;
    Wscript.Echo Now &amp;amp; ": The registry has been modified."&lt;br /&gt;
Loop&lt;br /&gt;
&lt;br /&gt;</description>
      <pubDate>Sat, 22 Nov 2008 19:07:27 -0700</pubDate>
      <category>Visual Basic</category>
    </item>
    <item>
      <title>monitor registry</title>
      <link>http://www.programmersheaven.com/mb/VBasic/382099/382099/monitor-registry/</link>
      <description>Can some one give me code to monitor two specified registries. Suppose there are two registry key. Key a and b having value of a = 10 and b = 120&lt;br /&gt;
Now i want vbs code which monitor these two keys and in case anyone changes the values, code redo the changes and set default value again.&lt;br /&gt;</description>
      <pubDate>Fri, 21 Nov 2008 04:54:53 -0700</pubDate>
      <category>Visual Basic</category>
    </item>
    <item>
      <title>Anybody can help of my counter</title>
      <link>http://www.programmersheaven.com/mb/VBasic/382018/382018/anybody-can-help-of-my-counter/</link>
      <description>gud day....this is my code of my counter but doesn't work on my system. how i will going to count the product having the same product code and date? and when it is already existing i will just add the quantity and if not found it will save in the database.&lt;br /&gt;
&lt;br /&gt;
counter&lt;br /&gt;
&lt;br /&gt;
For i = 1 To grd.Rows - 1&lt;br /&gt;
With INV&lt;br /&gt;
If grd.TextMatrix(i, 0) = INV!ProdCode Then&lt;br /&gt;
.Edit&lt;br /&gt;
!Quantity = !Quantity + Val(grd.TextMatrix(i, 3))&lt;br /&gt;
.Update&lt;br /&gt;
Else&lt;br /&gt;
.AddNew&lt;br /&gt;
!ProdCode = grd.TextMatrix(i, 0)&lt;br /&gt;
!ProdName = grd.TextMatrix(i, 2)&lt;br /&gt;
!Quantity = grd.TextMatrix(i, 3)&lt;br /&gt;
!Date = DTPicker1.Value&lt;br /&gt;
.Update&lt;br /&gt;
End If&lt;br /&gt;
End With&lt;br /&gt;
Next i&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
regards,&lt;br /&gt;
D9&lt;br /&gt;</description>
      <pubDate>Tue, 18 Nov 2008 19:27:33 -0700</pubDate>
      <category>Visual Basic</category>
    </item>
    <item>
      <title>open a file</title>
      <link>http://www.programmersheaven.com/mb/VBasic/381975/381975/open-a-file/</link>
      <description>here is a easy question for you guys:&lt;br /&gt;
&lt;br /&gt;
How do I open a file?  I don't mean import it in vb, I want to open it using the default program.&lt;br /&gt;
example: I want to open a mp3 using windows media player when I ask my program to do so...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
thanks&lt;br /&gt;</description>
      <pubDate>Mon, 17 Nov 2008 14:21:02 -0700</pubDate>
      <category>Visual Basic</category>
    </item>
    <item>
      <title>Storing a color scheme</title>
      <link>http://www.programmersheaven.com/mb/VBasic/381964/381964/storing-a-color-scheme/</link>
      <description>Hello,&lt;br /&gt;
&lt;br /&gt;
I have a program all created, and I am looking to implement a color scheme.  As of right now the scheme is being stored in a database.  My question is, when I load the scheme into the program, what type of variable do I need to set the colors as?&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
'****************************** Store Variables
Public Type ColorScheme
    Text1 As Byte
    Text2 As Byte
    BG1 As Byte
    BG2 As Byte
    BoxBG As Byte
    BoxText As Byte
End Type
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
'************** Code to execute on page load
BG.BackColor = UColor.BG1
Me.BackColor = UColor.BG2
Hint1.BackColor = UColor.BG2
Hint2.BackColor = UColor.BG2
LabSelect.ForeColor = UColor.Text2
LabDate.ForeColor = UColor.Text2
LabNum1.ForeColor = UColor.Text1
LabNum2.ForeColor = UColor.Text1
LabOpen.BackColor = UColor.Text1
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As of right now, they are set to byte.  Obviously that doesn't work, but I have tried everything I can think of and anytime the page loads, I get a type mismatch.  Is there a function or anything to convert string into a color property?&lt;br /&gt;
&lt;br /&gt;</description>
      <pubDate>Mon, 17 Nov 2008 08:04:01 -0700</pubDate>
      <category>Visual Basic</category>
    </item>
    <item>
      <title>Parallel Port Programming in Visual Basic</title>
      <link>http://www.programmersheaven.com/mb/VBasic/381920/381920/parallel-port-programming-in-visual-basic/</link>
      <description>To get an idea about how to use Visual Basic in Programming Parallel Port,&lt;br /&gt;
Read my article about "Parallel Port Programming in Visual Basic" in my ProgrammersHeaven Blog.&lt;br /&gt;
&lt;a href="http://www.programmersheaven.com/user/sanjeewamad/blog/406-Parallel-port-programming-in-Visual-Basic/"&gt;http://www.programmersheaven.com/user/sanjeewamad/blog/406-Parallel-port-programming-in-Visual-Basic/&lt;/a&gt; &lt;br /&gt;</description>
      <pubDate>Sun, 16 Nov 2008 04:21:32 -0700</pubDate>
      <category>Visual Basic</category>
    </item>
    <item>
      <title>About Delete</title>
      <link>http://www.programmersheaven.com/mb/VBasic/381850/381850/about-delete/</link>
      <description>hi i'm a beginner of VB. Im using DAO, I want to delete some data on my database using this code but unfortunately it doesn't work.  &lt;br /&gt;
&lt;br /&gt;
With DTPicker1.Value&lt;br /&gt;
    Dbase.Execute ("Delete * from SalesTable where eDate ='" &amp;amp; DTPicker1.Value &amp;amp; "'")&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
anybody can help me. &lt;br /&gt;</description>
      <pubDate>Thu, 13 Nov 2008 20:15:08 -0700</pubDate>
      <category>Visual Basic</category>
    </item>
    <item>
      <title>Send/receive data over a network</title>
      <link>http://www.programmersheaven.com/mb/VBasic/381718/381718/sendreceive-data-over-a-network/</link>
      <description>hey, i'm using VB express and i'm trying to make some multiplayer games, i want a simple block of code that will send data over a network and wait for a response when i click a button, can anyone help me?&lt;br /&gt;</description>
      <pubDate>Mon, 10 Nov 2008 22:23:48 -0700</pubDate>
      <category>Visual Basic</category>
    </item>
    <item>
      <title>group by function in Visual Basic</title>
      <link>http://www.programmersheaven.com/mb/VBasic/381705/381705/group-by-function-in-visual-basic/</link>
      <description>I am trying to code "group by" function in Visual Basic. This is what I am trying to do:&lt;br /&gt;
&lt;br /&gt;
I have these fields: EmpID(), Date, TimeWorked(). I will have multiple entries for each employee.&lt;br /&gt;
&lt;br /&gt;
I need to code to get total hours worked by each employee. I am not using any database. &lt;br /&gt;
&lt;br /&gt;
The sql query would have been:&lt;br /&gt;
&lt;br /&gt;
select EmpID, sum(TimeWorked) from table_name&lt;br /&gt;
group by EmpID;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <pubDate>Mon, 10 Nov 2008 11:18:25 -0700</pubDate>
      <category>Visual Basic</category>
    </item>
    <item>
      <title>error</title>
      <link>http://www.programmersheaven.com/mb/VBasic/381678/381678/error/</link>
      <description>"run-time error'3061'"? what does it mean? &lt;br /&gt;</description>
      <pubDate>Sun, 09 Nov 2008 19:39:59 -0700</pubDate>
      <category>Visual Basic</category>
    </item>
    <item>
      <title>BLINKY PROBLEM...</title>
      <link>http://www.programmersheaven.com/mb/VBasic/381656/381656/blinky-problem/</link>
      <description>hey i had a programming class last year at my school, but i have unfortunately forgot almost everything....&lt;br /&gt;
see we had a program called "blinky", which is where we had 2 timers put into our form, and we coded it to where we got the background to blink different colors according to whatever colors you put in the code....&lt;br /&gt;
i'm hoping someone could help me!!&lt;br /&gt;
THANKS =]&lt;br /&gt;
&lt;br /&gt;
here's what i got so far, this is as close as i could get it from memorization on how it was in the book:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;Public Class Form1

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        intswitch1.Start()
        intswitch2.Start()

    End Sub

    Private Sub intswitch1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles intswitch1.Tick
        Static intswitch1 As Integer = 0
        Me.BackColor = Color.AliceBlue
        intswitch1 = intswitch1 + 1
        Me.BackColor = Color.Aquamarine
        intswitch1 = intswitch1 + 1
        Me.BackColor = Color.Violet
        intswitch1 = intswitch1 + 1
        Me.BackColor = Color.Green
        intswitch1 = intswitch1 + 1

    End Sub

    Private Sub intswitch2_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles intswitch2.Tick
        Static intswitch2 As Integer = 0
        Me.BackColor = Color.Black
        intswitch2 = intswitch2 + 1
        Me.BackColor = Color.Red
        intswitch2 = intswitch2 + 1
        Me.BackColor = Color.White
        intswitch2 = intswitch2 + 1
        Me.BackColor = Color.Blue
        intswitch2 = intswitch2 + 1

    End Sub
End Class&lt;/pre&gt;&lt;br /&gt;</description>
      <pubDate>Sat, 08 Nov 2008 23:58:35 -0700</pubDate>
      <category>Visual Basic</category>
    </item>
    <item>
      <title>why sendkeys is not working ?</title>
      <link>http://www.programmersheaven.com/mb/VBasic/381650/381650/why-sendkeys-is-not-working-/</link>
      <description>hi&lt;br /&gt;
Can you help me ?&lt;br /&gt;
&lt;br /&gt;
problem :&lt;br /&gt;
               OS platform : win xp&lt;br /&gt;
&lt;br /&gt;
i have open a M S word document using OLE control in vb form, now i want to retrieve selected texts from word file to say clipboard, so i have written like:&lt;br /&gt;
&lt;br /&gt;
Private Sub Command1_Click()&lt;br /&gt;
'SendKeys "^(C)", True&lt;br /&gt;
'or&lt;br /&gt;
SendKeys "^{INSERT}"&lt;br /&gt;
End Sub&lt;br /&gt;
&lt;br /&gt;
but none of them are working.&lt;br /&gt;
I don't understand what is wrong in that, is there any other way by which i can retrieve selected text from M S Word file embedded with vb form and move it to clip board. So that later on i can fetch those text from clipboard to my vb application. Can you give me some suggestion or ideas or sample code for that ?&lt;br /&gt;
Thank you.&lt;br /&gt;</description>
      <pubDate>Sat, 08 Nov 2008 10:53:01 -0700</pubDate>
      <category>Visual Basic</category>
    </item>
    <item>
      <title>Free Activex</title>
      <link>http://www.programmersheaven.com/mb/VBasic/381583/381583/free-activex/</link>
      <description>Free activex style xp, vista, and more style&lt;br /&gt;
You can download on &lt;a href="http://irvisoft.net46.net"&gt;http://irvisoft.net46.net&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
List Activex:&lt;br /&gt;
-frame&lt;br /&gt;
-maskedbox&lt;br /&gt;
-progressbar&lt;br /&gt;
&lt;br /&gt;
and more....&lt;br /&gt;</description>
      <pubDate>Thu, 06 Nov 2008 02:22:51 -0700</pubDate>
      <category>Visual Basic</category>
    </item>
    <item>
      <title>ACCESS DATABASE MERGING MULTIPLE FILES INTO SINGLE FILE</title>
      <link>http://www.programmersheaven.com/mb/VBasic/381547/381547/access-database-merging-multiple-files-into-single-file/</link>
      <description>&lt;strong&gt;Poll: THE APPLICATION IS USEFUL&lt;/strong&gt;&lt;br&gt;&lt;table width="310"&gt;
&lt;tr bgcolor="#F3F3F3"&gt;&lt;td width="250"&gt;YES&lt;/td&gt;&lt;td width="60"&gt;1 votes&lt;/td&gt;&lt;/tr&gt;
&lt;tr bgcolor="#FFFFFF"&gt;&lt;td width="250"&gt;NO&lt;/td&gt;&lt;td width="60"&gt;0 votes&lt;/td&gt;&lt;/tr&gt;
&lt;tr bgcolor="#F3F3F3"&gt;&lt;td width="250"&gt;NOT AT ALL&lt;/td&gt;&lt;td width="60"&gt;0 votes&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;br&gt;
[&lt;span style="font-size: large;"&gt;&lt;span style="color: Red;"&gt;&lt;a href="http://www.geocities.com/appnu/"&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;b]MERGING MULTIPLE ACCESS DATABASE FILES INTO SINGLE DATABASE FILE NEEDED ONLY COMMON STRUCTURE (ANY DATABASE NAME OR ANY TABLE NAME) &lt;br /&gt;
&lt;br /&gt;
PLEASE CLICK THE LINK AND DOWNLOAD THE SOURCE CODE FULLY&lt;br /&gt;
[/b]&lt;span style="font-size: large;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br&gt;&lt;br&gt;&lt;strong&gt;Attachment:&lt;/strong&gt; &lt;a href="http://www.programmersheaven.com/mb/DownloadAttachment.aspx?AttachmentID=319"&gt;FINALMG1.zip&lt;/a&gt; (417931 bytes | downloaded 37 times)</description>
      <pubDate>Tue, 04 Nov 2008 17:27:04 -0700</pubDate>
      <category>Visual Basic</category>
    </item>
  </channel>
</rss>