VS 2010 Setting To Change Quit Forms?

Jan 3, 2011

I got a form, another form, another form, another form, etc.And I got a quit form (Msgbox is not pretty)So, there starts a problem.I have two quit forms now, so that the user can pick the best one.The problem is that I don't know how the user can pick it. I have a quit button in Form3. I want SettingsForm have one label that says "Use the new quit dialog:" and two RadioButtons (which it has.) The Yes Radiobutton = Uses the new form, the no button uses the old one.Settings save the selection for the next session, etc.

RadioButton2 = Yes
RadioButton1 = No
Label = Use the new quit dialog
ButtonQuit = The Quit Button

View 15 Replies


ADVERTISEMENT

Program - Results For The Quit Command Input Of -999 But Rather Just To Quit Without The Results?

Jul 22, 2009

How can I make this program not to give me the results for the quit command input of -999 but rather just to quit without the results?

Sub Main()

Dim TempIncelsius As Double
Dim TempInput As Double
Dim Formula As Double

[CODE]...

View 4 Replies

My Excel Won't Quit

Mar 31, 2010

So I have a little gui that will read a given spreadsheet and list all the "valid" sheets. This happens when a user presses a button.[code]...

View 17 Replies

Checking When Process (EXE) Has Quit?

Jul 24, 2010

I have an external (3rd party) EXE which I start from my app, which reads data from the user and creates a corresponding registry key with the information, then exits. I then need to read those registry values from my main application.

I start the app with:
Process.Start(My.Computer.FileSystem.SpecialDirectories.Temp & "GatherInfo.exe")

I need to read those registry values AFTER that EXE has quit - so I know they've been created. At the moment I'm just making my main app sleep after that process has been started:
System.Threading.Thread.Sleep(1000)

And then checking for the reg values. I'm worried this won't work for different users however, as the speed of the computer will determine how long the process takes to start and exit.

View 2 Replies

Change Connectionstring Thru Setting?

Jun 29, 2009

I know below code causes an error since "Property 'AAConnectionString ' is 'ReadOnly". What other choice do I have to assign a value for a user ID or a password with a value of textbox by coding?

My.Settings.AAConnectionString = "Data Source=bb.allgood.com;Initial Catalog=aadb; Persist Security Info=True;User ID=aa123;Password=aa123"

View 7 Replies

Change Proxy Setting Of IE?

Aug 13, 2008

i want to change proxy setting of IE through code.

View 1 Replies

Change Row Setting Height?

Jan 4, 2012

I have problem with datagridveiw how can I change row setting Height?

View 1 Replies

How To Change Proxy Setting

Jan 13, 2010

I have created my own Internet browser.Now i m Interested to put a button through which i can change the proxy setting.

View 1 Replies

App.quit With Multiple Apps Open?

Mar 3, 2010

My program opens an excel file with excel.application's .visible=false. If the code is running and I manually open any excel file the excel file being used by code will then open up as well (making the .visible=false useless). Then at the end I use the excel.application's .quit to make sure that instance of excel quits, but it will quit every open instance of excel (even ones not opened by that code).Is there any way around this? to make sure it does not appear when other files are opened, and to make sure it only closes that one instance of the excel application.

View 4 Replies

Use The Information And Connect, Otherwise, Quit The Program?

Jan 31, 2011

So i am writing something for work, and i was roaming the internet to see how to do it in vb.net, but it seems to really not have many hits. vb.net doesnt recognize Declare and all information points to things that say Private Declare Function [info]What i was wanting to do is to check if a computer has a DSN card in system DSN's, if it has it use the information and connect, otherwise, quit the program.

Do you know where i can find how to do this? I just need to check for the existance, i dont need to make them.All of my search results, while seemingly useful, were not written for vb.net I want to get something up here specifically for vb.net so we can get more search hits. i find more information, i will post it, but it doesnt seem to be going too far in the vb.net department, as it is in .net

View 1 Replies

Change View Setting In A Folder?

Apr 20, 2009

i am using a webbrowser to view folder files. if it's possible, i'd like to add the view settings (thumbnails, tiles, icons, list, details) to button commands. if it's not possible for the webbrowser, i could still use the information for a folderbrowserdialog, or such.

also, a button to view folders or the windows listing on the left side of the windows browser. this is for a folder/file browser set in a tabcontrol to load all my favorite folders in one. nice project to have for a dev'ie.just a squirrel looking for my nut...

View 7 Replies

How To Get Permission To Change A Setting In Registry

Feb 14, 2012

I want to change this registry setting in windows vista and 7 ("HKEY_LOCAL_MACHINESYSTEMCurrentControlSetservicesUSBSTOR","Start",4) by clicking a button.[code]how do i change ("HKEY_LOCAL_MACHINESYSTEMCurrentControlSetservicesUSBSTOR","Start") value to 4..How do i request administrative privilages for my aplication to change registry setting when it starts?

View 6 Replies

Where Is Setting To Use Un-docked Forms

Apr 4, 2012

Just opened the VS2010 pack I've been meaning to get round to for ages. Where is the setting to use un-docked forms in the de?I know I can un-dock each for manually but thats pants.

View 6 Replies

Forms :: Change A Property On Form - Doesn't Show That Change

Jan 13, 2010

I'm working on a simple base form in which all the other forms in the project will inherit. This base form only adds 5 properties (at the moment) dealing with painting a gradient background. The problem I'm facing right now is when I change a property on Form1 (the test form) and click run it doesn't show that change. I also checked the .designer.vb file and when I make a change it's not added to the code behind file, I'm at a loss right now to why.

[Code]...

View 5 Replies

Office Automation :: Excel Process Won't Quit?

Nov 13, 2009

I'm trying to create an excel file and load headers into the first row and then save the file to the local computer for later use. All of that works fine, but for some reason the "EXCEL" process won't quit. I have read through the tutorial written by Mike R and I have even tried just copying and pasting the code from the tutorial into my project, but to no avail. I should also note that I have not yet tried the "Extreme Measures" listed in the post, though at this point I am tempted to.

Code:
Dim ExcelApp As Excel.Application
Dim ExcelWorkBook As Excel.Workbook

[code]....

View 5 Replies

Quit SSIS Script Task Without Error Or Anything

Dec 23, 2011

I have a SSIS package that runs every 5min.My package has an error routine in the onError event handler but I don't want it to get in there.So in fact, the package should just exit / close / kill itself without any warning or error.Preferably this should be initiated by the script task (vb.net 2008)

View 1 Replies

Quit The Empty Default Text Of A ComboBox?

May 17, 2010

How I can quit the empty default text that appears in a comboBox when it is loaded?

View 3 Replies

Application Setting Change By Software Version?

Feb 25, 2012

I am developing a software and give to user sevaral time. When i give them i change Assembly version of my software. But problem is that when they update new version they lost all application setting. Application setting save with new root with version. Is they any way application version not to change with version. save only one root by application name or something.

View 9 Replies

Change Application Screen Size Setting

Jul 27, 2010

I am working on an application using vb 2008 express. I have built test programs over the past few weeks and shared them for feed back. Today when I finished some work, I built another test application, but when I install it the start-up screen maximizes but is set between one and two desktop icons from the top of the screen.

In debug mode it looks fine. In the past it looks fine. Each time I start the program the screen is in a slightly different location. It is set to start maximized and to the best of my knowledge, I did not change any settings in the property area. I have tried loading on three computers and the results are the same. Any ideas on what I could have done to produce this strange result?

View 4 Replies

Change Color Of An Object By Setting Variable

Aug 1, 2010

I need to change the color of an oval on the user interface form based on a variable being true or faulse.

View 10 Replies

Forms :: Same Properties Setting Of Components?

Feb 9, 2009

Did vs2008 or vb.net got some of the solution to solve properties setting of the components are same with each other?
Example: like I want to standard the datagridviews' property, each of the datagridviews' property is same with each other. but each time I create the new datagridview. I have to manually set the datagridview 1 by 1.

View 4 Replies

Forms :: Setting A Value To A Textbox In Another Form?

May 5, 2010

I'm doing an application for a school to help them keep track of student attendance and because I'm rather new to VB 2008 .NET I'm sure I'm missing something simple.see the screen shot and attached sample application showing the problem I am having.

The screen shot shows 3 open forms. I'm not able to get the value from the 3rd open form into the Student ID textbox of the 2nd form even though my messagebox shows a value is really in there.The attached application has 3 forms similar to the production application I'm writing which also includes 3 forms. Could you look at the application and tell me what we are missing to get the textbox data in the 2nd form to show up?

View 6 Replies

Setting Icon For Forms And Project

Nov 18, 2009

I've set the Icon for my forms and project, and saved. But my project's icon is still the default app icon.

View 14 Replies

Setting Order For Different Windows Forms?

Mar 3, 2012

i am working on a college project in visual basic 2010. in my program, i noticed at the last minute that i needed to add a "main" window. in this main window, i want to have all my other forms opened by buttons (i know how to do that part of it).

the problem i keep having is the window with the options to save the information pops up, not the main window. is there a way to easily fix this? maybe a snippet of code, because the only way i can think of is to scrap the project, start over from scratch adding my main window first, then the others.

View 2 Replies

Classic Program Instantiated Excel Won't Close On Quit

Jul 31, 2009

This runs correctly, but Excel remains active after close.

If I don't create the range objects below, everything seems to work (with no output of course). Does anyone have any idea on how to keep Excel from staying in memory. Also... in the tests I'm running, I do not make the application visible.[code]...

View 3 Replies

Store Data If The User Quit / Exit The Application?

Sep 7, 2009

I want to store some information of the form in such a way that if the user quit/exit the application it stores the information. When user runs the application next time the information should be available to him. It also involve the restart of the computer. The application is in vb.net 3.5 framework. The one way that i can think of using flat files and encrypted data, but i can not do this. I do not to store any kind of data on client side and I can not store this information on server side. The problem is of getting client machine information and storing it on server.

View 3 Replies

Change Any Setting Before Building To Enable Unicode Support?

Nov 25, 2011

I am basically from VC++, for compiling a project with Unicode support we will change the setting in project properties and build it. In VB.net is there anything like that, Do I have to change any setting before building to enable Unicode support.?

View 1 Replies

DB/Reporting :: Change Email Address To Be Sent To And That Is Save In My.setting

Dec 7, 2010

I have a form that allows use the use to change the Email address to be sent to and that is save in a my.setting. my issues is that the Email is in a variable to be used and Dim sendTo As New MailAddress("Email Address")well I cant figure out how would i variablize the "Email address" I tried to place a Variable just says its not a address because it a variable. but it work if i put in a email as a hardcode.

View 1 Replies

How To Change Appearance Of Winforms As Per Windows Display Setting

Jun 21, 2011

How to control the font DPI in .NET WinForms app..How to change the Appearance/UI of win-forms in vb.net as per Windows display setting? default windows display setting is 100%, if i change it to 125% then my win-forms in my application doesn't display properly as per display settings.

View 1 Replies

Forms :: Bug When Setting FolderBrowserDialog1.SelectedPath In Code?

Mar 2, 2010

Do you know why this happens? If (strCampaignFolder <> "") Then 'Next line works fine when strCampaignFolder already has a value set by FolderBrowserDialog1.SelectedPath further below.

FolderBrowserDialog1.SelectedPath = strCampaignFolder Else 'PROBLEM: Next line causes the external .NET code 'UnsafeNativeMethods' to put the app to sleep when strCampaignFolder has no existing value!

[Code]...

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved