Click here to Skip to main content
15,891,935 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: How to open a Word Document using vb.net command buttons Pin
China-Gary17-Jan-07 22:38
China-Gary17-Jan-07 22:38 
GeneralRe: How to open a Word Document using vb.net command buttons Pin
China-Gary18-Jan-07 0:50
China-Gary18-Jan-07 0:50 
QuestionRequired Output Pin
Kumaran21cen17-Jan-07 1:40
Kumaran21cen17-Jan-07 1:40 
AnswerRe: Required Output Pin
nlarson1117-Jan-07 3:33
nlarson1117-Jan-07 3:33 
AnswerRe: Required Output Pin
Jason McBurney17-Jan-07 6:26
Jason McBurney17-Jan-07 6:26 
QuestionVBScript code to extract Window title Pin
B.L.Praveen17-Jan-07 1:19
B.L.Praveen17-Jan-07 1:19 
AnswerRe: VBScript code to extract Window title Pin
jstark11017-Jan-07 7:54
jstark11017-Jan-07 7:54 
GeneralRe: VBScript code to extract Window title Pin
B.L.Praveen17-Jan-07 20:40
B.L.Praveen17-Jan-07 20:40 
The VB code below tries to get the Window title character for the First Active Window.
I have error Poping up on my screen when I run this.
Error "No Creatable Public Component detected"
" MSDN Collection Doesn't Exits"
What i need to do to get ride of this error?

Public Declare Function GetParent Lib "user32" (ByVal hwnd As Long) As Long
Public Declare Function GetWindow Lib "user32" (ByVal hwnd As Long, _
ByVal wCmd As Long) As Long
Public Declare Function FindWindow Lib "user32" Alias "FindWindowA" _
(ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Public Declare Function GetWindowText Lib "user32" Alias "GetWindowTextA" _
(ByVal hwnd As Long, ByVal lpString As String, ByVal cch As Long) As Long
Public Declare Function GetWindowThreadProcessId Lib "user32" _
(ByVal hwnd As Long, lpdwprocessid As Long) As Long
Private Sub Command1_Click()
Dim tempHWin As Long
Dim StringDisplay As String
Dim CountOfBytes As Integer
Dim Buffer As String
Dim Instnace As Long

tempHWin = FindWindow(vbNullString, vbNullString)
Buffer = Space$(128)
CountOfBytes = GetWindowText(tempHWin, Buffer, Len(Buffer))
Instance = ProcIDFromWnd(tempHWin)
StringDisplay = StringDisplay & Left$(Buffer, CountOfBytes) & tempHWin & Instance
Text1 = StringDisplay

End Sub

Function ProcIDFromWnd(ByVal hwnd As Long) As Long
Dim idProc As Long

' Get PID for this HWnd
GetWindowThreadProcessId hwnd, idProc

' Return PID
ProcIDFromWnd = idProc
End Function

Praveen

Questionwant mysql+vb.net application Pin
priya_p23316-Jan-07 23:59
priya_p23316-Jan-07 23:59 
AnswerRe: want mysql+vb.net application Pin
Christian Graus17-Jan-07 0:22
protectorChristian Graus17-Jan-07 0:22 
AnswerRe: want mysql+vb.net application Pin
Vinay Dornala17-Jan-07 0:59
Vinay Dornala17-Jan-07 0:59 
GeneralRe: want mysql+vb.net application [modified] Pin
priya_p23317-Jan-07 2:27
priya_p23317-Jan-07 2:27 
GeneralRe: want mysql+vb.net application Pin
Jason McBurney17-Jan-07 6:29
Jason McBurney17-Jan-07 6:29 
QuestionShow Table name Pin
Socheat.Net16-Jan-07 23:57
Socheat.Net16-Jan-07 23:57 
AnswerRe: Show Table name Pin
Jason McBurney17-Jan-07 6:39
Jason McBurney17-Jan-07 6:39 
Questionunknown software exception on closedown Pin
Ben Dessau16-Jan-07 23:03
Ben Dessau16-Jan-07 23:03 
Questionurgent!!!!!!!!!problem in VB.NET Pin
salon16-Jan-07 22:29
salon16-Jan-07 22:29 
QuestionSearching in datasets or datatables Pin
WofR16-Jan-07 22:11
WofR16-Jan-07 22:11 
AnswerRe: Searching in datasets or datatables Pin
shreekar16-Jan-07 23:20
shreekar16-Jan-07 23:20 
AnswerRe: Searching in datasets or datatables Pin
MatthysDT17-Jan-07 0:05
MatthysDT17-Jan-07 0:05 
AnswerRe: Searching in datasets or datatables Pin
Jason McBurney17-Jan-07 6:50
Jason McBurney17-Jan-07 6:50 
Questionpromblem Pin
ravimwani16-Jan-07 21:33
ravimwani16-Jan-07 21:33 
AnswerRe: promblem Pin
Christian Graus17-Jan-07 0:22
protectorChristian Graus17-Jan-07 0:22 
AnswerRe: promblem Pin
Jason McBurney17-Jan-07 6:52
Jason McBurney17-Jan-07 6:52 
Questionquery in vb.net [modified] Pin
amaneet16-Jan-07 21:24
amaneet16-Jan-07 21:24 

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.