473,386 Members | 1,969 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,386 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 2617
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.