473,289 Members | 1,840 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,289 software developers and data experts.

Windows status bar+vb

hi..
i am new to vb , how to hide windows status bar while running my .exe file...
plz help me
Jul 17 '06 #1
2 2614
sashi
1,754 Expert 1GB
Hi Ramesh,

you need to have a little bit knowledge on API to be able to do that.. good luck my fren.. :)
Jul 17 '06 #2
sashi
1,754 Expert 1GB
Hi Ramesh,

try out the code segment below.. it works for me and hope it works for you too.. good luck my fren.. :)

Declarations

You just copy this code into the declarations section of your project.

Expand|Select|Wrap|Line Numbers
  1. Declare Function SetWindowPos Lib "user32" (ByVal hwnd _
  2. As Long, ByVal hWndInsertAfter As Long, ByVal x As Long, _
  3. ByVal y As Long, ByVal cx As Long, ByVal cy As Long, ByVal _
  4. wFlags As Long) As Long         
  5.  
  6. Declare Function FindWindow Lib "user32" Alias _
  7. "FindWindowA" (ByVal lpClassName As String, ByVal _
  8. lpWindowName As String) As Long
  9.  
  10. Const SWP_HIDEWINDOW = &H80
  11. Const SWP_SHOWWINDOW = &H40         
  12.  
Code to Hide the Taskbar

Expand|Select|Wrap|Line Numbers
  1. Dim Thwnd as Long
  2. Thwnd = FindWindow("Shell_traywnd", "")
  3. Call SetWindowPos(Thwnd, 0, 0, 0, 0, 0, SWP_HIDEWINDOW)         
  4.  
Code to Show the Taskbar

Expand|Select|Wrap|Line Numbers
  1. Dim Thwnd as Long
  2. Thwnd = FindWindow("Shell_traywnd", "")
  3. Call SetWindowPos(Thwnd, 0, 0, 0, 0, 0, SWP_SHOWWINDOW)
  4.  
Jul 17 '06 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Glenn | last post by:
I've tried both the FileInfo class as well as the old VB file io methods to access a file on a netware server from a Windows Service build using VB.Net and no method I've tried works. I get a...
4
by: scorpion53061 | last post by:
This is a windows vb.net app that is using SQL Server. I have 1(one) customer who receives this error out of the 400 or so that use this software. The error and statement are below. I also know...
1
by: M O J O | last post by:
Hi, I've developed a Windows VB.Net CRM application for my company. I need my own CRM application to be able to replicate it's calendar with my Pocket PC 2003 Outlook calendar. Understand...
0
by: Rothariger | last post by:
hello i have an windows vb app, that must to connect to an webapplication asp.net the problem is that the site have basic authenticacion... ok i have done this... Dim strURL As String =...
1
by: Adrian | last post by:
Hi No sure if xlst is the correct choice! or if it is how I would use it from within a windows VB application! I had XML data help in an xmlelements object and I want to format the data and...
4
by: shil | last post by:
Can any one help point me in the right direction? I am building a small application in Windows app using VB.NET. I have a Datagrid which is bound to a set of controls in another pane below it...
1
by: shil | last post by:
Is there any possible way to create an email attachments from an URL in windows vb.net application? I'm using frame work 2.0, System.Net.Mail component. If I attach a file from my file system,...
1
LegalIT
by: LegalIT | last post by:
Hello, I have an application that loads a set of database records into memory. I then have buttons to move to the first, next, previous or last record. I would like to add a horizontal scroll...
9
by: brendan_gallagher_2001 | last post by:
Hi I am seeing some strange behaviour on a windows (vb.net 1.1) service. Basically, what I see happening is that when the Timer1_Elapsed event fires, it attempts to execute Timer1.Stop() but...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.