Click here to Skip to main content
15,917,565 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Generalcommunication port Pin
x_no3-Aug-04 0:07
x_no3-Aug-04 0:07 
GeneralRe: communication port Pin
Dave Kreskowiak3-Aug-04 5:17
mveDave Kreskowiak3-Aug-04 5:17 
Generaladding a new node to XML config file Pin
Vineet Rajan2-Aug-04 20:57
Vineet Rajan2-Aug-04 20:57 
GeneralPlz Help me to fix overflow error Pin
Murtuza Husain Miyan Patel2-Aug-04 20:08
professionalMurtuza Husain Miyan Patel2-Aug-04 20:08 
GeneralRe: Plz Help me to fix overflow error Pin
Dave Kreskowiak3-Aug-04 5:21
mveDave Kreskowiak3-Aug-04 5:21 
GeneralRe: Plz Help me to fix overflow error Pin
Murtuza Husain Miyan Patel3-Aug-04 20:44
professionalMurtuza Husain Miyan Patel3-Aug-04 20:44 
GeneralRe: Plz Help me to fix overflow error Pin
Dave Kreskowiak4-Aug-04 2:57
mveDave Kreskowiak4-Aug-04 2:57 
GeneralRe: Plz Help me to fix overflow error Pin
Murtuza Husain Miyan Patel16-Aug-04 20:05
professionalMurtuza Husain Miyan Patel16-Aug-04 20:05 
Hello Dave,

Have a Good Day.
Thanks for your help. I am sending you the complete code which I used to hide my app from the task manager. in form load i used the following code.

Sub Form_Load()
Const SW_HIDE = 0
Const GW_OWNER = 4
Dim OwnerhWnd As String
Dim ret As Integer

' Make sure the form is invisible:
Form1.Visible = False

' Set interval for timer for 5 seconds, and make sure it is enabled:
Timer1.Interval = 5000
Timer1.Enabled = True

' Grab the background or owner window:
OwnerhWnd = GetWindow(Me.hWnd, GW_OWNER)
' Hide from task list:
ret = ShowWindow(OwnerhWnd, SW_HIDE)

End Sub

in module I used the following declarations.

Declare Function ShowWindow Lib "User" (ByVal hWnd As Integer, ByVal nCmdShow As Integer) As Integer
Declare Function GetWindow Lib "User" (ByVal hWnd As Integer, ByVal wCmd As Integer) As Integer


Sub main()
Form1.Show
End Sub


when i declare the function as intgptr its not coming in refence. Should I have to give some special refence to get the Intgptr type decleration. right now the error is coming like userdefined not defined and if i make it as integer then the error Over Flow coming.

Please help to fix this problem or give me any other way to hide my VB6 app from task manager task list.

GeneralRe: Plz Help me to fix overflow error Pin
Dave Kreskowiak18-Aug-04 1:42
mveDave Kreskowiak18-Aug-04 1:42 
GeneralRe: Plz Help me to fix overflow error Pin
Murtuza Husain Miyan Patel18-Aug-04 4:12
professionalMurtuza Husain Miyan Patel18-Aug-04 4:12 
Generaladding a form to windows service project Pin
Vineet Rajan2-Aug-04 18:31
Vineet Rajan2-Aug-04 18:31 
GeneralNetworked Application Pin
Alejandro K.2-Aug-04 5:05
Alejandro K.2-Aug-04 5:05 
GeneralRe: Networked Application Pin
Dave Kreskowiak2-Aug-04 10:58
mveDave Kreskowiak2-Aug-04 10:58 
GeneralConverting System Time to milliseconds Pin
Simon Kearn2-Aug-04 4:33
sussSimon Kearn2-Aug-04 4:33 
GeneralRe: Converting System Time to milliseconds Pin
Dave Kreskowiak3-Aug-04 5:45
mveDave Kreskowiak3-Aug-04 5:45 
GeneralRe: Converting System Time to milliseconds Pin
Simon Kearn5-Aug-04 0:05
sussSimon Kearn5-Aug-04 0:05 
GeneralRe: Converting System Time to milliseconds Pin
Dave Kreskowiak7-Aug-04 6:22
mveDave Kreskowiak7-Aug-04 6:22 
GeneralData Dictionary Pin
Britnt72-Aug-04 3:07
Britnt72-Aug-04 3:07 
Generalediting XML config file from within executing program Pin
Vineet Rajan2-Aug-04 1:57
Vineet Rajan2-Aug-04 1:57 
GeneralRe: editing XML config file from within executing program Pin
Member 9041222-Aug-04 2:48
Member 9041222-Aug-04 2:48 
GeneralRe: editing XML config file from within executing program Pin
Vineet Rajan2-Aug-04 3:09
Vineet Rajan2-Aug-04 3:09 
GeneralDatagrid row color Pin
benjj1-Aug-04 7:40
benjj1-Aug-04 7:40 
GeneralRe: Datagrid row color Pin
Jay Shankar2-Aug-04 16:31
Jay Shankar2-Aug-04 16:31 
GeneralRe: Datagrid row color Pin
partt3-Aug-04 11:50
partt3-Aug-04 11:50 
GeneralExcel Report Created in VB.Net Pin
lxhan1-Aug-04 5:00
lxhan1-Aug-04 5:00 

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.