<?xml version="1.0" encoding="utf-8"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>DaniWeb IT Discussion Community - Visual Basic 4 / 5 / 6</title>
		<link>http://www.daniweb.com/forums/</link>
		<description><![CDATA[Our VB forum is the place for Q&A-style discussions related to legacy versions of VB as well as PowerBuilder. Note that we also have a separate Legacy Languages forum within the Software Development category, a VB.NET forum within the Software Development category, and an ASP.NET forum within the Web Development category.]]></description>
		<language>en-US</language>
		<lastBuildDate>Sat, 21 Nov 2009 01:46:48 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://www.daniweb.com/alphaimages/misc/rss.jpg</url>
			<title>DaniWeb IT Discussion Community - Visual Basic 4 / 5 / 6</title>
			<link>http://www.daniweb.com/forums/</link>
		</image>
		<item>
			<title>bridge</title>
			<link>http://www.daniweb.com/forums/thread240031.html</link>
			<pubDate>Fri, 20 Nov 2009 14:56:13 GMT</pubDate>
			<description>I need to make an application with vb  that copies all the files every time the folder opens and copies the files to another folder and it should overwrite all the files in the destination folder. 
the destination folder should contain everything the source folder contains, can anyone help me?.</description>
			<content:encoded><![CDATA[<div>I need to make an application with vb  that copies all the files every time the folder opens and copies the files to another folder and it should overwrite all the files in the destination folder.<br />
the destination folder should contain everything the source folder contains, can anyone help me?.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>andre_geerlof</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240031.html</guid>
		</item>
		<item>
			<title>form caption effects</title>
			<link>http://www.daniweb.com/forums/thread240013.html</link>
			<pubDate>Fri, 20 Nov 2009 13:17:11 GMT</pubDate>
			<description><![CDATA[how do we create form caption [form title bar] effetcs like typing words.]]></description>
			<content:encoded><![CDATA[<div>how do we create form caption [form title bar] effetcs like typing words.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>mahii</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240013.html</guid>
		</item>
		<item>
			<title>Deleting data in *.DBF from VB</title>
			<link>http://www.daniweb.com/forums/thread239976.html</link>
			<pubDate>Fri, 20 Nov 2009 09:44:25 GMT</pubDate>
			<description><![CDATA[Hi, 
 
i need some help, i need to delete some data in DBF file, and i have this code... but when i execute it .. nothing happends?   
 
Dim connectionString As String 
        connectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" & _ 
 "Data Source=D:\Documents and...]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
i need some help, i need to delete some data in DBF file, and i have this code... but when i execute it .. nothing happends?  <br />
<br />
Dim connectionString As String<br />
        connectionString = &quot;Provider=Microsoft.Jet.OLEDB.4.0;&quot; &amp; _<br />
 &quot;Data Source=D:\Documents and Settings\dmarinkovic\Desktop\Data1\FP550_EO022450;Extended Properties=dBase IV&quot;<br />
<br />
        Dim dBaseConnection As New System.Data.OleDb.OleDbConnection(connectionString)<br />
        Dim cmmd As New System.Data.OleDb.OleDbCommand(&quot;PACK Articles&quot;, dBaseConnection)<br />
<br />
        dBaseConnection.Open()<br />
<br />
        Dim dBaseCommand As New System.Data.OleDb.OleDbCommand(&quot;DELETE FROM Articles where PLU&lt;&gt;1&quot;, dBaseConnection)<br />
<br />
<br />
       <br />
        dBaseConnection.Close()</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>dejanbl</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239976.html</guid>
		</item>
		<item>
			<title>project proposal</title>
			<link>http://www.daniweb.com/forums/thread239978.html</link>
			<pubDate>Fri, 20 Nov 2009 08:29:45 GMT</pubDate>
			<description>guys am stuck if anybody can help me i will be very gratefull. i need a project proposal for a school library system ,currently the library is using paper system and am supposed to design a system in vb6.Am a student on attachment and the proposal is needed as soon as possible because i need to...</description>
			<content:encoded><![CDATA[<div>guys am stuck if anybody can help me i will be very gratefull. i need a project proposal for a school library system ,currently the library is using paper system and am supposed to design a system in vb6.Am a student on attachment and the proposal is needed as soon as possible because i need to submit it<br />
thank you guys .</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>simbarashe24</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239978.html</guid>
		</item>
		<item>
			<title>VB6 - Query/StoredProc works in Access but not in VB6 - please help!</title>
			<link>http://www.daniweb.com/forums/thread239867.html</link>
			<pubDate>Fri, 20 Nov 2009 00:01:07 GMT</pubDate>
			<description><![CDATA[Hi, 
 
I've got a bit of a problem with an application I am writing at the moment. I know it has to be something small which I'm missing, but I can't figure out what it is. 
 
Basically, I have a Query (or Stored Procedure if you prefer) in an Access2000 database called qryApptList which has one...]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I've got a bit of a problem with an application I am writing at the moment. I know it has to be something small which I'm missing, but I can't figure out what it is.<br />
<br />
Basically, I have a Query (or Stored Procedure if you prefer) in an Access2000 database called qryApptList which has one parameter (DateOfAppt). This parameter is Text (as is the Date field in the database table).<br />
<br />
If I run the query in Access, it prompts for the Date. I enter it in and it returns my results as it should. If I then do the same thing in VB6 using ADODB, it brings back nothing.<br />
<br />
My VB6 code...<br />
 <pre style="margin:20px; line-height:13px">Private m_oConnection As ADODB.Connection<br />
Private m_oCmdGetAppointments As ADODB.Command<br />
<br />
'Open the database connection<br />
Public Sub OpenDatabaseConnection()<br />
&nbsp; &nbsp; On Error GoTo ErrorHandler<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; If Len(m_sDatabasePath) = 0 Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; m_sDatabasePath = m_oParentForm.FileSelection<br />
&nbsp; &nbsp; End If<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; Set m_oConnection = New ADODB.Connection<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; m_oConnection.Open &quot;Provider=Microsoft.Jet.OLEDB.4.0;&quot; &amp; _<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &quot;Data Source=&quot; &amp; m_sDatabasePath<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; If m_oConnection.State &lt;&gt; adStateOpen Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; Set m_oConnection = Nothing<br />
&nbsp; &nbsp; &nbsp; &nbsp; MsgBox &quot;Could not open connection to database&quot;, vbCritical + vbOKOnly, App.Title<br />
&nbsp; &nbsp; &nbsp; &nbsp; Exit Sub<br />
&nbsp; &nbsp; End If<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; Exit Sub<br />
ErrorHandler:<br />
&nbsp; &nbsp; HandleError &quot;clsDatabaseHandler:OpenDatabaseConnection Sub&quot;<br />
End Sub<br />
<br />
<br />
'Method to get the appointments from the database<br />
Public Function GetAppointments(ByVal sDate As String, ByRef oRsAppts As ADODB.Recordset)<br />
&nbsp; &nbsp; On Error GoTo ErrorHandler<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; If m_oCmdGetAppointments Is Nothing Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; Set m_oCmdGetAppointments = New ADODB.Command<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; With m_oCmdGetAppointments<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Set .ActiveConnection = m_oConnection<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .CommandText = &quot;qryApptList&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .CommandType = adCmdStoredProc<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .Parameters.Append .CreateParameter(&quot;DateOfAppt&quot;, adVarChar, adParamInput, 11)<br />
&nbsp; &nbsp; &nbsp; &nbsp; End With<br />
&nbsp; &nbsp; End If<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; m_oCmdGetAppointments.Parameters(&quot;DateOfAppt&quot;) = sDate<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; Set oRsAppts = New ADODB.Recordset<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; oRsAppts.Open m_oCmdGetAppointments, , adOpenStatic, adLockReadOnly<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; Exit Function<br />
ErrorHandler:<br />
&nbsp; &nbsp; HandleError &quot;clsDatabaseHandler:GetAppointments Function&quot;<br />
End Function</pre><br />
All this code runs within a separate class module which is called from a form.<br />
<br />
And if it helps... my SQL query.<br />
 <pre style="margin:20px; line-height:13px">PARAMETERS DateOfAppt Text ( 255 );<br />
SELECT tblAppointments.ApptId, tblAppointments.User, tblAppointments.ApptDate, tblAppointments.ApptTime, tblAppointments.ClientId, tblAppointments.Comments, tblClients.Title, tblClients.FirstName, tblClients.Surname, tblClients.ContactNumber1<br />
FROM tblClients INNER JOIN tblAppointments ON tblClients.ClientId=tblAppointments.ClientId<br />
WHERE tblAppointments.ApptDate=[DateOfAppt];</pre><br />
I have had it working once and I had a recordcount of 1 in the recordset (I only have one record in the table by the way). I haven't knowingly changed anything but now I get 0 records every time.<br />
<br />
Any help would be massively appreciated as I'm tearing out what little hair I have left!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>jonifen</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239867.html</guid>
		</item>
		<item>
			<title>Access database /VB sorting - help required</title>
			<link>http://www.daniweb.com/forums/thread239826.html</link>
			<pubDate>Thu, 19 Nov 2009 19:22:59 GMT</pubDate>
			<description>hi, i am making an program in VB6 with access database....m inserting dates in the database at random....and want a listbox to be populated with first 3 dates starting after a particular date.... 
eg. input - 6 jan, 3 dec, 15 feb, 12 march, 10 dec, 7 june, 5 may 
 
now i want first 3 dates after 10...</description>
			<content:encoded><![CDATA[<div>hi, i am making an program in VB6 with access database....m inserting dates in the database at random....and want a listbox to be populated with first 3 dates starting after a particular date....<br />
eg. input - 6 jan, 3 dec, 15 feb, 12 march, 10 dec, 7 june, 5 may<br />
<br />
now i want first 3 dates after 10 Feb - i.e.- 15 feb, 12 March, 5 may<br />
<br />
Please help...</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>pankaj.garg</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239826.html</guid>
		</item>
		<item>
			<title><![CDATA[Hotel scheduling [grid thing]]]></title>
			<link>http://www.daniweb.com/forums/thread239775.html</link>
			<pubDate>Thu, 19 Nov 2009 14:54:34 GMT</pubDate>
			<description><![CDATA[Hi guyz... 
    
      Can you help me in my problem??? I cant figure out the scheduling grid for hotel system,.. What i mean is "it is a grid that you can drag and assign a date to a particular room to reserved or book a room...."  
 
 
      can you help me guyz??? I'm a newbie programmer......]]></description>
			<content:encoded><![CDATA[<div>Hi guyz...<br />
   <br />
      Can you help me in my problem??? I cant figure out the scheduling grid for hotel system,.. What i mean is &quot;it is a grid that you can drag and assign a date to a particular room to reserved or book a room....&quot; <br />
<br />
<br />
      can you help me guyz??? I'm a newbie programmer... Thanks guyz..., any source, websites , and idea is really appreciated...<br />
<br />
<br />
<br />
<br />
Oscar resonable</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>oscarresonable</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239775.html</guid>
		</item>
		<item>
			<title>Error 429 Encountered in Application Execution</title>
			<link>http://www.daniweb.com/forums/thread239746.html</link>
			<pubDate>Thu, 19 Nov 2009 13:23:55 GMT</pubDate>
			<description><![CDATA[Greetings all! 
 
         I'm facing a problem that's been throwing me for a loop for a while now.  I'm implementing an old VB application that someone else wrote a long time ago onto a VM.  I've gotten past a few different issues/errors just to get new ones (that's the name of the game though,...]]></description>
			<content:encoded><![CDATA[<div>Greetings all!<br />
<br />
         I'm facing a problem that's been throwing me for a loop for a while now.  I'm implementing an old VB application that someone else wrote a long time ago onto a VM.  I've gotten past a few different issues/errors just to get new ones (that's the name of the game though, right?) but while I've seen discussions on how to resolve this from a software development standpoint, I'm trying to see how to correct it based on the environment since it's already a developed app (with no source code here).  I'm getting a message of &quot;Error creating Letter: 429 ActiveX component can't creat object.&quot;  Any recommendations?  I've tried compensating by updating the MDAC and MS Jet40 DLL files but I'm still getting this error (followed by error 91 &quot;Object variable or With block variable not set&quot;).  This was implemented on a reformatted XP machine a year or so ago, and this VM is a Win 2000.  Any recommendations?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>CaffeineCoder</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239746.html</guid>
		</item>
		<item>
			<title>Adding numbers from a user in an array</title>
			<link>http://www.daniweb.com/forums/thread239667.html</link>
			<pubDate>Thu, 19 Nov 2009 07:27:48 GMT</pubDate>
			<description>Private Sub AddToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AddToolStripMenuItem.Click 
 
        Dim numbers() As Integer = {myarray(x)} 
        Dim element As Integer 
        Dim total As Integer 
 
        For Each element In numbers 
           ...</description>
			<content:encoded><![CDATA[<div>Private Sub AddToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AddToolStripMenuItem.Click<br />
<br />
        Dim numbers() As Integer = {myarray(x)}<br />
        Dim element As Integer<br />
        Dim total As Integer<br />
<br />
        For Each element In numbers<br />
            total = total + element<br />
        Next element<br />
<br />
    End Sub<br />
<br />
This is the code I have for adding the numbers in an array, but I keep getting an error that pertains to the top line that says &quot;Handles clause requires a WithEvents variable defined in the containing type or one of it's base types&quot;.  The words &quot;AddToolStripMenuItem&quot; are underlined.  How can I fix this?<br />
This is an assignment for school and I really need help!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>Kristan421</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239667.html</guid>
		</item>
		<item>
			<title>Help on changing label text</title>
			<link>http://www.daniweb.com/forums/thread239438.html</link>
			<pubDate>Wed, 18 Nov 2009 12:15:09 GMT</pubDate>
			<description>Hi, Can someone help please, I really need to get the text on a label to change to what is inputed by the user on the previous login form 
The text box where the username is entered is called UserNameBox and the label is called Label1 
 
So whatever is put in the text box i need it to be writen in...</description>
			<content:encoded><![CDATA[<div>Hi, Can someone help please, I really need to get the text on a label to change to what is inputed by the user on the previous login form<br />
The text box where the username is entered is called UserNameBox and the label is called Label1<br />
<br />
So whatever is put in the text box i need it to be writen in the label on another form<br />
Any help is really appreiciated</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>duelforce1</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239438.html</guid>
		</item>
		<item>
			<title>Set command button icon at runtime</title>
			<link>http://www.daniweb.com/forums/thread239383.html</link>
			<pubDate>Wed, 18 Nov 2009 07:22:46 GMT</pubDate>
			<description><![CDATA[Hello all, 
 
Im using below code to change the command button icon at run time. When the form is loaded button's icon will be showing but again icon will disappear when focus is changed to other controls on the form. Icon will be shown whenever focus is on that button. 
 
Is there any other way to...]]></description>
			<content:encoded><![CDATA[<div>Hello all,<br />
<br />
Im using below code to change the command button icon at run time. When the form is loaded button's icon will be showing but again icon will disappear when focus is changed to other controls on the form. Icon will be shown whenever focus is on that button.<br />
<br />
Is there any other way to set button icon at runtime??<br />
<br />
Thanks in advance <pre style="margin:20px; line-height:13px">Private Const GWL_STYLE&amp; = (-16)<br />
Private Const Graphical_Style As Long = (1409351691)<br />
<br />
Private Sub Form_Load()<br />
<br />
Dim lWindowStyle As Long<br />
lWindowStyle = SetWindowLong(Command2.hwnd, GWL_STYLE, Graphical_Style)<br />
Command2.Picture = LoadPicture(&quot;D:\Icons\Po.ico&quot;)<br />
<br />
End Sub</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>Shilparani</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239383.html</guid>
		</item>
		<item>
			<title>from access to access database in vb6</title>
			<link>http://www.daniweb.com/forums/thread239242.html</link>
			<pubDate>Tue, 17 Nov 2009 17:40:20 GMT</pubDate>
			<description>My project is connected to odbe driver with access database. i have another database with the same table and fields on my hard disk. i now want to use common dialog box to locate the access database on my hard disk and append the records in it to the running database (the database which my vb...</description>
			<content:encoded><![CDATA[<div>My project is connected to odbe driver with access database. i have another database with the same table and fields on my hard disk. i now want to use common dialog box to locate the access database on my hard disk and append the records in it to the running database (the database which my vb project is running on)since they have the same fields. at the same time i want to check for duplications of records (using the primary key).<br />
can anyone help me out.<br />
thz for ur concern<br />
<br />
credit to AndreRet he solved my first thread</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>jeffrey4u</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239242.html</guid>
		</item>
		<item>
			<title>solution for this</title>
			<link>http://www.daniweb.com/forums/thread239164.html</link>
			<pubDate>Tue, 17 Nov 2009 09:27:15 GMT</pubDate>
			<description>1) I want to Close all mozilla firefox windows running , for that to happen as i know there is two ways  
a) to use link label  
b) findwindow 
 
Link Label finds the mozilla browser but with the found browser i can get the url of the browser but i cannot get the title so i will not be able to get...</description>
			<content:encoded><![CDATA[<div>1) I want to Close all mozilla firefox windows running , for that to happen as i know there is two ways <br />
a) to use link label <br />
b) findwindow<br />
<br />
Link Label finds the mozilla browser but with the found browser i can get the url of the browser but i cannot get the title so i will not be able to get the hwnd value using findwindow function <br />
because findwindow function needs title of the page not the url .<br />
<br />
If i try using just findwindow i can just find window which matches the exact page title like ,&quot;Mozilla Firefox Start Page - Mozilla Firefox&quot;<br />
but the problem is for each page the title of the page changes so i can never get the hwnd value .<br />
<br />
So Please suggest me some method to find hwnd value of mozilla browser <br />
or way to find hwnd value of mozilla application<br />
<br />
TOTALLY WHAT I WANT IS TO JUST CLOSE ALL MOZILLA FIREFOX BROWSERS.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>coollife</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239164.html</guid>
		</item>
		<item>
			<title>import excel to access database in vb6.0 using common dialog</title>
			<link>http://www.daniweb.com/forums/thread239130.html</link>
			<pubDate>Tue, 17 Nov 2009 06:47:28 GMT</pubDate>
			<description><![CDATA[can anyone help me with the code. 
am trying to import the content of an excel sheet to my access database using common dialog in vb6. i tried this code below but is not working ........ 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>can anyone help me with the code.<br />
am trying to import the content of an excel sheet to my access database using common dialog in vb6. i tried this code below but is not working ........<br />
 <pre style="margin:20px; line-height:13px">Private Sub sLoadExcel()<br />
If CommonDialog1.FileName = &quot;&quot; Then Exit Sub<br />
Dim exc As Object<br />
Set exc = CreateObject(&quot;Excel.Application&quot;)<br />
exc.Workbooks.Add (CommonDialog1.FileName)<br />
exc.Visible = True<br />
<br />
'Dim i As Integer<br />
For i = 0 To exc.Row - 1<br />
With rstAS400<br />
.AddNew<br />
.Fields![STUDID] = exc.cells(i, 1)<br />
.Fields![FNAME] = exc.cells(i, 2)<br />
.Fields![LNAMSE] = exc.cells(i, 3)<br />
.Fields![SEX] = exc.cells(i, 4)<br />
.Fields![LDOB] = exc.cells(i, 5)<br />
.Update<br />
Next i<br />
End With<br />
End Sub</pre>please help me out.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>jeffrey4u</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239130.html</guid>
		</item>
		<item>
			<title>Unable to delete a shortcut file using this code , but i am able to delete other file</title>
			<link>http://www.daniweb.com/forums/thread239127.html</link>
			<pubDate>Tue, 17 Nov 2009 06:24:40 GMT</pubDate>
			<description><![CDATA[<div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox" title="Help with Code Tags" target="_blank">Help with Code Tags</a> </div> <div> <strong>Visual Basic 4 / 5 / 6...]]></description>
			<content:encoded><![CDATA[<div> <pre style="margin:20px; line-height:13px"><br />
Set fso = New FileSystemObject<br />
&nbsp; &nbsp; &nbsp; If fso.GetFileName(txtPath + sname) = True Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; Kill txtPath + sname<br />
&nbsp; &nbsp; &nbsp; &nbsp; MsgBox &quot;File Deleted&quot;<br />
&nbsp; &nbsp; &nbsp; End If</pre>txtpath is the path to C:\Documents and Settings\All Users\Start Menu\Programs\Startup <br />
<br />
where in startup i have an shortcut file <br />
fso.getfilename doesnt find the shortcut file  .<br />
<br />
I want the method to find the shortcut file and delete it <br />
<br />
Code for it Please</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>coollife</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239127.html</guid>
		</item>
		<item>
			<title>VBA excel - Dynamicly loaded Ribbons?</title>
			<link>http://www.daniweb.com/forums/thread239065.html</link>
			<pubDate>Mon, 16 Nov 2009 23:22:18 GMT</pubDate>
			<description>Hey  guys, im new here and i was wondering if some people could help me out? ive recently been employed in an IT company, and although i am quite familiar with c++, i have been asked to work on making a custom Ribbon in Excel (creating a new tab for the ribbon). 
 
I have spend 8hrs yesterday...</description>
			<content:encoded><![CDATA[<div>Hey  guys, im new here and i was wondering if some people could help me out? ive recently been employed in an IT company, and although i am quite familiar with c++, i have been asked to work on making a custom Ribbon in Excel (creating a new tab for the ribbon).<br />
<br />
I have spend 8hrs yesterday working on this, to limited avail.  i know that you can save the file as .xlsm and use tools like RibbonX and CustomUIEditor to write the xml for the ribbon, however, this seems to cause a lot of problems with excel 2003.  (errors saving, seemingly corrupted 1st sheet etc) So, the ideal solution would be to check if the version is 2007, if it is, then dynamicly create a ribbon.   This would also allow a more easily configured ribbon (with variables etc).  So my question is: which functions could i use to load a ribbon dynamicly?<br />
<br />
Some Code:<br />
 <pre style="margin:20px; line-height:13px">If Application.Version = 12 Then 'Excel 2007 - use ribbon<br />
Call MakeRibbon()<br />
Else If Application.Version = 11 Then 'Excel 2003 - use toolbar<br />
Call MakeToolbar()<br />
End If</pre><br />
I have tried using Application.LoadCustomUI(...) - However, it appears that it is only available for Access.  Various extensions etc dont seem to be of any help - they all seem to have problems loading or when saving from Excel 2003.<br />
<br />
If anyone is able to help it would be much appreciated! I have spent a whole work day on it and i think my experience is not enough for this.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>Avenger0A</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239065.html</guid>
		</item>
		<item>
			<title>List Box question please help</title>
			<link>http://www.daniweb.com/forums/thread239000.html</link>
			<pubDate>Mon, 16 Nov 2009 18:31:27 GMT</pubDate>
			<description><![CDATA[Hi Hope you can help because its driving me up the wall. 
 
I've made a program that can add 4 items in a row in a list box, for instance 
 
Item Make Guarentee qty Price 
toy car rover 1 1 £45.00 
monkey monkey 2 1 £65.00 
 
total: £100.00]]></description>
			<content:encoded><![CDATA[<div>Hi Hope you can help because its driving me up the wall.<br />
<br />
I've made a program that can add 4 items in a row in a list box, for instance<br />
<br />
Item Make Guarentee qty Price<br />
toy car rover 1 1 £45.00<br />
monkey monkey 2 1 £65.00<br />
<br />
total: £100.00<br />
<br />
The problem is I can't get the price to total up in a lable or textbox, however,<br />
I can make it work if i seperate the box and make two, listbox1 for item,make,gtee, qty and listbox 2 for price only.<br />
<br />
I don't want this because i want the row to delete in one go instead of deleting it from two boxes which is a time taker. code below<br />
<br />
I've worked out how to delete and make it add up right its just the two boxes i cant get my head around. <br />
<br />
Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click <br />
Dim Model As String<br />
Dim Make As String<br />
Dim Guarantee As Integer = 0<br />
Dim price As Double = 0<br />
Dim qty As Integer = 0<br />
Dim Discount As Double = 0<br />
Dim DelCharge As Double = 0<br />
Dim Subtotal As Double = 0<br />
Dim total As Double = 0<br />
Dim totalpayment As Double = 0<br />
<br />
'find user input and assign values to their variables<br />
Model = (ModelNotextbox.Text)<br />
Make = (Maketextbox.Text)<br />
Guarantee = Val(Guaranteecombobox.Text)<br />
price = Val(Pricetextbox.Text)<br />
qty = Val(Qtytextbox.Text)<br />
<br />
'Price * qty<br />
totalpayment = price * qty<br />
<br />
'display data in list box<br />
ListBox1.Items.Add(Model &amp; ControlChars.Tab &amp; ControlChars.Tab &amp; Make &amp; ControlChars.Tab &amp; Guarantee &amp; ControlChars.Tab &amp; qty &amp; ControlChars.Tab) <br />
<br />
ListBox2.Items.Add(String.Format(&quot;{0:c}&quot;, totalpayment))<br />
<br />
'Adds list box prices together *<br />
Dim totals As Integer<br />
<br />
For Each value As Double In ListBox2.Items<br />
totals += value<br />
Next<br />
Label28.Text = (String.Format(&quot;{0:c}&quot;, totals))<br />
<br />
'Clear previous items<br />
ModelNotextbox.Clear()<br />
Maketextbox.Clear()<br />
Guaranteecombobox.Refresh()<br />
Pricetextbox.Clear()<br />
<br />
End Sub<br />
<br />
Thanks alot for the help!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>TheCodeHunter</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239000.html</guid>
		</item>
		<item>
			<title>import excel to access database in vb6.00</title>
			<link>http://www.daniweb.com/forums/thread238996.html</link>
			<pubDate>Mon, 16 Nov 2009 18:26:07 GMT</pubDate>
			<description><![CDATA[can anyone help me with the code. 
am trying to import the content of an excel sheet to my access database using common dialog in vb6. i tried this code below but is not working ........ 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>can anyone help me with the code.<br />
am trying to import the content of an excel sheet to my access database using common dialog in vb6. i tried this code below but is not working ........<br />
<br />
 <pre style="margin:20px; line-height:13px">Private Sub sLoadExcel()<br />
&nbsp; &nbsp; If CommonDialog1.FileName = &quot;&quot; Then Exit Sub<br />
&nbsp; &nbsp;  Dim exc As Object<br />
&nbsp; &nbsp; Set exc = CreateObject(&quot;Excel.Application&quot;)<br />
&nbsp; &nbsp; exc.Workbooks.Add (CommonDialog1.FileName)<br />
&nbsp; &nbsp; exc.Visible = True<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; 'Dim i As Integer<br />
&nbsp; &nbsp; For i = 0 To exc.Row - 1<br />
&nbsp; &nbsp; &nbsp; &nbsp; With rstAS400<br />
&nbsp; &nbsp; &nbsp; &nbsp; .AddNew<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .Fields![STUDID] = exc.cells(i, 1)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .Fields![FNAME] = exc.cells(i, 2)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .Fields![LNAMSE] = exc.cells(i, 3)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .Fields![SEX] = exc.cells(i, 4)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .Fields![LDOB] = exc.cells(i, 5)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .Update<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Next i<br />
&nbsp; &nbsp; &nbsp; &nbsp; End With<br />
End Sub</pre><br />
please help me out.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>jeffrey4u</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238996.html</guid>
		</item>
		<item>
			<title>Problem in Datareports using VB 6</title>
			<link>http://www.daniweb.com/forums/thread238981.html</link>
			<pubDate>Mon, 16 Nov 2009 17:18:33 GMT</pubDate>
			<description>*Hi everyone* 
 
I had a problem with the datareports 
I am using MS access as database and VB 6 
In the section 1 i had place text box and i want in text box the values 
value 1 -  value 2. 
 
The code is given below 
Please help me</description>
			<content:encoded><![CDATA[<div><span style="color:Red"><span style="font-weight:bold">Hi everyone</span></span><br />
<br />
I had a problem with the datareports<br />
I am using MS access as database and VB 6<br />
In the section 1 i had place text box and i want in text box the values<br />
value 1 -  value 2.<br />
<br />
The code is given below<br />
Please help me<br />
<br />
Thanks<br />
<br />
Private Sub DataReport_Initialize()<br />
Set rs_cash_rd = New Recordset<br />
If rs_cash_rd.State = 1 Then rs_cash_rd.Close<br />
rs_cash_rd.Open &quot;Select * from cash_paid where company = '&quot; &amp; frm_customer_reports.cmb_vendorList &amp; &quot;' order by invdate, invno&quot;, cn, 2, 3<br />
Set DataReport1.DataSource = rs_cash_rd<br />
Set DataReport1.DataSource = rs_cash_rd.DataSource<br />
    <br />
Set rs_cash_op = New Recordset<br />
If rs_cash_op.State = 1 Then rs_cash_op.Close<br />
<br />
    <br />
    With DataReport1<br />
        With .Sections(&quot;Section2&quot;).Controls<br />
         .Item(&quot;lbl_vendor&quot;).Caption = frm_customer_reports.cmb_vendorList<br />
        End With<br />
        <br />
        With .Sections(&quot;Section1&quot;).Controls<br />
          Do While Not rs_cash_rd.EOF<br />
          .Item(&quot;txt_date&quot;).DataField = rs_cash_rd![invdate].Name<br />
          .Item(&quot;txt_invno&quot;).DataField = rs_cash_rd![invno].Name<br />
          If rs_cash_op.State = 1 Then rs_cash_op.Close<br />
           rs_cash_op.Open &quot;Select invamt, amt_paid from cash_paid where company = '&quot; &amp; frm_customer_reports.cmb_vendorList &amp; &quot;' and invno = '&quot; &amp; rs_cash_rd![invno] &amp; &quot;' order by invdate&quot;, cn, 2, 3<br />
          .Item(&quot;txt_description&quot;).DataField = rs_cash_rd![mode_paid].Name<br />
          '.Item(&quot;txt_amtdue&quot;).DataField = rs_cash_rd![invamt].Name<br />
          .Item(&quot;txt_amtdue&quot;).DataField = rs_cash_op![invamt] - rs_cash_op![amt_paid]<br />
          .Item(&quot;txt_amtpaid&quot;).DataField = rs_cash_rd![amt_paid].Name<br />
          rs_cash_rd.MoveNext<br />
          rs_cash_op.MoveNext<br />
          Loop<br />
        End With<br />
    End With</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>M SRINIVAS</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238981.html</guid>
		</item>
		<item>
			<title>maximise form with controls</title>
			<link>http://www.daniweb.com/forums/thread238936.html</link>
			<pubDate>Mon, 16 Nov 2009 14:07:29 GMT</pubDate>
			<description>how do you make sure that when you maximise a form in vb, the controls in it are also maximised. Thanks for the help.</description>
			<content:encoded><![CDATA[<div>how do you make sure that when you maximise a form in vb, the controls in it are also maximised. Thanks for the help.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>imolorhe</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238936.html</guid>
		</item>
		<item>
			<title>microsoft visual interdev 98 setup development</title>
			<link>http://www.daniweb.com/forums/thread238930.html</link>
			<pubDate>Mon, 16 Nov 2009 13:50:51 GMT</pubDate>
			<description>please, i am havin problems developing a setup file using ms interdev98. Need help urgently. Thanks.</description>
			<content:encoded><![CDATA[<div>please, i am havin problems developing a setup file using ms interdev98. Need help urgently. Thanks.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>imolorhe</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238930.html</guid>
		</item>
		<item>
			<title>transparent forms in vb6</title>
			<link>http://www.daniweb.com/forums/thread238928.html</link>
			<pubDate>Mon, 16 Nov 2009 13:47:06 GMT</pubDate>
			<description>Please, is there anyway to make the forms in vb6 transparent? I need urgent assistance. Thanks.</description>
			<content:encoded><![CDATA[<div>Please, is there anyway to make the forms in vb6 transparent? I need urgent assistance. Thanks.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>imolorhe</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238928.html</guid>
		</item>
		<item>
			<title>To display the username of my choice in a random aspx page by accessing its contents</title>
			<link>http://www.daniweb.com/forums/thread238922.html</link>
			<pubDate>Mon, 16 Nov 2009 13:16:09 GMT</pubDate>
			<description>First thing i should be able to access the contents of the aspx webpage  ex : http://abcd.com/homepage.aspx  
 
In that web page i should be able to display the name localuser  . 
 
I heard that using vb6 we can access the HTML contents of a page 
If yes, then i should be able to write some code...</description>
			<content:encoded><![CDATA[<div>First thing i should be able to access the contents of the aspx webpage  ex : <a rel="nofollow" class="t" href="http://abcd.com/homepage.aspx" target="_blank">http://abcd.com/homepage.aspx</a> <br />
<br />
In that web page i should be able to display the name localuser  .<br />
<br />
I heard that using vb6 we can access the HTML contents of a page<br />
If yes, then i should be able to write some code into html page right<br />
<br />
Please help me with the solution.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>coollife</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238922.html</guid>
		</item>
		<item>
			<title>I have .exe file in vb6, I want to make it run online</title>
			<link>http://www.daniweb.com/forums/thread238916.html</link>
			<pubDate>Mon, 16 Nov 2009 12:46:52 GMT</pubDate>
			<description><![CDATA[Hi guys, 
 
I have a normal .exe file written in visual basic 6. 
It's just many forms linked through a database. 
 
I want to put it online, so the users can use it online and my application only need to be installed in one central computer. 
 
How can I put "transform" my offline .exe to make it...]]></description>
			<content:encoded><![CDATA[<div>Hi guys,<br />
<br />
I have a normal .exe file written in visual basic 6.<br />
It's just many forms linked through a database.<br />
<br />
I want to put it online, so the users can use it online and my application only need to be installed in one central computer.<br />
<br />
How can I put &quot;transform&quot; my offline .exe to make it run online?<br />
Is it possible? how should I rewrite it?<br />
<br />
Thanks guys</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>neosonic</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238916.html</guid>
		</item>
		<item>
			<title>How to Pass Data from datagrid to TextBox</title>
			<link>http://www.daniweb.com/forums/thread238881.html</link>
			<pubDate>Mon, 16 Nov 2009 10:05:20 GMT</pubDate>
			<description>Hi all , I need the Textbox to display data from the Datagrid according to the columns data i wanted . 
Like Textbox1.Text = Datagrid Columns (1)  
 
I need Codes Thanks.</description>
			<content:encoded><![CDATA[<div>Hi all , I need the Textbox to display data from the Datagrid according to the columns data i wanted .<br />
Like Textbox1.Text = Datagrid Columns (1) <br />
<br />
I need Codes Thanks.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>PheNz</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238881.html</guid>
		</item>
		<item>
			<title>how to rename an .exe extension of vb application to .dll using vb code</title>
			<link>http://www.daniweb.com/forums/thread238850.html</link>
			<pubDate>Mon, 16 Nov 2009 06:41:11 GMT</pubDate>
			<description>For example i have an vb.exe file by name abcd.exe , what i want my vb code to do is to rename the abcd.exe to abcd.dll .</description>
			<content:encoded><![CDATA[<div>For example i have an vb.exe file by name abcd.exe , what i want my vb code to do is to rename the abcd.exe to abcd.dll .</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>coollife</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238850.html</guid>
		</item>
		<item>
			<title>I want to make an exe running in windows startup invisible using vb6</title>
			<link>http://www.daniweb.com/forums/thread238849.html</link>
			<pubDate>Mon, 16 Nov 2009 06:35:55 GMT</pubDate>
			<description>For ex: i have an aaa.exe running in windows startup and visible in windows startup, What i want is to make aaa.exe invisible or make aaa.exe replaced by null characters .</description>
			<content:encoded><![CDATA[<div>For ex: i have an aaa.exe running in windows startup and visible in windows startup, What i want is to make aaa.exe invisible or make aaa.exe replaced by null characters .</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>coollife</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238849.html</guid>
		</item>
		<item>
			<title>refresh datagrid with combobox and datepicker vb6</title>
			<link>http://www.daniweb.com/forums/thread238637.html</link>
			<pubDate>Sun, 15 Nov 2009 12:15:58 GMT</pubDate>
			<description><![CDATA[hello, i have this code   <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox" title="Help with Code Tags" target="_blank">Help with Code Tags</a> </div> <div>...]]></description>
			<content:encoded><![CDATA[<div>hello, i have this code  <pre style="margin:20px; line-height:13px">Option Explicit<br />
Dim dbFilename As String<br />
Dim nodeid As String<br />
Dim rs As New ADODB.Recordset<br />
Dim cn As ADODB.Connection<br />
<br />
Private Sub DTPicker_start_date_change()<br />
&nbsp; &nbsp; If Me.DTPicker_end_date.Value &lt; Me.DTPicker_start_date.Value Then<br />
&nbsp; &nbsp; Me.DTPicker_end_date.Value = Me.DTPicker_start_date.Value + TimeSerial(24, 0, 0)<br />
&nbsp; &nbsp; End If<br />
&nbsp; &nbsp; refreshRs<br />
End Sub<br />
<br />
Private Sub DTPicker_end_date_change()<br />
&nbsp; &nbsp; If Me.DTPicker_end_date.Value &lt; Me.DTPicker_start_date.Value Then<br />
&nbsp; &nbsp; Me.DTPicker_start_date.Value = Me.DTPicker_end_date.Value - TimeSerial(24, 0, 0)<br />
&nbsp; &nbsp; End If<br />
&nbsp; &nbsp; refreshRs<br />
End Sub<br />
<br />
Private Sub DTPicker_start_hour_change()<br />
&nbsp; &nbsp; refreshRs<br />
End Sub<br />
<br />
Private Sub DTPicker_end_hour_change()<br />
&nbsp; &nbsp; refreshRs<br />
End Sub<br />
Private Sub Form_Load()<br />
&nbsp; &nbsp; Me.pump.AddItem &quot;P1--01&quot;<br />
&nbsp; &nbsp; Me.pump.AddItem &quot;P2--02&quot;<br />
&nbsp; &nbsp; Me.pump.AddItem &quot;P3--03&quot;<br />
&nbsp; &nbsp; Me.pump.AddItem &quot;P4--04&quot;<br />
&nbsp; &nbsp; Me.pump.AddItem &quot;P5--05&quot;<br />
&nbsp; &nbsp; Me.DataGrid.Visible = True<br />
End Sub<br />
<br />
Public Sub pump_Click()<br />
&nbsp;  refreshRs<br />
End Sub<br />
<br />
<br />
Public Sub refreshRs()<br />
&nbsp; &nbsp; Dim sqlstr As String<br />
&nbsp; &nbsp; Set cn = New ADODB.Connection<br />
&nbsp; &nbsp; dbFilename = &quot;Report_&quot; &amp; Format(Now, &quot;MM_YY&quot;) &amp; &quot;.mdb&quot;<br />
&nbsp; &nbsp; cn.ConnectionString = BuildConnectionString(dbFilename)<br />
&nbsp; &nbsp; cn.Open<br />
&nbsp; &nbsp; sqlstr = &quot;SELECT * From Report WHERE(datevalue(RecDate)&lt;= #&quot; &amp; Format(DTPicker_end_date.Value, &quot;mm/dd/yy&quot;) &amp; _<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;# and timevalue(RecDate)&lt;= #&quot; &amp; Format(Me.DTPicker_end_hour, &quot;hh:mm:ss&quot;) &amp; _<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;# and (datevalue(RecDate)&gt;= #&quot; &amp; Format$(Me.DTPicker_start_date, &quot;mm/dd/yy&quot;) &amp; &quot;# and timevalue(RecDate)&gt;= #&quot; &amp; _<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Format(Me.DTPicker_start_hour, &quot;hh:mm:ss&quot;) &amp; &quot;# and Report.NodeID = '&quot; &amp; Me.pump.Text &amp; &quot;'));&quot;<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; Set rs = cn.Execute(sqlstr)<br />
&nbsp; &nbsp; Set DataGrid.DataSource = rs<br />
&nbsp; &nbsp; DataGrid.Refresh<br />
&nbsp; &nbsp; Me.Caption = &quot;number of records: &quot; &amp; rs.RecordCount<br />
&nbsp; &nbsp; cn.Close<br />
&nbsp; &nbsp; Debug.Print sqlstr<br />
End Sub</pre>in the form_load i have one combobox,4datepickers(2 for selecting dates and 2 for selecting hours) and one datagrid where the results of a database(.mdb) must be shown.i want when i click from the combobox a pump or when i change a date/hour from the datepicker the <span style="font-weight:bold">refresh sub</span> to select the exact values from the database.when i run the sqlstr in the immediate window it shows me that works fine but in the datagrid no results are entered.why is that happenning?also the cn connection which refers to the database seems to work fine.any ideas ?please help.thx</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>eppitis1</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238637.html</guid>
		</item>
		<item>
			<title>Putting Bank Account Number in Boxes</title>
			<link>http://www.daniweb.com/forums/thread238619.html</link>
			<pubDate>Sun, 15 Nov 2009 09:46:03 GMT</pubDate>
			<description>i have place Masked # # # # # # # # # . and i have put MS Sans Sarif Font But it is not going in the Boxes Properly Kindly let me know the Idea.Kindly find the attachment also.and kindly let me know any way.So that Amount as well as account Number should come in 4 Cm each Box.additional there are...</description>
			<content:encoded><![CDATA[<div>i have place Masked # # # # # # # # # . and i have put MS Sans Sarif Font But it is not going in the Boxes Properly Kindly let me know the Idea.Kindly find the attachment also.and kindly let me know any way.So that Amount as well as account Number should come in 4 Cm each Box.additional there are total 11 Boxes. <br />
when i type 11 continuous Number then it is going to the boxes properly.But when i type suppose 1 it is going at 1th boxes .it is not going at 11 Boxes.Kindly let me know the idea.Any help would be highly appreciated.Kindly find thea attachment also.Kindly let me know any way.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>firoz.raj</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238619.html</guid>
		</item>
		<item>
			<title>Need help - Alphabetic Diary / VB Controls</title>
			<link>http://www.daniweb.com/forums/thread238542.html</link>
			<pubDate>Sat, 14 Nov 2009 20:45:24 GMT</pubDate>
			<description><![CDATA[Need help for creating an diary alphabetically...some doubts 
 
1. Do i need to create separate recordset for each alphabet (A-Z) ? 
2. How do i get the 1st letter of the name entered into a textbox ? (hav heard that "VB Controls" help...but couldnt find a control to help me..) 
3. if answer to 1st...]]></description>
			<content:encoded><![CDATA[<div>Need help for creating an diary alphabetically...some doubts<br />
<br />
1. Do i need to create separate recordset for each alphabet (A-Z) ?<br />
2. How do i get the 1st letter of the name entered into a textbox ? (hav heard that &quot;VB Controls&quot; help...but couldnt find a control to help me..)<br />
3. if answer to 1st question is &quot;no&quot; how do i store &amp; Retrieve names of particular alphabet from database when user clicks a label of that alphabet?<br />
<br />
Plz help...</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>pankaj.garg</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238542.html</guid>
		</item>
		<item>
			<title>connection with machine</title>
			<link>http://www.daniweb.com/forums/thread238444.html</link>
			<pubDate>Sat, 14 Nov 2009 06:49:26 GMT</pubDate>
			<description>I want to do work with a machine(any). like: Id card punch(machine) or other. the software collect data form the machine. Here I want to how the software work with the machine? how a software give a command to the machine? I want to know details. plz help need.</description>
			<content:encoded><![CDATA[<div>I want to do work with a machine(any). like: Id card punch(machine) or other. the software collect data form the machine. Here I want to how the software work with the machine? how a software give a command to the machine? I want to know details. plz help need.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>abu taher</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238444.html</guid>
		</item>
		<item>
			<title>Vb calculator to work with keypad</title>
			<link>http://www.daniweb.com/forums/thread238442.html</link>
			<pubDate>Sat, 14 Nov 2009 06:27:51 GMT</pubDate>
			<description>Hi, I need to create a visual basic program that does all the functions of the calculator program in windows. I need to be able to make the program display the keys pressed by the user on the keypad (only the numbers 0 - 9) and it should also still be able to do the functions even though the...</description>
			<content:encoded><![CDATA[<div>Hi, I need to create a visual basic program that does all the functions of the calculator program in windows. I need to be able to make the program display the keys pressed by the user on the keypad (only the numbers 0 - 9) and it should also still be able to do the functions even though the numbers were inputted through the keypad and not through the buttons on the calculator, so far Ive been able to create all the functions except the square root and negative sign, i can do that on my own but I would really appreciate some help on this, I was researching and saw this function called &quot;Keypress&quot; but I don't know how to use it, I just started learning VB 2 days ago, I'm surprised my teacher gave us such a difficult task in only our second meeting, but oh well what can I do. How do I go about doing this, please tell me what functions I should research on, and can you also please explain those functions so I will have an Idea on how to use them. Here is my code.<br />
<br />
 <pre style="margin:20px; line-height:13px">Option Explicit<br />
Dim Op1, Op2<br />
Dim DecimalFlag As Integer<br />
Dim NumOps As Integer<br />
Dim LastInput<br />
Dim OpFlag<br />
Dim TempReadOut<br />
Private Sub Cancel_Click()<br />
&nbsp; &nbsp; Readout = Format(0, &quot;0.&quot;)<br />
&nbsp; &nbsp; Op1 = 0<br />
&nbsp; &nbsp; Op2 = 0<br />
&nbsp; &nbsp; Form_Load<br />
End Sub<br />
Private Sub ClearEntry_Click()<br />
&nbsp; &nbsp; Readout = Format(0, &quot;0.&quot;)<br />
&nbsp; &nbsp; DecimalFlag = False<br />
&nbsp; &nbsp; LastInput = &quot;CE&quot;<br />
End Sub<br />
Private Sub Decimal_Click()<br />
&nbsp; &nbsp; If LastInput = &quot;NEG&quot; Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; Readout = Format(0, &quot;-0.&quot;)<br />
&nbsp; &nbsp; ElseIf LastInput &lt;&gt; &quot;NUMS&quot; Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; Readout = Format(0, &quot;0.&quot;)<br />
&nbsp; &nbsp; End If<br />
&nbsp; &nbsp; DecimalFlag = True<br />
&nbsp; &nbsp; LastInput = &quot;NUMS&quot;<br />
End Sub<br />
Private Sub Form_Load()<br />
&nbsp; &nbsp; DecimalFlag = False<br />
&nbsp; &nbsp; NumOps = 0<br />
&nbsp; &nbsp; LastInput = &quot;NONE&quot;<br />
&nbsp; &nbsp; OpFlag = &quot; &quot;<br />
&nbsp; &nbsp; Readout = Format(0, &quot;0.&quot;)<br />
End Sub<br />
Private Sub Number_Click(Index As Integer)<br />
&nbsp; &nbsp; If LastInput &lt;&gt; &quot;NUMS&quot; Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; Readout = Format(0, &quot;.&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; DecimalFlag = False<br />
&nbsp; &nbsp; End If<br />
&nbsp; &nbsp; If DecimalFlag Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; Readout = Readout + Number(Index).Caption<br />
&nbsp; &nbsp; Else<br />
&nbsp; &nbsp; &nbsp; &nbsp; Readout = Left(Readout, InStr(Readout, Format(0, &quot;.&quot;)) - 1) + Number(Index).Caption + Format(0, &quot;.&quot;)<br />
&nbsp; &nbsp; End If<br />
&nbsp; &nbsp; If LastInput = &quot;NEG&quot; Then Readout = &quot;-&quot; &amp; Readout<br />
&nbsp; &nbsp; LastInput = &quot;NUMS&quot;<br />
End Sub<br />
Private Sub Operator_Click(Index As Integer)<br />
&nbsp; &nbsp; TempReadOut = Readout<br />
&nbsp; &nbsp; If LastInput = &quot;NUMS&quot; Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; NumOps = NumOps + 1<br />
&nbsp; &nbsp; End If<br />
&nbsp; &nbsp; Select Case NumOps<br />
&nbsp; &nbsp; &nbsp; &nbsp; Case 0<br />
&nbsp; &nbsp; &nbsp; &nbsp; If Operator(Index).Caption = &quot;-&quot; And LastInput &lt;&gt; &quot;NEG&quot; Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Readout = &quot;-&quot; &amp; Readout<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LastInput = &quot;NEG&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; &nbsp; &nbsp; Case 1<br />
&nbsp; &nbsp; &nbsp; &nbsp; Op1 = Readout<br />
&nbsp; &nbsp; &nbsp; &nbsp; If Operator(Index).Caption = &quot;-&quot; And LastInput &lt;&gt; &quot;NUMS&quot; And OpFlag &lt;&gt; &quot;=&quot; Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Readout = &quot;-&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LastInput = &quot;NEG&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; &nbsp; &nbsp; Case 2<br />
&nbsp; &nbsp; &nbsp; &nbsp; Op2 = TempReadOut<br />
&nbsp; &nbsp; &nbsp; &nbsp; Select Case OpFlag<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Case &quot;+&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Op1 = CDbl(Op1) + CDbl(Op2)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Case &quot;-&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Op1 = CDbl(Op1) - CDbl(Op2)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Case &quot;*&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Op1 = CDbl(Op1) * CDbl(Op2)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Case &quot;/&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  Op1 = CDbl(Op1) / CDbl(Op2)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Case &quot;=&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Op1 = CDbl(Op2)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Case &quot;%&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Op1 = CDbl(Op1) * CDbl(Op2)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End Select<br />
&nbsp; &nbsp; &nbsp; &nbsp; Readout = Op1<br />
&nbsp; &nbsp; &nbsp; &nbsp; NumOps = 1<br />
&nbsp; &nbsp; End Select<br />
&nbsp; &nbsp; If LastInput &lt;&gt; &quot;NEG&quot; Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; LastInput = &quot;OPS&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; OpFlag = Operator(Index).Caption<br />
&nbsp; &nbsp; End If<br />
End Sub<br />
Private Sub Percent_Click()<br />
&nbsp; &nbsp; Readout = Readout / 100<br />
&nbsp; &nbsp; LastInput = &quot;Ops&quot;<br />
&nbsp; &nbsp; OpFlag = &quot;%&quot;<br />
&nbsp; &nbsp; NumOps = NumOps + 1<br />
&nbsp; &nbsp; DecimalFlag = True<br />
End Sub<br />
<br />
Private Sub Readout_Change()<br />
<br />
End Sub</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>TenaciousBey</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238442.html</guid>
		</item>
		<item>
			<title>display a record in data report in vb6</title>
			<link>http://www.daniweb.com/forums/thread238440.html</link>
			<pubDate>Sat, 14 Nov 2009 06:09:16 GMT</pubDate>
			<description>i want to display a selected record from my database to the data report in VB6. i used the foll. code, where cuno is the value of a textbox. i m passing the value of cuno through a module.  
 
SELECT * FROM Bill WHERE ID=cuno 
 
but when i run it, it gives me this error: 
 
No value given for one...</description>
			<content:encoded><![CDATA[<div>i want to display a selected record from my database to the data report in VB6. i used the foll. code, where cuno is the value of a textbox. i m passing the value of cuno through a module. <br />
<br />
SELECT * FROM Bill WHERE ID=cuno<br />
<br />
but when i run it, it gives me this error:<br />
<br />
No value given for one or more required parameters.<br />
<br />
plz help me.<br />
n i also wanted to know how to make data report an mdi child.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>juniorj</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238440.html</guid>
		</item>
		<item>
			<title>time</title>
			<link>http://www.daniweb.com/forums/thread238126.html</link>
			<pubDate>Thu, 12 Nov 2009 21:12:17 GMT</pubDate>
			<description><![CDATA[Hey, I faced one tiny problem, but I can't figure it out. What I need is basically "label1 = format(now, "hh:mm:ss")", but I want start counting time from zero: "00:00:00".. Any help?]]></description>
			<content:encoded><![CDATA[<div>Hey, I faced one tiny problem, but I can't figure it out. What I need is basically &quot;label1 = format(now, &quot;hh:mm:ss&quot;)&quot;, but I want start counting time from zero: &quot;00:00:00&quot;.. Any help?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>deftones</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238126.html</guid>
		</item>
		<item>
			<title>Recordset values not showing up in Datagrid</title>
			<link>http://www.daniweb.com/forums/thread238108.html</link>
			<pubDate>Thu, 12 Nov 2009 20:07:51 GMT</pubDate>
			<description><![CDATA[Hi all, 
I'm trying to populate a datagrid as part of a search function for my application. I've tried running my code, which gets executed with no errors but the contents ain't showing up in the datagrid. Please fix this for me :) 
 
  <div class="codeblock"> <div class="spaced"> <div...]]></description>
			<content:encoded><![CDATA[<div>Hi all,<br />
I'm trying to populate a datagrid as part of a search function for my application. I've tried running my code, which gets executed with no errors but the contents ain't showing up in the datagrid. Please fix this for me :)<br />
<br />
 <pre style="margin:20px; line-height:13px">Private Sub Search_Click()<br />
&nbsp; &nbsp; Dim dbuser As String, password As String, dbname As String, hostname As String<br />
&nbsp; &nbsp; Dim sql As String<br />
&nbsp; &nbsp; Dim count As Integer<br />
&nbsp; &nbsp; count = 0<br />
&nbsp;  <br />
&nbsp; &nbsp; Open App.Path &amp; &quot;\settings.txt&quot; For Input As #1<br />
&nbsp; &nbsp; &nbsp; &nbsp; Line Input #1, dbuser<br />
&nbsp; &nbsp; &nbsp; &nbsp; Line Input #1, password<br />
&nbsp; &nbsp; &nbsp; &nbsp; Line Input #1, dbname<br />
&nbsp; &nbsp; &nbsp; &nbsp; Line Input #1, hostname<br />
&nbsp; &nbsp; Close #1<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; Set conn = New ADODB.Connection<br />
&nbsp; &nbsp; Set rs = New ADODB.Recordset<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; conn.Open &quot;DRIVER={MySQL ODBC 3.51 Driver}; SERVER=&quot; &amp; hostname &amp; &quot;;&quot; &amp; &quot;DATABASE=&quot; &amp; dbname &amp; &quot;;&quot; &amp; &quot;UID=&quot; &amp; dbuser &amp; &quot;;&quot; &amp; &quot;PWD=&quot; &amp; password &amp; &quot;;OPTION=3&quot;<br />
&nbsp; &nbsp; rs.CursorLocation = adOpenKeyset<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; sql = &quot;SELECT * FROM tblorders&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; Set datagrid1.DataSource = rs<br />
&nbsp; &nbsp; rs.Open sql, conn<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; Do Until rs.EOF<br />
&nbsp; &nbsp; &nbsp; &nbsp; count = count + 1<br />
&nbsp; &nbsp; &nbsp; &nbsp; rs.MoveNext<br />
&nbsp; &nbsp; &nbsp; &nbsp; datagrid1.Refresh<br />
&nbsp; &nbsp; Loop<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; Text1.Text = &quot;Finshed&quot;<br />
&nbsp; &nbsp; Label4.Caption = count<br />
&nbsp; &nbsp; rs.Close<br />
End Sub</pre><br />
Let me know if anyone needs anymore information :)<br />
<br />
Cheers,</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>bsewell</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238108.html</guid>
		</item>
		<item>
			<title><![CDATA[VB6 Run-time error '53': FIle not not found]]></title>
			<link>http://www.daniweb.com/forums/thread237828.html</link>
			<pubDate>Wed, 11 Nov 2009 19:53:38 GMT</pubDate>
			<description><![CDATA[Hi! I have a VB6 project and I used ms access as my database(Database.mdb), I packed my project including the database, I already install it on my PC, but when I use or run my newly installed VB6 project and type the username and password I got this error:  Run-time error '53': File not found.  Can...]]></description>
			<content:encoded><![CDATA[<div>Hi! I have a VB6 project and I used ms access as my database(Database.mdb), I packed my project including the database, I already install it on my PC, but when I use or run my newly installed VB6 project and type the username and password I got this error:  Run-time error '53': File not found.  Can somebody explain why I got this error? Please I need help.  Thanks.  :)</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>Sorb3t3ro</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237828.html</guid>
		</item>
		<item>
			<title>Open a form in a new window?</title>
			<link>http://www.daniweb.com/forums/thread237827.html</link>
			<pubDate>Wed, 11 Nov 2009 19:53:18 GMT</pubDate>
			<description><![CDATA[I'm new here at DaniWeb, and my english suck. 
Does anybody know how to make a form open *itself*, just in a new window? I want to make a form, that haves a button in it. when i click the button, it opens up a "copy" of itself (the old window is still open). i know it sounds stupid, but i'm new to...]]></description>
			<content:encoded><![CDATA[<div>I'm new here at DaniWeb, and my english suck.<br />
Does anybody know how to make a form open <span style="font-weight:bold">itself</span>, just in a new window? I want to make a form, that haves a button in it. when i click the button, it opens up a &quot;copy&quot; of itself (the old window is still open). i know it sounds stupid, but i'm new to vb6. any help please? thank you.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>cooldude9509</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237827.html</guid>
		</item>
		<item>
			<title>VB6 Form Refresh help Request</title>
			<link>http://www.daniweb.com/forums/thread237821.html</link>
			<pubDate>Wed, 11 Nov 2009 19:01:54 GMT</pubDate>
			<description><![CDATA[i have 2 forms..when i start my application..form1 loads...then i navigate to form2 and adds some data in database using controls on form2, which should also reflect on form1... 
 
My data is not getting reflected on form1, after i hide form2...before giving "form2.hide", i tried giving...]]></description>
			<content:encoded><![CDATA[<div>i have 2 forms..when i start my application..form1 loads...then i navigate to form2 and adds some data in database using controls on form2, which should also reflect on form1...<br />
<br />
My data is not getting reflected on form1, after i hide form2...before giving &quot;form2.hide&quot;, i tried giving &quot;form1.show&quot; and &quot;form1.refresh&quot; but i am still not able to get the updated data on form1.<br />
<br />
Plz help.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>pankaj.garg</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237821.html</guid>
		</item>
		<item>
			<title>communicate with the system</title>
			<link>http://www.daniweb.com/forums/thread237788.html</link>
			<pubDate>Wed, 11 Nov 2009 16:17:32 GMT</pubDate>
			<description><![CDATA[hello. please i would want to know how i can communicate with the system and find the system's present status such as logging off, shutting down, etc. vb codes would be most appreciated. thaNKS]]></description>
			<content:encoded><![CDATA[<div>hello. please i would want to know how i can communicate with the system and find the system's present status such as logging off, shutting down, etc. vb codes would be most appreciated. thaNKS</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>imolorhe</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237788.html</guid>
		</item>
		<item>
			<title>code to close mozilla firefox if opened ,or redirecting pages to perticular website</title>
			<link>http://www.daniweb.com/forums/thread237754.html</link>
			<pubDate>Wed, 11 Nov 2009 13:00:01 GMT</pubDate>
			<description>I want the code to close all mozilla firefox windows  
I have tried doing it using findwindow function and linkbutton with no success 
 
Please provide me the solution</description>
			<content:encoded><![CDATA[<div>I want the code to close all mozilla firefox windows <br />
I have tried doing it using findwindow function and linkbutton with no success<br />
<br />
Please provide me the solution</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>coollife</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237754.html</guid>
		</item>
		<item>
			<title>Get drive icon</title>
			<link>http://www.daniweb.com/forums/thread237649.html</link>
			<pubDate>Wed, 11 Nov 2009 05:05:14 GMT</pubDate>
			<description>I need to get the icon from a drive and put it in a picbox. 
 
For example i have an icon on my usb/flash drive and i want to get the icon and put it in a picbox same for my c drive and DVD drive</description>
			<content:encoded><![CDATA[<div>I need to get the icon from a drive and put it in a picbox.<br />
<br />
For example i have an icon on my usb/flash drive and i want to get the icon and put it in a picbox same for my c drive and DVD drive</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>drabsch</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237649.html</guid>
		</item>
		<item>
			<title>Adding code to form using code</title>
			<link>http://www.daniweb.com/forums/thread237638.html</link>
			<pubDate>Wed, 11 Nov 2009 03:46:12 GMT</pubDate>
			<description>i need to add code to the form using code like the  
Controls.Add(). 
 
but to add code not a control. 
 
any ideas.</description>
			<content:encoded><![CDATA[<div>i need to add code to the form using code like the <br />
Controls.Add().<br />
<br />
but to add code not a control.<br />
<br />
any ideas.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>drabsch</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237638.html</guid>
		</item>
		<item>
			<title>generate numbers</title>
			<link>http://www.daniweb.com/forums/thread237587.html</link>
			<pubDate>Tue, 10 Nov 2009 22:56:39 GMT</pubDate>
			<description>Hello, 
 
How to generate random non-repeating numbers?</description>
			<content:encoded><![CDATA[<div>Hello,<br />
<br />
How to generate random non-repeating numbers?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>deftones</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237587.html</guid>
		</item>
		<item>
			<title>Open file VB6</title>
			<link>http://www.daniweb.com/forums/thread237390.html</link>
			<pubDate>Tue, 10 Nov 2009 05:22:23 GMT</pubDate>
			<description><![CDATA[I am using a MDI Form and several documents can be opened using 
"CommonDialog1.ShowOpen" 
 
If i open a file then go back to open another file but click cancel or the "x" then it will open the last file. 
 
so i need to know how to clear the "#1" 
 
my code it: 
  <div class="codeblock"> <div...]]></description>
			<content:encoded><![CDATA[<div>I am using a MDI Form and several documents can be opened using<br />
&quot;CommonDialog1.ShowOpen&quot;<br />
<br />
If i open a file then go back to open another file but click cancel or the &quot;x&quot; then it will open the last file.<br />
<br />
so i need to know how to clear the &quot;#1&quot;<br />
<br />
my code it:<br />
 <pre style="margin:20px; line-height:13px">FileName = &quot;&quot;<br />
Data = &quot;&quot;<br />
MDIForm1.CommonDialog1.Filter = &quot;All Files(*.*)|*.*|Text Files(*.txt)|*.txt|Web Files(*.html;*.htm;*.shtml;*.shtm;*.xhtml;*.php;*.php3;*.phtml;*.css;*.js;)|*.html;*.htm;*.shtml;*.shtm;*.xhtml;*.php;*.php3;*.phtml;*.css;*.js;|Batch Files(*.bat;*.cmd;*.nt;)|*.bat;*.cmd;*.nt;|VB Files(*.vb;*.vbs;*.frm;*.vbp;)|*.vb;*.vbs;*.frm;*.vbp;&quot;<br />
On Error GoTo error<br />
MDIForm1.CommonDialog1.ShowOpen<br />
Me.Caption = MDIForm1.CommonDialog1.FileTitle<br />
FileName = MDIForm1.CommonDialog1.FileName<br />
Open FileName For Input As #1<br />
&nbsp; &nbsp; <br />
Do Until EOF(1)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Input #1, Data<br />
&nbsp; &nbsp; &nbsp; &nbsp; Me.Text1.Text = Me.Text1.Text + Data + vbCrLf<br />
&nbsp; &nbsp; EOF (1)<br />
&nbsp; &nbsp; Loop<br />
&nbsp; &nbsp; Close #1<br />
&nbsp; &nbsp; FileName = &quot;&quot;<br />
&nbsp; &nbsp; Data = &quot;&quot;<br />
GoTo endload</pre><br />
Any ideas<br />
<br />
I have cleared the &quot;FileName&quot; and &quot;Data&quot; but it still does it so i need to find a way to stop it.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>drabsch</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237390.html</guid>
		</item>
		<item>
			<title>retrieving a record...how...</title>
			<link>http://www.daniweb.com/forums/thread237136.html</link>
			<pubDate>Mon, 09 Nov 2009 05:52:29 GMT</pubDate>
			<description>i know that a select statement is the best way to go around retrieving records from a database. the problem im facing is selecting a record then assigning a certain field from that record to a variable eg x.....  
so in simple english, it has to be something like....select clientnumber from members...</description>
			<content:encoded><![CDATA[<div>i know that a select statement is the best way to go around retrieving records from a database. the problem im facing is selecting a record then assigning a certain field from that record to a variable eg x..... <br />
so in simple english, it has to be something like....select clientnumber from members where firstname= txtfirstname.text<br />
<br />
the code im using to retrieve the record is  <pre style="margin:20px; line-height:13px">Set ri = deSub.conn.Execute(&quot;SELECT clientnumber FROM individualsubs WHERE firstname = '&quot; &amp; txtfname.Text &amp; &quot;' AND surname = '&quot; &amp; txtsurname.Text &amp; &quot;'&quot;)</pre>so how do i assign the clientnumber to a variable <span style="font-weight:bold">x</span>, so that i can display it in a textbox.<br />
thank you in advance!!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>Israelsimba</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237136.html</guid>
		</item>
		<item>
			<title>VB-Prime Numbers</title>
			<link>http://www.daniweb.com/forums/thread237131.html</link>
			<pubDate>Mon, 09 Nov 2009 05:13:16 GMT</pubDate>
			<description><![CDATA[Here is the code I'm working on. The user should be able to type in a number and then after clicking the button, list (in a listbox) of all the prime numbers leading up to the number (including the number if it's prime) 
 
MY ERROR/PROBLEM: When i input a number value, it get a list of...]]></description>
			<content:encoded><![CDATA[<div>Here is the code I'm working on. The user should be able to type in a number and then after clicking the button, list (in a listbox) of all the prime numbers leading up to the number (including the number if it's prime)<br />
<br />
MY ERROR/PROBLEM: When i input a number value, it get a list of nothing...and it(the form) locks up. I know it works up to the &quot;msgbox&quot; code (i've tested for 1). Please help where you can and thank you for your time.<br />
<br />
--------<br />
Public Class frmPrime<br />
<br />
    Private Sub btnCompute_Click(....) Handles btnCompute.Click<br />
        Dim prim As Integer<br />
        'im test As Integer 'to test each number up to prim<br />
        Dim imPrime As Boolean = False<br />
        prim = CInt(txtNum.Text)<br />
        test = prim<br />
        'loop while prim is greater than 1 and not equal to prim<br />
<br />
        'As long as the number is greater than 1<br />
        If prim = 1 Then<br />
            imPrime = False<br />
            MessageBox.Show(&quot;Enter a number greater than one please&quot;)<br />
        Else<br />
            Do While prim &gt;= 2<br />
                For i As Integer = 2 To prim<br />
                    If prim Mod i = 0 Then<br />
                        imPrime = False<br />
                        Exit For<br />
                    Else<br />
                        imPrime = True<br />
                        lstPrime.Items.Add(prim)<br />
                    End If<br />
                Next<br />
            Loop<br />
        End If<br />
        'If imPrime = True Then<br />
        'lstPrime.Items.Add(prim)<br />
        'End If<br />
<br />
    End Sub<br />
End Class</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>XStrong</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237131.html</guid>
		</item>
		<item>
			<title>VB6 database Help Required</title>
			<link>http://www.daniweb.com/forums/thread237049.html</link>
			<pubDate>Sun, 08 Nov 2009 20:54:23 GMT</pubDate>
			<description><![CDATA[how can i create an database dynamically i.e. my code creating database while running taking an user input?? 
 
i have seen code like below working 
 
Dim db As Database 
Dim ReS As Recordset 
Set db = OpenDatabase(App.Path + "\Data\" + Userinput + "\Memo.dat") 
Set ReS = db.OpenRecordset("Memo")...]]></description>
			<content:encoded><![CDATA[<div>how can i create an database dynamically i.e. my code creating database while running taking an user input??<br />
<br />
i have seen code like below working<br />
<br />
Dim db As Database<br />
Dim ReS As Recordset<br />
Set db = OpenDatabase(App.Path + &quot;\Data\&quot; + Userinput + &quot;\Memo.dat&quot;)<br />
Set ReS = db.OpenRecordset(&quot;Memo&quot;)<br />
ReS.AddNew<br />
ReS(&quot;Title&quot;) = txtTitle.Text<br />
ReS(&quot;Details&quot;) = txtDescription.Text<br />
<br />
<br />
but if i do the same, i get an error - &quot;invalid path&quot;</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>pankaj.garg</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237049.html</guid>
		</item>
		<item>
			<title>saving image in ms access using vb6</title>
			<link>http://www.daniweb.com/forums/thread236985.html</link>
			<pubDate>Sun, 08 Nov 2009 13:30:24 GMT</pubDate>
			<description><![CDATA[*hello everybody, 
im venkat doing my b.e 3rd year... Im currently working on my project of college administration system using vb6. 
I need help on how to save an image in the access database...i have got the code on how to browse an image. but i'm not able to find out how to save it to a...]]></description>
			<content:encoded><![CDATA[<div><span style="font-weight:bold">hello everybody,<br />
im venkat doing my b.e 3rd year... Im currently working on my project of college administration system using vb6.<br />
I need help on how to save an image in the access database...i have got the code on how to browse an image. but i'm not able to find out how to save it to a particular record on  a database. <br />
So please help me in this,,thanx in advance</span>[/B]</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>venkatnams</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236985.html</guid>
		</item>
		<item>
			<title>Error checking for an existing record</title>
			<link>http://www.daniweb.com/forums/thread236955.html</link>
			<pubDate>Sun, 08 Nov 2009 10:06:00 GMT</pubDate>
			<description><![CDATA[i am trying to make sure that one record is not entered twice into the same database but the code i am using is giving me an error   <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>i am trying to make sure that one record is not entered twice into the same database but the code i am using is giving me an error  <pre style="margin:20px; line-height:13px">Set ri = deSub.conn.Execute(&quot;SELECT* FROM individualsubs WHERE firstname = '&quot; &amp; txtfname.Text &amp; &quot;' AND surname = '&quot; &amp; txtsurname.Text &amp; &quot;'&quot;)<br />
If ri.EOF = True Then<br />
<br />
ri.AddNew<br />
ri.Fields(&quot;firstname&quot;) = txtfname.Text<br />
ri.Fields(&quot;surname&quot;) = txtsurname.Text<br />
ri.Fields(&quot;numberofcopies&quot;) = x * Y<br />
ri.Fields(&quot;copiesout&quot;) = txtcopies.Text<br />
ri.Fields(&quot;copiesremaining&quot;) = x * Y<br />
ri.Update <br />
Else......</pre>  the error i am getting is <div style="margin:20px; margin-top:5px; "> <div class="smallfont" style="margin-bottom:2px">Quote:</div> <table cellpadding="5" cellspacing="0" border="0" width="100%"> <tr> <td class="alt2"> <hr />  current recordset does not support updating. This might be a limitation of the provider or the selected locktype lock type  <hr /> </td> </tr> </table> </div> but i am using adlockoptimistic as shown below which suports updating... <pre style="margin:20px; line-height:13px">With ri<br />
.ActiveConnection = deSub.conn<br />
.LockType = adLockOptimistic<br />
.Source = &quot;select * from individualsubs&quot;<br />
.Open<br />
End With</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>Israelsimba</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236955.html</guid>
		</item>
		<item>
			<title>calling event form module</title>
			<link>http://www.daniweb.com/forums/thread236901.html</link>
			<pubDate>Sun, 08 Nov 2009 00:50:26 GMT</pubDate>
			<description>Hey, one simple question: how to call Image1_click event form module?</description>
			<content:encoded><![CDATA[<div>Hey, one simple question: how to call Image1_click event form module?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>deftones</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236901.html</guid>
		</item>
		<item>
			<title>get the databse table names</title>
			<link>http://www.daniweb.com/forums/thread236849.html</link>
			<pubDate>Sat, 07 Nov 2009 19:07:42 GMT</pubDate>
			<description>dear all, 
 
what is the sql command for ms access 2007 to get the tables name of the database? and also how to put these names into a list box? 
 
 
thanks in advanced. 
 
 
4ukh</description>
			<content:encoded><![CDATA[<div>dear all,<br />
<br />
what is the sql command for ms access 2007 to get the tables name of the database? and also how to put these names into a list box?<br />
<br />
<br />
thanks in advanced.<br />
<br />
<br />
4ukh</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>4ukh</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236849.html</guid>
		</item>
		<item>
			<title>If then Statement in excel using data in 2-3 columns</title>
			<link>http://www.daniweb.com/forums/thread236826.html</link>
			<pubDate>Sat, 07 Nov 2009 17:08:23 GMT</pubDate>
			<description><![CDATA[I am trying to create an If Then statement to use in an excel spreadsheet using data from 2 or 3 columns.  
 Column AB has text.  Column AA has a date in it.   I need the statement to say if column AB says RFEP or TRFE and Column AA is greater than 08/01/07, the true value is "Y" and the false...]]></description>
			<content:encoded><![CDATA[<div>I am trying to create an If Then statement to use in an excel spreadsheet using data from 2 or 3 columns. <br />
 Column AB has text.  Column AA has a date in it.   I need the statement to say if column AB says RFEP or TRFE and Column AA is greater than 08/01/07, the true value is &quot;Y&quot; and the false value is &quot;N&quot;.  <br />
=IF((AA2&gt;08/01/07)+(AB2=&quot;RFEP&quot;),&quot;Yes&quot;,&quot;No&quot;)  This is only picking up the date in AA2.  I tried the &amp; for a connector and got “value” only. <br />
As you can see, I haven't even tried to add the TRFE information.<br />
<br />
I would also like to add column X to the mix.  If column X has a &quot;Y&quot; in it, it would also be included in the true value of &quot;Y&quot;.  However, I would be very happy with just the first two items.<br />
Thank you for the help.</div>  <br /> <div style="padding:5px">     <fieldset class="fieldset"> <legend>Attached Files</legend> <table cellpadding="0" cellspacing="5" border="0"> <tr> <td><img class="inlineimg" src="http://www.daniweb.com/forums/images/attach/txt.gif" alt="File Type: txt" width="16" height="16" border="0" style="vertical-align:baseline" /></td> <td><a href="http://www.daniweb.com/forums/attachment.php?attachmentid=12480&amp;d=1257613226">sample data for formula.txt</a> (33.7 KB)</td> </tr> </table> </fieldset>  </div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>brendajean</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236826.html</guid>
		</item>
		<item>
			<title>making objects invisible</title>
			<link>http://www.daniweb.com/forums/thread236807.html</link>
			<pubDate>Sat, 07 Nov 2009 15:34:42 GMT</pubDate>
			<description><![CDATA[Hi, 
 
Let's say I have a form full of objects and want to make all of them (or half of them, whatever) invisible. Is there a short way to do that without a need of setting visible to false individually to each object?]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
Let's say I have a form full of objects and want to make all of them (or half of them, whatever) invisible. Is there a short way to do that without a need of setting visible to false individually to each object?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>deftones</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236807.html</guid>
		</item>
		<item>
			<title>Error!!!</title>
			<link>http://www.daniweb.com/forums/thread236735.html</link>
			<pubDate>Sat, 07 Nov 2009 08:49:21 GMT</pubDate>
			<description><![CDATA[My subscription system is now running though with errors here and there.the error that concerns me a lot is a runtime error that says  
 
---Quote--- 
multiple steps generated an error check value status 
---End Quote--- 
  
and points to this code....  <div class="codeblock"> <div class="spaced">...]]></description>
			<content:encoded><![CDATA[<div>My subscription system is now running though with errors here and there.the error that concerns me a lot is a runtime error that says <br />
<div style="margin:20px; margin-top:5px; "> <div class="smallfont" style="margin-bottom:2px">Quote:</div> <table cellpadding="5" cellspacing="0" border="0" width="100%"> <tr> <td class="alt2"> <hr />  multiple steps generated an error check value status  <hr /> </td> </tr> </table> </div>and points to this code.... <pre style="margin:20px; line-height:13px">r.Fields(&quot;companyphone&quot;) = txtcphone.Text<br />
r.Fields(&quot;companywebsite&quot;) = txtcwebsite.Text</pre>and this code is in my save button. at times the error doesnt show but at times it pops up when a user is testing...<br />
how best can i trap such an error because i know there must be  a way which i dont know.<br />
thank you in advance!!!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>Israelsimba</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236735.html</guid>
		</item>
		<item>
			<title>Need Some Help :)</title>
			<link>http://www.daniweb.com/forums/thread236600.html</link>
			<pubDate>Fri, 06 Nov 2009 16:18:08 GMT</pubDate>
			<description><![CDATA[okay. i'm an B.S.I.T student and we're going to develop a system. i hope you can suggest a unique system. my professor doesn't like common system: library system, student information system, etc. hope you guys can suggest some. we might use VB6, VB2008 or VB.net. it's up to our prof. thanks in...]]></description>
			<content:encoded><![CDATA[<div>okay. i'm an B.S.I.T student and we're going to develop a system. i hope you can suggest a unique system. my professor doesn't like common system: library system, student information system, etc. hope you guys can suggest some. we might use VB6, VB2008 or VB.net. it's up to our prof. thanks in advance! :)</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>lein.o16</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236600.html</guid>
		</item>
		<item>
			<title>Avoiding code troubles</title>
			<link>http://www.daniweb.com/forums/thread236398.html</link>
			<pubDate>Thu, 05 Nov 2009 22:32:39 GMT</pubDate>
			<description><![CDATA[Hi again, 
 
I have a huge code written, but I'm not even halfway there. Had to split couple of procedures to make everything work smoothly etc. I was wondering, would it be reasonable to put some of my code into modules, in order to avoid compiling or similar errors in future?]]></description>
			<content:encoded><![CDATA[<div>Hi again,<br />
<br />
I have a huge code written, but I'm not even halfway there. Had to split couple of procedures to make everything work smoothly etc. I was wondering, would it be reasonable to put some of my code into modules, in order to avoid compiling or similar errors in future?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>deftones</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236398.html</guid>
		</item>
		<item>
			<title>simple question (Form1)</title>
			<link>http://www.daniweb.com/forums/thread236365.html</link>
			<pubDate>Thu, 05 Nov 2009 20:15:06 GMT</pubDate>
			<description>Hey, 
 
How not let the user to close a form with a close button? Basically, I need a form to be hidden most of the time, but sometimes it is shown by the code (intentionally). And when you hit close button, user not only closes the form, but unloads it as well, so how do I avoid that?</description>
			<content:encoded><![CDATA[<div>Hey,<br />
<br />
How not let the user to close a form with a close button? Basically, I need a form to be hidden most of the time, but sometimes it is shown by the code (intentionally). And when you hit close button, user not only closes the form, but unloads it as well, so how do I avoid that?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>deftones</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236365.html</guid>
		</item>
		<item>
			<title>Printing Array Contents to Label</title>
			<link>http://www.daniweb.com/forums/thread236292.html</link>
			<pubDate>Thu, 05 Nov 2009 14:52:34 GMT</pubDate>
			<description><![CDATA[I have the following code: 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox" title="Help with Code Tags" target="_blank">Help with Code Tags</a> </div> <div>...]]></description>
			<content:encoded><![CDATA[<div>I have the following code:<br />
<br />
 <pre style="margin:20px; line-height:13px">&nbsp; &nbsp; For lngPosition = LBound(strNames) To UBound(strNames)<br />
&nbsp; &nbsp; &nbsp; mainForm.NameDisplay.Caption = strNames(lngPosition)<br />
&nbsp; &nbsp; &nbsp; mainForm.StockDisplay.Caption = intLevels(lngPosition)<br />
&nbsp; &nbsp; Next lngPosition</pre><br />
This code, in my opinion, should print everything in array in a label. However, it only prints the last element of the array. Anyone got any ideas on how to fix this?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>MichaelSammels</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236292.html</guid>
		</item>
		<item>
			<title>How to run a program in a remote machine</title>
			<link>http://www.daniweb.com/forums/thread236234.html</link>
			<pubDate>Thu, 05 Nov 2009 10:51:46 GMT</pubDate>
			<description>Hi all, 
 
I am new to VB. i want to know how to connect to a remote server and run three batch files with some arguments,  over there. 
E.g. 
machine Ip Address:xxx.xxx.xxx.xxx 
username:test 
password:test 
I have to connect to the machine name and run the batch files. 
 
Please suggest a method.</description>
			<content:encoded><![CDATA[<div>Hi all,<br />
<br />
I am new to VB. i want to know how to connect to a remote server and run three batch files with some arguments,  over there.<br />
E.g.<br />
machine Ip Address:xxx.xxx.xxx.xxx<br />
username:test<br />
password:test<br />
I have to connect to the machine name and run the batch files.<br />
<br />
Please suggest a method.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>karthiknvs</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236234.html</guid>
		</item>
		<item>
			<title>VB6 - Access Database</title>
			<link>http://www.daniweb.com/forums/thread236175.html</link>
			<pubDate>Thu, 05 Nov 2009 07:49:13 GMT</pubDate>
			<description><![CDATA[Hi.... I am a student.  
 
When i tried to connect VB with Access, it is giving me this message "Run-time error 13, Type Mismatch" Below is the code 
 
Dim DBase As Database 
Dim RBase As Recordset 
 
Set DBase = OpenDatabase("DB Name") 
Set RBase = DBase.OpenRecordset("Table name")  
The funniest...]]></description>
			<content:encoded><![CDATA[<div>Hi.... I am a student. <br />
<br />
When i tried to connect VB with Access, it is giving me this message &quot;Run-time error 13, Type Mismatch&quot; Below is the code<br />
<br />
 <pre style="margin:20px; line-height:13px">Dim DBase As Database<br />
Dim RBase As Recordset<br />
<br />
Set DBase = OpenDatabase(&quot;DB Name&quot;)<br />
Set RBase = DBase.OpenRecordset(&quot;Table name&quot;)</pre><br />
The funniest thing is, this same code works on another project on the same computer.<br />
<br />
Somebody help meeeeeeeeeeeee.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>Jaisonkv</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236175.html</guid>
		</item>
		<item>
			<title>ListView</title>
			<link>http://www.daniweb.com/forums/thread236160.html</link>
			<pubDate>Thu, 05 Nov 2009 06:43:16 GMT</pubDate>
			<description><![CDATA[Hi guys. I am having a bit of trouble with the listview control at the moment. I am trying to change the position of an item in the listview but I have no idea how to do so. I am also trying to set a command button which can "click" a certain item for the user, ie, the item will get highlighted and...]]></description>
			<content:encoded><![CDATA[<div>Hi guys. I am having a bit of trouble with the listview control at the moment. I am trying to change the position of an item in the listview but I have no idea how to do so. I am also trying to set a command button which can &quot;click&quot; a certain item for the user, ie, the item will get highlighted and selected as if it has been clicked directly by the mouse. At the moment I am only able to set .SelectedItem property to the item I want to &quot;click&quot; and make it visible by using .SelectedItem.EnsureVisible, but I don't know how to highlight it, which means there is no indication on the interface to show the user that the item is selected. Please give me a hand. Thank you</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>spmg_092</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236160.html</guid>
		</item>
		<item>
			<title>Code Snippet can any one tell me how to open image of .CAL extension or .TIFF extension in vb6</title>
			<link>http://www.daniweb.com/code/snippet235934.html</link>
			<pubDate>Wed, 04 Nov 2009 10:41:11 GMT</pubDate>
			<description>Type BITMAPFILEHEADER 
bfType As Integer 
bfsize As Long 
bfReserved1 As Integer 
bfReserved2 As Integer 
bfoffbits As Long 
End Type 
 
 
Type BMPInfoHeader</description>
			<content:encoded><![CDATA[<div>Type BITMAPFILEHEADER<br />
bfType As Integer<br />
bfsize As Long<br />
bfReserved1 As Integer<br />
bfReserved2 As Integer<br />
bfoffbits As Long<br />
End Type<br />
<br />
<br />
Type BMPInfoHeader<br />
biSize As Long<br />
biwidth As Long<br />
biheight As Long<br />
biPlanes As Integer<br />
bibitcount As Integer<br />
biCompression As Long<br />
bisizeimage As Long<br />
biXPelsPerMeter As Long<br />
biYPelsPerMeter As Long<br />
biClrUsed As Long<br />
biClrImportant As Long<br />
End Type</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>srikanth48</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235934.html</guid>
		</item>
		<item>
			<title>vb6 populating with first record information</title>
			<link>http://www.daniweb.com/forums/thread235736.html</link>
			<pubDate>Tue, 03 Nov 2009 19:06:08 GMT</pubDate>
			<description>Read a post that had a similar scenario and wonder how it was solved. 
 
environment VB6, sql server 5.0, windows 2003 server, xp sp2 clients 
 
Randomly getting data populated with first record information. 
 
original post was from looney064  on 6/24/08 
 
Just joined so if this is out of format...</description>
			<content:encoded><![CDATA[<div>Read a post that had a similar scenario and wonder how it was solved.<br />
<br />
environment VB6, sql server 5.0, windows 2003 server, xp sp2 clients<br />
<br />
Randomly getting data populated with first record information.<br />
<br />
original post was from looney064  on 6/24/08<br />
<br />
Just joined so if this is out of format please forgive.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>esspeter</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235736.html</guid>
		</item>
		<item>
			<title>Need an advise friends. . .</title>
			<link>http://www.daniweb.com/forums/thread235661.html</link>
			<pubDate>Tue, 03 Nov 2009 13:18:41 GMT</pubDate>
			<description><![CDATA[Is it possible to make a program using VB where you let people visit a site and get their IP address and use their IP address to click the link which is inside the site they visit? 
 
Ex. 
 
My site location is: http://www.mysite.com 
And this site contain one link name "Click Me" 
If someone visit...]]></description>
			<content:encoded><![CDATA[<div>Is it possible to make a program using VB where you let people visit a site and get their IP address and use their IP address to click the link which is inside the site they visit?<br />
<br />
Ex.<br />
<br />
My site location is: <a rel="nofollow" class="t" href="http://www.mysite.com" target="_blank">http://www.mysite.com</a><br />
And this site contain one link name &quot;Click Me&quot;<br />
If someone visit the <a rel="nofollow" class="t" href="http://www.mysite.com" target="_blank">http://www.mysite.com</a> I will be able to get their IP Address and that IP Address will be use to click the &quot;Click Me&quot; link.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>nagatron</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235661.html</guid>
		</item>
		<item>
			<title>help pls in resizing treeview on run</title>
			<link>http://www.daniweb.com/forums/thread235642.html</link>
			<pubDate>Tue, 03 Nov 2009 11:59:51 GMT</pubDate>
			<description>can anyone help me pls on how to resize treeview while the program is running.. i know how to populate treeview  but when the text is to long not all text will be displayed that is why i want to know if there is way on resizing it while running..</description>
			<content:encoded><![CDATA[<div>can anyone help me pls on how to resize treeview while the program is running.. i know how to populate treeview  but when the text is to long not all text will be displayed that is why i want to know if there is way on resizing it while running..</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>xirosen</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235642.html</guid>
		</item>
		<item>
			<title>code need</title>
			<link>http://www.daniweb.com/forums/thread235602.html</link>
			<pubDate>Tue, 03 Nov 2009 09:47:24 GMT</pubDate>
			<description><![CDATA[have any code  for all form. I mean, here I write   <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox" title="Help with Code Tags" target="_blank">Help with Code...]]></description>
			<content:encoded><![CDATA[<div>have any code  for all form. I mean, here I write  <pre style="margin:20px; line-height:13px">form1.show<br />
form2.show<br />
form3.show</pre>But I want I write one line. like: &quot;allform.show&quot;. or other what is right.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>abu taher</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235602.html</guid>
		</item>
		<item>
			<title>Help reg VSExpress edition in Office programming.</title>
			<link>http://www.daniweb.com/forums/thread235581.html</link>
			<pubDate>Tue, 03 Nov 2009 07:44:39 GMT</pubDate>
			<description><![CDATA[Dear All, 
 
I have installed Visual Studio 2008 Express edition " Free by Microsoft ". 
I have done some of my assignment in vba using excel 2007. i want to learn office programming  
in visual Studio 2008 Express Edition the enhanced features and their advance application in  
office 2007. 
...]]></description>
			<content:encoded><![CDATA[<div>Dear All,<br />
<br />
I have installed Visual Studio 2008 Express edition &quot; Free by Microsoft &quot;.<br />
I have done some of my assignment in vba using excel 2007. i want to learn office programming <br />
in visual Studio 2008 Express Edition the enhanced features and their advance application in <br />
office 2007.<br />
<br />
Please can anybody assist some useful resource or sample application file that helps to understand <br />
me.<br />
<br />
PLease assist ?<br />
<br />
Rgds,<br />
<br />
Aligahk06</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>aligahk06</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235581.html</guid>
		</item>
		<item>
			<title>Code Snippet hdd physial id</title>
			<link>http://www.daniweb.com/code/snippet235571.html</link>
			<pubDate>Tue, 03 Nov 2009 05:58:56 GMT</pubDate>
			<description>i run vb6.0 code in xp for getting hdd physical id and it run ok. but when i run same programme in vista it does not display any hdd physical id. please solve the problem</description>
			<content:encoded><![CDATA[<div>i run vb6.0 code in xp for getting hdd physical id and it run ok. but when i run same programme in vista it does not display any hdd physical id. please solve the problem</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>naveen g</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235571.html</guid>
		</item>
		<item>
			<title>SMS</title>
			<link>http://www.daniweb.com/forums/thread235434.html</link>
			<pubDate>Mon, 02 Nov 2009 18:47:46 GMT</pubDate>
			<description>Hello.....I have problem ......i have to transfer a sms from a mobile to another mobile which is connected to a computer.i have to read the sms directly through  computer without seeing tne mobile which is connected to computer via USB........then i have send a sms from computer to mobile(which is...</description>
			<content:encoded><![CDATA[<div>Hello.....I have problem ......i have to transfer a sms from a mobile to another mobile which is connected to a computer.i have to read the sms directly through  computer without seeing tne mobile which is connected to computer via USB........then i have send a sms from computer to mobile(which is not connected).Is this possible ...??pls  a help me...if u can.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>ronyyy</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235434.html</guid>
		</item>
		<item>
			<title>College library system</title>
			<link>http://www.daniweb.com/forums/thread235326.html</link>
			<pubDate>Mon, 02 Nov 2009 11:25:30 GMT</pubDate>
			<description>Dim conn As ADODB.Connection 
Dim rs As ADODB.Recordset 
Dim ans As Integer 
 
 
Private Sub br_Click() 
Form27.Show 
End Sub 
 
Private Sub bsm_Click()</description>
			<content:encoded><![CDATA[<div>Dim conn As ADODB.Connection<br />
Dim rs As ADODB.Recordset<br />
Dim ans As Integer<br />
<br />
<br />
Private Sub br_Click()<br />
Form27.Show<br />
End Sub<br />
<br />
Private Sub bsm_Click()<br />
 Unload Me<br />
    Form3.Show<br />
End Sub<br />
<br />
Private Sub Command1_Click()<br />
If Text1.Text = &quot;&quot; Or Text2.Text = &quot;&quot; Then<br />
MsgBox (&quot;please enter user id and password&quot;)<br />
Text1.Text = &quot;&quot;<br />
Text2.Text = &quot;&quot;<br />
Text1.SetFocus<br />
Else<br />
<br />
<br />
      If Text1 &lt;&gt; &quot;&quot; Or Text2 &lt;&gt; &quot;&quot; Then<br />
               SQL = &quot;select count(*) from login where userid ='&quot; &amp; Text1.Text &amp; &quot;' and password ='&quot; &amp; Text2.Text &amp; &quot;'&quot;<br />
               Set rs = conn.Execute(SQL)<br />
               If rs(0) &lt;&gt; 0 Then<br />
               Frame1.Visible = True<br />
               Text1.Enabled = False<br />
               Text2.Enabled = False<br />
               Command1.Enabled = False<br />
               Command2.Enabled = True<br />
               Text3.SetFocus<br />
               <br />
    Else<br />
    <br />
               SQL = &quot;select count(*) from libralogin where userid ='&quot; &amp; Text1.Text &amp; &quot;' and password ='&quot; &amp; Text2.Text &amp; &quot;'&quot;<br />
               Set rs = conn.Execute(SQL)<br />
               If rs(0) &lt;&gt; 0 Then<br />
               MsgBox &quot;UserName and Password are correct&quot;<br />
               Frame1.Visible = True<br />
               Text1.Enabled = False<br />
               Text2.Enabled = False<br />
               Command1.Enabled = False<br />
               Command2.Enabled = True<br />
               Text3.SetFocus<br />
     Else<br />
               SQL = &quot;select count(*) from stulogin where userid ='&quot; &amp; Text1.Text &amp; &quot;' and password ='&quot; &amp; Text2.Text &amp; &quot;'&quot;<br />
               Set rs = conn.Execute(SQL)<br />
               If rs(0) &lt;&gt; 0 Then<br />
               MsgBox &quot;UserName and Password are correct&quot;<br />
               Frame1.Visible = True<br />
               Text1.Enabled = False<br />
               Text2.Enabled = False<br />
               Command1.Enabled = False<br />
               Command2.Enabled = True<br />
               Text3.SetFocus<br />
    Else<br />
                                            <br />
               MsgBox &quot;UserName and Password are invalid&quot;<br />
               Text1.Text = &quot;&quot;<br />
               Text2.Text = &quot;&quot;<br />
               Text1.SetFocus<br />
               <br />
               <br />
               <br />
               <br />
                End If<br />
                End If<br />
                End If<br />
                End If<br />
                End If<br />
<br />
End Sub<br />
<br />
Private Sub Command10_Click()<br />
Unload Me<br />
<br />
End Sub<br />
<br />
Private Sub Command11_Click()<br />
Text3.Text = &quot;&quot;<br />
Text7.Text = &quot;&quot;<br />
Text8.Text = &quot;&quot;<br />
Text4.Text = &quot;&quot;<br />
Text3.Enabled = True<br />
Command7.Enabled = True<br />
Command3.Enabled = True<br />
Text3.SetFocus<br />
End Sub<br />
<br />
Private Sub Command12_Click()<br />
Text5.Text = &quot;&quot;<br />
End Sub<br />
<br />
Private Sub Command2_Click()<br />
Text1.Text = &quot;&quot;<br />
Text2.Text = &quot;&quot;<br />
          Text1.Enabled = True<br />
          Text2.Enabled = True<br />
Frame1.Visible = False<br />
Command1.Enabled = True<br />
Text1.SetFocus<br />
End Sub<br />
<br />
Private Sub Command3_Click()<br />
If Text4.Text = &quot;borrowed&quot; Then<br />
MsgBox (&quot;select another book. that book is borrowed alredy&quot;)<br />
Else<br />
If Text3.Text = &quot;&quot; And Text7.Text = &quot;&quot; And Text8.Text = &quot;&quot; And Text4.Text = &quot;&quot; Then<br />
MsgBox (&quot;check the availability or if any field is empty &quot;)<br />
Text3.SetFocus<br />
Else<br />
ans = MsgBox(&quot;do you confirm to borrow the book&quot;, vbYesNo, Save)<br />
If ans = vbYes Then<br />
SQL = &quot;insert into borrowandreturn(userid,booktitle,authorname,subjectname,status) values('&quot; &amp; Text1.Text &amp; &quot;','&quot; &amp; (Text3.Text) &amp; &quot;','&quot; &amp; (Text7.Text) &amp; &quot;','&quot; &amp; (Text8.Text) &amp; &quot;','borrowed')&quot;<br />
    Set rs = conn.Execute(SQL)<br />
    <br />
SQL = &quot;update bookinformation set Status= 'borrowed' where BookTitle = '&quot; + Trim(Text3.Text) + &quot;'&quot;<br />
    Set rs = conn.Execute(SQL)<br />
    <br />
    MsgBox (&quot;book borrowed successfully&quot;)<br />
    <br />
 Text3.Enabled = False<br />
Text7.Enabled = False<br />
Text8.Enabled = False<br />
Command7.Enabled = False<br />
Command3.Enabled = False<br />
Command1.Enabled = False<br />
Command2.Enabled = False<br />
Command4.Enabled = False<br />
 Else<br />
<br />
 End If<br />
 End If<br />
 End If<br />
 End Sub<br />
<br />
Private Sub Command4_Click()<br />
If Text4.Text = &quot;available&quot; Then<br />
MsgBox &quot;Cant return Book Which is Available&quot;<br />
Else<br />
If Text4 = &quot;borrowed&quot; Then<br />
SQL = &quot;select count(*) from borrowandreturn where userid ='&quot; &amp; Text1.Text &amp; &quot;' and booktitle ='&quot; &amp; Text3.Text &amp; &quot;'&quot;<br />
       Set rs = conn.Execute(SQL)<br />
        If rs(0) &lt;&gt; 0 Then<br />
<br />
ans = MsgBox(&quot;Do you wish to return the book?&quot;, vbYesNo)<br />
If ans = vbYes Then<br />
SQL = &quot;delete * from borrowandreturn where userid = '&quot; &amp; Text1.Text &amp; &quot;' and BookTitle = '&quot; + Trim(Text3.Text) + &quot;'&quot;<br />
Set rs = conn.Execute(SQL)<br />
SQL = &quot;update bookinformation set Status= 'available' where BookTitle = '&quot; + Trim(Text3.Text) + &quot;' &quot;<br />
Set rs = conn.Execute(SQL)<br />
MsgBox &quot;Book returned&quot;<br />
End If<br />
Text3.Text = &quot;&quot;<br />
Text7.Text = &quot;&quot;<br />
Text8.Text = &quot;&quot;<br />
Text4.Text = &quot;&quot;<br />
Text7.Enabled = False<br />
Text8.Enabled = False<br />
Command4.Enabled = False<br />
Text3.SetFocus<br />
<br />
Else<br />
MsgBox &quot;you are not the one borrowed the book&quot;<br />
End If<br />
End If<br />
End If<br />
<br />
End Sub<br />
<br />
Private Sub Command5_Click()<br />
If Text1.Text &lt;&gt; &quot;&quot; And Text2.Text &lt;&gt; &quot;&quot; And Text5.Text &lt;&gt; &quot;&quot; And Text9.Text &lt;&gt; &quot;&quot; And Text10.Text &lt;&gt; &quot;&quot; And Text6.Text &lt;&gt; &quot;borrowed&quot; Then<br />
ans = MsgBox(&quot;do you confirm to borrow the book&quot;, vbYesNo, Save)<br />
If ans = vbYes Then<br />
SQL = &quot;insert into borrowandreturn(userid,booktitle,authername,subjectname,status) values('&quot; &amp; Text1.Text &amp; &quot;','&quot; &amp; LCase(Text2.Text) &amp; &quot;','&quot; &amp; LCase(Text5.Text) &amp; &quot;','&quot; &amp; LCase(Text9.Text) &amp; &quot;','&quot; &amp; LCase(Text10.Text) &amp; &quot;','&quot; &amp; LCase(Text6.Text) &amp; &quot;')&quot;<br />
    Set rs = conn.Execute(SQL)<br />
    <br />
SQL = &quot;update bookinformation set Status= '&quot; &amp; borrowed &amp; &quot;' where BookTitle = '&quot; + Trim(Text3.Text) + &quot;'&quot;<br />
    Set rs = conn.Execute(SQL)<br />
    <br />
    MsgBox (&quot;book borrowed successfully&quot;)<br />
 Else<br />
 MsgBox (&quot;check the availability or if any field is empty &quot;)<br />
End If<br />
 End If<br />
End Sub<br />
<br />
Private Sub Command6_Click()<br />
ans = MsgBox(&quot;Do you wish to return the book?&quot;, vbYesNo)<br />
    <br />
    If ans = vbYes Then<br />
       SQL = &quot;delete * from borrowandreturn where userid = '&quot; &amp; Text1.Text &amp; &quot;%'&quot;<br />
       Set rs = conn.Execute(SQL)<br />
       'conn.Execute (&quot;delete * from bookinformation where BookCode=&quot; &amp; Text1.Text)<br />
              MsgBox &quot;Book returned&quot;<br />
              End If<br />
Text1.Text = &quot;&quot;<br />
Text2.Text = &quot;&quot;<br />
Text5.Text = &quot;&quot;<br />
Text9.Text = &quot;&quot;<br />
Text10.Text = &quot;&quot;<br />
Text6.Text = &quot;&quot;<br />
End Sub<br />
<br />
Private Sub Command7_Click()<br />
If Text3.Text = &quot;&quot; Then<br />
MsgBox (&quot;please enter book title&quot;)<br />
Text3.SetFocus<br />
Else<br />
SQL = &quot; select * from bookinformation where BookTitle like '&quot; + Trim(Text3.Text) + &quot;'&quot;<br />
Set rs = conn.Execute(SQL)<br />
If rs.EOF() Then<br />
MsgBox (&quot;Book Title not found&quot;)<br />
Text3.Text = &quot;&quot;<br />
Text3.SetFocus<br />
Else<br />
Text7.Text = rs(3)<br />
Text8.Text = rs(7)<br />
Text4.Text = rs(9)<br />
Command4.Enabled = True<br />
Command3.Enabled = True<br />
End If<br />
End If<br />
End Sub<br />
<br />
Private Sub Command8_Click()<br />
If Text5.Text = &quot;&quot; Then<br />
MsgBox (&quot;please enter book title&quot;)<br />
Else<br />
SQL = &quot; select * from bookinformation where BookTitle like '&quot; + Trim(Text5.Text) + &quot;'&quot;<br />
Set rs = conn.Execute(SQL)<br />
If rs.EOF() Then<br />
MsgBox (&quot;Book Title not found&quot;)<br />
Else<br />
Text9.Text = rs(3)<br />
Text10.Text = rs(7)<br />
Text6.Text = rs(9)<br />
<br />
          Text7.Enabled = False<br />
          Text8.Enabled = False<br />
End If<br />
End If<br />
End Sub<br />
<br />
Private Sub Command9_Click()<br />
Text3.Text = &quot;&quot;<br />
Text7.Text = &quot;&quot;<br />
Text8.Text = &quot;&quot;<br />
Text4.Text = &quot;&quot;<br />
Text3.Enabled = True<br />
Command7.Enabled = True<br />
Command3.Enabled = True<br />
Text3.SetFocus<br />
End Sub<br />
<br />
<br />
<br />
Private Sub Form_Load()<br />
<br />
Set conn = New ADODB.Connection<br />
conn.Open &quot;provider=MSDASQL;DSN=bookinformation;uid=;pwd=;&quot;<br />
sql1 = &quot;Select * from bookinformation&quot;<br />
    Set rs = conn.Execute(sql1)<br />
        Do While Not rs.EOF<br />
  rs.MoveNext<br />
  Loop<br />
<br />
Set conn = New ADODB.Connection<br />
conn.Open &quot;provider=MSDASQL;DSN=borrowandreturn;uid=;pwd=;&quot;<br />
sql1 = &quot;Select * from bookinformation&quot;<br />
    Set rs = conn.Execute(sql1)<br />
        Do While Not rs.EOF<br />
  rs.MoveNext<br />
  Loop<br />
<br />
<br />
<br />
Command4.Enabled = False<br />
Command3.Enabled = False<br />
<br />
  Text1.Text = &quot;&quot;<br />
  Text2.Text = &quot;&quot;<br />
  Text7.Enabled = False<br />
  Text8.Enabled = False<br />
Frame1.Visible = False<br />
Text1.Text = &quot;&quot;<br />
<br />
<br />
End Sub<br />
<br />
Private Sub logout_Click()<br />
<br />
  Dim confirm<br />
confirm = MsgBox(&quot;Are you sure you want to Exit and log_out??&quot;, vbYesNo, &quot;BOOK BORROW AND RETURN MENU&quot;)<br />
    If confirm = vbYes Then<br />
    Unload Me<br />
    MDIForm1.Show<br />
End If<br />
<br />
<br />
End Sub<br />
<br />
Private Sub refresh_Click()<br />
Unload Me<br />
Form26.Show<br />
Text1.SetFocus<br />
End Sub</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>sting23</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235326.html</guid>
		</item>
		<item>
			<title>Login form + calculator</title>
			<link>http://www.daniweb.com/forums/thread235313.html</link>
			<pubDate>Mon, 02 Nov 2009 10:18:33 GMT</pubDate>
			<description><![CDATA[I've got that. that should be displayed after log on ( it can be rewrite with use IF statement) 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox" title="Help...]]></description>
			<content:encoded><![CDATA[<div>I've got that. that should be displayed after log on ( it can be rewrite with use IF statement)<br />
 <pre style="margin:20px; line-height:13px">Private Sub cmdLogon_Click()<br />
Dim age As Integer<br />
<br />
age = InputBox(&quot;please enter your age&quot;)<br />
Select Case age<br />
Case Is &gt;= 18<br />
MsgBox &quot;you are&quot; &amp; &quot; &quot; &amp; age &amp; &quot;, let's go to the pub&quot;<br />
Case Is &lt; 18<br />
MsgBox &quot;you are&quot; &amp; &quot; &quot; &amp; age &amp; &quot;, you can't drink!&quot;<br />
Case Is &lt; 17<br />
MsgBox &quot;you are&quot; &amp; &quot; &quot; &amp; age &amp; &quot;, you can't drink!&quot;<br />
End Select<br />
<br />
End Sub</pre><br />
and i have task to do with that.<br />
1. design, write and test program that requires the user to enter a username AND password. On successful login the program should dispal the message 'welcome &lt;username&gt;' Invalid logins will results in the message 'sorry access denied, please check your username and password and try again'<br />
<br />
2. Alter the calculator program so that it displays an error message if the user enters any values below 0 or above 99<br />
<br />
can u help me?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>pytup</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235313.html</guid>
		</item>
		<item>
			<title><![CDATA[=" =" "]]></title>
			<link>http://www.daniweb.com/forums/thread235299.html</link>
			<pubDate>Mon, 02 Nov 2009 09:32:48 GMT</pubDate>
			<description><![CDATA[I need to copy text form a text box 
 
for example: 
 
My text box has 
 
temperature="18.5" 
 
in it and i want to copy the text 18.5 i already have it selected i just need to copy it or put it into a var]]></description>
			<content:encoded><![CDATA[<div>I need to copy text form a text box<br />
<br />
for example:<br />
<br />
My text box has<br />
<br />
temperature=&quot;18.5&quot;<br />
<br />
in it and i want to copy the text 18.5 i already have it selected i just need to copy it or put it into a var</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>drabsch</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235299.html</guid>
		</item>
		<item>
			<title>DatePicker Problem</title>
			<link>http://www.daniweb.com/forums/thread235176.html</link>
			<pubDate>Sun, 01 Nov 2009 22:22:01 GMT</pubDate>
			<description>Hello, 
          I have a DatePicker and text box on my Form and When I try to show the choosen date of DatePicker in the TextBox. It Shows the date and time. But I want to show only date. Plz help me. 
 
Code: 
      text1.text=DatePicker1.value</description>
			<content:encoded><![CDATA[<div>Hello,<br />
          I have a DatePicker and text box on my Form and When I try to show the choosen date of DatePicker in the TextBox. It Shows the date and time. But I want to show only date. Plz help me.<br />
<br />
Code:<br />
      text1.text=DatePicker1.value</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>nareshkumar131</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235176.html</guid>
		</item>
		<item>
			<title>Payroll</title>
			<link>http://www.daniweb.com/forums/thread235114.html</link>
			<pubDate>Sun, 01 Nov 2009 15:41:39 GMT</pubDate>
			<description><![CDATA[//program for salary payroll 
#include<iostream.h> 
#include<stdlib.h> 
class employee 
{ 
	char name[50]; 
	int number,worked_hours,PF,HRA,salary,net_salary; 
public: 
	void read(); 
		void calculate();]]></description>
			<content:encoded><![CDATA[<div>//program for salary payroll<br />
#include&lt;iostream.h&gt;<br />
#include&lt;stdlib.h&gt;<br />
class employee<br />
{<br />
	char name[50];<br />
	int number,worked_hours,PF,HRA,salary,net_salary;<br />
public:<br />
	void read();<br />
		void calculate();<br />
		void display();<br />
};<br />
void employee::read()<br />
{<br />
	cout&lt;&lt;&quot;enter the employee details here&quot;;<br />
	cout&lt;&lt;&quot;\n enter the employee name&quot;;<br />
	cin&gt;&gt;name;<br />
	cout&lt;&lt;&quot;\n emter the employee number&quot;;<br />
	cin&gt;&gt;number;<br />
	cout&lt;&lt;&quot;\n enter the employee worked hour&quot;;<br />
	cin&gt;&gt;worked_hours;<br />
	cout&lt;&lt;&quot;\n enter the employee PF&quot;;<br />
	cin&gt;&gt;PF;<br />
	cout&lt;&lt;&quot;\n enter the employee HRA&quot;;<br />
	cin&gt;&gt;HRA;<br />
	<br />
}<br />
void employee::calculate()<br />
{<br />
	salary=worked_hours*100;<br />
	net_salary=salary-PF-HRA;<br />
}<br />
void employee::display()<br />
{<br />
	cout&lt;&lt;&quot;\t\n&quot;&lt;&lt;name;<br />
	cout&lt;&lt;&quot;\t\n&quot;&lt;&lt;number;<br />
	cout&lt;&lt;&quot;\t\n&quot;&lt;&lt;worked_hours;<br />
	cout&lt;&lt;&quot;\t\n&quot;&lt;&lt;PF;<br />
	cout&lt;&lt;&quot;\t\n&quot;&lt;&lt;HRA;<br />
	cout&lt;&lt;&quot;\t\n&quot;&lt;&lt;salary;<br />
	cout&lt;&lt;&quot;\t\n&quot;&lt;&lt;net_salary&lt;&lt;&quot;\n&quot;;<br />
	system(&quot;pause&quot;);<br />
}<br />
void main()<br />
{<br />
	employee payroll[3];<br />
		int i;<br />
	<br />
	for(i=0;i&lt;3;i++)<br />
	{<br />
		payroll[i].read();<br />
		payroll[i].calculate();<br />
	}<br />
	cout&lt;&lt;&quot;\n____________________________________________________________&quot;;<br />
	cout&lt;&lt;&quot;\n\n\t\t\tSALARY DETAILS&quot;;<br />
	cout&lt;&lt;&quot;\n____________________________________________________________\n&quot;;<br />
	cout&lt;&lt;&quot;\nname\tnumber\tworked hours\tPF\tHRA\tsalary\tnet_salary&quot;;<br />
	cout&lt;&lt;&quot;\n____________________________________________________________&quot;;<br />
	<br />
		for(i=0;i&lt;3;i++)<br />
		{<br />
			payroll[i].display();<br />
			<br />
}<br />
		cout&lt;&lt;&quot;\n\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\n\t&quot;;<br />
}</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>sting23</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235114.html</guid>
		</item>
		<item>
			<title>simple inventory system for school clinic</title>
			<link>http://www.daniweb.com/forums/thread235113.html</link>
			<pubDate>Sun, 01 Nov 2009 15:32:28 GMT</pubDate>
			<description>Im trying to make a simple system using VB and Access. 
Does anyone have requirements list for such a system? I have the basic ones but if i can get a few more it wont be too bad. 
Thanks</description>
			<content:encoded><![CDATA[<div>Im trying to make a simple system using VB and Access.<br />
Does anyone have requirements list for such a system? I have the basic ones but if i can get a few more it wont be too bad.<br />
Thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>sting23</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235113.html</guid>
		</item>
		<item>
			<title>Sending data from winform to website ?</title>
			<link>http://www.daniweb.com/forums/thread235035.html</link>
			<pubDate>Sun, 01 Nov 2009 08:32:33 GMT</pubDate>
			<description><![CDATA[Hi, 
 
How do i post data from windows form to a website.  
 
Windows form is VB6 or VB.NET 
Website is PHP site where incoming post data is processed. 
 
Example: Command will send 'Hi' in a variable, PHP site wwill print 'Hi' on the screen. 
 
Thanks]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
How do i post data from windows form to a website. <br />
<br />
Windows form is VB6 or VB.NET<br />
Website is PHP site where incoming post data is processed.<br />
<br />
Example: Command will send 'Hi' in a variable, PHP site wwill print 'Hi' on the screen.<br />
<br />
Thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>veledrom</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235035.html</guid>
		</item>
		<item>
			<title>VB6 find and replace</title>
			<link>http://www.daniweb.com/forums/thread234987.html</link>
			<pubDate>Sat, 31 Oct 2009 23:14:48 GMT</pubDate>
			<description><![CDATA[Hello everybody, 
 
I have an issue with a code. I'm don't know how to start this. 
 
Here is my problem: 
Column 2 of my MSFlexgrid  = store number. Ex: 1009,1010 etc. 
 
In column 20 of my MSFlexgrid  = Delivery day. Ex: Sun, Mon, Tue......, 
 
Now if store 8009 have multiple delivery days ex:]]></description>
			<content:encoded><![CDATA[<div>Hello everybody,<br />
<br />
I have an issue with a code. I'm don't know how to start this.<br />
<br />
Here is my problem:<br />
Column 2 of my MSFlexgrid  = store number. Ex: 1009,1010 etc.<br />
<br />
In column 20 of my MSFlexgrid  = Delivery day. Ex: Sun, Mon, Tue......,<br />
<br />
Now if store 8009 have multiple delivery days ex:<br />
 <pre style="margin:20px; line-height:13px">Column 2&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  Culumn 20<br />
1009&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Mon<br />
1009&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Fri</pre><br />
The logic will have to be that way:<br />
If the the holiday entered in the Form4.day_ferier (Combo Box) is &quot;Mon&quot;<br />
Then it will calculate how many day it will have until the next delivery.<br />
<br />
In that case,Monday to Friday = 4 days.<br />
<br />
Then it will calculate how many days there was from the previous delivery. Friday to Monday = 3 days.<br />
<br />
So since Monday to Friday is bigger that Friday to monday, then the results will be Monday +1. So Tuesday.<br />
<br />
If the result would of been less, then it would of been Monday - 1. So Sunday.<br />
<br />
If it would of been equal, by default, it would be Monday - 1.<br />
<br />
Would it be easier if I change Sun by &quot;1&quot;, Mon by &quot;2&quot;, Tue by &quot;3&quot; and so on...<br />
<br />
Thank you so much for your help.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>wilder1926</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234987.html</guid>
		</item>
		<item>
			<title>combolist data selecte with textbox relation</title>
			<link>http://www.daniweb.com/forums/thread234823.html</link>
			<pubDate>Sat, 31 Oct 2009 05:23:16 GMT</pubDate>
			<description>I have one combo box “cboitemname” and one text box “itemcode” in vb6 form,I have a table “stock” in sql server 2000 database where data about item name and its code is present, in rutime I want to disply item code of item that I select from combolist, how should I do this?</description>
			<content:encoded><![CDATA[<div>I have one combo box “cboitemname” and one text box “itemcode” in vb6 form,I have a table “stock” in sql server 2000 database where data about item name and its code is present, in rutime I want to disply item code of item that I select from combolist, how should I do this?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>Salman Attari</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234823.html</guid>
		</item>
		<item>
			<title>related Combolist data in  textbox from database</title>
			<link>http://www.daniweb.com/forums/thread234821.html</link>
			<pubDate>Sat, 31 Oct 2009 05:19:19 GMT</pubDate>
			<description>I have one combo box “cboitemname” and one text box “txtitemcode” in vb6 form,I have a table “stock” where data about item name and its code is present, in rutime I want to disply item code of item that I select from combolist, how should I do this?</description>
			<content:encoded><![CDATA[<div>I have one combo box “cboitemname” and one text box “txtitemcode” in vb6 form,I have a table “stock” where data about item name and its code is present, in rutime I want to disply item code of item that I select from combolist, how should I do this?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>Salman Attari</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234821.html</guid>
		</item>
		<item>
			<title>A little help on a card game is needed</title>
			<link>http://www.daniweb.com/forums/thread234701.html</link>
			<pubDate>Fri, 30 Oct 2009 14:41:05 GMT</pubDate>
			<description><![CDATA[Hi gang,  
I've started making a card game, which seems is going to be quite a challenge for me. To make my question more simple, let's say we have a form with three empty images and three images with cards. How do I put those three card pics randomly into empty ones with just a single click of a...]]></description>
			<content:encoded><![CDATA[<div>Hi gang, <br />
I've started making a card game, which seems is going to be quite a challenge for me. To make my question more simple, let's say we have a form with three empty images and three images with cards. How do I put those three card pics randomly into empty ones with just a single click of a button? I'd appreciate any pointer, that could get me on track...</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>deftones</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234701.html</guid>
		</item>
		<item>
			<title>how to connect sql and visual basic</title>
			<link>http://www.daniweb.com/forums/thread234667.html</link>
			<pubDate>Fri, 30 Oct 2009 11:24:25 GMT</pubDate>
			<description><![CDATA[conectivity of sql & visual basic is needed as early as possible  
pleaseeeeeeeeeeeeeeeeeeeeeeeeeeeee!]]></description>
			<content:encoded><![CDATA[<div>conectivity of sql &amp; visual basic is needed as early as possible <br />
pleaseeeeeeeeeeeeeeeeeeeeeeeeeeeee!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>rakky</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234667.html</guid>
		</item>
		<item>
			<title>Help Pls on how to disable popup menu on right click such as undo, cut, copy etc.</title>
			<link>http://www.daniweb.com/forums/thread234649.html</link>
			<pubDate>Fri, 30 Oct 2009 09:55:13 GMT</pubDate>
			<description>Here my code to display the menu: 
 
Private Sub Text5_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single) 
If Button = 2 Then 
    PopupMenu t5menu 
End If 
End Sub 
 
But my problem is the default popup menus such as undo, copy, cut etc.  keeps in taking place instead of the...</description>
			<content:encoded><![CDATA[<div>Here my code to display the menu:<br />
<br />
Private Sub Text5_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)<br />
If Button = 2 Then<br />
    PopupMenu t5menu<br />
End If<br />
End Sub<br />
<br />
But my problem is the default popup menus such as undo, copy, cut etc.  keeps in taking place instead of the menus i set up..<br />
Help me pls..</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>xirosen</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234649.html</guid>
		</item>
		<item>
			<title>Subtracting from database</title>
			<link>http://www.daniweb.com/forums/thread234616.html</link>
			<pubDate>Fri, 30 Oct 2009 07:57:02 GMT</pubDate>
			<description><![CDATA[Hello it's me again i'm having problem with the database subtraction for my POS Project im using ado database and i know that you just have to change the value from the selected and voila it would update the database but mine doesnt work: 
 
 
' txtqan is connect to the item database 
txtqan.text =...]]></description>
			<content:encoded><![CDATA[<div>Hello it's me again i'm having problem with the database subtraction for my POS Project im using ado database and i know that you just have to change the value from the selected and voila it would update the database but mine doesnt work:<br />
<br />
<br />
' txtqan is connect to the item database<br />
txtqan.text = Val(txtqan.text) - Val(txtsalesqan.text)</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>ivankenny</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234616.html</guid>
		</item>
		<item>
			<title>visual basic ,Chapter 6, Programming Challenge 6: Travel Expenses, Page 408.</title>
			<link>http://www.daniweb.com/forums/thread234591.html</link>
			<pubDate>Fri, 30 Oct 2009 04:39:24 GMT</pubDate>
			<description>visual basic 1 ,Chapter 6, Programming Challenge 6: Travel Expenses, Page 408.</description>
			<content:encoded><![CDATA[<div>visual basic 1 ,Chapter 6, Programming Challenge 6: Travel Expenses, Page 408.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>samira1993</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234591.html</guid>
		</item>
		<item>
			<title>Displaying Input from one form onto another</title>
			<link>http://www.daniweb.com/forums/thread234516.html</link>
			<pubDate>Thu, 29 Oct 2009 19:52:20 GMT</pubDate>
			<description><![CDATA[I have created form resembling a standard dialog box where some enters there name into a text box and then hits 'ok' taking them to the main form..On this form I need to get the name that is typed into the text box to be displayed on the main form. 
 
How do I go about doing this? 
 
The standard...]]></description>
			<content:encoded><![CDATA[<div>I have created form resembling a standard dialog box where some enters there name into a text box and then hits 'ok' taking them to the main form..On this form I need to get the name that is typed into the text box to be displayed on the main form.<br />
<br />
How do I go about doing this?<br />
<br />
The standard dialog box form is named frmInput and the text box is named txtName<br />
The label where the Name is be displayed on the main form (frmSquare) is named Label1</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>EntangledDesi</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234516.html</guid>
		</item>
		<item>
			<title>Selecting the first and second characters in an excel cell</title>
			<link>http://www.daniweb.com/forums/thread234410.html</link>
			<pubDate>Thu, 29 Oct 2009 11:59:14 GMT</pubDate>
			<description>Hello, 
 
I am having trouble figuring out the correct syntax for a small portion of my code.  I am trying to have my code search through a column and for each entry in that column copy and paste only the rows that have the following characteristics: the first character = 0 and the second character...</description>
			<content:encoded><![CDATA[<div>Hello,<br />
<br />
I am having trouble figuring out the correct syntax for a small portion of my code.  I am trying to have my code search through a column and for each entry in that column copy and paste only the rows that have the following characteristics: the first character = 0 and the second character = the value in cell (1, 9) in the current worksheet.<br />
<br />
Below is the logic I have come up with (don't worry about &quot;y&quot; or &quot;vend&quot;: they have already been declared in previous code):<br />
 <pre style="margin:20px; line-height:13px">For y = 3 To vend + 1<br />
&nbsp; &nbsp;  If &quot;the 1st character&quot; = 0 and &quot;the 2nd character&quot; = Range(&quot;I1&quot;) Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Range(&quot;B&quot; &amp; y &amp; &quot;:F&quot; &amp; y).Copy<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;Find last row in sheet 'Selected Values'&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;Paste in that cell&quot;<br />
&nbsp; &nbsp;  End If<br />
Next y</pre><br />
The only part I need help with is determining the correct syntax for selecting the first and second characters in a cell.  The other stuff in quotes I already know.<br />
<br />
Thanks in advance for your help,<br />
<br />
Jordan</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>JLynn</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234410.html</guid>
		</item>
		<item>
			<title>Checking if not a number help</title>
			<link>http://www.daniweb.com/forums/thread234268.html</link>
			<pubDate>Thu, 29 Oct 2009 02:43:48 GMT</pubDate>
			<description><![CDATA[Hi guys i'm working on some code whereby the user inputs a distance and time they took spent running for days 1 to 6 and it works fine however I can't get it to display a message box if the user inputs letters instead of numbers. I've had a go at trying to do it and you can see my attempt in the...]]></description>
			<content:encoded><![CDATA[<div>Hi guys i'm working on some code whereby the user inputs a distance and time they took spent running for days 1 to 6 and it works fine however I can't get it to display a message box if the user inputs letters instead of numbers. I've had a go at trying to do it and you can see my attempt in the code below. Thanks in advance ;)<br />
<br />
[code=vb6]<br />
Sub Main()<br />
 'Declaring variables used in the program<br />
Dim distance As Integer<br />
Dim time, totaldistance, totaltime, average As Single<br />
<br />
'Loop that calls the following functions to display the message box 6 times and change the day<br />
For i = 1 To 6<br />
distance = Val(InputBox(&quot;Enter the km travelled on day&quot; + Str$(i)))<br />
If IsNumeric(distance) = False Then<br />
MsgBox (&quot;please enter a number&quot;)<br />
End If<br />
<br />
time = Val(InputBox(&quot;Enter the minutes taken on day&quot; + Str$(i)))<br />
If IsNumeric(time) = False Then<br />
MsgBox (&quot;please enter a number&quot;)<br />
End If<br />
<br />
totaldistance = totaldistance + dist<br />
totaltime = totaltime + time<br />
Next i<br />
<br />
<br />
'Calculates and displays the total time, distance and kmph<br />
MsgBox (&quot;The total distance travelled over the week =&quot; + Str$(totaldistance) + &quot;kms&quot;)<br />
MsgBox (&quot;The total time taken running over the week =&quot; + Str$(totaltime) + &quot; minutes&quot;)<br />
average = totaldistance / totaltime * 60<br />
MsgBox (&quot;Your average speed is =&quot; + Str$(average) + &quot; kmph&quot;)<br />
End Sub [/vb6]</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>icedece</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234268.html</guid>
		</item>
		<item>
			<title>running batch file in vb6</title>
			<link>http://www.daniweb.com/forums/thread234178.html</link>
			<pubDate>Wed, 28 Oct 2009 19:45:15 GMT</pubDate>
			<description>hi all, i am trying to run a batch file in vb6 and failing dreadfully,  
 
can anyone give any pointers as to how this can be acheived,  
 
the batch file is as follows  
 
@echo off 
cd\ 
ipconfig /flushdns 
ipconfig /registerdns</description>
			<content:encoded><![CDATA[<div>hi all, i am trying to run a batch file in vb6 and failing dreadfully, <br />
<br />
can anyone give any pointers as to how this can be acheived, <br />
<br />
the batch file is as follows <br />
<br />
@echo off<br />
cd\<br />
ipconfig /flushdns<br />
ipconfig /registerdns<br />
exit</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>DaveyMoyes</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234178.html</guid>
		</item>
		<item>
			<title>Data grid control</title>
			<link>http://www.daniweb.com/forums/thread234071.html</link>
			<pubDate>Wed, 28 Oct 2009 07:05:48 GMT</pubDate>
			<description>Hi i am working on a sotre inventry project. 
I just want to fill grid from my ms accsess data base but 
i can not understand what i can do 
please help me in deeply 
it is very urgent</description>
			<content:encoded><![CDATA[<div>Hi i am working on a sotre inventry project.<br />
I just want to fill grid from my ms accsess data base but<br />
i can not understand what i can do<br />
please help me in deeply<br />
it is very urgent</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>VINOD_2553</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234071.html</guid>
		</item>
		<item>
			<title>Code Snippet Select Printer From List</title>
			<link>http://www.daniweb.com/code/snippet233936.html</link>
			<pubDate>Tue, 27 Oct 2009 18:09:39 GMT</pubDate>
			<description>Let you choose between all printers available on your pc or network. Download zip and enjoy. Royal free.</description>
			<content:encoded><![CDATA[<div>Let you choose between all printers available on your pc or network. Download zip and enjoy. Royal free.</div>  <br /> <div style="padding:5px">     <fieldset class="fieldset"> <legend>Attached Files</legend> <table cellpadding="0" cellspacing="5" border="0"> <tr> <td><img class="inlineimg" src="http://www.daniweb.com/forums/images/attach/zip.gif" alt="File Type: zip" width="16" height="16" border="0" style="vertical-align:baseline" /></td> <td><a href="http://www.daniweb.com/forums/attachment.php?attachmentid=12324&amp;d=1256666909">Printer Select.zip</a> (4.4 KB)</td> </tr> </table> </fieldset>  </div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>AndreRet</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233936.html</guid>
		</item>
		<item>
			<title>Exponent in Textbox or Label</title>
			<link>http://www.daniweb.com/forums/thread233923.html</link>
			<pubDate>Tue, 27 Oct 2009 17:15:17 GMT</pubDate>
			<description>Good day all 
 
Is it possible to type an exponent in a textbox or a label using VB6? I am currenltly using two textboxes, one for the base and the other for the exponent, by using the tabkey to go from textbox 1 to textbox 2. 
thanx. 
N</description>
			<content:encoded><![CDATA[<div>Good day all<br />
<br />
Is it possible to type an exponent in a textbox or a label using VB6? I am currenltly using two textboxes, one for the base and the other for the exponent, by using the tabkey to go from textbox 1 to textbox 2.<br />
thanx.<br />
N</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>adamsn</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233923.html</guid>
		</item>
		<item>
			<title>please help ?   how calculate</title>
			<link>http://www.daniweb.com/forums/thread233863.html</link>
			<pubDate>Tue, 27 Oct 2009 13:10:28 GMT</pubDate>
			<description>Create an application that will predict the approximate size of a population organisms. The user should select or enter the starting number of organisms in a combo box, enter the average daily population increase (as a percentage) in a text box and select or enter the number of days the organisms...</description>
			<content:encoded><![CDATA[<div>Create an application that will predict the approximate size of a population organisms. The user should select or enter the starting number of organisms in a combo box, enter the average daily population increase (as a percentage) in a text box and select or enter the number of days the organisms will be left to multiply in another combo box. For example, assume the user enters the following values:<br />
<br />
Starting number of organisms:        2<br />
Average daily increase:            30%<br />
Number of days to multiply        10<br />
<br />
The application should display th following table of data.<br />
Day             Approximate Population<br />
1    2<br />
2    2.6<br />
(table should list values up to 10 days)<br />
<br />
Be sure to add appropriate ToolTips for each control on the form.<br />
Input validation:  Do not accept a number less than 2 for the starting size of the population. Do not accept a negative number for the average daily population increase. Do not accept a number less than 1 for the number of days the organisms will multiply.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>samira1993</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233863.html</guid>
		</item>
		<item>
			<title>how to solve this</title>
			<link>http://www.daniweb.com/forums/thread233854.html</link>
			<pubDate>Tue, 27 Oct 2009 12:39:00 GMT</pubDate>
			<description>Create an application that will predict the approximate size of a population organisms. The user should select or enter the starting number of organisms in a combo box, enter the average daily population increase (as a percentage) in a text box and select or enter the number of days the organisms...</description>
			<content:encoded><![CDATA[<div>Create an application that will predict the approximate size of a population organisms. The user should select or enter the starting number of organisms in a combo box, enter the average daily population increase (as a percentage) in a text box and select or enter the number of days the organisms will be left to multiply in another combo box. For example, assume the user enters the following values:<br />
<br />
Starting number of organisms:        2<br />
Average daily increase:            30%<br />
Number of days to multiply        10<br />
<br />
The application should display th following table of data.<br />
Day             Approximate Population<br />
1    2<br />
2    2.6<br />
(table should list values up to 10 days)<br />
<br />
Be sure to add appropriate ToolTips for each control on the form.<br />
Input validation:  Do not accept a number less than 2 for the starting size of the population. Do not accept a negative number for the average daily population increase. Do not accept a number less than 1 for the number of days the organisms will multiply.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>samira1993</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233854.html</guid>
		</item>
		<item>
			<title>Try-Catch feature for VB6, VBA, VBScript</title>
			<link>http://www.daniweb.com/forums/thread233842.html</link>
			<pubDate>Tue, 27 Oct 2009 12:06:46 GMT</pubDate>
			<description><![CDATA[Hi Everyone, 
 
This feauture enables to use "Try" exception handling in VB programs like VB.net Try-Catch statement. 
http://sites.google.com/site/truetryforvisualbasic/ 
I think it's a new way of exception handling in VB 4,5,6, VBA and VBScript. 
I'm waiting for opinions.]]></description>
			<content:encoded><![CDATA[<div>Hi Everyone,<br />
<br />
This feauture enables to use &quot;Try&quot; exception handling in VB programs like VB.net Try-Catch statement.<br />
<a rel="nofollow" class="t" href="http://sites.google.com/site/truetryforvisualbasic/" target="_blank">http://sites.google.com/site/truetryforvisualbasic/</a><br />
I think it's a new way of exception handling in VB 4,5,6, VBA and VBScript.<br />
I'm waiting for opinions.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>RobEin</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233842.html</guid>
		</item>
		<item>
			<title><![CDATA[Error "Provider not found"]]></title>
			<link>http://www.daniweb.com/forums/thread233769.html</link>
			<pubDate>Tue, 27 Oct 2009 08:09:00 GMT</pubDate>
			<description>Hi, 
 
I have a computer that has Win-2003 and SQL Server 2005 Installed. 
 
I checked my client and server both are giving the response to each other using ping their address. 
 
I created a string as: 
 
----------------------------------------------------</description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I have a computer that has Win-2003 and SQL Server 2005 Installed.<br />
<br />
I checked my client and server both are giving the response to each other using ping their address.<br />
<br />
I created a string as:<br />
<br />
----------------------------------------------------<br />
<br />
Public conn As New ADODB.Connection<br />
<br />
Public rs As New ADODB.Recordset<br />
<br />
Sub main()<br />
<br />
Set conn = New ADODB.Connection<br />
<br />
conn.ConnectionString = &quot;Provider=SQLNCLI;Server=PUNSEZ178073d;Database=test;Uid=sa;Pwd=Infosys123;&quot;<br />
<br />
conn.Open<br />
<br />
conn.close<br />
<br />
end sub<br />
<br />
----------------------------------------------------<br />
<br />
Above string is working fine at Server machine but when i am running the same script on client machine i am getting error &quot;Provider not found&quot;.<br />
<br />
Please help</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>r_k46211</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233769.html</guid>
		</item>
		<item>
			<title>need help</title>
			<link>http://www.daniweb.com/forums/thread233757.html</link>
			<pubDate>Tue, 27 Oct 2009 06:53:18 GMT</pubDate>
			<description>Create an application that will predict the approximate size of a population organisms. The user should select or enter the starting number of organisms in a combo box, enter the average daily population increase (as a percentage) in a text box and select or enter the number of days the organisms...</description>
			<content:encoded><![CDATA[<div>Create an application that will predict the approximate size of a population organisms. The user should select or enter the starting number of organisms in a combo box, enter the average daily population increase (as a percentage) in a text box and select or enter the number of days the organisms will be left to multiply in another combo box. For example, assume the user enters the following values:<br />
<br />
Starting number of organisms:        2<br />
Average daily increase:            30%<br />
Number of days to multiply        10<br />
<br />
The application should display th following table of data.<br />
Day             Approximate Population<br />
1    2<br />
2    2.6<br />
(table should list values up to 10 days)<br />
<br />
Be sure to add appropriate ToolTips for each control on the form.<br />
Input validation:  Do not accept a number less than 2 for the starting size of the population. Do not accept a negative number for the average daily population increase. Do not accept a number less than 1 for the number of days the organisms will multiply.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>samira1993</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233757.html</guid>
		</item>
		<item>
			<title>visual basic</title>
			<link>http://www.daniweb.com/forums/thread233750.html</link>
			<pubDate>Tue, 27 Oct 2009 06:41:30 GMT</pubDate>
			<description>Create an application that will predict the approximate size of a population organisms. The user should select or enter the starting number of organisms in a combo box, enter the average daily population increase (as a percentage) in a text box and select or enter the number of days the organisms...</description>
			<content:encoded><![CDATA[<div>Create an application that will predict the approximate size of a population organisms. The user should select or enter the starting number of organisms in a combo box, enter the average daily population increase (as a percentage) in a text box and select or enter the number of days the organisms will be left to multiply in another combo box. For example, assume the user enters the following values:<br />
<br />
Starting number of organisms:        2<br />
Average daily increase:            30%<br />
Number of days to multiply        10<br />
<br />
The application should display th following table of data.<br />
Day             Approximate Population<br />
1    2<br />
2    2.6<br />
(table should list values up to 10 days)<br />
<br />
Be sure to add appropriate ToolTips for each control on the form.<br />
Input validation:  Do not accept a number less than 2 for the starting size of the population. Do not accept a negative number for the average daily population increase. Do not accept a number less than 1 for the number of days the organisms will multiply.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>samira1993</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233750.html</guid>
		</item>
		<item>
			<title>visual basic 1</title>
			<link>http://www.daniweb.com/forums/thread233748.html</link>
			<pubDate>Tue, 27 Oct 2009 06:31:00 GMT</pubDate>
			<description>9. Create an application that will predict the approximate size of a population organisms. The user should select or enter the starting number of organisms in a combo box, enter the average daily population increase (as a percentage) in a text box and select or enter the number of days the...</description>
			<content:encoded><![CDATA[<div>9. Create an application that will predict the approximate size of a population organisms. The user should select or enter the starting number of organisms in a combo box, enter the average daily population increase (as a percentage) in a text box and select or enter the number of days the organisms will be left to multiply in another combo box. For example, assume the user enters the following values:<br />
<br />
Starting number of organisms:        2<br />
Average daily increase:            30%<br />
Number of days to multiply        10<br />
<br />
The application should display th following table of data.<br />
Day             Approximate Population<br />
1    2<br />
2    2.6<br />
(table should list values up to 10 days)<br />
<br />
Be sure to add appropriate ToolTips for each control on the form.<br />
Input validation:  Do not accept a number less than 2 for the starting size of the population. Do not accept a negative number for the average daily population increase. Do not accept a number less than 1 for the number of days the organisms will multiply.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>samira1993</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233748.html</guid>
		</item>
		<item>
			<title>help with alignment in list box</title>
			<link>http://www.daniweb.com/forums/thread233721.html</link>
			<pubDate>Tue, 27 Oct 2009 04:51:09 GMT</pubDate>
			<description><![CDATA[Call List3.AddItem(txtname & vbTab & txtamount & vbTab & txtqan & _vbTab & Format$(ans, "Currency"))  
 
 
need help need to align the text the keep displaying like this: 
 
toy car            1             $3.00         $3.00 
card board box1            $0.50         $0.50 
remote control car     ...]]></description>
			<content:encoded><![CDATA[<div>Call List3.AddItem(txtname &amp; vbTab &amp; txtamount &amp; vbTab &amp; txtqan &amp; _vbTab &amp; Format$(ans, &quot;Currency&quot;)) <br />
<br />
<br />
need help need to align the text the keep displaying like this:<br />
<br />
toy car            1             $3.00         $3.00<br />
card board box1            $0.50         $0.50<br />
remote control car        1             $3.00           $3.00<br />
cart 1       1          $1.00           $1.00<br />
<br />
this is just the sample need it to look clean need help please the out put must be:<br />
<br />
toy car                    1            $3.00         $3.00<br />
card board box       1            $0.50         $0.50<br />
remote control car  1            $3.00         $3.00<br />
cart                         1            $1.00         $1.00</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>ivankenny</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233721.html</guid>
		</item>
		<item>
			<title>VB6 Resident monitor</title>
			<link>http://www.daniweb.com/forums/thread233458.html</link>
			<pubDate>Mon, 26 Oct 2009 12:46:26 GMT</pubDate>
			<description>Hi all, 
 
I need a VB6 program which will be kept resident in windows and monitoring the PrintScreen key. Please let me know how can I do this. I appreciate if you can provide any code samples if you have any. 
The idea is that to track the prtSc key and to show another form immediately if a user...</description>
			<content:encoded><![CDATA[<div>Hi all,<br />
<br />
I need a VB6 program which will be kept resident in windows and monitoring the PrintScreen key. Please let me know how can I do this. I appreciate if you can provide any code samples if you have any.<br />
The idea is that to track the prtSc key and to show another form immediately if a user press the prtSc key.<br />
<br />
Thanks...</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>jusmas</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233458.html</guid>
		</item>
	</channel>
</rss>
