<?xml version="1.0" encoding="ISO-8859-1"?>

<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>DevX.com Forums - VB Classic</title>
		<link>http://forums.devx.com</link>
		<description>VB6 and earlier.</description>
		<language>en</language>
		<lastBuildDate>Sun, 22 Nov 2009 04:28:47 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://forums.devx.com/images/misc/rss.jpg</url>
			<title>DevX.com Forums - VB Classic</title>
			<link>http://forums.devx.com</link>
		</image>
		<item>
			<title>Hooking Create Process</title>
			<link>http://forums.devx.com/showthread.php?t=173415&amp;goto=newpost</link>
			<pubDate>Fri, 20 Nov 2009 15:22:34 GMT</pubDate>
			<description>Hi all, I want to ask, how do I hook CreateProcess? I want to write an antivirus program with Real Time Protector. Thanks.</description>
			<content:encoded><![CDATA[<div>Hi all, I want to ask, how do I hook CreateProcess? I want to write an antivirus program with Real Time Protector. Thanks.</div>

]]></content:encoded>
			<category domain="http://forums.devx.com/forumdisplay.php?f=105">VB Classic</category>
			<dc:creator>evansjahja</dc:creator>
			<guid isPermaLink="true">http://forums.devx.com/showthread.php?t=173415</guid>
		</item>
		<item>
			<title>.gif transparency problem</title>
			<link>http://forums.devx.com/showthread.php?t=173398&amp;goto=newpost</link>
			<pubDate>Tue, 17 Nov 2009 21:39:43 GMT</pubDate>
			<description><![CDATA[VB6/WinXP/Hobby Programmer. 

I've imported some little .gif files into an imagelist control in my App. I then use the image list with the mask color 'ON' to give me transparency of these little graphics (dice) in the program. It works great when I first import the graphics to the Imagelist control, but the moment I save the App the very next time I run it the transparency has been lost and I can see what should be an invisible color. 

Can anyone tell me why this might be happening to save me from going any more insane on this issue.

Thanks!


PS: I previously set the image file's transparency color in Paintshop Pro, if that matters.]]></description>
			<content:encoded><![CDATA[<div>VB6/WinXP/Hobby Programmer. <br />
<br />
I've imported some little .gif files into an imagelist control in my App. I then use the image list with the mask color 'ON' to give me transparency of these little graphics (dice) in the program. It works great when I first import the graphics to the Imagelist control, but the moment I save the App the very next time I run it the transparency has been lost and I can see what should be an invisible color. <br />
<br />
Can anyone tell me why this might be happening to save me from going any more insane on this issue.<br />
<br />
Thanks!<br />
<br />
<br />
PS: I previously set the image file's transparency color in Paintshop Pro, if that matters.</div>

]]></content:encoded>
			<category domain="http://forums.devx.com/forumdisplay.php?f=105">VB Classic</category>
			<dc:creator>Shannon</dc:creator>
			<guid isPermaLink="true">http://forums.devx.com/showthread.php?t=173398</guid>
		</item>
		<item>
			<title>Brick a break</title>
			<link>http://forums.devx.com/showthread.php?t=173392&amp;goto=newpost</link>
			<pubDate>Tue, 17 Nov 2009 09:31:54 GMT</pubDate>
			<description><![CDATA[Im trying to make a simple game called brick a break in vb6. It needs a padel, a ball and some bricks. The problem is i can't get the padel to move. Please can someone help iot doesn't matter hows its done just works lol.

Thanks 
Yobber]]></description>
			<content:encoded><![CDATA[<div>Im trying to make a simple game called brick a break in vb6. It needs a padel, a ball and some bricks. The problem is i can't get the padel to move. Please can someone help iot doesn't matter hows its done just works lol.<br />
<br />
Thanks <br />
Yobber</div>

]]></content:encoded>
			<category domain="http://forums.devx.com/forumdisplay.php?f=105">VB Classic</category>
			<dc:creator>Yobber</dc:creator>
			<guid isPermaLink="true">http://forums.devx.com/showthread.php?t=173392</guid>
		</item>
		<item>
			<title>How to update old Windows files ....</title>
			<link>http://forums.devx.com/showthread.php?t=173379&amp;goto=newpost</link>
			<pubDate>Sun, 15 Nov 2009 19:40:13 GMT</pubDate>
			<description><![CDATA[VB6Pro/XP/Hobby Programmer. My computer is several years old now and the VB SP6 update (which I have) is dated at 2004. I noticed when recently installing an app on a friend's computer that her Windows said on several occasions that my App was trying to install files that were older than those her computer currently possessed. 

Is there somewhere I can download the newest versions of Windows system files that might be used by VB6 Installs (that perhaps have been updated since SP6). I'm guessing there is, but I looked all around Microsoft's site and couldn't figure out the right search criteria.

Any help appreciated ...

Shannon]]></description>
			<content:encoded><![CDATA[<div>VB6Pro/XP/Hobby Programmer. My computer is several years old now and the VB SP6 update (which I have) is dated at 2004. I noticed when recently installing an app on a friend's computer that her Windows said on several occasions that my App was trying to install files that were older than those her computer currently possessed. <br />
<br />
Is there somewhere I can download the newest versions of Windows system files that might be used by VB6 Installs (that perhaps have been updated since SP6). I'm guessing there is, but I looked all around Microsoft's site and couldn't figure out the right search criteria.<br />
<br />
Any help appreciated ...<br />
<br />
Shannon</div>

]]></content:encoded>
			<category domain="http://forums.devx.com/forumdisplay.php?f=105">VB Classic</category>
			<dc:creator>Shannon</dc:creator>
			<guid isPermaLink="true">http://forums.devx.com/showthread.php?t=173379</guid>
		</item>
		<item>
			<title>Buttons appearing too quickly ...</title>
			<link>http://forums.devx.com/showthread.php?t=173372&amp;goto=newpost</link>
			<pubDate>Sat, 14 Nov 2009 01:58:29 GMT</pubDate>
			<description><![CDATA[VB6/XP, Hobby Programmer. I'm suddenly having a problem with a command button appearing before the rest of the form.

ie.  form1 loads form2 , then unloads itself. You play a little game on form2. When the game is over form2 does this 'form1.show', then unloads itself. 

It has worked great forever, then just recently I noticed the default command button for form1 will pop up (become visible) over the top of the form2 background graphic before form2 is unloaded, and before the entire form1 becomes visible.

Can someone tell me how to keep this from happening? And maybe better yet, what I might have recently done to make it happen? I've been dabbling with this App for a long time and never had this problem. I did recently add a bunch of graphics to an imagelist on the form, but I tried removing all but one and no change.

Any help appreciated.

Shannon]]></description>
			<content:encoded><![CDATA[<div>VB6/XP, Hobby Programmer. I'm suddenly having a problem with a command button appearing before the rest of the form.<br />
<br />
ie.  form1 loads form2 , then unloads itself. You play a little game on form2. When the game is over form2 does this 'form1.show', then unloads itself. <br />
<br />
It has worked great forever, then just recently I noticed the default command button for form1 will pop up (become visible) over the top of the form2 background graphic before form2 is unloaded, and before the entire form1 becomes visible.<br />
<br />
Can someone tell me how to keep this from happening? And maybe better yet, what I might have recently done to make it happen? I've been dabbling with this App for a long time and never had this problem. I did recently add a bunch of graphics to an imagelist on the form, but I tried removing all but one and no change.<br />
<br />
Any help appreciated.<br />
<br />
Shannon</div>

]]></content:encoded>
			<category domain="http://forums.devx.com/forumdisplay.php?f=105">VB Classic</category>
			<dc:creator>Shannon</dc:creator>
			<guid isPermaLink="true">http://forums.devx.com/showthread.php?t=173372</guid>
		</item>
		<item>
			<title>IE7 Protected Mode blocking my Plugin</title>
			<link>http://forums.devx.com/showthread.php?t=173363&amp;goto=newpost</link>
			<pubDate>Fri, 13 Nov 2009 06:52:24 GMT</pubDate>
			<description><![CDATA[I have an IE plugin writtten in VB6

It is digitally signed and runs fine on XP

However on Vista, IE7, with UAC on and in Protected Mode, the plugin will not run correctly, it will not interact correctly with other dll's it calls. Data is not passed correctly.

If I turn Protected Mode off, everything runs fine. 

Appreciate if someone could suggest how I programatically have the plugin dll override/bypass the Protected Mode ?  I thought having it signed would do the trick but it seems not. 

thanks]]></description>
			<content:encoded><![CDATA[<div>I have an IE plugin writtten in VB6<br />
<br />
It is digitally signed and runs fine on XP<br />
<br />
However on Vista, IE7, with UAC on and in Protected Mode, the plugin will not run correctly, it will not interact correctly with other dll's it calls. Data is not passed correctly.<br />
<br />
If I turn Protected Mode off, everything runs fine. <br />
<br />
Appreciate if someone could suggest how I programatically have the plugin dll override/bypass the Protected Mode ?  I thought having it signed would do the trick but it seems not. <br />
<br />
thanks</div>

]]></content:encoded>
			<category domain="http://forums.devx.com/forumdisplay.php?f=105">VB Classic</category>
			<dc:creator>Biox</dc:creator>
			<guid isPermaLink="true">http://forums.devx.com/showthread.php?t=173363</guid>
		</item>
		<item>
			<title>Replace function for excel</title>
			<link>http://forums.devx.com/showthread.php?t=173353&amp;goto=newpost</link>
			<pubDate>Wed, 11 Nov 2009 09:24:11 GMT</pubDate>
			<description><![CDATA[Hi there..

I've just finished to write my code in VBA, and now moving it to VB for compilation..
But I have a problem...
My code should look in the selected active sheet, and do a find&replace for an in put string..
For some reason I keep getting an error..

This is where I get the error :
xlsCell.Replace(strOldName, strNewName)

Anyone ?? HELP !! :)

Thanks alot !]]></description>
			<content:encoded><![CDATA[<div>Hi there..<br />
<br />
I've just finished to write my code in VBA, and now moving it to VB for compilation..<br />
But I have a problem...<br />
My code should look in the selected active sheet, and do a find&amp;replace for an in put string..<br />
For some reason I keep getting an error..<br />
<br />
This is where I get the error :<br />
xlsCell.Replace(strOldName, strNewName)<br />
<br />
Anyone ?? HELP !! :)<br />
<br />
Thanks alot !</div>

]]></content:encoded>
			<category domain="http://forums.devx.com/forumdisplay.php?f=105">VB Classic</category>
			<dc:creator>mojo2405</dc:creator>
			<guid isPermaLink="true">http://forums.devx.com/showthread.php?t=173353</guid>
		</item>
		<item>
			<title>DbGrid + DataSource</title>
			<link>http://forums.devx.com/showthread.php?t=173317&amp;goto=newpost</link>
			<pubDate>Thu, 05 Nov 2009 16:33:20 GMT</pubDate>
			<description><![CDATA[Hello!
I have to maintain in an old code here, and I have to migrate the database "Access" to "MSSQL".
So far so good ... The consultations, inclusions and exclusions are all done.
The problem is that there is a "DBGrid" here, that takes a "data" object as "DataSource".
This object in turn, opened a database "access", carrying a table and populate the "DbGrid.
I would like this populate this "DBGrid" using a "Recordset". It´s possible? :confused:

For thus, I would do the query and populate a "grid" with the result.

Thanks.]]></description>
			<content:encoded><![CDATA[<div>Hello!<br />
I have to maintain in an old code here, and I have to migrate the database &quot;Access&quot; to &quot;MSSQL&quot;.<br />
So far so good ... The consultations, inclusions and exclusions are all done.<br />
The problem is that there is a &quot;DBGrid&quot; here, that takes a &quot;data&quot; object as &quot;DataSource&quot;.<br />
This object in turn, opened a database &quot;access&quot;, carrying a table and populate the &quot;DbGrid.<br />
I would like this populate this &quot;DBGrid&quot; using a &quot;Recordset&quot;. It´s possible? :confused:<br />
<br />
For thus, I would do the query and populate a &quot;grid&quot; with the result.<br />
<br />
Thanks.</div>

]]></content:encoded>
			<category domain="http://forums.devx.com/forumdisplay.php?f=105">VB Classic</category>
			<dc:creator>fchevitarese</dc:creator>
			<guid isPermaLink="true">http://forums.devx.com/showthread.php?t=173317</guid>
		</item>
		<item>
			<title>xml header encoding declaration - help</title>
			<link>http://forums.devx.com/showthread.php?t=173301&amp;goto=newpost</link>
			<pubDate>Wed, 04 Nov 2009 01:57:14 GMT</pubDate>
			<description><![CDATA[i'm building an xml generator in vba (within excel), how can i get the encoding declaration to appear as the first line?

<?xml version="1.0" encoding="ISO-8859-1" ?>

please help

thanks!]]></description>
			<content:encoded><![CDATA[<div>i'm building an xml generator in vba (within excel), how can i get the encoding declaration to appear as the first line?<br />
<br />
&lt;?xml version=&quot;1.0&quot; encoding=&quot;ISO-8859-1&quot; ?&gt;<br />
<br />
please help<br />
<br />
thanks!</div>

]]></content:encoded>
			<category domain="http://forums.devx.com/forumdisplay.php?f=105">VB Classic</category>
			<dc:creator>bnaderi</dc:creator>
			<guid isPermaLink="true">http://forums.devx.com/showthread.php?t=173301</guid>
		</item>
		<item>
			<title>Sting or Long? not sure advice please</title>
			<link>http://forums.devx.com/showthread.php?t=173283&amp;goto=newpost</link>
			<pubDate>Mon, 02 Nov 2009 03:37:27 GMT</pubDate>
			<description><![CDATA[Hi,

can someone please check the below for me and let me know if I am using the right data types


at the moment I have them like this

    Public ValueTendered                    As String
    Public TotalTendered                    As String

should they be 

    Public ValueTendered                    As Long
    Public TotalTendered                    As Long

They are numbers (part of a tender tracking module for the cash drawer)

This is the code I am calling when ever a tender is done

    If Val(TotalTendered) >= Val(SubTotalValue) Then Call ModuleFunction
    
    If Val(TotalTendered) < Val(SubTotalValue) Then
        TotalToPay = SubTotalValue - TotalTendered
        TotalToPay = Format(TotalToPay, "######0.00")
        FrmTenderScreen.LabUserMessages.Alignment = 0
        FrmTenderScreen.LabUserMessages.Alignment = 0
        FrmTenderScreen.LabUserMessages.Caption = " TENDERED " & DisplayTender & TotalTendered & vbNewLine & "      TO PAY " & DisplayTender & TotalToPay
        Call TotalToPayment
        
        If FrmTenderScreen.Visible = True Then
            FrmTenderScreen.Enabled = True
            FrmTenderScreen.SetFocus
        End If

        If FrmDepositScreen.Visible = True Then
            FrmDepositScreen.Enabled = True
            FrmDepositScreen.SetFocus
        End If
    End If

It works every time with cash payments and gift cards but if you mix a credit card payment it does not work. 

I have to enter 0 CASH about 5-10 times before it will function and end the transacation.

And in a EPoS software this is not a good thing.

I would welcome any advice, commets you guys can give me

Thanks]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
can someone please check the below for me and let me know if I am using the right data types<br />
<br />
<br />
at the moment I have them like this<br />
<br />
    Public ValueTendered                    As String<br />
    Public TotalTendered                    As String<br />
<br />
should they be <br />
<br />
    Public ValueTendered                    As Long<br />
    Public TotalTendered                    As Long<br />
<br />
They are numbers (part of a tender tracking module for the cash drawer)<br />
<br />
This is the code I am calling when ever a tender is done<br />
<br />
    If Val(TotalTendered) &gt;= Val(SubTotalValue) Then Call ModuleFunction<br />
    <br />
    If Val(TotalTendered) &lt; Val(SubTotalValue) Then<br />
        TotalToPay = SubTotalValue - TotalTendered<br />
        TotalToPay = Format(TotalToPay, &quot;######0.00&quot;)<br />
        FrmTenderScreen.LabUserMessages.Alignment = 0<br />
        FrmTenderScreen.LabUserMessages.Alignment = 0<br />
        FrmTenderScreen.LabUserMessages.Caption = &quot; TENDERED &quot; &amp; DisplayTender &amp; TotalTendered &amp; vbNewLine &amp; &quot;      TO PAY &quot; &amp; DisplayTender &amp; TotalToPay<br />
        Call TotalToPayment<br />
        <br />
        If FrmTenderScreen.Visible = True Then<br />
            FrmTenderScreen.Enabled = True<br />
            FrmTenderScreen.SetFocus<br />
        End If<br />
<br />
        If FrmDepositScreen.Visible = True Then<br />
            FrmDepositScreen.Enabled = True<br />
            FrmDepositScreen.SetFocus<br />
        End If<br />
    End If<br />
<br />
It works every time with cash payments and gift cards but if you mix a credit card payment it does not work. <br />
<br />
I have to enter 0 CASH about 5-10 times before it will function and end the transacation.<br />
<br />
And in a EPoS software this is not a good thing.<br />
<br />
I would welcome any advice, commets you guys can give me<br />
<br />
Thanks</div>

]]></content:encoded>
			<category domain="http://forums.devx.com/forumdisplay.php?f=105">VB Classic</category>
			<dc:creator>Drew_gable</dc:creator>
			<guid isPermaLink="true">http://forums.devx.com/showthread.php?t=173283</guid>
		</item>
		<item>
			<title>Problem with SQL Select command</title>
			<link>http://forums.devx.com/showthread.php?t=173281&amp;goto=newpost</link>
			<pubDate>Mon, 02 Nov 2009 03:30:26 GMT</pubDate>
			<description><![CDATA[hi all,

can someone please help me I am having problems with this SQL Select command


Code:
---------
SQLCommand = SQLCommand & "WHERE JournalDate Between '" & FrmJournalRoll1.txtStartDate.Text & "' AND '" & FrmJournalRoll1.txtEndDate.Text & " AND PoSNumber='" & FrmJournalRoll1.txtPoS.Text & "'"
---------
If I enter in example 12/10/2009 in both the txtstartDate (text box) and 12/10/2009 it finds everything with no errors.

BUT if I enter a wide date range say 01/09/2009 to 20/09/2009 it is finding dates from 01/01/2007 and 01/01/2009 can someone please point out where I am going wrong?

Thanks]]></description>
			<content:encoded><![CDATA[<div>hi all,<br />
<br />
can someone please help me I am having problems with this SQL Select command<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">SQLCommand = SQLCommand &amp; &quot;WHERE JournalDate Between '&quot; &amp; FrmJournalRoll1.txtStartDate.Text &amp; &quot;' AND '&quot; &amp; FrmJournalRoll1.txtEndDate.Text &amp; &quot; AND PoSNumber='&quot; &amp; FrmJournalRoll1.txtPoS.Text &amp; &quot;'&quot;</code><hr />
</div>If I enter in example 12/10/2009 in both the txtstartDate (text box) and 12/10/2009 it finds everything with no errors.<br />
<br />
BUT if I enter a wide date range say 01/09/2009 to 20/09/2009 it is finding dates from 01/01/2007 and 01/01/2009 can someone please point out where I am going wrong?<br />
<br />
Thanks</div>

]]></content:encoded>
			<category domain="http://forums.devx.com/forumdisplay.php?f=105">VB Classic</category>
			<dc:creator>Drew_gable</dc:creator>
			<guid isPermaLink="true">http://forums.devx.com/showthread.php?t=173281</guid>
		</item>
		<item>
			<title><![CDATA[VB6 Won't Open Access DB]]></title>
			<link>http://forums.devx.com/showthread.php?t=173280&amp;goto=newpost</link>
			<pubDate>Sun, 01 Nov 2009 15:21:16 GMT</pubDate>
			<description><![CDATA[Worked with a tutorial that is supposed to open a db file for input. No matter how I write the file path I get error messages  . 
The first attempt to open the file path that came with the tutorial generated the error message  “Couldn’t find file.” 
The next two attempts are my doctoring. Attempt #2 generated error message  “Unrecognized DB format.” Third attempt error message is, “File Not Found.” I use VB6, XP.

'Connect a database to a form
Dim dbMyDB As Database
Dim rsMyRS As Recordset

Private Sub form_load()

'Open DB Attempts
' First attempt, Set dbMyDB = OpenDatabase("MyDatabase.mdb")
' Second attempt, Set dbMyDB = OpenDatabase("C:\VisualBasic\ConnectToDB\MyDatabase.mdb")
‘Third attempt, Open App.Path & "MyDatabase.mdb" For Input As #1

Set rsMyRS = dbMyDB.OpenRecordset("MyTable", dbOpenDynaset)

If Not rsMyRS.EOF Then rsMyRS.MoveFirst
Do While Not rsMyRS.EOF
lstRecords.AddItem rsMyRS!Name
lstRecords.ItemData(lstRecords.NewIndex) = rsMyRS!ID
rsMyRS.MoveNext
Loop

End Sub
Private Sub lstRecords_Click()

rsMyRS.FindFirst "ID=" & Str(lstRecords.ItemData(lstRecords.ListIndex))
txtPhone.Text = rsMyRS!Phone

End Sub]]></description>
			<content:encoded><![CDATA[<div>Worked with a tutorial that is supposed to open a db file for input. No matter how I write the file path I get error messages  . <br />
The first attempt to open the file path that came with the tutorial generated the error message  “Couldn’t find file.” <br />
The next two attempts are my doctoring. Attempt #2 generated error message  “Unrecognized DB format.” Third attempt error message is, “File Not Found.” I use VB6, XP.<br />
<br />
'Connect a database to a form<br />
Dim dbMyDB As Database<br />
Dim rsMyRS As Recordset<br />
<br />
Private Sub form_load()<br />
<br />
'Open DB Attempts<br />
' First attempt, Set dbMyDB = OpenDatabase(&quot;MyDatabase.mdb&quot;)<br />
' Second attempt, Set dbMyDB = OpenDatabase(&quot;C:\VisualBasic\ConnectToDB\MyDatabase.mdb&quot;)<br />
‘Third attempt, Open App.Path &amp; &quot;MyDatabase.mdb&quot; For Input As #1<br />
<br />
Set rsMyRS = dbMyDB.OpenRecordset(&quot;MyTable&quot;, dbOpenDynaset)<br />
<br />
If Not rsMyRS.EOF Then rsMyRS.MoveFirst<br />
Do While Not rsMyRS.EOF<br />
lstRecords.AddItem rsMyRS!Name<br />
lstRecords.ItemData(lstRecords.NewIndex) = rsMyRS!ID<br />
rsMyRS.MoveNext<br />
Loop<br />
<br />
End Sub<br />
Private Sub lstRecords_Click()<br />
<br />
rsMyRS.FindFirst &quot;ID=&quot; &amp; Str(lstRecords.ItemData(lstRecords.ListIndex))<br />
txtPhone.Text = rsMyRS!Phone<br />
<br />
End Sub</div>

]]></content:encoded>
			<category domain="http://forums.devx.com/forumdisplay.php?f=105">VB Classic</category>
			<dc:creator>wisgro</dc:creator>
			<guid isPermaLink="true">http://forums.devx.com/showthread.php?t=173280</guid>
		</item>
		<item>
			<title>How to use findfirst method to search database number one by one number index field</title>
			<link>http://forums.devx.com/showthread.php?t=173278&amp;goto=newpost</link>
			<pubDate>Sun, 01 Nov 2009 05:30:19 GMT</pubDate>
			<description><![CDATA[Hi all friend,
im new in vb, can anyone help me how to write the code for findfirst method by index number.

example
when i key in one by one number in field will search one by one number in list DBgrib1.



Code:
---------
Private Sub Search_KeyPress(KeyAscii As Integer)


If KeyAscii = 13 Then
Data1.Recordset.FindFirst "[barcode] like '" + Search + "*'"
Search.Text = UCase(Search.Text)
If Data1.Recordset.NoMatch Then
MsgBox "Barcode number Not Found"

End If

Search.SelStart = 0
Search.SelLength = Len(Search.Text)

End If

If KeyAscii = 27 Then

Unload Me
Form1.Visible = True

End If

    num = InStr("1234567890" & Chr(8), Chr(KeyAscii))
    If num = 0 Then
        KeyAscii = 0
    End If

End Sub
---------
:confused:
:(]]></description>
			<content:encoded><![CDATA[<div>Hi all friend,<br />
im new in vb, can anyone help me how to write the code for findfirst method by index number.<br />
<br />
example<br />
when i key in one by one number in field will search one by one number in list DBgrib1.<br />
<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">Private Sub Search_KeyPress(KeyAscii As Integer)<br />
<br />
<br />
If KeyAscii = 13 Then<br />
Data1.Recordset.FindFirst &quot;[barcode] like '&quot; + Search + &quot;*'&quot;<br />
Search.Text = UCase(Search.Text)<br />
If Data1.Recordset.NoMatch Then<br />
MsgBox &quot;Barcode number Not Found&quot;<br />
<br />
End If<br />
<br />
Search.SelStart = 0<br />
Search.SelLength = Len(Search.Text)<br />
<br />
End If<br />
<br />
If KeyAscii = 27 Then<br />
<br />
Unload Me<br />
Form1.Visible = True<br />
<br />
End If<br />
<br />
&nbsp; &nbsp; num = InStr(&quot;1234567890&quot; &amp; Chr(8), Chr(KeyAscii))<br />
&nbsp; &nbsp; If num = 0 Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; KeyAscii = 0<br />
&nbsp; &nbsp; End If<br />
<br />
End Sub</code><hr />
</div>:confused:<br />
:(</div>

]]></content:encoded>
			<category domain="http://forums.devx.com/forumdisplay.php?f=105">VB Classic</category>
			<dc:creator>hwkong1688</dc:creator>
			<guid isPermaLink="true">http://forums.devx.com/showthread.php?t=173278</guid>
		</item>
		<item>
			<title>Windows 7 Compatability</title>
			<link>http://forums.devx.com/showthread.php?t=173275&amp;goto=newpost</link>
			<pubDate>Sat, 31 Oct 2009 15:04:24 GMT</pubDate>
			<description>I may need to upgrade my computer and I have several questions regarding Windows 7 (assuming someone has had a chance to actually use this OS):

1) Can a VB6 application be installed on Win 7 if the installation file was developed using Visual Studio Installer (msi file) if VB6 is not installed on the machine?

2) Will VB6 install and work under Win 7?

3) Will Visual Studio Installer work under Win 7?

4) Any other incompatabilities or othe concerns regarding developing and/or using applications developed using VB6?

I understand that there were some issues or difficulties under Vista, but Win 7 is supposed to be much better.  Also, Win 7 Pro can operate in XP mode which may work better for VB6.  I would consider conversion to .NET, but that would be very expensive to upgrade a number of 3rd-party tools and to re-write the application which has about 200,000 lines of code and I would like to squeeze an additional few years out of the application.</description>
			<content:encoded><![CDATA[<div>I may need to upgrade my computer and I have several questions regarding Windows 7 (assuming someone has had a chance to actually use this OS):<br />
<br />
1) Can a VB6 application be installed on Win 7 if the installation file was developed using Visual Studio Installer (msi file) if VB6 is not installed on the machine?<br />
<br />
2) Will VB6 install and work under Win 7?<br />
<br />
3) Will Visual Studio Installer work under Win 7?<br />
<br />
4) Any other incompatabilities or othe concerns regarding developing and/or using applications developed using VB6?<br />
<br />
I understand that there were some issues or difficulties under Vista, but Win 7 is supposed to be much better.  Also, Win 7 Pro can operate in XP mode which may work better for VB6.  I would consider conversion to .NET, but that would be very expensive to upgrade a number of 3rd-party tools and to re-write the application which has about 200,000 lines of code and I would like to squeeze an additional few years out of the application.</div>

]]></content:encoded>
			<category domain="http://forums.devx.com/forumdisplay.php?f=105">VB Classic</category>
			<dc:creator>bkh_vb1</dc:creator>
			<guid isPermaLink="true">http://forums.devx.com/showthread.php?t=173275</guid>
		</item>
		<item>
			<title>Form Activeate event</title>
			<link>http://forums.devx.com/showthread.php?t=173260&amp;goto=newpost</link>
			<pubDate>Thu, 29 Oct 2009 20:20:34 GMT</pubDate>
			<description>I have a subrouting on one form (call it form A) that is showing another form (call it form B) using the frmB.Show method, and the form B will then show the form and exicute the form B initialize event when it shows but does not exicute the form B Activate event. That doent seem right to me, it seems like when you show a form you should get both the initialize event and the activate event, how am I thinking about this incorrectly?</description>
			<content:encoded><![CDATA[<div>I have a subrouting on one form (call it form A) that is showing another form (call it form B) using the frmB.Show method, and the form B will then show the form and exicute the form B initialize event when it shows but does not exicute the form B Activate event. That doent seem right to me, it seems like when you show a form you should get both the initialize event and the activate event, how am I thinking about this incorrectly?</div>

]]></content:encoded>
			<category domain="http://forums.devx.com/forumdisplay.php?f=105">VB Classic</category>
			<dc:creator>AM003295</dc:creator>
			<guid isPermaLink="true">http://forums.devx.com/showthread.php?t=173260</guid>
		</item>
	</channel>
</rss>
