473,326 Members | 2,095 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,326 software developers and data experts.

how to hide Start Button

Hi!
How to hide Start Button in VB.NET?
I know in VB6 and want to see this sample in VB.NET.
Can anybody create worked sample?
Nov 20 '05 #1
6 8018
Hi Magic,

What is Start button?

To hide a button is just mybutton.visible = false

Cor
Hi!
How to hide Start Button in VB.NET?
I know in VB6 and want to see this sample in VB.NET.
Can anybody create worked sample?

Nov 20 '05 #2
Maybe this helps:
http://www.tek-tips.com/gfaqs.cfm/pid/222/fid/5126

Regards Seb

"Magic Gooddy" <go****@rambler.ru> wrote in message
news:%2******************@tk2msftngp13.phx.gbl...
Hi!
How to hide Start Button in VB.NET?
I know in VB6 and want to see this sample in VB.NET.
Can anybody create worked sample?

Nov 20 '05 #3
Another one:
http://abstractvb.com/code.asp?A=970

"Magic Gooddy" <go****@rambler.ru> wrote in message
news:%2******************@tk2msftngp13.phx.gbl...
Hi!
How to hide Start Button in VB.NET?
I know in VB6 and want to see this sample in VB.NET.
Can anybody create worked sample?

Nov 20 '05 #4
* "Magic Gooddy" <go****@rambler.ru> scripsit:
How to hide Start Button in VB.NET?
I know in VB6 and want to see this sample in VB.NET.
Can anybody create worked sample?


Untested, written from scratch:

\\\
Private Declare Auto Function FindWindowEx Lib "user32.dll" ( _
ByVal hwnd As IntPtr, _
ByVal hWndChild As IntPtr, __
ByVal lpszClassName As String, _
ByVal lpszWindow As String _
) As IntPtr

Private Declare Auto Function ShowWindow Lib "user32.dll" ( _
ByVal hwnd As IntPtr, _
ByVal nCmdShow As Int32 _
) As Int32

Private Const SW_HIDE As Int32 = 0
Private Const SW_RESTORE As Long = 9

Private m_hWndStart As Long
..
..
..
Dim n As IntPtr = FindWindowEx(IntPtr.Zero, IntPtr.Zero, "Shell_TrayWnd", vbNullString)
m_hWndStart = FindWindowEx(n, IntPtr.Zero, "BUTTON", vbNullString)
ShowWindow(m_hWndStart, SW_HIDE)
///

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #5
* "Magic Gooddy" <go****@rambler.ru> scripsit:
But why untested? Are you afraid of your code:-)


No, but I didn't have .NET installed on the machine I used for writing
the code, so I could not test it.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #6
* "Magic Gooddy" <go****@rambler.ru> scripsit:
your code not work!


Sorry, there were two little typos in the code:

\\\
Private Declare Auto Function FindWindowEx Lib "user32.dll" ( _
ByVal hwnd As IntPtr, _
ByVal hWndChild As IntPtr, _
ByVal lpszClassName As String, _
ByVal lpszWindow As String _
) As IntPtr

Private Declare Auto Function ShowWindow Lib "user32.dll" ( _
ByVal hwnd As IntPtr, _
ByVal nCmdShow As Int32 _
) As Int32

Private Const SW_HIDE As Int32 = 0
Private Const SW_RESTORE As Int32 = 9

Private m_hWndStart As IntPtr
..
..
..
Dim n As IntPtr = FindWindowEx(IntPtr.Zero, IntPtr.Zero, "Shell_TrayWnd", vbNullString)
m_hWndStart = FindWindowEx(n, IntPtr.Zero, "BUTTON", vbNullString)
ShowWindow(m_hWndStart, SW_HIDE)
///

.... works as expected.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: alex | last post by:
I'd like to have a show/hide widget on my web site, kind of like "show details" / "hide details" in Google Groups. Is there a tutorial explaining how to make them? Google's is a bit complex and...
1
by: lauren quantrell | last post by:
Before getting pistol whipped, I know this is a well-worn topic but I don't see the answer... I know how to hide the Access window, I know how to disable the Access application's close button, but...
2
by: amil [c#newbie] | last post by:
Hi all, I am using the Notify Icon sample that came with .Net Docs and was able to run it. However, I want to start the form as minimized. I have the ShowInTaskbar = false and in the this is...
0
by: Kim Würtz | last post by:
Hi everybody I have a mission critical application, so I don't want the user to be able to start other apps on the PC like internet explorer etc. Therefore I want to hide the start button as...
7
by: FP | last post by:
I'm new to Java Script. I'm displaying comments people have made. Below each persons' comment I want to add 2 buttons "Reply" and "Amend". Clicking "Reply" would display an empty text field...
2
by: Advo | last post by:
Basically, ive got information in a table for the layout purposes, as its text for a questionnaire What i Need, is for instance when the user click a radio button, that information can be...
2
by: mqudsi | last post by:
I'm making a system tray application, and I just can't figure out how to make it hide on execution just like it used to in C++. If I have a button the form and in the button's Click method i have...
18
by: Liquidtouch | last post by:
I have been searching on this for awhile and cant find anything and playing around with it got me no where. I will start with what I am after and then explain what I have. I have a table with 3...
3
by: timplx | last post by:
Hello all, New to javascript and have never worked with programming languages like c++, so my logic in some of these statements might be incorrect or redundant Got a problem with my page......
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
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...
1
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: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
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...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.