VS 2008 : Make Buttons That Will Open Each Of The "special Folders" In Windows Vista?
May 18, 2009
I'm trying to make buttons that will open each of the "special folders" in Windows Vista. Here's an example:
Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click
Process.Start("explorer.exe", Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments))
End Sub
As you can see in the above code, the button will open the Documents folder. My problem is the only folders this method can open are the documents, pictures and music folders, while I also want to open these folders below:
Downloads
Videos
User folder (aka the folder that has the user name on it)
Computer (aka My Computer in XP)
how to do that?
View 13 Replies
ADVERTISEMENT
Jan 10, 2012
I am currently using the following to Get Path of all Open Explorer Windows:
foreach (SHDocVw.InternetExplorer j in new SHDocVw.ShellWindows()) {
if (j.Name == "Windows Explorer") {
ListView1.Items.Add(j.LocationURL);
}
}
But it doesn't return the location of special folders like Computer, Recycle Bin, Network etc. Is there a way to identify those folders so I can put the path on my own like shell:MyComputerFolder for Computer?
View 4 Replies
Jan 11, 2012
Users can easily rename special folders like Computer, Network etc. to whatever they like. Also if the computer is using a different locale, the name of those folders will also be different.I want to get the current names of all special folders like Computer, Recycle Bin, Network etc. in my app. Is there a way to do this? A specific API? A registry value?For eg, user renames My Computer to Super Computer. My app should show that My Computer's name is Super Computer.
View 1 Replies
Feb 12, 2012
I'm trying to acheive something similar to this in my VB.net application: But is there a way I can get this with custom text in it like this: and have my application show it?
View 19 Replies
Mar 2, 2009
Where can I get the paths for "My Network Places" and "Recycle Bin"? Environment.SpecialFolder contains the following entries but not "My Network Places" and "Recycle Bin":
[Code]...
View 2 Replies
Nov 7, 2010
I found this question on StackOverflow. Basically, the user wanted to draw custom buttons on the titlebar. I tried the code and realised it works in vista/7 only when Aero is disabled. My question is, is there any way to draw custom buttons on the titlebar while aero is enabled? Any way of reading information from the current theme so I can style my buttons to match the already existing ones.
Here is a screenshot from my computer demonstrating the above concept. I got the additional titlebar buttons after installing DisplayFusion. And I know DisplayFusion is a .NET program because it opens in .NET Reflector. The down side is that the program is obfuscated. Not like I wanted to decompile the program or anything; I just want to add a button to my titlebar to do something else (like minimise to the system tray for instance).
Below is the screenshot, proving the program is a .NET app.
View 2 Replies
Aug 23, 2009
How do i make my button open a program and make it windows size?
View 6 Replies
Apr 10, 2012
I need a Collection of Image Paths. The images for this list will be in a known location. So for practice, I decided to use the images that are installed in the Special Folders, using this snippet:
Dim paths As ReadOnlyCollection(Of String) = New String {"C:UsersPublicPicturesSample Pictures", Environment.GetFolderPath(Environment.SpecialFolder.MyPictures)}
Obviously, this wont work yet. The squiggle line reads "End of Statement Expected". I just dont know where to go to understand the proper construction.
Here is the way a similar line is used in C#
[Code]...
View 10 Replies
Jan 5, 2009
How do you people get this special folder?
D:UsersMy User Name
I tried to get all special folders but was not able to get this one in Vista! IS that possible or I cannot find it?
View 1 Replies
Nov 15, 2009
will an program built on windows 7 using vs 2008 or 2005 have the compatibility with windows xp or vista
View 5 Replies
Mar 2, 2009
Where can I get the paths for "My Network Places" and "Recycle Bin"?nvironment.SpecialFolder contains the following entries but not "My Network Places" and "Recycle Bin":
ApplicationData
CommonApplicationData
CommonProgramFiles
[code]....
View 3 Replies
Jan 12, 2011
Take a look here.. [URL] How do I make this kind of button in my apps/
View 1 Replies
Oct 6, 2009
Am looking for away to have an area in the application window to display the open files and folders basically what�s open on the task bar.Also if the above is possible is there away to have this clickable so if something is minimized it will open upon clicking it.
View 1 Replies
Jul 3, 2009
I'm trying to create something that will intercept requests to open a file or folder in Windows Explorer. So far, the only thing I can come up with is that I need to make a file system filter driver.
View 4 Replies
May 13, 2010
I like to know how to make the forms buttons and text and data... auto adjust when windows Maximize or minimaze..because when its big I can see everything fine and when I restore to a smaller window the buttons are on the bottom and cant see them... Basically I want everything to look in the same position whether its a small window or big or at least that it has scroolbars if I see it small.
View 2 Replies
May 30, 2009
i compile my form with the below code when i run it on vista work fine without any problem but when i try to run in on XP cant run... that happened with any XP machine.[code]when i run my exe to other Vista machines work fine... but on xp NO.
View 1 Replies
Oct 5, 2009
I have a program that will process the files and produce the result in output file.When i publish and install the software in xp windows it run but in windows vista it read the file everything when i look for output file. The file is not created in vista. But other program which similar with previous one can run in windows vista expect one program. This is how i write the coding to create the file.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim OpenFileDialog1 As New OpenFileDialog
With OpenFileDialog1
[code]....
I dont know why it can not create a file in vista?
View 7 Replies
Jul 20, 2011
how to get working aero in Visual Basic 2008.I am making this media player and got everything I need for that. But what I really wanted is aero since Windows Vista got a nice interface and a few lucky people got it.But the tutorials I got worked great on Windows 7! However, I couldn't get aero because of a transparency key. (I swear I use a color picker to see if background color and transparency key are the same color.)I can't get it to work any piece of code I give.But the good part is that aero WILL work on any 7 or Vista without any form change, but the text is white with blue specks and that is not what I want.
EDIT:i found how to do it now! you need to use the property UseCompatibleTextRendring and put it to True. Now the problem is how do i do the same for the rest? (microsoft was to lazy to edit the controls)
View 2 Replies
Mar 5, 2010
im working on a drag and drop project, currently im able to drag and drop desktop shortcuts and launch them by click on them.Now im wondering how would i be able to drag and drop folders (My Pictures, My Documents) etc. im using multiple pictureboxes , only picturebox 1 code is shown here.[code]
View 1 Replies
Jul 14, 2010
how cam I get/make GOOD circle buttons-like the ones used to go back and forward in windows explorer?
View 7 Replies
Sep 3, 2009
So I'm a bit new to the whole Vista/7 audio setup. My understanding is that a new "mixer" is created for each application. Is there some new .Net function which interfaces with these mixers? I'm actually trying to create an application which can adjust the MAIN system volume level as well as the mute function.
I was looking at the Endpointvolume API however I cant get it to work for me :(. Does anyone have a vb.net demo of how to harness this API?
View 2 Replies
Feb 27, 2009
Durring game play of a game I am designing, I recieve a lovely crashing event in which my computer tells me that "vshost" has stopped working. Also, i get a message after debuging that tells me the problem is due to a compatability error between my version of windows and the version of C++ that is running.
I was not aware C++ was running. Can anyone offer any explanation for this? I will gladly share the code and the game with anyone interested. So far both computers that I have attempted to play the game on ultimately ends in a crashing vshost or windowsapplication1 but the second computer was able to run the game smoothly for much longer.
If anyone wants to try the game on your own system I will e-mail it to you, (small file) 4.7 mb
I'm curious to know if it will crash on every computer.
View 3 Replies
Jun 22, 2010
I want to make a deskband app that displays some text and buttons like windows media player when minimized on taskbar. What is the necessary imports / dll i need to use ?
View 1 Replies
Apr 10, 2012
I already build an Antivirus but the problem is When the windows start show the UAC message for Users, so that let them aware from it.So how can I turn it off on bith windows Vista and win 7? or make my software as a secure software for Windows?
View 1 Replies
Aug 31, 2009
Using VB6 to create a file and then open the file just created fails when run on a Vista client with Windows 2008 Server. The same code will work when run directly on the Windows 2008 Server or when using an XP client. If a Sleep 10000 is placed after the close, the program will work. What is the problem here? The code is as follows:
Option Explicit
Private Declare Function GetTempFileName Lib "kernel32" Alias "GetTempFileNameA" _
(ByVal lpszPath As String, ByVal lpPrefixString As String, ByVal wUnique As Long, _
[code].....
View 1 Replies
Jan 25, 2009
Winsock for some reason does not work with Windows Vista 64Bit? Is there another way that is as simple as that? If so what and how?
View 1 Replies
Nov 14, 2008
I need to be able to add (specific) special characters to text boxes. Problem is, there are five of them spread across two forms and three tabpages. What I'd like to do is bring up a form when the user presses something like "F2" while the text boxes are focused, then on that form would be a grid of buttons. When the user pushes a button, the character is added to the box. How do I get this form to reference the box that called it without passing a global variable or calling a public function? I tried Form3.Parent.Name, but that always seems to refer to nothing. Also, once this is done how can I get it to just insert a character where the cursor on the calling box is? It probably shouldn't even be on a form either since that will take the focus when it's called (which I don't want)
View 3 Replies
Jan 30, 2010
I see many programs using a menu strip similar to the folowing: My grey menu style just looks ugly... I guess I should not use the image as background, because XP has other style menustrips, so it must be some sort of menu strip. How can I make a menustrip with that style?
View 2 Replies
Jul 7, 2011
I created several Reports in Visual studio. and now I would like to create a form with buttons that open the reports. I have been searching for the code to open a report but cannot find anything useful.
Do I have to add al the Report projects to my ReportForm project or...?
View 2 Replies
Aug 14, 2008
if they choose to use a networked version of my software, I will need the main server doing the authenticating. This is a problem, because from what I understand, it is quite easy to clone MAC addresses. I have looked into using the CPU ID and the HDD ID, but those are not unique, well at least I don't think so. Reason why I say they are not unique is because someone has the exact same CPU ID as me, and the HDD ID changes from partition to partition (same drive). Maybe the HDD ID is a partition ID instead? Anyways, I was thinking maybe I could get the Physical serial number of both the HDD and CPU, but I have not been able to find anything yet.
View 2 Replies