Click here to Skip to main content
15,896,118 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Crystal Report Porblem Pin
help as an alias26-Jul-07 20:35
help as an alias26-Jul-07 20:35 
GeneralRe: Crystal Report Porblem Pin
Paul Conrad26-Jul-07 20:37
professionalPaul Conrad26-Jul-07 20:37 
GeneralRe: Crystal Report Porblem Pin
help as an alias26-Jul-07 20:40
help as an alias26-Jul-07 20:40 
GeneralRe: Crystal Report Porblem Pin
Christian Graus26-Jul-07 20:38
protectorChristian Graus26-Jul-07 20:38 
GeneralRe: Crystal Report Porblem Pin
Paul Conrad26-Jul-07 20:35
professionalPaul Conrad26-Jul-07 20:35 
AnswerSTOP !!!! Pin
Christian Graus26-Jul-07 20:21
protectorChristian Graus26-Jul-07 20:21 
GeneralRe: STOP !!!! Pin
Paul Conrad26-Jul-07 20:27
professionalPaul Conrad26-Jul-07 20:27 
QuestionHow can I caputre the content in the IE Address bar ofthe current IE Window? [modified] Pin
rerb26-Jul-07 8:11
rerb26-Jul-07 8:11 
How can I caputre the content in the IE Address bar ofthe current IE Window?

If there is a different way maybe a ie hook? Ref: http://www.codeproject.com/shell/iesaveas.asp[^]
All sugestions are welcome.

My code retrives the handle of the active window but i need to strip information from specific a object within a window. Like the IE Address bar. Here is the code I have.

Declare Function GetForegroundWindow Lib "user32" Alias "GetForegroundWindow" () As Integer
Declare Function GetWindowTextLength Lib "user32.dll" Alias "GetWindowTextLengthA" (ByVal hwnd As Integer) As Integer
Declare Function GetWindowText Lib "user32" Alias "GetWindowTextA" (ByVal hwnd As Integer, ByVal lpString As String, ByVal cch As Integer) As Integer
Declare Function GetWindowThreadProcessId Lib "user32" (ByVal hwnd As Integer, ByRef lpdwProcessId As Integer) As Integer


Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

End Sub

Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
' Get the window's handle.
Dim fg_hwnd As Long = GetForegroundWindow()
Dim pid As Integer = 3528 ' "2940" '
GetWindowThreadProcessId(fg_hwnd, pid)

Debug.WriteLine("HWN= " & fg_hwnd & " " & "PID= " & pid)
End Sub


Thank you in advance Smile | :)

-- modified at 15:44 Thursday 26th July, 2007
QuestionCombobox in DatagridView Pin
ryan11726-Jul-07 7:46
ryan11726-Jul-07 7:46 
AnswerRe: Combobox in DatagridView Pin
Johan Hakkesteegt26-Jul-07 20:08
Johan Hakkesteegt26-Jul-07 20:08 
QuestionHow do i bind a Datatable or datagrid col to text boxes? Pin
Jeffrey Shane26-Jul-07 5:35
Jeffrey Shane26-Jul-07 5:35 
AnswerRe: How do i bind a Datatable or datagrid col to text boxes? Pin
Christian Graus26-Jul-07 14:01
protectorChristian Graus26-Jul-07 14:01 
GeneralRe: How do i bind a Datatable or datagrid col to text boxes? Pin
Jeffrey Shane28-Jul-07 9:49
Jeffrey Shane28-Jul-07 9:49 
QuestionUpdating an Access Database Pin
RichFeldman26-Jul-07 5:30
RichFeldman26-Jul-07 5:30 
AnswerRe: Updating an Access Database Pin
Paul Conrad26-Jul-07 18:02
professionalPaul Conrad26-Jul-07 18:02 
GeneralRe: Updating an Access Database Pin
RichFeldman27-Jul-07 3:46
RichFeldman27-Jul-07 3:46 
GeneralRe: Updating an Access Database Pin
S Douglas29-Jul-07 23:18
professionalS Douglas29-Jul-07 23:18 
GeneralRe: Updating an Access Database Pin
RichFeldman30-Jul-07 6:13
RichFeldman30-Jul-07 6:13 
QuestionWhat is object reference not set to an instance of an object? Pin
sweehin1826-Jul-07 4:45
sweehin1826-Jul-07 4:45 
AnswerRe: What is object reference not set to an instance of an object? Pin
Tom Deketelaere26-Jul-07 5:02
professionalTom Deketelaere26-Jul-07 5:02 
GeneralRe: What is object reference not set to an instance of an object? Pin
sweehin1826-Jul-07 5:19
sweehin1826-Jul-07 5:19 
GeneralRe: What is object reference not set to an instance of an object? Pin
Tom Deketelaere26-Jul-07 5:31
professionalTom Deketelaere26-Jul-07 5:31 
AnswerRe: What is object reference not set to an instance of an object? Pin
TwoFaced26-Jul-07 7:53
TwoFaced26-Jul-07 7:53 
Questionediting exe.cofig file Pin
halder_rajib26-Jul-07 3:35
halder_rajib26-Jul-07 3:35 
AnswerRe: editing exe.cofig file Pin
Dave Kreskowiak26-Jul-07 3:51
mveDave Kreskowiak26-Jul-07 3:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.