Visual Basic: Change Your Start Button Text! (XP) - Windows XP ONLY

Pages: 1, 2
free web hosting

Read Latest Entries..: (Post #16) by ChristopherJ05 on Nov 27 2005, 07:48 PM. (Line Breaks Removed)
How is the code stopping it to work with win 2000 and older ?
Read the FIRST post of this Topic. - Express your Opinion! Contribute Knowledge :-).

Free Web Hosting > Computers & Tech > Programming > Programming General > BASIC / Visual Basic (.NET)

Visual Basic: Change Your Start Button Text! (XP) - Windows XP ONLY

ViRuaL
Personally, I love this program I made for myself. What the following code will allow you to do is change the text of your start button (Duh). You can make it whatever you want, your name, a hobby, or even do some extra programming and get it to randomly cycle through captions every 30 seconds or so smile.gif.

Here is all the code you'll need:
CODE
Private Const WM_SETTEXT = &HC
Private Const WM_GETTEXT = &HD
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" (ByVal hWnd1 As Long, ByVal hWnd2 As Long, ByVal lpsz1 As String, ByVal lpsz2 As String) As Long
Private Declare Function SendMessageSTRING Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As String) As Long

Public Sub SetStartCaption(str As String)
   Dim StartBar As Long
   Dim StartBarText As Long
   Dim sCaption As String
   StartBar = FindWindow("Shell_TrayWnd", vbNullString)
   StartBarText = FindWindowEx(StartBar, 0&, "button", vbNullString)
   sCaption = Left(str, 5)
   SendMessageSTRING StartBarText, WM_SETTEXT, 256, sCaption
   Exit Sub
   End Sub


All this code does is find the start button in the explorer process, then there's a little code to send a string to it to change it's text. To use this, create a TextBox, where the user can enter what he wants it to be renamed to, and a command button, which the user will press to change the text.
CODE
Private Sub Command1_Click()
SetStartCaption Text1.Text
End Sub

And that's all you'll need to change your start button to whatever you want, with the restriction of about 5-6 letter words, due to size of the button. Sorry guys sad.gif .

If you need any help, or want specific information about what each line does, I can fully explain to you all you need to know. Just send an e-mail to ViRuaL@gmail.com
Thanks, and I hope you enjoy playing around with this. cool.gif

 

 

 


Reply

loganbest
Awesome dude I will be sure to use this.
I code in VB all of the time but I usually do API's for programs.I might do some extra coding to make it cycle through captions

Reply

solanky
I have tried this code but it is not working. Can you explain how can do this??????

Reply

WeaponX
I'm no VB expert but let's see if I can help you out here.

Did you copy and paste that code into your Visual Basic main form? Just highlight the two sections of code that ViRuaL posted initially into your VB program. Then go to the GUI interface (SHIFT + F7 shortcut biggrin.gif) and add a command button and a textbox. No need to rename it since ViRuaL is just using the default names. Now run the VB program. It should open up a program with a textbox and a button. All you have to do is type in what you want to say in your Start button and hit the command button.

Reply

ViRuaL
Yup, that's all you need to do and it should work.

Reply

solanky
Sorry for replying late. But I have done the same thing. I am also a vb progrmmer. The form was running well. I have entered the text also but there was no change it Start button. I am using win2000 server.

Reply

ViRuaL
That's because of your OS. Sorry, this only works with WinXP

Reply

solanky
QUOTE(ViRuaL @ Jul 1 2005, 02:44 AM)
That's because of your OS.  Sorry, this only works with WinXP
*




It's my mistake friend. I have not seen the word xp in the brackets. Today only I have noticed that. Really sorry for that.
I will try this at my home where I have XP.

Reply

runefantasy
Nice. I'm going to try it when I get VB(removed it and forgot where I put the CD...). Can anyone give me the executable so I can run it and see? I got windows xp smile.gif

Reply

Rejected
Sure, here you go. Don't worry about wondering if it's a virus or keylogger or whatever, I'm a mod over a trap17 tongue.gif
www.thyelite.com/start.exe

Reply

Latest Entries

ChristopherJ05
How is the code stopping it to work with win 2000 and older ? huh.gif

Reply

Logan Deathbringer
QUOTE(Rejected @ Jul 17 2005, 12:22 AM)
=( Virual is no longer with the Astahost community, you should email him.. virual@gmail.com
*



Thanks for the info, I think the program is neat but I won't distribute it without his permission.

Thanks again

Reply

runefantasy
QUOTE(Rejected @ Jul 17 2005, 07:22 AM)
=( Virual is no longer with the Astahost community, you should email him.. virual@gmail.com
*



Where did he go?
Well, I still haven't had time to do anything with the code

Reply

loganbest
HEH hEH how did you find out about this Rejected?

lol, I can picture on TV in front of the nation saying with a serious voice "Virual is no longer with the Astahost community, you should email him.. virual@gmail.com."
yea that was pretty random leave me alone

Reply

Rejected
=( Virual is no longer with the Astahost community, you should email him.. virual@gmail.com

Reply


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

Pages: 1, 2
Recent Queries:-
  1. vb .net button text change - 3.14 hr back. (2)
  2. visual basic for loop change command button name - 3.72 hr back. (1)
  3. vb.net:how to enter digits only in text box - 8.82 hr back. (1)
  4. change start button win2k - 13.05 hr back. (1)
  5. change button caption in visual basic - 19.92 hr back. (2)
  6. visual basic add text button - 20.94 hr back. (2)
  7. start video in visual basic - 27.96 hr back. (1)
  8. cache:malaxxpc-isj:www.astahost.com/info.php/visual-basic-6-crystal-reports-9_t7342.html crystal reports vertical alignment - 28.42 hr back. (1)
  9. how to change start button to say something else - 32.42 hr back. (1)
  10. change random caption with vb - 34.52 hr back. (1)
  11. changing the text of a button on visual basic - 35.26 hr back. (1)
  12. change start key text vbscript - 35.94 hr back. (1)
  13. visual basic 6 press start button - 39.73 hr back. (1)
  14. vb change start button - 42.72 hr back. (1)
Similar Topics

Keywords : visual, basic, change, start, button, text, xp, windows, xp

  1. Vb.net And Windows Live Messenger Plugin
    (3)
  2. Necklace Problem In Visual Basic
    (3)
    I was wondering if anyone could write code for this program. Its the usual Necklace Problem I'll
    give you the problem. A Necklace is a collection of numbers that begins with two single digit
    integers, the next number is obtained by adding the first two digits together and saving only the
    ones digit. This process is repeated until the 'necklace' closes by returning to the
    original two numbers. I think it is a Do While Loop but i am not sure. Thankyou....
  3. Delete A Registry Subkey And Key
    Using Visual Basic 2005 Express (8)
    Hi, does anyone know how to delete a registry key/subkey using VB 2005 Express. Also, if any other
    methods using VB, C#, C++, J#, post them as well.....
  4. Visual Basic Projects: Scoreboard
    Making a scoreboard with Visual Basic 6 (0)
    Hi again, I've done another visual basic tutorial in this forum on how to make a simple,
    customized web browser. Now I am going to say how to make a scoreboard. To do so, open a Standard
    EXE project in Visual Basic 6.0 and insert 6 labels and 2 command buttons. Change the captions on
    these to: Label1: SCOREBOARD Label2: LIONS Label3: SWANS Label4: 0 Label5: 0 Label6: Waiting for
    update... Command1: TOUCHDOWN Command2: TOUCHDOWN Once you are done, it shoud look like this.
    Press F5 now to see it in action. It won't do anything, seeing as how there is no path ....
  5. Updating Values In A Text Box
    (11)
    Hi All, These are the steps in which the program works Load Data into text box > Line by Line copy
    the data into list boxes > Load data into separate form from text boxes. What I am having problems
    with is when I want to edit the data that is on the other form. Each different value has a text box
    and what I am trying to do is to update the original text box so that I can save the file onto the
    computer. But because the original text box already contains the data, I cannot just add new lines
    to the end of the text box, because I would then have two entries. What I'm....
  6. Installed Internet Explorer 7?, Visual Basic Now Broken?
    (3)
    This quick guide shows you how to fix this error. Step 1): Go to your control list by right
    clicking the toolbar underneat the default controls and clicking "Components" or by Pressing "CTRL +
    T". Step 2): In the Components Box that pops up scroll down to "Microsoft Internet Controls",
    click on it once so that it becomes highlighted. Now look at its "Location" it will say either
    "C:\Windows\System32\ieframe.dll" or "C:\Windows\System32\ieframe.dll\1". Step 3): Now you need to
    browse for the correct file, so with the "Microsoft Internet Control" still highlighted cli....
  7. [help] Visual Studio .net 2005 Questions
    (8)
    Heya folks, i am back again with my annoying questions /wink.gif" style="vertical-align:middle"
    emoid=";)" border="0" alt="wink.gif" /> I have this project to submit by the 7th of may and i am
    really desperate for some help here. I will put my questions in numbers so it would be easy for you
    to solve them without confusion. 1) Earlier in a post i had asked if i could create Vista
    compatible applications in VB .NET 2005. Well i got a good response and i went ahead and installed
    the needful, but i still think something is wrong. Not that i know alot of whats going on aro....
  8. Visual Basic Express Tutorials
    Need resources (5)
    I have just downloaded Microsoft Visual Basic Express 2005 and I need a tutorial to help me learn
    how to create simple programs. I have already watched the 16 hour RSS Reader series from Microsoft
    and I'm currently working on that. I also have developed a Web Browser and a weather tracker
    system, from the help of Microsoft E-Books and other Microsoft resources. If you could find any
    non-Microsoft resource on Visual Basic Express, that would be greatly appreciated.....
  9. Vertical Text In Datagridview Column Header
    (6)
    Hi, I don't know how to rotate a text in a DataGridView column header to be written vertically
    from bottom to top. I found a property called GdiVerticalFont in a datagridview
    ColumnHeadersDefaultCellStyle, but it doesn't work. I don't have any experience in
    programming user controls so I hope that someone help me to find a good solution. I would be
    grateful for any tip how to modify an existing control, where to put the code and what to modify.
    Thanks in advance ....
  10. Is There A Free IDE For VB.NET Programming?
    Needing info on a free VB.net IDE if avaliable (4)
    I know that VB.net is proprietry to Microsoft /sad.gif" style="vertical-align:middle" emoid=":("
    border="0" alt="sad.gif" /> but is there a free IDE that has all the support that VB.NET has? I
    found one before but it just didnt support many of the things that VB.NET does such as timers which
    was really annoying. Does anyone know of any IDEs like this that support the same functions and
    features as VB.NET but without the rather hefty (Over priced, in my opinion) price tag? If anyone
    does then drop me a PM or a reply! Thanks....
  11. Visual Basic.NET Help Needed.
    (8)
    I have a project to submit this wednesday, and i have to make it a working program. Not a big one ..
    but just sumthing small that includes : Splitter, Progress Bar & Track Bar. I thought of making
    sumthing like the picture below, I would enter the text and hit the button .. the text would come in
    BOTH the labels. Then i move the track bar on the left to increase the font or/and the track bar on
    the right to change the color ( RBG only 3 colors ). The progress bar at the bottom will show the
    progress every time i move either of the track bars to a level. Nothing fanc....
  12. New Features In Visual Studio 2005 Windows Forms
    (1)
    i dunno if all of u are by now well versed with the new exciting features in visual studio 2005
    forms, but for me this article was enlightening. for the benifit of others who wre in the dark like
    me.... New Features in Visual Studio 2005 Windows Forms QUOTE The little voice in my head
    shouted "Don't do it! Don't do it!" as I contemplated using the worn out cliché "Good things
    come to those who wait" to describe the experience of designing Windows applications with Visual
    Studio 2005. However, that cliché accurately communicates the idea that building Wi....
  13. VB.NET: How To Edit & -90degree Rotate Text In Ms Word File ?
    Need reply urgently (3)
    How to open a word file from VB.net? also need to write data in this file with -90 degree rotation.
    just want to add some data in word file through VB.Net but data is needed to be written in -90
    degree rotation format....
  14. Visual Basic Names
    Visual Basic Variabe Names (11)
    In Visual Basic, what is the difference between: ResourceName ResourceName$ ResourceName& ....
  15. Finding The Current Line Number In A Text Box
    A very basic method of doing the deed. (1)
    Language: Visual Basic 6.0 (5.0/4.0) Level: Beginner Problem: How to find the current Line Number
    in a multiline text box? Some times it is necessary for us to provide a text editor in our
    programs, or maybe a text viewer. The text box control has no built in method to find the current
    line number like RichTextBox. Hence we need to code it manually. Solution: The simple concept of
    line numbers is the carriage return character, or simply the ASCII code 10. The line feed character
    has the ASCII code 13. In the code example I have used chr(10), you can also use vbCrLf i....
  16. Visual Basic 6 + Crystal Reports 9
    how to distribute (6)
    I have made a software with Visual Basic 6 and Crystal Reprots 9. Now I have to distribute it on the
    client side but the problem is coming in distributing the Crystal Reports. I have tried Setup
    Factory but it is not working. Then I have used Visual Studio Installer from Microsoft and
    downloaded Crystal Report Merge Modules from Business Objects website. It is working properly but
    now the setup file size is very big because it carries a lot of files with it. Is there any other
    installer software which can automatically select the required files to be distribute with the ....
  17. Visual Basic: Random Strings!
    (10)
    This article will teach you how to get random strings for output to a label caption, or anywhere you
    want it to go. 1. First we need to declare our string names: CODE Private RndString(2)
    This declaration says there will be an array of strings called RndString, and there will be 2
    strings in that array. 2. Then, we need to create a function that will generate a random number.
    CODE Private Function RandomNumber(rUpper As Integer, Optional rLower As Integer) As Integer
    ' Generate random number between upper and lower bound values    Randomize    R....
  18. Visual Basic: Unload Your Application Correctly!
    (1)
    What many of us do not know is that using a button on a form with the function "Unload Form1" or
    even clicking the X in the upper right corner is like pulling the plug out of your computer while it
    is still on. It may not exit the program cleanly and efficiently, may leave background processes
    running, or just give you unwanted errors by exiting improperly. All you need to do is unload all
    components, forms, controls, etc. upon unloading. Say you have 2 forms in your project, 1
    component, and 2 controls. If these ojects are placed onto a form, unload them properly!....
  19. Visual Basic: Replace Explained!
    (4)
    This tutorial will go over how to effectively use the Replace function in Visual Basic. 1. So
    you have a string. Whether it be a label caption, an entry in a text box by the user of your
    program, or an item in a combo box. Let's say this is a bad string, something you do not want
    to appear. For instance, a user types "X is gay" in a text box, and you want to change that to
    something else. You can simply have it be deleted, or replaced with another value. 2. To make
    this work when a user types something in a textbox, you will need to use this sub: CODE ....
  20. Windows XP Restart File? Restart Programmatically
    (3)
    Anyone knows where i can find the file or files that windows use to shutdown ? i'm buiding a
    software to shutdown my pc where ever i'm from, its a version beta , but my main problem
    isn't fixed . I hope you can help me . Wrong forum. Moved to Programming. ....
  21. Visual Basic.NET Through Movies
    (0)
    Hi all, I found a very good site at MS which offers 101 short movie clips to strenghten various
    aspects of VB Programming and the IDE. Drastically cuts down on the learning curve. A very useful
    site for beginners: QUOTE Welcome to VB at the Movies. The 101 short films below will provide
    everybody from the beginner through the advanced developer with an opportunity to amp up their
    Visual Basic skills. Grab your popcorn and soda, sit back and enjoy! Source:
    http://msdn.microsoft.com/vbasic/atthemovies/default.aspx If you missed the link above, here
    it is aga....
  22. Visual Basic Help
    need help useing visual basic (7)
    i was just wondering, when you are useing the program Visual Basic is there any way to add some
    animation to a form, and if so what is a good(cheep) animation program i could get?....
  23. [visual Basic] How To Confirm A Array Is Null
    (6)
    for example, Dim array() as integer during run time, how to confirm a array is null (do not
    contain any element) Thanks....
  24. Visual Basic - make Standard dlls in VB
    written entierly by me (1)
    if you want to know how to make dlls in visual basic, download my submission to
    planet-source-code.com: http://www.planet-source-code.com/vb/scrip...=54190&lngWId=1 Quoting
    what i said on the submission: QUOTE This code will allow you to make your very own stdcall DLL
    files using Visual Basic. The DLLs that you create can be called from any programming language that
    supports stdcall DLLs. Just create or open a project with the functions that you want to export,
    choose the functions to export and click compile! Create your own DLLs that you can call from any
    prog....

    1. Looking for visual, basic, change, start, button, text, xp, windows, xp






*SIMILAR VIDEOS*
Searching Video's for visual, basic, change, start, button, text, xp, windows, xp
advertisement




Visual Basic: Change Your Start Button Text! (XP) - Windows XP ONLY