Click here to Skip to main content
16,019,043 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: network share code Pin
Dave Kreskowiak6-Jul-05 3:15
mveDave Kreskowiak6-Jul-05 3:15 
GeneralRe: network share code Pin
LokmanHakim6-Jul-05 14:31
LokmanHakim6-Jul-05 14:31 
Generalkeypress in datagrid Pin
makeko5-Jul-05 15:44
makeko5-Jul-05 15:44 
GeneralRe: keypress in datagrid Pin
kalyanforums@yahoo.com6-Jul-05 1:06
kalyanforums@yahoo.com6-Jul-05 1:06 
GeneralRe: keypress in datagrid Pin
makeko6-Jul-05 4:11
makeko6-Jul-05 4:11 
GeneralRetrieve data from an XML *.config file. Pin
Brad Fackrell5-Jul-05 15:00
Brad Fackrell5-Jul-05 15:00 
GeneralRe: Retrieve data from an XML *.config file. Pin
Brad Fackrell6-Jul-05 2:46
Brad Fackrell6-Jul-05 2:46 
GeneralCant get GetTitleBarInfo working properly... Pin
AndrewVos5-Jul-05 11:44
AndrewVos5-Jul-05 11:44 
Hey ppl, I have ported this code from a vb6 example, but can't seem to get it working... Any ideas Confused | :confused:

<br />
  Private Class TitleBarInfo<br />
            <System.Runtime.InteropServices.DllImport("user32")> Shared Function GetTitleBarInfo(ByVal hwnd As IntPtr, ByRef pti As TITLEBARINFO) As Boolean<br />
            End Function<br />
<br />
<br />
            Private Const STATE_SYSTEM_FOCUSABLE As Integer = &H100000<br />
            Private Const STATE_SYSTEM_INVISIBLE As Short = &H8000S<br />
            Private Const STATE_SYSTEM_OFFSCREEN As Integer = &H10000<br />
            Private Const STATE_SYSTEM_UNAVAILABLE As Short = &H1S<br />
            Private Const STATE_SYSTEM_PRESSED As Short = &H8S<br />
            Private Const CCHILDREN_TITLEBAR As Short = 5<br />
            Public Structure RECT<br />
                Public left As Integer<br />
                Public top As Integer<br />
                Public right As Integer<br />
                Public bottom As Integer<br />
            End Structure<br />
            Public Structure TITLEBARINFO<br />
                Public cbSize As Integer<br />
                Public rcTitleBar As RECT<br />
                <VBFixedArray(CCHILDREN_TITLEBAR)> Public rgstate() As Integer<br />
                Public Sub Initialize()<br />
                    ReDim rgstate(CCHILDREN_TITLEBAR)<br />
                End Sub<br />
            End Structure<br />
            Public Shared Function GetTitleBarInfo(ByVal Handle As IntPtr) As TITLEBARINFO<br />
                Dim TitleInfo As TITLEBARINFO<br />
                'Initialize structure<br />
                TitleInfo.Initialize()<br />
                TitleInfo.cbSize = Len(TitleInfo)<br />
<br />
                GetTitleBarInfo(Handle, TitleInfo)<br />
return TitleInfo<br />
                Return TitleInfo<br />
            End Function<br />
        End Class<br />

GeneralRe: Cant get GetTitleBarInfo working properly... Pin
Anonymous5-Jul-05 14:38
Anonymous5-Jul-05 14:38 
GeneralRe: Cant get GetTitleBarInfo working properly... Pin
Anonymous5-Jul-05 15:39
Anonymous5-Jul-05 15:39 
GeneralRe: Cant get GetTitleBarInfo working properly... Pin
AndrewVos6-Jul-05 2:07
AndrewVos6-Jul-05 2:07 
GeneralRe: Cant get GetTitleBarInfo working properly... Pin
AndrewVos6-Jul-05 2:12
AndrewVos6-Jul-05 2:12 
GeneralRe: Cant get GetTitleBarInfo working properly... Pin
AndrewVos6-Jul-05 3:13
AndrewVos6-Jul-05 3:13 
GeneralRe: Cant get GetTitleBarInfo working properly... Pin
Anonymous6-Jul-05 9:12
Anonymous6-Jul-05 9:12 
GeneralRe: Cant get GetTitleBarInfo working properly... Pin
Anonymous7-Jul-05 4:14
Anonymous7-Jul-05 4:14 
GeneralRe: Cant get GetTitleBarInfo working properly... Pin
AndrewVos7-Jul-05 4:40
AndrewVos7-Jul-05 4:40 
GeneralRe: Cant get GetTitleBarInfo working properly... Pin
Anonymous7-Jul-05 10:19
Anonymous7-Jul-05 10:19 
GeneralRegistry Entry (SaveSettings) Pin
Mtognetti5-Jul-05 10:35
Mtognetti5-Jul-05 10:35 
GeneralRe: Registry Entry (SaveSettings) Pin
Dave Kreskowiak6-Jul-05 2:59
mveDave Kreskowiak6-Jul-05 2:59 
GeneralRe: Registry Entry (SaveSettings) Pin
Anonymous6-Jul-05 8:24
Anonymous6-Jul-05 8:24 
GeneralSet folder permissions -- PLEASE HELP! Pin
spelltwister5-Jul-05 9:25
spelltwister5-Jul-05 9:25 
QuestionIs the IF statement the best choice for this? Pin
btoyer5-Jul-05 9:15
btoyer5-Jul-05 9:15 
AnswerRe: Is the IF statement the best choice for this? Pin
Anonymous5-Jul-05 9:29
Anonymous5-Jul-05 9:29 
GeneralErrorProvider: Clear ALL Pin
Brad Fackrell5-Jul-05 9:07
Brad Fackrell5-Jul-05 9:07 
GeneralRe: ErrorProvider: Clear ALL Pin
Anonymous5-Jul-05 11:26
Anonymous5-Jul-05 11:26 

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.