<?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>CodeGuru Forums - Visual Basic 6.0 Programming</title>
		<link>http://forums.codeguru.com/</link>
		<description>Ask questions about VB 6.0 (or earlier versions) or help others by answering their question.</description>
		<language>en</language>
		<lastBuildDate>Thu, 20 Jun 2013 08:25:13 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://forums.codeguru.com/images/misc/rss.png</url>
			<title>CodeGuru Forums - Visual Basic 6.0 Programming</title>
			<link>http://forums.codeguru.com/</link>
		</image>
		<item>
			<title>wordsearch puzzle complete vb6 or vb5</title>
			<link>http://forums.codeguru.com/showthread.php?537879-wordsearch-puzzle-complete-vb6-or-vb5&amp;goto=newpost</link>
			<pubDate>Tue, 18 Jun 2013 23:21:17 GMT</pubDate>
			<description>Does anyone have a complete program for word serach puzzles and wants to help him adapt to the puzzle as it is in my country?</description>
			<content:encoded><![CDATA[<div>Does anyone have a complete program for word serach puzzles and wants to help him adapt to the puzzle as it is in my country?</div>

]]></content:encoded>
			<category domain="http://forums.codeguru.com/forumdisplay.php?4-Visual-Basic-6-0-Programming">Visual Basic 6.0 Programming</category>
			<dc:creator>sinankrstarica</dc:creator>
			<guid isPermaLink="true">http://forums.codeguru.com/showthread.php?537879-wordsearch-puzzle-complete-vb6-or-vb5</guid>
		</item>
		<item>
			<title>Alignment on Printer.print</title>
			<link>http://forums.codeguru.com/showthread.php?537867-Alignment-on-Printer-print&amp;goto=newpost</link>
			<pubDate>Tue, 18 Jun 2013 15:55:06 GMT</pubDate>
			<description><![CDATA[Hi guys!

after many problems with data reports, crystal reports and things like that, i'm decided to use the Printer.print.

I made a simple class, that class receive a ListView Control and after i export the data of the listview to some array. Finally i can get the columheader titles, and the other records to print through the printer.print.

After got all the listview lines, i print them column by column, and i'm looking for some way to auto generate the spaces between columns. This way, that class could receive only a listview control and auto generate a report.

any idea to auto generate column spaces on my document made by Printer.print?]]></description>
			<content:encoded><![CDATA[<div>Hi guys!<br />
<br />
after many problems with data reports, crystal reports and things like that, i'm decided to use the Printer.print.<br />
<br />
I made a simple class, that class receive a ListView Control and after i export the data of the listview to some array. Finally i can get the columheader titles, and the other records to print through the printer.print.<br />
<br />
After got all the listview lines, i print them column by column, and i'm looking for some way to auto generate the spaces between columns. This way, that class could receive only a listview control and auto generate a report.<br />
<br />
any idea to auto generate column spaces on my document made by Printer.print?</div>

]]></content:encoded>
			<category domain="http://forums.codeguru.com/forumdisplay.php?4-Visual-Basic-6-0-Programming">Visual Basic 6.0 Programming</category>
			<dc:creator>rumblefishx</dc:creator>
			<guid isPermaLink="true">http://forums.codeguru.com/showthread.php?537867-Alignment-on-Printer-print</guid>
		</item>
		<item>
			<title>how to read things inside any window</title>
			<link>http://forums.codeguru.com/showthread.php?537861-how-to-read-things-inside-any-window&amp;goto=newpost</link>
			<pubDate>Tue, 18 Jun 2013 09:44:34 GMT</pubDate>
			<description><![CDATA[I'd like to know how to read buttons or body text from some child window.
I already found the window handle ;)

It's the clipboard-window I'd like to read to capture the cut-addresses:
Attachment 31535 (http://forums.codeguru.com/attachment.php?attachmentid=31535)]]></description>
			<content:encoded><![CDATA[<div>I'd like to know how to read buttons or body text from some child window.<br />
I already found the window handle ;)<br />
<br />
It's the clipboard-window I'd like to read to capture the cut-addresses:<br />
<img src="http://forums.codeguru.com/attachment.php?attachmentid=31535&amp;d=1371548668" border="0" alt="Name:  excel 2010 clipboard.JPG
Views: 0
Size:  41.5 KB"  /></div>


	<div style="padding:10px">

	

	
		<fieldset class="fieldset">
			<legend>Attached Images</legend>
				<div style="padding:10px">
				<img class="attach" src="http://forums.codeguru.com/attachment.php?attachmentid=31535&amp;stc=1&amp;d=1371548668" alt="" />&nbsp;
			</div>
		</fieldset>
	

	

	

	</div>
]]></content:encoded>
			<category domain="http://forums.codeguru.com/forumdisplay.php?4-Visual-Basic-6-0-Programming">Visual Basic 6.0 Programming</category>
			<dc:creator>onidarbe</dc:creator>
			<guid isPermaLink="true">http://forums.codeguru.com/showthread.php?537861-how-to-read-things-inside-any-window</guid>
		</item>
		<item>
			<title>Calling data from a database?</title>
			<link>http://forums.codeguru.com/showthread.php?537845-Calling-data-from-a-database&amp;goto=newpost</link>
			<pubDate>Mon, 17 Jun 2013 11:53:46 GMT</pubDate>
			<description><![CDATA[I'm trying to create a program that has three sections

Game:
Settings:
Path:

When I select a game on the first section (It's a comboBox) I want to have the settings for that game show in the text box below it and where the game is currently installed. Is there a way to do this at all? I assume it would be done using databases?]]></description>
			<content:encoded><![CDATA[<div>I'm trying to create a program that has three sections<br />
<br />
Game:<br />
Settings:<br />
Path:<br />
<br />
When I select a game on the first section (It's a comboBox) I want to have the settings for that game show in the text box below it and where the game is currently installed. Is there a way to do this at all? I assume it would be done using databases?</div>

]]></content:encoded>
			<category domain="http://forums.codeguru.com/forumdisplay.php?4-Visual-Basic-6-0-Programming">Visual Basic 6.0 Programming</category>
			<dc:creator>SwiiftYz</dc:creator>
			<guid isPermaLink="true">http://forums.codeguru.com/showthread.php?537845-Calling-data-from-a-database</guid>
		</item>
		<item>
			<title>VB6 - basic printing of item record info in catalogue system</title>
			<link>http://forums.codeguru.com/showthread.php?537827-VB6-basic-printing-of-item-record-info-in-catalogue-system&amp;goto=newpost</link>
			<pubDate>Sun, 16 Jun 2013 09:46:15 GMT</pubDate>
			<description><![CDATA[I have used VB6 for several years to run "library" systems such as Stamp Collections, Book Lists etc.

At times it is necessary to print record extracts in formatted form to insert into ledgers.

The code used is simple using a subroutine with  code - "Printer.Print" followed by a string of spaces "", & data name across the line of print required - about 80 chars max. 

All was well until last week when I tried to print several item tags. Only 38 characters were printed on each line although no change had been made to the code.

Can anyone give me an explanation for this occurrence. Could it be that my new printer has caused the problem.]]></description>
			<content:encoded><![CDATA[<div>I have used VB6 for several years to run &quot;library&quot; systems such as Stamp Collections, Book Lists etc.<br />
<br />
At times it is necessary to print record extracts in formatted form to insert into ledgers.<br />
<br />
The code used is simple using a subroutine with  code - &quot;Printer.Print&quot; followed by a string of spaces &quot;&quot;, &amp; data name across the line of print required - about 80 chars max. <br />
<br />
All was well until last week when I tried to print several item tags. Only 38 characters were printed on each line although no change had been made to the code.<br />
<br />
Can anyone give me an explanation for this occurrence. Could it be that my new printer has caused the problem.</div>

]]></content:encoded>
			<category domain="http://forums.codeguru.com/forumdisplay.php?4-Visual-Basic-6-0-Programming">Visual Basic 6.0 Programming</category>
			<dc:creator>gralush</dc:creator>
			<guid isPermaLink="true">http://forums.codeguru.com/showthread.php?537827-VB6-basic-printing-of-item-record-info-in-catalogue-system</guid>
		</item>
		<item>
			<title><![CDATA[Please help me to solve "array problem"]]></title>
			<link>http://forums.codeguru.com/showthread.php?537797-Please-help-me-to-solve-quot-array-problem-quot&amp;goto=newpost</link>
			<pubDate>Fri, 14 Jun 2013 15:07:34 GMT</pubDate>
			<description>Thanks no need to help.</description>
			<content:encoded><![CDATA[<div>Thanks no need to help.</div>


	<div style="padding:10px">

	

	
		<fieldset class="fieldset">
			<legend>Attached Images</legend>
				<div style="padding:10px">
				<img class="attach" src="http://forums.codeguru.com/attachment.php?attachmentid=31523&amp;stc=1&amp;d=1371222217" alt="" />&nbsp;
			</div>
		</fieldset>
	

	

	

	</div>
]]></content:encoded>
			<category domain="http://forums.codeguru.com/forumdisplay.php?4-Visual-Basic-6-0-Programming">Visual Basic 6.0 Programming</category>
			<dc:creator>dragon9</dc:creator>
			<guid isPermaLink="true">http://forums.codeguru.com/showthread.php?537797-Please-help-me-to-solve-quot-array-problem-quot</guid>
		</item>
		<item>
			<title>About Crystal Reports 4.6</title>
			<link>http://forums.codeguru.com/showthread.php?537773-About-Crystal-Reports-4-6&amp;goto=newpost</link>
			<pubDate>Thu, 13 Jun 2013 16:36:37 GMT</pubDate>
			<description><![CDATA[Hi guys!

i've question about this tool :)

i need to make dinamic reports, and i know to do a report using the report designer. But, to do a dinamic report i need to create this reports by code, so i can change the table and columns in runtime.

Is possible to create dinamic reports by code, using crystal reports 4.6?

:P]]></description>
			<content:encoded><![CDATA[<div>Hi guys!<br />
<br />
i've question about this tool :)<br />
<br />
i need to make dinamic reports, and i know to do a report using the report designer. But, to do a dinamic report i need to create this reports by code, so i can change the table and columns in runtime.<br />
<br />
Is possible to create dinamic reports by code, using crystal reports 4.6?<br />
<br />
:P</div>

]]></content:encoded>
			<category domain="http://forums.codeguru.com/forumdisplay.php?4-Visual-Basic-6-0-Programming">Visual Basic 6.0 Programming</category>
			<dc:creator>rumblefishx</dc:creator>
			<guid isPermaLink="true">http://forums.codeguru.com/showthread.php?537773-About-Crystal-Reports-4-6</guid>
		</item>
		<item>
			<title>Question about Ado shape</title>
			<link>http://forums.codeguru.com/showthread.php?537713-Question-about-Ado-shape&amp;goto=newpost</link>
			<pubDate>Tue, 11 Jun 2013 11:17:55 GMT</pubDate>
			<description><![CDATA[Hi guys!

i've some problem with shape, because i didn't understand all the concept yet. 

But, i need to use then... and i've a problem with a situation.

The problem is about querys that require "agregate function or group by clause". So, i dont know what i need to do, to put a query that require "group by clause" in ado shape without use group by.

is possible? any idea?]]></description>
			<content:encoded><![CDATA[<div>Hi guys!<br />
<br />
i've some problem with shape, because i didn't understand all the concept yet. <br />
<br />
But, i need to use then... and i've a problem with a situation.<br />
<br />
The problem is about querys that require &quot;agregate function or group by clause&quot;. So, i dont know what i need to do, to put a query that require &quot;group by clause&quot; in ado shape without use group by.<br />
<br />
is possible? any idea?</div>

]]></content:encoded>
			<category domain="http://forums.codeguru.com/forumdisplay.php?4-Visual-Basic-6-0-Programming">Visual Basic 6.0 Programming</category>
			<dc:creator>rumblefishx</dc:creator>
			<guid isPermaLink="true">http://forums.codeguru.com/showthread.php?537713-Question-about-Ado-shape</guid>
		</item>
		<item>
			<title>Error code help needed</title>
			<link>http://forums.codeguru.com/showthread.php?537659-Error-code-help-needed&amp;goto=newpost</link>
			<pubDate>Sat, 08 Jun 2013 23:50:21 GMT</pubDate>
			<description><![CDATA[Hi Folks.. I am a real newbie to this... no real knowledge about programming but keen to learn. I am playing with some code at the moment that should return a message that a 'category' has been added to an Access Database and another bit checking to see that if a no value is entered it writes an error message. I can't get the **** thing to work and think I may have tried to run before I can walk. saying that if there are no values. The error message I get is ...

Microsoft JET Database Engine error '80040e14' 

Syntax error (missing operator) in query expression 'TypeId ='. 

it makes reference to line 67 in the code but I can't find anything there that may be wrong

and the code I am using is 

<%
Dim Flag, Query
' If the Category Name field is empty, and the form has been submitted:			
If Request("TypeName")="" Then
	If Flag Then
		Response.Write "<p class='subtitle'>You must enter a cateogry name.</p>"
		Else
' If Flag isn't true, show the edit form:
Dim CategoryRS
Set CategoryRS = Server.CreateObject("ADODB.Recordset")
			CategoryRS.Open "SELECT * FROM Type WHERE TypeId =" & Request("iType"), Connect, 2, 3
			End If
			%>

Sorry for being such a thicko but can anybody out there please help me ???

thanks to you all who take an interest in these and help us newbies sort things out.....

Regards

David A]]></description>
			<content:encoded><![CDATA[<div>Hi Folks.. I am a real newbie to this... no real knowledge about programming but keen to learn. I am playing with some code at the moment that should return a message that a 'category' has been added to an Access Database and another bit checking to see that if a no value is entered it writes an error message. I can't get the **** thing to work and think I may have tried to run before I can walk. saying that if there are no values. The error message I get is ...<br />
<br />
Microsoft JET Database Engine error '80040e14' <br />
<br />
Syntax error (missing operator) in query expression 'TypeId ='. <br />
<br />
it makes reference to line 67 in the code but I can't find anything there that may be wrong<br />
<br />
and the code I am using is <br />
<br />
&lt;%<br />
Dim Flag, Query<br />
' If the Category Name field is empty, and the form has been submitted:			<br />
If Request(&quot;TypeName&quot;)=&quot;&quot; Then<br />
	If Flag Then<br />
		Response.Write &quot;&lt;p class='subtitle'&gt;You must enter a cateogry name.&lt;/p&gt;&quot;<br />
		Else<br />
' If Flag isn't true, show the edit form:<br />
Dim CategoryRS<br />
Set CategoryRS = Server.CreateObject(&quot;ADODB.Recordset&quot;)<br />
			CategoryRS.Open &quot;SELECT * FROM Type WHERE TypeId =&quot; &amp; Request(&quot;iType&quot;), Connect, 2, 3<br />
			End If<br />
			%&gt;<br />
<br />
Sorry for being such a thicko but can anybody out there please help me ???<br />
<br />
thanks to you all who take an interest in these and help us newbies sort things out.....<br />
<br />
Regards<br />
<br />
David A</div>

]]></content:encoded>
			<category domain="http://forums.codeguru.com/forumdisplay.php?4-Visual-Basic-6-0-Programming">Visual Basic 6.0 Programming</category>
			<dc:creator>davida1956</dc:creator>
			<guid isPermaLink="true">http://forums.codeguru.com/showthread.php?537659-Error-code-help-needed</guid>
		</item>
		<item>
			<title><![CDATA[[RESOLVED] checking the same values??? why not working]]></title>
			<link>http://forums.codeguru.com/showthread.php?537595-RESOLVED-checking-the-same-values-why-not-working&amp;goto=newpost</link>
			<pubDate>Thu, 06 Jun 2013 08:02:33 GMT</pubDate>
			<description><![CDATA[Ok this is absolutely mindboggling me, and i have no idea why it is not working, maybe im just being dumb and stupid, but i have tried other expressions.

Heres the Layout

9 Textboxes, a Button, 
I want to Check that each row has the same written in it
I set the text boxes in a Control Array for easier use and reference

heres what i have but i keep getting a type mismatch, so must be doing something wrong, argh i hate doing things when im tired too but any idea why this is coming up as a mismatch

btw i wrote a function too in a module if it helps so i could call it easier

Code:
---------
dim state as string
If  Form1.textinput(0).text And Form1.textinput(1).text = Form1.textinput(2).text  Then
state = Form1.textinput(0).text
'To Check if it works
' MsgBox (state) 
End If
---------
oh dear lord an easy conjunction and i cant get it to work what am i missing pr doing wrong :cry:]]></description>
			<content:encoded><![CDATA[<div>Ok this is absolutely mindboggling me, and i have no idea why it is not working, maybe im just being dumb and stupid, but i have tried other expressions.<br />
<br />
Heres the Layout<br />
<br />
9 Textboxes, a Button, <br />
I want to Check that each row has the same written in it<br />
I set the text boxes in a Control Array for easier use and reference<br />
<br />
heres what i have but i keep getting a type mismatch, so must be doing something wrong, argh i hate doing things when im tired too but any idea why this is coming up as a mismatch<br />
<br />
btw i wrote a function too in a module if it helps so i could call it easier<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">dim state as string<br />
If&nbsp; Form1.textinput(0).text And Form1.textinput(1).text = Form1.textinput(2).text&nbsp; Then<br />
state = Form1.textinput(0).text<br />
'To Check if it works<br />
' MsgBox (state) <br />
End If</code><hr />
</div>oh dear lord an easy conjunction and i cant get it to work what am i missing pr doing wrong :cry:</div>

]]></content:encoded>
			<category domain="http://forums.codeguru.com/forumdisplay.php?4-Visual-Basic-6-0-Programming">Visual Basic 6.0 Programming</category>
			<dc:creator>djzotics</dc:creator>
			<guid isPermaLink="true">http://forums.codeguru.com/showthread.php?537595-RESOLVED-checking-the-same-values-why-not-working</guid>
		</item>
		<item>
			<title>How can i generate a dinamic datareport ?</title>
			<link>http://forums.codeguru.com/showthread.php?537571-How-can-i-generate-a-dinamic-datareport&amp;goto=newpost</link>
			<pubDate>Wed, 05 Jun 2013 12:30:58 GMT</pubDate>
			<description>Hi Guys!

My System offers many ways to show the listview information, changing column header, positions and titles. So, i need to find some way to generate a dinamic datareport based on my listview by getting header column names and column informations.

Any Idea?</description>
			<content:encoded><![CDATA[<div>Hi Guys!<br />
<br />
My System offers many ways to show the listview information, changing column header, positions and titles. So, i need to find some way to generate a dinamic datareport based on my listview by getting header column names and column informations.<br />
<br />
Any Idea?</div>

]]></content:encoded>
			<category domain="http://forums.codeguru.com/forumdisplay.php?4-Visual-Basic-6-0-Programming">Visual Basic 6.0 Programming</category>
			<dc:creator>rumblefishx</dc:creator>
			<guid isPermaLink="true">http://forums.codeguru.com/showthread.php?537571-How-can-i-generate-a-dinamic-datareport</guid>
		</item>
		<item>
			<title>call a module from a form</title>
			<link>http://forums.codeguru.com/showthread.php?537551-call-a-module-from-a-form&amp;goto=newpost</link>
			<pubDate>Tue, 04 Jun 2013 16:38:31 GMT</pubDate>
			<description><![CDATA[Can I call this module function form a form? 


Code:
---------
Public Declare Function FindWindow Lib "user32" Alias "FindWindowA" _
    (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private Declare Function GetWindowThreadProcessId Lib "user32" _
    (ByVal hwnd As Long, ByRef lpdwProcessId As Long) As Long
Private Declare Function OpenProcess Lib "Kernel32" _
    (ByVal dwDesiredAccess As Long, ByVal bInheritHandle As Long, _
    ByVal dwProcessID As Long) As Long
Private Declare Function CloseHandle Lib "Kernel32" _
    (ByVal hObject As Long) As Long
Private Declare Function TerminateProcess Lib "Kernel32" _
    (ByVal hProcess As Long, ByVal uExitCode As Long) As Long

Private Const SYNCHRONIZE = &H100000
Private Const PROCESS_TERMINATE As Long = &H1

Public Sub terminateApp(ByVal sWindowTitle As String, ByVal fSilent As Boolean)

    ' Forcefully terminate a running application
    
    Dim lHwnd As Long
    Dim lProc As Long
    Dim lProcHnd As Long
    
    On Error GoTo errError1
    
    sWindowTitle = "Example"
    sWindowTitle = "Test"
    
    ' Get the target's window handle.
    lHwnd = FindWindow(vbNullString, sWindowTitle)
    If lHwnd = 0 Then
        If fSilent Then
            Exit Sub
        Else
            Err.Raise 1, , "Can't find window handle of application to terminate"
        End If
    End If

    ' Get the process
    GetWindowThreadProcessId lHwnd, lProc
    If lProc = 0 Then
        If fSilent Then
            Exit Sub
        Else
            Err.Raise 1, , "Can't get process ID of window handle"
        End If
    End If

    lProcHnd = OpenProcess(SYNCHRONIZE Or PROCESS_TERMINATE, 0, lProc)
    If lProcHnd = 0 Then
        If fSilent Then
            Exit Sub
        Else
            Err.Raise 1, , "Can't get process handle"
        End If
    End If

    ' Terminate Process
    If TerminateProcess(lProcHnd, 0&) <> 0 Then
        If Not fSilent Then
            Err.Raise 1, , "Failed to terminate process"
        End If
    End If

    ' Close the process.
    CloseHandle lProcHnd
    
    Exit Sub

errError1:
    Err.Raise Err.Number, , Err.Description
End Sub
---------
I need to call that module when the specified app is running, any suggestion for codes in the form?]]></description>
			<content:encoded><![CDATA[<div>Can I call this module function form a form? <br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">Public Declare Function FindWindow Lib &quot;user32&quot; Alias &quot;FindWindowA&quot; _<br />
&nbsp; &nbsp; (ByVal lpClassName As String, ByVal lpWindowName As String) As Long<br />
Private Declare Function GetWindowThreadProcessId Lib &quot;user32&quot; _<br />
&nbsp; &nbsp; (ByVal hwnd As Long, ByRef lpdwProcessId As Long) As Long<br />
Private Declare Function OpenProcess Lib &quot;Kernel32&quot; _<br />
&nbsp; &nbsp; (ByVal dwDesiredAccess As Long, ByVal bInheritHandle As Long, _<br />
&nbsp; &nbsp; ByVal dwProcessID As Long) As Long<br />
Private Declare Function CloseHandle Lib &quot;Kernel32&quot; _<br />
&nbsp; &nbsp; (ByVal hObject As Long) As Long<br />
Private Declare Function TerminateProcess Lib &quot;Kernel32&quot; _<br />
&nbsp; &nbsp; (ByVal hProcess As Long, ByVal uExitCode As Long) As Long<br />
<br />
Private Const SYNCHRONIZE = &amp;H100000<br />
Private Const PROCESS_TERMINATE As Long = &amp;H1<br />
<br />
Public Sub terminateApp(ByVal sWindowTitle As String, ByVal fSilent As Boolean)<br />
<br />
&nbsp; &nbsp; ' Forcefully terminate a running application<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; Dim lHwnd As Long<br />
&nbsp; &nbsp; Dim lProc As Long<br />
&nbsp; &nbsp; Dim lProcHnd As Long<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; On Error GoTo errError1<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; sWindowTitle = &quot;Example&quot;<br />
&nbsp; &nbsp; sWindowTitle = &quot;Test&quot;<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; ' Get the target's window handle.<br />
&nbsp; &nbsp; lHwnd = FindWindow(vbNullString, sWindowTitle)<br />
&nbsp; &nbsp; If lHwnd = 0 Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; If fSilent Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Exit Sub<br />
&nbsp; &nbsp; &nbsp; &nbsp; Else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Err.Raise 1, , &quot;Can't find window handle of application to terminate&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; End If<br />
<br />
&nbsp; &nbsp; ' Get the process<br />
&nbsp; &nbsp; GetWindowThreadProcessId lHwnd, lProc<br />
&nbsp; &nbsp; If lProc = 0 Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; If fSilent Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Exit Sub<br />
&nbsp; &nbsp; &nbsp; &nbsp; Else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Err.Raise 1, , &quot;Can't get process ID of window handle&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; End If<br />
<br />
&nbsp; &nbsp; lProcHnd = OpenProcess(SYNCHRONIZE Or PROCESS_TERMINATE, 0, lProc)<br />
&nbsp; &nbsp; If lProcHnd = 0 Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; If fSilent Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Exit Sub<br />
&nbsp; &nbsp; &nbsp; &nbsp; Else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Err.Raise 1, , &quot;Can't get process handle&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; End If<br />
<br />
&nbsp; &nbsp; ' Terminate Process<br />
&nbsp; &nbsp; If TerminateProcess(lProcHnd, 0&amp;) &lt;&gt; 0 Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; If Not fSilent Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Err.Raise 1, , &quot;Failed to terminate process&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; End If<br />
<br />
&nbsp; &nbsp; ' Close the process.<br />
&nbsp; &nbsp; CloseHandle lProcHnd<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; Exit Sub<br />
<br />
errError1:<br />
&nbsp; &nbsp; Err.Raise Err.Number, , Err.Description<br />
End Sub</code><hr />
</div>I need to call that module when the specified app is running, any suggestion for codes in the form?</div>

]]></content:encoded>
			<category domain="http://forums.codeguru.com/forumdisplay.php?4-Visual-Basic-6-0-Programming">Visual Basic 6.0 Programming</category>
			<dc:creator>blumoon</dc:creator>
			<guid isPermaLink="true">http://forums.codeguru.com/showthread.php?537551-call-a-module-from-a-form</guid>
		</item>
		<item>
			<title>How many test form is open ?</title>
			<link>http://forums.codeguru.com/showthread.php?537461-How-many-test-form-is-open&amp;goto=newpost</link>
			<pubDate>Fri, 31 May 2013 02:37:19 GMT</pubDate>
			<description>I suppose there are many programs of the form, I can determine how much the order form is opened and the name of the form is not open? Who can share me with example, thanks</description>
			<content:encoded><![CDATA[<div>I suppose there are many programs of the form, I can determine how much the order form is opened and the name of the form is not open? Who can share me with example, thanks</div>

]]></content:encoded>
			<category domain="http://forums.codeguru.com/forumdisplay.php?4-Visual-Basic-6-0-Programming">Visual Basic 6.0 Programming</category>
			<dc:creator>dongtrien</dc:creator>
			<guid isPermaLink="true">http://forums.codeguru.com/showthread.php?537461-How-many-test-form-is-open</guid>
		</item>
		<item>
			<title>Reading USB data in VB6 application.</title>
			<link>http://forums.codeguru.com/showthread.php?537415-Reading-USB-data-in-VB6-application&amp;goto=newpost</link>
			<pubDate>Wed, 29 May 2013 10:17:23 GMT</pubDate>
			<description><![CDATA[Hello All,

I have an VB6 application that gets data from a lasergun by RS232 (COM). Now we are receiving PC's that only have USB ports. If I connect the laser gun by USB I can receive data, as an keyboard input. The problem is that I don't want to allow that the focus go to other thing,  than the application as with the COM communication (that there's an component MSCOMM that manages that). Can anyone help me to get a solution? Is there some component or way to do this? 

Thanks in adavnced

Eunice]]></description>
			<content:encoded><![CDATA[<div>Hello All,<br />
<br />
I have an VB6 application that gets data from a lasergun by RS232 (COM). Now we are receiving PC's that only have USB ports. If I connect the laser gun by USB I can receive data, as an keyboard input. The problem is that I don't want to allow that the focus go to other thing,  than the application as with the COM communication (that there's an component MSCOMM that manages that). Can anyone help me to get a solution? Is there some component or way to do this? <br />
<br />
Thanks in adavnced<br />
<br />
Eunice</div>

]]></content:encoded>
			<category domain="http://forums.codeguru.com/forumdisplay.php?4-Visual-Basic-6-0-Programming">Visual Basic 6.0 Programming</category>
			<dc:creator>lunasnice</dc:creator>
			<guid isPermaLink="true">http://forums.codeguru.com/showthread.php?537415-Reading-USB-data-in-VB6-application</guid>
		</item>
		<item>
			<title>Can i make 2 instances of the same datareport?</title>
			<link>http://forums.codeguru.com/showthread.php?537359-Can-i-make-2-instances-of-the-same-datareport&amp;goto=newpost</link>
			<pubDate>Tue, 28 May 2013 10:54:36 GMT</pubDate>
			<description><![CDATA[Hi Guys! :D

i'm working with datarepots on VB6, and the system offers many ways to show the listview. So, for each listview model, i need to align and resize all the objects again.

I was thinking about create some instances of the same datareport, and resize all objects without modify all the rest of the instances. 

It's possible?

i'm trying like the code:

Code:
---------
dim obj(2) as DataReport1
set obj(0) = New DataReport1
set obj(1) = New DataReport1
---------

But, when i try to run the code... i receive a exception, and my VS close.

The exception is about win32 5504.

More 1 question... is possible to reset all the objects positions in the runtime?]]></description>
			<content:encoded><![CDATA[<div>Hi Guys! :D<br />
<br />
i'm working with datarepots on VB6, and the system offers many ways to show the listview. So, for each listview model, i need to align and resize all the objects again.<br />
<br />
I was thinking about create some instances of the same datareport, and resize all objects without modify all the rest of the instances. <br />
<br />
It's possible?<br />
<br />
i'm trying like the code:<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">dim obj(2) as DataReport1<br />
set obj(0) = New DataReport1<br />
set obj(1) = New DataReport1</code><hr />
</div><br />
But, when i try to run the code... i receive a exception, and my VS close.<br />
<br />
The exception is about win32 5504.<br />
<br />
More 1 question... is possible to reset all the objects positions in the runtime?</div>

]]></content:encoded>
			<category domain="http://forums.codeguru.com/forumdisplay.php?4-Visual-Basic-6-0-Programming">Visual Basic 6.0 Programming</category>
			<dc:creator>rumblefishx</dc:creator>
			<guid isPermaLink="true">http://forums.codeguru.com/showthread.php?537359-Can-i-make-2-instances-of-the-same-datareport</guid>
		</item>
	</channel>
</rss>
