Win7/64 Shortcut Discrepancy Between Scripted IconLocation And Change Icon Button
Nov 30, 2010
I am noticing a discrepancy between a full path specified for a VBScript Shortcut IconLocation and the subsequent mangled result that only becomes noticeable when I wish to manually change the Shortcut's Icon. Somewhere after the oShortcut.save call, the mangling occurs.
The icon is always properly displayed on the Shortcut. However, programs that exist only in the 32-bit "C:Program Files (x86)" location result in an error message that states, "Windows can't find the file %ProgramFiles%<etc>." (where <etc> is the remainder of the path).
The Visual Basic Script as well as my Command Prompt both show %ProgramFiles% as "C:Program Files (x86)", yet the Shortcut/Windows Explorer dialog always interpret it as the 64-bit Program directory. This may indicate a low level flawed interaction, a contention of definitions.
Input/Output examples:
IN: Hard coded to the call to oShortcut.IconLocation = "<Full Path>,0"
OUT: The text shown in the error message after I click "Change Icon...".
These ONLY exist in "C:Program Files (x86)":
IN: C:Program Files (x86)AdobeReader 10.0ReaderAcroRd32.exe
OUT: %ProgramFiles%AdobeReader 10.0ReaderAcroRd32.exe
[Code]....
Note the %SystemDrive% adds a further insane mangling of the 64-bit path. This one luckily seems to be a benign error for the moment. The errors are not even consistent. Has anyone at Microsoft ever heard of quality control?
View 2 Replies
ADVERTISEMENT
Jun 5, 2010
I'm trying to extract the icon from a shortcut (lnk file), but I end up with the shortcut symbol in the lower-left hand corner of the image. How can I extract a shortcut's icon without this symbol?
Here's the code I'm using:
Dim ico As System.Drawing.Icon = System.Drawing.Icon.ExtractAssociatedIcon("C:shortcut.lnk")
View 3 Replies
Aug 14, 2009
What I am trying to do is change the icon of a form at either runtime or if a button was pressed. I have had no luck...the only way I found was
vb
Form1.Icon = LoadPicture("c:myicon.ico")
...but I can't use "LoadPicture"
Not much I can think to give in the way of details..
View 1 Replies
May 31, 2010
I finished True Tune and built it then published it, but it doesn't appear in the win7 start menu or as an icon on the desktop.
View 6 Replies
Apr 11, 2011
I have a custom app which I deploy to my Win7 users, the app sets up a tray icon which is automatically hidden by the OS. The user then has to manually change the settings of the System Tray to always display my app's icon.What can I do when installing my app on Win7 to make the icon show in the System Tray without user-intervention?
|+--JDMils|+--VB6 & XL VBA+--VB Dot Net 2K8|
View 4 Replies
Dec 16, 2011
I have an vb.net application. For this application there are 4 users. so for this 4 users different user names will be there Also users will have the different shortcut icons(from the base exe they created 4 shortcut and renames themselves.) As soon as they click on ok button in login form i am storing the details in registry. if they restared the application, login form will show the last user name(which is stored in registry). Here the requirement is user1 should not get user2 username when he login. Here I have to store the login information of every users in registry separately and if user1 is clicking the shorcut of my application(i.e clicking on shortcut of MyApp.exe) then he should get his details. Here i can differentiate by using which shortcut icon is clicked. Based on that name i can say this user is trying to log and i have to show his user name in login form username textbox.[code]...
View 20 Replies
Dec 16, 2011
I have an application in vb.net. after building i will be getting the exe. once i create the shortcur for this exe consider shortcur of myexe.exe in desktop, how can i get the name of the shortcur icon (i.e "shortcur of myexe.exe") through my vb.net application. Here i have below scenario.I have three shortcut(my1.exe,my2.exe,my3.exe) for an exe named as "My.exe" if i click on my1.exe i should get the shortcut icon name as my1.exe if i click on my2.exe i should get the shortcut icon name as my2.exe if i click on my3.exe i should get the shortcut icon name as my3.exe So based on shortcut name i am proceeding different thinks withing the application.
View 3 Replies
Mar 29, 2010
I added the icon in my forms project etc. But when i go to view the project after build, when i click on it the icon does not appear. and the shortcut doesn't have the icon.
View 2 Replies
Oct 27, 2011
I'm a VB beginner and trying to create a Setup installer for my first freeware titleThe installer is almost complete.If I execute it, and it will install the application with a Desktop shortcut and a Startup shortcut.
View 12 Replies
Jul 25, 2009
I am working in VB.NET 2003. I have one exe file in a particular folder. I want to create desktop shortcut icon for that exe file. How can I do this?
View 1 Replies
Nov 25, 2010
I've just created a game program in VBE2008.Who do I add the shortcut Icon to the project file?When I build my program into a .exe file I want it to include a small custom icon that will automatically display when you hotlink from the desktop to the .exe file.
View 2 Replies
Jun 1, 2011
I found this thread[url]...
and I have encountered the exact same problem, that the desktop shortcut icon created by the Setup program does not work when dragging and dropping a file (in this case an Access-database) onto it,
while a shortcut manually created works just fine.
I do not understand the answer in the above thread. But, anyway I would like to find a way to solve the problem directly, preferably through the Setup program itself.
View 2 Replies
Feb 16, 2011
I know there is a way to remove it for the system, but I don't want to remove the little arrow from the desktop icons, I only want to remove it in my application window I am making. Adding the registry hack removes it from my app as well as the desktop, yet I want to keep those on the desktop. Is there something I can add in my app that will allow me to remove them in my application only? I am showing the icons in a lsitview
View 4 Replies
Nov 25, 2010
I just created a game program out of VBE2008 and did the build process to turn it into a .exe file.When I did the build function I apparently missed the step of attaching an icon to the project.Now when I do a desktop shortcut to the .exe file there is no pretty icon - just an ordinary looking window box.How do I add a desktop shortcut icon to inside the project settings?
View 1 Replies
Dec 30, 2010
the thing is i'm a .net programmer at varsity but i cant figure out how to program or insert shortcut/icon keys on the web browser application e.g back,refresh,stop,go. i'm only able to do this using command buttoms. so i want to use simple icons like those on some web browsers.
View 1 Replies
Apr 8, 2009
How can I get all the names of the shortcuts icons in the desktop into a String?
Like: Computer, Microsoft Office Word 2003, Internet Explorer....etz.
I tried to use "My.Computer.FileSystem..." , but didn't find a way.
View 3 Replies
Jun 4, 2011
My application icon looks ugly-like a paper and i would like to change it to something like globe icon or any suitable image.Am programming using visual studio 2005 and the program is written in vb.net.
View 1 Replies
Jun 6, 2011
I know the propertys transparency key and opacity. It isnt what I am looking for. I need to have my form to have the same Glass Effect the as win7 does while runing under win7 plataform. Like, if i have glass effect in the top I should have it in the background.
View 14 Replies
Jan 9, 2012
When setting the Page properties with the PageSetupDialog there was a "Printer..." button in the lower right corner to set the Printer setting also. But in the same app under win7 the button is gone.
I've set:
PageSetupDialog1.AllowPrinter = True
but to no avail. Also tried with Admin rights...nothing
View 2 Replies
Sep 14, 2011
I've got the following Visual Basic code:
Dim L16, L23, L45, t As Double
Dim LBase, LAdjacent, LOpposite As Double
L16 = 20
[Code].....
Both equations should be equivalent: I've simply replaced L16 with LBase, L23 with LAdjacent and L45 with LOpposite. Yet the first equation outputs 3586 while the second outputs 3587.
View 1 Replies
Jun 21, 2010
i really dont get it. i want to put keyboard shortcuts on the button i have other than clicking this buttons. but the problem is i dont know how. i tried putting an ampersand (&) sign before the text of the buttons and it work, but the ampersand sign also displays. heres the original code:
Button1.Text = Mid(ChoosenWord, PickedSeq(0), 1)
Button2.Text = Mid(ChoosenWord, PickedSeq(1), 1)
Button3.Text = Mid(ChoosenWord, PickedSeq(2), 1)
[code]....
View 5 Replies
Mar 16, 2010
Whenever I store values to a double-type variable, and ask to display it on the screen, there seems to always be a discrepancy, for example, I entered 7.416 to a textbox and assigned it to a double. When i ask for it to be displayed, it used to be that the 7.416 is returned to me. But just a few days ago, when I debugged my program again, it returns numbers like 7.4159987.......[code]....
View 7 Replies
Mar 18, 2012
how to make a button in VB10 that opens a program like Skype, or something when you press it? :)
View 3 Replies
Mar 4, 2011
In my program I am trying to make a button that would add a shortcut to activate a running application by a process ID. In a form I have 2 text-boxes 1 for the name of the shortcut that would be shown in the tool-strip-menu-item. Then the other for the process name. Then when the user presses a button I would like the text of the text-box for the name to be added to a tool-strip-menu-item, then the other text-box used for the Process ID to be added to the fallowing code: (the tool-strip-menu-item is in another form)
Dim processID As Integer
processID = Shell("Process ID
", AppWinStyle.NormalFocus)
View 8 Replies
Sep 22, 2009
i am writing an application in vb5 and i need to make an invisible shortcut button for the esc function...
how might i code this????
View 1 Replies
Feb 17, 2010
I set an ampersand sign in from of a Radio button text. However the I could not select the radio buttons unless I used the mouse. In other words the shortcut setting is not working for the Radio button
View 3 Replies
May 11, 2009
Is it possible to add custom command in a shortcut (.lnk) menu (right button) through .net? How can i add the command and executed that command.?
View 4 Replies
Jul 8, 2010
I have been using this as a short cut to log into many things as it saves me time and I have previously set up code to log into a website and launch the program but now it does not work because the site has changed.
What i use was Invoke to press the login button but the problem now is that there is no "id" for the object i wish to be clicking. Let me explain..
Here is the code i have:
WebBrowser1.Document.All("tbID").SetAttribute("value", ID.Text)
WebBrowser1.Document.All("tbPass").SetAttribute("value", Password.Text)
For Each InputBx As HtmlElement In WebBrowser1.Document.GetElementsByTagName("input")
[CODE]...
But the part i cannot fix is this: (due to the part not having an "id" and i cannot manually put on there like i did for my site i had)
WebBrowser1.Document.All("LogBtn").InvokeMember("click")
In the source code this is what i have to work with:
<div id="m-start">
<ul><li class="bg-login login-module">
<input id="tbID" type="text">
<input id="tbPass" type="password">
[CODE]...
This is the part of which i wish to click but it has no "id" : <input value="Login" class="login" type="submit">
View 2 Replies
Nov 9, 2011
I'm creating a file manager in VB.net. I included some icons in the project resources of my application. I want, my users can change the icons of files on their desktop/documents/etc. with the icons I have included in VB.net.
View 1 Replies
May 19, 2011
I have made several DLL for future projects and wish to change the icon for better recognition
View 2 Replies