How To Run A Program By Disallowing Its UAC Settings
Jul 6, 2011
I have a autoit script that I am using for automation testing. My autoit script is called from a vb.net file. Dialog box of UAC settings will appear and is stopping the execution of test scripts. Currently I am trying process.startinfo.username and password to give specifically username so it may execute the script. Please guide how can I avoid that UAC during my tests execution.
Is there a way to maintain application modified Settings in the settings files after a program update? i.e. I have 10 or so values in the settings file and the users can modify them... when I send a program update they revert back to what I initially programmed them to be.
I have a StatusStrip at the bottom of the Form. When i run the form I am able to drag it and move it towards the top. So the StatusStrip just disappears. I dont want the user to be able to MOVE the strip. How do I do that ??
As the title says i have a deck of Italian Scopa cards (40)and I want to stop them from being delt once they have been used can i do this with an enabled/disabled or should i find a way to move the individual pictureboxes arround to do it
I want to hear some discussion regarding what is the best way to persist program parameter and variable settings from one run of the program to the next. I used to often use the ubiquitous INI type file in VB6 programs but I am aware that these are not formally supported in .Net programs. I also have a major aversion to adding to the already overwhelming bloat of the Windows registry by using that to store values.
I am currently using vb 2008 and want it so when a user registers it will unlock all the extra features and stay that way even after the user quits and restarts the program... I already have everything set exept for the save feature. I don;t know exactly what to do. I just want to save the settings of my program so that they are the same every time somebody uses the program. I heard that you need to go into Project , then properties and then settings... But I don't understand what to do there...
How can i get my program to remember settings?I have made it so that they click on a register button, if they enter the correct registration code, it will unlock these features. How can i make it so it remembers that the key has been inserted, so when the user next uses the program, they dont have to re enter the key. I think it has something to do with ini files, but im not sure how i can implement it.Here is the
Private Sub Register_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Register.Click If UserID.Text * (KeyID.Text / 2654) > "2234047144494" And UserID.Text * (KeyID.Text / 994) < "213725721516" Then MsgBox("The User ID and Key are Correct! Registration is now complete. You now have full access to EVERY feature.
I have 2 Forms: (1. MainForm.vb and 2.Settings.vb). MainForm.vb is the Startup form and Settings.vb shows when the MainForm.vb loads. Settings.vb has a CheckBox that allows the user to check if they never want to see the form (Settings.vb) at startup again. When I check it and close the program, then restart the program the checkbox is unchecked. How do I get the program to remember the user selection of the checkbox? [code]Is this a "Writing to Registry" matter?
On the printer preferences side, paper size is Letter. So when i try printing a Rectangle it is cutting from the bottom, using following code. The reason i found is Printer is not listening the code to change the size from Letter to A4. Only then Length of page will be increased.[code]...
I want to save settings in my program as follows. I have an import button to open files. How can I make it so when I start up my program next time, they are already "imported" as a setting or something? *Note - I have not tryed anything as I do not have the slightest clue how.
We have a VBScript that launches an Access app that connects via ODBC to SQL Server - wouldn't you know the server name is changing.
Is it possible to use VBScript to modify the ODBC information in the registry to point to the new server? Basically changing one specific value for one specific key. Am I better off deleteing the ODBC key and readding it from scratch?
How do you make a program remember settings. For example, first it prompts you for your name, then when you close out of it and start it again, it will display your name?
I'm working on program that has two forms. The main form is called 'frmMain'. Second form is called 'FrmHistory'. In the History form, you can check a number of combo boxes to set settings for a grid.
This works.Now, when I close the FrmHistory form and then open it again, I have it so those combo boxes (Settings) are how I left them. This works. I do so via this.
To save data to your program using My.Settings. To do this go to your program's properties and to Settings. Create your variables there and to access them, here's an example:
I coded a small application in VB Express 2010 and I wish any one could provide for me some code on how to save personal settings from an options form so that the end user don't have to keep making their personal choices every time that start my application that I created.
Personally I don't have a clue on how to accomplish this feature with in VB Express 2010.
I used check boxes and radio buttons in the options section on a form for the end users choices.
I have created a bunch of user settings using my.settings.*** and only save these upon form_closing for the time being.I wanted to save the settings every 30 or so seconds, so I created a timer with 30 second tick intervals. Inside the tick event of that timer I included the code that I had in the form_closing event.While it works to save the settings, it also 'freezes' or 'skips' the main program for about a second or 2 while it's saving. The code to save settings includes looping through at least 2 arrays and adding them to the settings specialcollection object one item at a time.Is there a better way to accomplish this, without 'locking' up the main form for a second or so? Is it feasible to loop through all the settings in a different thread (can you access settings cross-thread)?
I am using a check box tied to a program settings. When I am in form designer my check box property is "unchecked", however, when I debug my program the checkbox is checked.
My value for my settings is set to false and my property setting is also false.
I want to change my class library's settings from an another program. For this, I've made a Public property in my class library. It worked right. But this is not my question. I wonder this is a right method? Can I access a class library's settings (My Namespace) from other project directly?
i am trying to make a program that holds info in the settings... it holds it in an array so that you can add to it and take away from it... he is the code i have so far....
So far it is just the adding part but im still haveing some problems...
Public Class Form1 Public Function array_use1(ByVal array_string As String, ByVal number As Integer) Dim num_holder As Integer = number
[Code].....
im trying to get this done so i can demonstrate how it works to some friends.
And also note that i dont want you to like write out a bunch of code then tell me its the right way...
How do I save my programs settings in a document? Like total sessions used, Total accounts created. Also, How do I make a text file save and load every time the program is opened or closed? The saved accounts should be like this in the text file.
Account: Account name E-Mail: E-Mail used Password: Password used
Account name, Password, E-Mail will will all be in a textbox or combobox so if you can make it save from there. I have an total accounts created combobox. How would I make that load into a combobox and then when session is closed they all save. So loaded into a combobox then saved into a text file.
I would like to create a program that user can save his settings in the program and not on the computer .I want to make something like icon changer ιnstead it will work for strings not icons String Changer?
I'm wanting to store some settings for my program in an XML document. I've found plenty of places that allow you to write an XML document to somewhere on the hard drive although I'm wanting to link it in with the project so when the program installs it setups up the XML as well. This is also so when the program uninstalls it removes the XML.So I was wondering how I would go about writing to the XML document in my project, could it be done with Linq?
My typical application has a couple of textboxes, checkbuttons, radiobuttons, and so. I always want to load the settings the user used the last time when the program starts, and also want to save the settings as the users clicks "Save settings" or closes the application. When the user attempts to save the settings, I'll have to check each of the controls for input errors (sometimes they have to have a max length, other times only caps, other times other things, there isn't a rule for them all, everytime it'll be different), and only if everything OK i'll let him save the options. If there is something wrong, no option is saved and my error-control provider will pop up a description of the input type info that should be put in that control.
I've been designing this from scratch for all my projects, but it's being a pain to do it. So I'd thought maybe now was the time to do some library to help me. I thought initially that maybe it'd be a good idea to have all the controls on my form that are going to be part of this save/load process to have an attribute associated with them, something like this [Code]
I am writting an application and I used Wizard to create DataSets which auto-created their own xml code. This code uses the saved in My.Settings Connection String. Being a setting with an unchangable 'Application' scope i cannot change its value at runtime.
The problem is that when I install the Application to my customer the Connection String will have to change (maybe more than once). So is there a way to change the Connection String used by these objects at runtime ?