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?
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)
I am looking for a way to modify the default values in windows vista and or 7.
Examples:
* The default directory for the save/save-as dialog box. * The size of the window. * The "favorites" list on the left of the box.
I have been looking for a while and the only thing I can find is to edit the group policy but this will only affect programs that are using the xp dialog box.I am sure this is actualy pretty easy but I cannot find anything for the life of me
Im trying to write a few scripts for use in AD in VBscript I thought it would be nice and straight forward to be able to open csv files and the like by using a Browse For File Window so the help desk can simply find browse for the file but i am not having much luck.
I am writing a web application using .net 3.5 and vs 2008 which allows people to add data to a db via a control panel front end.Objective: Before committing one of the fields to the db i would like the user to answer Yes, No or Cancel to confirm their action. I have tried to implement this with a modal dialog box or message box but the following error appears: Server Error in '/' Application.
i have created some shareware applications. I implemented the following mechanism for piracy protection. Before Windows Vista and Windows 7 i did write a dll file to the System32 folder with an encrypted license key. Also in the Registry under HKEY_LOCAL_MACHINE i inserted a registry key.
The problem is that with Windows Vista and Windows 7 due to the User Account Control (UAC) this is denied.
I want to ask : what other mechanism can be implemented ? Where should i store the encrypted key file and the registry key.
I want that the application can be installed for all users of a computer only once. If i stored the key in the user's application data directory then another user could easily just install it under another user account. Also i do not want to put the key file in the application directory because that would be too obvious.
note that i create the registry key with my application and not with the installer.
I'm printing pdf files via the below code in a service. In Windows 7 this works really well, In Windows Vista, nothing happens at all? What am I doing wrong?
I have a packing program which monitors putting barcoded items into a box, it works fine but if the user accidentally hits the windows start key (next to left ctrl), the windows start bar appears and the vb app loses focus, and no longer registers scans. Sometimes the user does not notice and will carry on scanning . . . .
how to force this form to be on top and maybe disable the windows special key ??
(I have made the form modal, but it is only modal within the vb app - the user can still press the windows special key)
I develop applications in Visual Basic.NET (Visual Studio 2005) for a long time on Windows Vista without problem.
Now, I'm changing my laptop, and the new has installed the Windows 7. So, I reinstalled VS 2005, taking care to install the Vista compatibility. Thus, the version of my current VS 2005 is 8.0.50727.867 (vsvista.050727-8600) SP2. And that is my problem.
When I ran the application in debug mode (F5) on Windows Vista, a windows appeared whenever there was an error, like below:
Now, on Windows 7, the application just shows a exception message in the Immediate Windows, don't showing any error window, continuing the application execution, as below:
I develop applications in Visual Basic.NET (Visual Studio 2005) for a long time on Windows Vista without problem.Now, I'm changing my laptop, and the new has installed the Windows 7. So, I reinstalled VS 2005, taking care to install the Vista compatibility. Thus, the version of my current VS 2005 is 8.0.50727.867 (vsvista.050727-8600) SP2. And that is my problem.When I ran the application in debug mode (F5) on Windows Vista, a windows appeared whenever there was an error, like below: Now, on Windows 7, the application just shows a exception message in the Immediate Windows, don't showing any error window, continuing the application execution, as below [code]
I have a program that works in Windows XP Pro, Visual Basic 2005 and Excel 2007 that does not work in Windows Vista, Visual Basic 2005 and Excel 2007.The program takes Excel data from an already opened Workbook on the desktop and moves it to the Visual Basic program.The error occurs when I try to open the Excel Application in Visual Basic:[code]Is there a different code to define an Application in Vista?The "Open" Application will not work on a Excel App already on the desktop.
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.
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.
I create special character by Windows XP Operating System Program Start/Run/eudcedit But, i can't reduce width of charater Ex: I create number 2 in string H2O but 2 is subscript then width of "2" is short, and i can't make "2" character shorter.
I have recently developed an aplication in XP that it works on XP nice but in vista or seven don't work at all. It gives a message when I try to enter the application like " The program cannot run.."
I'm retrieving Windows XP license key with this function but it does not work for Vista and Seven. How can I get the license key at both of these Windows versions?
Public Function sGetXPKey() As String Dim result As String = String.Empty Dim RegKey As RegistryKey = _
I have an application that works fine on Windows XP. However I have taken the same application and made some modifications to it to run on vista the app loads fine etc.
the problem stems from trying to change a service in the registry under HKEY_LOCAL_MACHINESystemCurrentControlSetServicesDiagnostic Service Host
Start = 4 instead of 3 (which is what it is currently set to)
when the program tries to change it I get a dialog box with the information below. How can I makes the changes to the registry without getting these kinds of errors. I tried to get the Framework configuration tool but it talks about XP and Windows 2000 for VB.Net 2005 so I am not sure what to do... I should mention I have only been programming for a month...
Error details:
"Application attempted to perform an operation not allowed by the security policy. To grant this application the reuired permission contact your system administrator or use the Microsoft .NET Framework configuration tool. [code]...
I created an app that connects to an SqlCe database. it runs fine on my computer (xp) but when i try to run it on other computers, it crashes (on xp machine, the error is : OS error: the OS storage system is not responding, on windows 7 the error is: Access to the database file is not allowed).
On windows 7, if i right click the exe and run as administrator, it runs fine. But, i can't expect my users to do this every time they want to run my app.
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?