Click here to Skip to main content
15,900,461 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Form size Pin
mayhem_rules18-Jan-06 18:44
mayhem_rules18-Jan-06 18:44 
QuestionCompare value from database Pin
yaminilathatv18-Jan-06 17:58
yaminilathatv18-Jan-06 17:58 
AnswerRe: Compare value from database Pin
Muhammad Javed Khan18-Jan-06 18:50
Muhammad Javed Khan18-Jan-06 18:50 
AnswerRe: Compare value from database Pin
Guffa18-Jan-06 21:30
Guffa18-Jan-06 21:30 
QuestionAudio and Image at the same time? Pin
musiccode55618-Jan-06 17:43
musiccode55618-Jan-06 17:43 
AnswerRe: Audio and Image at the same time? Pin
Christian Graus18-Jan-06 17:53
protectorChristian Graus18-Jan-06 17:53 
Questionhow can i bind checkbox to sqldatabase Pin
thepityone18-Jan-06 17:37
thepityone18-Jan-06 17:37 
QuestionHow to get hwnd in .NET? Pin
bskirkman18-Jan-06 16:38
bskirkman18-Jan-06 16:38 
Im getting System.OverflowException, with a very large number for OwnerhWnd
I have:
<br />
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long<br />
Declare Function GetWindow Lib "user32" (ByVal hwnd As Long, ByVal wCmd As Long) As Long<br />


and in load method of mainform,
<br />
        Dim OwnerhWnd As Integer<br />
        Dim ret As Integer<br />
        Dim hWnd As Long<br />
        hWnd = FindWindow("MainForm", "")<br />
        OwnerhWnd = GetWindow(hWnd, GW_OWNER)<br />


Anyone tell me whats wrong here?
I want to do that so I can call
ret = ShowWindow(OwnerhWnd, SW_HIDE)
but crashing on line OwnerhWnd = GetWindow(hWnd, GW_OWNER)
thanks
AnswerRe: How to get hwnd in .NET? Pin
Christian Graus18-Jan-06 17:55
protectorChristian Graus18-Jan-06 17:55 
GeneralRe: How to get hwnd in .NET? Pin
bskirkman18-Jan-06 18:20
bskirkman18-Jan-06 18:20 
GeneralRe: How to get hwnd in .NET? Pin
bskirkman18-Jan-06 18:21
bskirkman18-Jan-06 18:21 
AnswerRe: How to get hwnd in .NET? Pin
Dave Kreskowiak19-Jan-06 5:54
mveDave Kreskowiak19-Jan-06 5:54 
GeneralRe: How to get hwnd in .NET? Pin
Christian Graus19-Jan-06 8:52
protectorChristian Graus19-Jan-06 8:52 
GeneralRe: How to get hwnd in .NET? Pin
Dave Kreskowiak19-Jan-06 9:08
mveDave Kreskowiak19-Jan-06 9:08 
GeneralRe: How to get hwnd in .NET? Pin
Christian Graus19-Jan-06 9:10
protectorChristian Graus19-Jan-06 9:10 
GeneralRe: How to get hwnd in .NET? Pin
Dave Kreskowiak19-Jan-06 9:26
mveDave Kreskowiak19-Jan-06 9:26 
GeneralRe: How to get hwnd in .NET? Pin
Christian Graus19-Jan-06 9:29
protectorChristian Graus19-Jan-06 9:29 
GeneralRe: How to get hwnd in .NET? Pin
bskirkman19-Jan-06 11:05
bskirkman19-Jan-06 11:05 
QuestionListbox style with checkbox? Pin
cylix200018-Jan-06 16:05
cylix200018-Jan-06 16:05 
AnswerRe: Listbox style with checkbox? Pin
Joshua Quick18-Jan-06 16:33
Joshua Quick18-Jan-06 16:33 
AnswerRe: Listbox style with checkbox? Pin
bskirkman18-Jan-06 16:41
bskirkman18-Jan-06 16:41 
QuestionHow can show the the message to StatusItem1 when I click the btnSave? Pin
cylix200018-Jan-06 15:08
cylix200018-Jan-06 15:08 
AnswerRe: How can show the the message to StatusItem1 when I click the btnSave? Pin
Muhammad Javed Khan18-Jan-06 18:54
Muhammad Javed Khan18-Jan-06 18:54 
QuestionSub Main() Pin
OldDog.Net18-Jan-06 14:31
OldDog.Net18-Jan-06 14:31 
AnswerRe: Sub Main() Pin
Joshua Quick18-Jan-06 15:41
Joshua Quick18-Jan-06 15:41 

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.