Remembering State At Startup?

Jan 28, 2009

I’m righting a VB program that has some check boxes and radio buttons. How can I have the program remember the user settings of these so they will be the default

View 4 Replies


ADVERTISEMENT

Remembering The State Of A CheckBox?

May 8, 2010

using VB net(2005) in Win Forms, I would like to remember the state of my checkBox1 (checked or unchecked) as BindingSource change position.I read that I could use the "Tag property" I have never use it and further more do not know how.

View 13 Replies

Remembering Session State In HttpWebRequest?

Aug 12, 2009

Remembering session state in HttpWebRequest

View 2 Replies

Remembering Session State In WebClient?

Aug 12, 2009

Remembering session state in HttpWebRequest?

View 2 Replies

VS 2010 - On Load (Startup) Default State?

Jan 14, 2012

I haven't used VB in decades and I'm restarting with what I thought would be a simple program. I have two fields on a little form, both of which display a date (dd/mm/yyyy). Field1 is an entry field except on load where is contains a date calculated from field2 (which is 'now' upon application load). Field1 is 'now' + 10 days. This is the default state.

Once loaded (with the data described above), the user can input only in field1. Field2, an inactive field used only for display, is field1 - 10 days. After 15 seconds, fields 1 and 2 revert to their default states as described in the first paragraph. I'm getting all messed up with the 'on load' state. I'll start playing with the timer once I get the initial stuff done.

View 6 Replies

Splash Screen Not Seen When StartUp Form Window State Set To Maximized?

Apr 29, 2011

I have my start up form in maximized window state, but this cause the splash screen appear behind the startup form, which cause it cannot be seen.Even i have set the time longer to display the splash screen.It still do now work. I have tried below code in the start up form but it is not working...

Private Sub Main_Shown(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Shown
Me.WindowState = FormWindowState.Maximized
End Sub

View 2 Replies

Remembering A Path To A Folder?

Aug 14, 2011

How can I get my app. to remember a path to an folder that has been enterd into a TextBox?

on Form1 there is a SettingsButton, clicking it opens a SettingsDialog, on the Dialog I have a TextBox.

Dubble bclicking on the Dialog opens a FolderBrowserDialog, in that Dialog I select D:My DocumentsTest Pics or enny other folder by clicking on OK that path is desplayed in the TextBox.

If the SettingsDialog is closed or the app. is closeed the contens of the TextBox is lost.

View 1 Replies

Permisons / Elevating And Remembering Location

Nov 12, 2011

I have a program that has several tabs.There are some things in the program that require admin rights[elevation].

1- Is there a way I can just elevate just to complete the one task?

2- If I can not elevete to complete the one task, and have to eleveate to whole program, how cann I eleveate the program and have it remember which tab the user was on, and possible what items where selected in a listview box.

View 13 Replies

Permisons, Elevating, And Remembering Location?

Jan 25, 2012

I have a program that has several tabs. There are some things in the program that require admin rights[elevation].1- Is there a way I can just elevate just to complete the one task2- If I can not elevete to complete the one task, and have to eleveate to whole program, how cann I eleveate the program and have it remember which tab the user was on, and possible what items where selected in a listview box.

View 3 Replies

Remembering Settings When Program Closes?

Apr 4, 2011

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.

[Code]...

View 3 Replies

VS 2008 Executable's Settings Not Remembering?

Feb 12, 2011

my project uses my.resources + my.settings, + both are working perfectly in debug, but when i move the exe to my desktop, some of the my.settings variables aren't saving. has anyone seen this before? i checked + my project is setup to save settings on exit...

View 1 Replies

VS 2010 : Remembering The Listbox Items?

Mar 23, 2011

I've been working on a little project recently which is a music player (unoriginal I know, but I'm just learning ). Basically, I want the items that have been added into the listbox to be remembered for the next time the application is opened so that you don't have to re-add the items. The items show up like this (because they are added from my documents): C:UsersEthanDocumentsMusicCage The Elephant - Aint No Rest For the Wicked.mp3?

View 4 Replies

Hide Form On Startup If App Occurred Because Of Windows Startup?

Jun 20, 2010

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.

View 8 Replies

Asp.net - Dropdownlist Autopost Back Remembering The Selection?

Jul 25, 2011

I would like to change the dropdown list and whenever I make some changes it should auto post back and triggers a selectedindexchanged event for drop down list. I am having problem where it does auto post back but doesnt remember what I selected, it refreshes my page and item that i selected gets lost. I would like to do this without AJAX call. But, if AJAX is the only option, I am open to it.

<asp:DropDownList ID="ddlProjectEditor" CssClass="ddlProjectEditor" Autopostback="true" runat="server" >
</asp:DropDownList>

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not Page.IsPostBack Then
Dim F As facility = utilities.lookForFacility
'Option to add Project information in editor
_config =

[Code]...

View 2 Replies

Make An Application To Startup At The System Startup?

Mar 4, 2010

How to make an Application to startup at the system startup? and How to enable and disable?

View 6 Replies

Application Not Starting Wit New Startup Form After Deleted The Previous Startup Form?

Nov 11, 2009

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.

View 3 Replies

IDE :: VisualStudio Property Toolbox Not Remembering Last Selected Property Item

Sep 1, 2011

I have a weird question and I honestly hope you understand what is happening here: I design my form (using VB.NET) and put on it a few textboxes, comboboxes and a listview. After the design, I want to adjust the TabIndexes for each control on the form. On the right-hand side of the interface is the property box.

I then select the 'TabIndex' property item and enter a number key (for instance 0) for that selected item. I then select the next textbox control and enter the next number (for instance 1) WITHOUT re-selecting the 'TabIndex' property item. As soon as I select the combobox or listview control, the currently selected property item jumps to 'Items' or 'Collections' and does NOT remain on the 'TabIndex' property item. Why is this happening? Everything worked fine and all of a sudden this starts happening. Should I reset the editor settings or how can I resolve this matter?

View 1 Replies

Get Key State Function With Out Using DLL?

Nov 3, 2011

I need codes for vb.net Getkeystate Function() without using any DLL.I'm beginner for API Conversion from vb to vb.net.In vb6 they using user32 DLL.In Vb.Net i need to call Getkeystate Function without that "User32.dll" function. can any one post me the codes without using dll?

Is there any way to get key state without using that dll Getkeystate function in vb.net..? if equivalent is any one know means show me that codes.that codes should be work with in .net framework.[code]...

View 2 Replies

VS 2010 Get State Of INS-key?

Mar 19, 2011

How do I detect the state of the INS-key on the keyboard? MS somehow forgot to implement it in My.Computer.Keyboard...

View 3 Replies

First Startup On A Vb App

Oct 8, 2010

I want to make an app which you make a password and username and use it for the app but I only want this screen to open the first time you load the app so after the first load it goes right to the login screen

[Code]....

View 1 Replies

.net - How To Set ASP Checkbox State With Javascript

May 1, 2012

In a VB.net app, I have several checkboxes created with regular ASP controls, i.e.asp:CheckBox ID="cb3" runat="server" Checked="true" />I'm trying to implement a "Select all/none" functionality but I'm having a few problems. The Javascript is not changing the state of the checkboxes in Internet Explorer (v9). I tried debugging with IE's dev tools and the checkboxes are definitely getting their checked property set to true. (Also tried setting to "checked".) Here is the JS:

function setCheckboxes( state )
{
var inputs = document.getElementsByTagName("input");

[code]......

View 3 Replies

Asp.net - Finding All Use Of Session State?

Feb 3, 2011

I'm looking for some smart ideas on how to quickly find all usage of session state within an existing asp.net (MVC) application.

The application in question was the subject of outsourced development, and has been running fine in production. But we recently realised that it's using InProc session state rather than (our preferred route) StateServer.

In a small scale test, we switched it over to StateServer, and all worked fine. However, when we deployed to production, we suddenly experienced a large number of errors. I'm not sure if these errors were caused by this change (they were actually complaining about database level problems), but removing the change allowed the application to function once again (this may have just been because it caused a recycle to occur).

So before I try switching it again, I'd like to perform a thorough audit of all objects being placed in the session (I'd previously taken a quick look at a couple of controllers, and they seemed fine). If I had full control over the code, this is the kind of place where I'd just comment out the class (to compile and find the various ways of reaching the session class), then comment out the accessors, hit compile, and visit each error. But I can't do that with built in .NET framework types.

I decided to try using Reflector. I've analyzed the "Used By" for each of the following:

System.Web.HttpSessionStateBase.set_Item(String, Object) : Void
System.Web.SessionState.HttpSessionState.set_Item(String, Object) : Void
System.Web.SessionState.HttpSessionState.set_Item(Int32, Object) : Void

[Code]....

View 2 Replies

Asp.net - View State After Postback VB?

Apr 12, 2011

I have a label's value that is posted back from a previous page and I want to use this label to do a simple calculation in the current page, but when I do the calculation the page (refreshed) the value of this label and automatically deleted the value (Since there would be no value in postback when it refreshed).

Here is the code behind file:

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Label2.Text = Request.Form("Hidden1")
End Sub

and here where I want to use the label

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim Stotal As String
Stotal = Val(Label2.Text) * 10
Label3.Text = Stotal
End Sub

How can I save the value in the page via view state or any other method?

View 1 Replies

C# Vb: When They Say Static Classes Should Not Have State?

Apr 23, 2011

when they say static classes should not have state/side effects does that mean:

static void F(Human h)
{
h.Name = "asd";

[code].....

View 3 Replies

Check For Program State And Act Upon That

Aug 15, 2011

Here is, basically, how my application works:

When windows starts, my app starts. Whenever my app is running, it hides the desktop, taskbar, etc... When a button is clicked in my application ("Start program"), then my application will set its visible property at false and another application will start.

Everything seems to work perfect except I need a way for my application to set its visible property back to true, but only once the other application that was started earlier, is closed (no longer running.)

My thought was that I could use a timer to check for the applications state every so many seconds:[code...]

I have 2 concerns with this:

1. A timer checking this every few seconds will invoke unneeded stress on a computer since they are running for sometimes very long periods of time.

2. There is a better way to accomplish this that doesnt rely on a timer.

View 2 Replies

Checkedlistbox Inverting It's State

Aug 25, 2011

Why does this not work?

[Code]...

View 4 Replies

Checking State Of DNS Server

Dec 6, 2009

My ISP's DNS server goes down all of a sudden sometimes. This is very annoying while surfing the internet. So, I'm trying to make an application which has the following characteristics :
Runs in system tray
Pings the server periodically
Notifies when the server becomes unreachable/active
Now, I know that the existing workarounds are to use OpenDNS or ping <IP Address> -t in command prompt. I don't want to use them... the reason being that the former gives much higher pings than my DNS & for the latter, I'll have to switch windows.

View 5 Replies

Creating The Three-state Checkboxes?

Jun 24, 2012

I can create a checkbox array as follows

Code:
For n = 0 To 13
With (chkboxarray(n))
.Tag = n + 1 ' Tag of button
.Width = 35 ' Width of button

[code]....

But when I run the program the checkboxes only display 2 states (they do work as 3 states). what I am missing to display the "Indeterminate" state?

View 8 Replies

DataRepeater - Set Checkbox State?

Apr 13, 2010

im trying to figure out how on earth to set a checkbox on a DataRepeater row to true. Nothing ive tried seems to work. Ive searched all over, and all i seem to find is ways to check the state and in ASP.

Text boxes would be:DataRepeater1.CurrentItem.Controls(

"textbox1").Text = textbox2.Text.However, checkboxes wont work in this way. DataRepeater1.CurrentItem.Controls("Checkbox1").Checked = True"Checked is not a member of windows.forms.control" - ive tried various things in order to set it to true/false, but whatever i do doesent work. I expect its going to be something stupidly simple, but its those things that annoy the most IMO!

View 1 Replies

Detect Key State Of Num Lock?

Feb 3, 2011

I'm trying to detect the state of num lock but haven't had any luck. using a windows 7 x64 machine.

Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As System.Windows.Forms.Keys) As Short
'num lock check timer

[Code]....

View 7 Replies







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