Click here to Skip to main content
15,881,872 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: SQL working in SQLPlus but not returning rows in VB.net using Oracle.OLEDB provider Pin
liona2-May-13 0:14
liona2-May-13 0:14 
Questionshow and hide process with showwindow api Pin
JR21229-Apr-13 2:03
JR21229-Apr-13 2:03 
AnswerRe: show and hide process with showwindow api Pin
Dave Kreskowiak29-Apr-13 2:10
mveDave Kreskowiak29-Apr-13 2:10 
GeneralRe: show and hide process with showwindow api Pin
JR21229-Apr-13 2:39
JR21229-Apr-13 2:39 
GeneralRe: show and hide process with showwindow api Pin
Dave Kreskowiak29-Apr-13 7:13
mveDave Kreskowiak29-Apr-13 7:13 
AnswerRe: show and hide process with showwindow api Pin
Eddy Vluggen29-Apr-13 2:17
professionalEddy Vluggen29-Apr-13 2:17 
GeneralRe: show and hide process with showwindow api Pin
JR21229-Apr-13 2:40
JR21229-Apr-13 2:40 
AnswerRe: show and hide process with showwindow api Pin
Eddy Vluggen29-Apr-13 3:24
professionalEddy Vluggen29-Apr-13 3:24 
jan212r wrote:
my enum

Posting it here is hardly the same as comparing it. Your enum-declaration is not a UINT, but defaults to INT. I suggest you use the version from the P/Invoke website, preferably with the same name. Below code works;
VB
Imports System.Runtime.InteropServices
Imports System.IO
Imports System.Diagnostics
Module Module1
    <DllImport("user32.dll", SetLastError:=True, CharSet:=CharSet.Auto)> _
    Private Function ShowWindow(ByVal hwnd As IntPtr, ByVal nCmdShow As WindowShowStyle) As Boolean
    End Function
    Private Enum WindowShowStyle : uint
        Hide = 0
        Show = 5
    End Enum
    Sub Main()
        Dim p = Process.Start("calc.exe")
        Console.WriteLine("Any key to hide")
        Console.ReadKey()
        ShowWindow(p.MainWindowHandle, WindowShowStyle.Hide)
        Console.WriteLine("Any key to show")
        Console.ReadKey()
        ShowWindow(p.MainWindowHandle, WindowShowStyle.Show)
    End Sub
End Module

Bastard Programmer from Hell Suspicious | :suss:
If you can't read my code, try converting it here[^]

GeneralRe: show and hide process with showwindow api Pin
JR21229-Apr-13 20:38
JR21229-Apr-13 20:38 
GeneralRe: show and hide process with showwindow api Pin
Dave Kreskowiak30-Apr-13 1:43
mveDave Kreskowiak30-Apr-13 1:43 
QuestionVBA using Structure Appearance Pin
mach1carr28-Apr-13 9:19
mach1carr28-Apr-13 9:19 
AnswerRe: VBA using Structure Appearance Pin
Kenneth Haugland28-Apr-13 21:36
mvaKenneth Haugland28-Apr-13 21:36 
AnswerRe: VBA using Structure Appearance Pin
Dave Kreskowiak29-Apr-13 2:07
mveDave Kreskowiak29-Apr-13 2:07 
QuestionTo readLine column by column Pin
cumaryare426-Apr-13 10:25
professionalcumaryare426-Apr-13 10:25 
AnswerRe: To readLine column by column Pin
Dave Kreskowiak26-Apr-13 12:21
mveDave Kreskowiak26-Apr-13 12:21 
QuestionHow to zip folder in vb6 Pin
wsun8726-Apr-13 0:47
wsun8726-Apr-13 0:47 
AnswerRe: How to zip folder in vb6 Pin
Eddy Vluggen26-Apr-13 6:14
professionalEddy Vluggen26-Apr-13 6:14 
GeneralRe: How to zip folder in vb6 Pin
cf2i-acive28-Apr-13 16:04
cf2i-acive28-Apr-13 16:04 
QuestionList of error codes and matching error descriptions in vb.net Pin
treddie25-Apr-13 12:06
treddie25-Apr-13 12:06 
AnswerRe: List of error codes and matching error descriptions in vb.net Pin
dusty_dex25-Apr-13 13:47
dusty_dex25-Apr-13 13:47 
GeneralRe: List of error codes and matching error descriptions in vb.net Pin
treddie25-Apr-13 16:49
treddie25-Apr-13 16:49 
GeneralRe: List of error codes and matching error descriptions in vb.net Pin
dusty_dex26-Apr-13 0:25
dusty_dex26-Apr-13 0:25 
AnswerRe: List of error codes and matching error descriptions in vb.net Pin
Dave Kreskowiak25-Apr-13 14:51
mveDave Kreskowiak25-Apr-13 14:51 
GeneralRe: List of error codes and matching error descriptions in vb.net Pin
treddie25-Apr-13 16:56
treddie25-Apr-13 16:56 
GeneralRe: List of error codes and matching error descriptions in vb.net Pin
Dave Kreskowiak26-Apr-13 1:48
mveDave Kreskowiak26-Apr-13 1:48 

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.