I am facing a small problem with vista, i have this code, all i am trying to do is to run my application when the computer start up.It works on Windows XP, But in Windows Vista is shows me an error message: "Requested registry access is not allowed." I don't understand why? i mean i am Under Administrator account, it should work fine.
here is my code
PHP Dim regKey As RegistryKey regKey = Registry.LocalMachine.OpenSubKey("SoftwareMicrosoftWindowsCurrentVersionRun", True) 'Set the program to start with Windows: ' regKey.SetValue("Media", "C:Program FilesMediamedia.exe")
where Google Chrome history is stored? I would like to make a console application that runs on startup that empties the file. I doubt it is plain text, most likely xml, so I would like a few code snippets as I have never worked with xml before.
How can be find out which file is going to delete when, user provides command like DELETE or SHIFT + DELETE or by programmatically gives DELETE command. Well I know about FileSystemWatcher Class, but this class doesn't provide information before delete...
I use a webbrowser control in my VB.Net Program, and I want to delete all the cookies from the computer. How can I do that?And also how is it possible that I enter some site through my Internet Explorer, and it sets a cookie on my computer, and then I try to enter the same site through the webbrowser control in my program and it doesn't recognize that cookie? It uses the same browser, isn't it?
I need to copy a file from a local computer to a remote computer on the network, if i try to use File.Copy without logon i get the following error:"Logon failure: unknown user name or bad password."How do I provide user name and password for file copy?
I would like to delete a computer from my AD with VB.Net I Get a snippet on the forum but unfortunately I get this error:
Message = "Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))"
I look for advices in forums... and msdn, i could be an Authentication issue I should use NT AUTHORITYSYSTEM, but I don't know how to and if this is my main issu in my code
Sub Main() Dim entry As New DirectoryEntry("LDAP path") Dim pcdir As New DirectorySearcher("(&(objectClass=Computer)(objectCategory=Computer)(cn=SAMPC))")
I have exe file that lunch a program takes 5 inputs. this exe locates in computer B and I need to execute it from computer A using VB.net customized application that pass the inputs through it.
I can hide my startup form (or make it appear hidden) on startup. I can start my app on windows startup--through registry values--if the user checks a checkbox.
But if the app starts up on windows startup, I want the form to be hidden, so the program can just keep working without bothering anyone. If it starts up because the user started it, I want the form to be showing, because the user probably wants to change some settings or something.
I created a VB.Net Windows Forms application and my Form1 is my startup form. I want to have a class be my startup file instead of my form. In c# you have program.cs which does that for you but I cant seem to find something like that in vb.net.
i have a word template that needs to be used in an application so to make the path simple i placed the template in the debug file and i used application.stertuppath and it worked but when i publish the application it does not work it seems that the template is not included in the application but even when i place it manually in the aplication folder it does not work
My application has encountered a problem and needs to close.Of course Microsoft is sorry for the inconvenience, but how am i supposed to debug my app?Which dll fails to load?
The error report contains between others, system.io.fileloadexception
I just made my first 3.5 .NET app and its a simple image viewer. What I want to know is how can I set up my app so when a user clicks on a .jpg image file, it will automatically start up my app. I want it to be my default .jpg viewer.
Hello, I wanted to make the application to count how many times it has been runned..so I could make something like a restriction. You know..like run 10 times and get full version.. anyway..I did not find anything to count the startups..so I tried to make the application to create a folder on startup and save a empty file to it and count how many files are in that folder and display it in label which will say ' Application started for ' + files in the folder + 'times'. I think It could work but I get stuck when I want to save the empty file..I even made a RichTextBox for saving it but it just don't save even if I put text in the textbox..it just create the folde. I have made other Apps which creates folder on startup and then a timer which will save the file every X mins and it worked I even copied the code from that project but still it isnt working... Ill post my code below please help me.
Code: Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim SAPI SAPI = CreateObject("sapi.spvoice") SAPI.Speak("Welcome and Have Fun.") System.IO.Directory.CreateDirectory("D:Sys") Threading.Thread.Sleep(50) RichTextBox1.SaveFile("D:Sys fo" + TimeOfDay + ".txt") Dim s As String = "D:Sys" Dim d As New System.IO.DirectoryInfo(s) Dim intFolders, intFiles As Integer intFiles = d.GetFiles.GetUpperBound(0) + 1 Label6.Text = ("Program Started for " & intFiles.ToString & " time(s).") End Sub I tried to put the saving to a timer and it seems like somethings wrong with the saving : RichTextBox1.SaveFile("D:Sys fo" + TimeOfDay + ".txt") ..I am sute that it should look like this if I want to save a file which name will be the time it has been saved...or am I wrong?
I wish to have two EXE files in my project. Say one EXE has startup form ABC.vb and other is BCA.vb I am not able to change the name in Build so whatever is my startup file, my exe file's name remains the same. How to change it?
I have an application I wrote that replaces Windows Explorer as a shell for Kiosk purposes. The application maintains two configuration files: one that is used and maintained for application purpose (app.config) and another that is stored in another directory so it doesn't get overwritten when the GUI attempts to update from a repository. When the application is ran in a normal environment it works perfectly. However when it is used during start-up or when switching users, the application can't seem to load the information in the other directory.
From the manager class Private Shared rootCP As String Friend Shared Sub loadConfig() Dim dir As New IO.DirectoryInfo(Environment.CurrentDirectory) [Code] .....
Another function later attempts to retrieve the data from the rootCP string but can only access it if the application was started after system start-up.
i deleted my previous start up form to be replaced by another one but each time i launch the application,the deleted start up form is still displayed.i dont know from where this deleted start up form is being loaded.
I am trying to create a setup file which would automatically install a link to the executable in the User's Desktop and Startup--> Program. However despite following all the steps in the right order I do not see any short cut in the desktop and Start -> Program.
How do I play a WAV file while the computer is reading aloud a text file? It uses Text to Speech synthesis and I need a laughter wav to play when the computer comes across something funny in the line.
I'm creating window application with VB.NET and flatfiles.the problem is how do i store the connection string in the app.config file that include the application.startup path?
i am working on an application called logonscreenchangerxp i made my program and when i run it on xp virtualmachine i get errors the program is made using vb 2008 and using .net framework 2.0 i am not able to get full permissions to modify boot.ini file and a regisrty value and to delete a file
Below is my code for DELETE button. What i want is if the user select the transaction from the listview and press the DELETE button it must be able to delete the transaction from listview and text file(temporary log file) which i keep all the transaction record. At the same time the list view must able show the total current balance from the deleted trnsaction.
i am very new to VB. I am working on file operation such as show files, copy file, delete file, show current directory, rename folder, make folder. My problem right now is with delete and copy file. I have a method of delete and copy but i dont know how to pass this method on a button.
I am trying to code a delete button for a browsing program based on data from a txt file. I have coded the buttons to sort(ascending and descending), append to the text file, search the text file, but I can not seem to get the delete function working. I am using VB 2010, this is what I have so far:
Code: Dim deleline As String Dim line As String Dim isFound As Boolean = False sr4 = IO.File.OpenText("Students.txt")
[VB 2008 express edition] i am doing a application data grid view bound data from MS access (.mdb) as my dataset. the dataset have 5 tables, each table consist of ID, Items, Rates, And Amount, i face some problem here:
a) cannot delete row from the table, (using binding navigator but error) b) how can make a opendialog to load the .mdb file dataset table in to the datagridview? c) how do i save table in the datagridview into the MS Access file ?