Click here to Skip to main content
15,909,897 members
Home / Discussions / Visual Basic
   

Visual Basic

 
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 
QuestionDateTimePicker Pin
welbert18-Jan-06 13:56
welbert18-Jan-06 13:56 
AnswerRe: DateTimePicker Pin
Joshua Quick18-Jan-06 16:48
Joshua Quick18-Jan-06 16:48 
QuestionCan't see the horizontal scrollbar in listbox VB6 Pin
Joy Anne18-Jan-06 13:55
Joy Anne18-Jan-06 13:55 
AnswerRe: Can't see the horizontal scrollbar in listbox VB6 Pin
Joshua Quick18-Jan-06 16:00
Joshua Quick18-Jan-06 16:00 
GeneralRe: Can't see the horizontal scrollbar in listbox VB6 Pin
Joy Anne18-Jan-06 17:06
Joy Anne18-Jan-06 17:06 
GeneralRe: Can't see the horizontal scrollbar in listbox VB6 Pin
Joshua Quick18-Jan-06 17:21
Joshua Quick18-Jan-06 17:21 

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.