VB 2008 Doesn't Save The Changes?

Dec 29, 2010

What im trying to do is everytime i put a check in listbox1 or listbox2 the button1 or button2 in form2 will be invisible, but im having problem because if i go back to form 1 then check again form2 the changes that i made didnt save!FOR EXAMPLE i checked hide button1 then pressed APPLY! then i go to form2 i will see only button2 (yes the code works great!) but when i pressed back then go back to form2 again the code didnt work.

Heres my

FORM 1
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If CheckBox1.Checked = True Then

[code]....

but everytime i close the program and re-run it the changes doesnt save.

View 6 Replies


ADVERTISEMENT

Bindingsource Doesn't Save Some Fields

Jan 9, 2010

i have invoice registration form bind to a bindingnavigator and bindingsource. when i enter data and save,the data from the total text box field and the item combobox are not saved. the combobox is bind to a datasource from item table. the value member is set to item id and the display member to item name. i checked the databinding property but it is exactly the same as others.

View 7 Replies

Bindingsource Doesn't Save Some Fields?

Jan 13, 2010

I have an invoice form bind to a bindingsource and bindingnavigator. I use the bindingnavigator to add and save records. But I can's save data from an item combobox and total text box. The item combobox's datasource is set from the item table. It's value member is set to item id and its display member to item name. but when i hit save, the data for the item value of the invoice table is not saved.

The total text box is also a calculated value from quantity and unit price text box. at the text_change event of both unit price and quantity text box i have this code total.text = quantity.text * unitprice.text The data from the total text box is not saved also. What could be the problem with this two fields. I checked their data binding property but it is exactly the same as the others.

View 2 Replies

ConfigurationManager Doesn't Save Settings To Exe.config?

Dec 15, 2011

(My question is similar to this one, but the code is slightly different, and the solution doesn't work for me)I'm trying to save settings changes to the app.config:

Dim config As System.Configuration.Configuration = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None)
config.AppSettings.Settings("HistoryRootDirectoryPath").Value = p_historySavingPath

[code].....

View 1 Replies

Doesn't Save Database (file *.mdf) Vb2005

Mar 12, 2011

i was modified some my data. then i use this code:

[Code]...

View 6 Replies

Save Button Doesn`t Work Properly?

Jan 30, 2012

I wrote a program which is editing data from database. I used few tutorials (I`m beginer) and everything is working fine(I can make changes in datagrid). but when I`m trying to save changes made in dataset(e.g. save added record) I can not to that (there are no changes in my access database, but inly in datagrid)what is interesting when I delete record - changes are saved and record is deleted from db. where is my mistake? what is wrong? maybe some tips what can I improve in this small program?

[Code]...

View 10 Replies

After Close The Executable File Doesn't Save Anything In Favorites

Jun 3, 2011

I'm working on this advanced web browser with my friend, and we made a favorites feature. So, it works and all that, but, after I close the executable file, it doesn't save anything!

[Code]...

View 1 Replies

Data Appears To Save, But Doesn't Show Up In Database?

Mar 4, 2010

I don't understand what's going on here I published my project, and when I create new records and save them, everything gets saved and shows up each time I run the program.I open the database in SQL Server and none of the tables have the new data, but it still shows up when I run the program each time.

View 15 Replies

Direct Save Anything In Table It Doesn’t Accept Null Value

Jun 21, 2010

I have face problem with null value i remove the chk from null value n sql server and when i direct save anything in table it dosen't accept null value but when i save these in my form it accept null value.

View 11 Replies

Saving Text - Add Save Features Doesn't Seem To Work

Mar 11, 2010

I have made a text editing application and, as you might have guessed yourself, I needed to add save features. Well, what I have implemented so far is the ordinary "Save As..." feature which I made by using a common SaveFileDialog. Now it's time for the hard part. I need to add the "Save" function located in many Windows applications (Notepad etc.). This is what I'm working on at this moment but it doesn't seem to work.

[Code]...

View 9 Replies

DB/Reporting :: Save Button The Data Doesn't Show Up In The DataGridView Until Close The Application

Sep 21, 2009

I have a form that has around 4 txtboxes. Data is inserted into these boxes and then a "Save" Button is pressed. I have a GridView added to my form and want to view the entries. The issue I am having is that when I click the save button the data doesn't show up in the DataGridView until I close the application and then re open it.

[Code]....

View 8 Replies

Application.restart After My.settings.save Doesn't Load The New Settings

Feb 8, 2008

i have created a user setting named 'setmeup' as string, scope = user, value = "magical meow meow!".in my code i access it and assign it a new value like this...my.settings.setmeup = "howdy cowboy!"my.settings.save()application.restart()when the application restarts, i expect the my.settings.setmeup = "howdy cowboy!" but when i check its contents its still "magical meow meow!".but when i use application.exit() instead of application.restart() and manually restart the program, my.settings.setmeup = "howdy cowboy!" which is correct.what must i do? i want to use application.restart() because i don't want the users to double-click the icon again to start the program. i want the program to restart automatically.

View 2 Replies

When Use The Webrowser It Doesn't Save The "favourites" Onto Computer?

Oct 3, 2009

i have a favourites drop down butten, when i use the webrowser it doesn't save the "favourites" onto my computer, how can this be done?I like.....

Understandable Answers
1 2 3 4 5
- - - - - Rate yourself And Have A Kitkat
5 5 5 5 5

View 15 Replies

VB 2008 Save Location - Images Will Save To The Folder That Selected In The Textbox1.text From The Folderbrowser

Oct 17, 2009

I'm trying to make it so the the images will save to the folder that you selected in the textbox1.text from the folderbrowser this is the code's I have tried

[Code]...

View 1 Replies

VS 2008 : Assign Ctrl+s To Automatically Save The Labels Text Once Pressed Instead Of Going Through A Menu To Choose Save?

Jan 20, 2011

so i have a quite huge program. but lets say i have one label. and i want to save that. i have the code and everything for saving the text of the label. now i want to assign ctrl+s to automatically save the labels text once pressed instead of going through a menu to choose save.this is like a regular texteditor where u press ctrl+s and it saves.

ive used this

If (e.KeyCode = e.Control & Keys.S) Then
MessageBox.Show("Ctrl+S pressed")
End If
and

[code]....

but it doesn't do anything once pressed.im also using the keydown declaration for the form.

View 4 Replies

Save ListBox1.Items To Txt File Using Save As Option VB 2008 EE?

Aug 1, 2009

I have researched the net, youtube, and the msdn DB, and still can not find the working answer I am looking for. I would like someone to show me how you would save the contents of "Listbox1" to a .txt file using the "Save As" Option. I know how to hardcode a savepoint in, but since there will be multiple users I would like the option to be up to the end-user.

View 4 Replies

VS 2008 Make A Save Button To Save To A New Text Fil?

Nov 4, 2010

I want to make a save button to save to a new text file with the data in the text box if modified. Currently the program just opens Data.txt and displays a sentence in the text box.

Public Class frmAddress
Private Sub btnDisplay_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDisplay.Click

[Code]....

View 2 Replies

VS 2008 Save File And Encrypt Or Have Unique Save Name?

Mar 19, 2009

My question is simple (the answer may not be...), What I am looking for is a way to save a file as an encrypted file (so know one can open it except in visual basic or a way to save it with a unique ending that only visual basic will recognize. I will also need to know of a way to open or load the file to.

This is going to be used in a game I am working on (and yes...I know visual basic isn't really meant for games, but it is coming together pretty well). I was originally going to have it save as a text file, but then everyone could open, read it and even change there stats. That is what this file will contain, the stats for their character, and when they load it, it will place the values into the correct spot.

I am a partial beginner or intermediate coder, I can understand code, I just don't know all there is, like saving and loading, and this is probably a little harder.

View 7 Replies

Tooltip On Windows 7 Doesn't Work VB2010 - Thecolor Doesn't Change ?

Jun 12, 2011

I am trying to change the background color of a tooltip

I am using tooltip.backgroundcolor = color.colr

No errors but thecolor doesn't change

View 5 Replies

Smtp Has Suddenly Stopped Working - Doesn't Send Anything And Doesn't Generate Any Exception Message

Oct 13, 2010

I use Visual Studio 2003, VB.net, NetFramework 1.4 and Windows XP I have been using the following Code Snippet for a number of years in both Web Services and Windows Applications. However suddenly around the 29th September 2010 it has stopped sending E-Mails from both Web Services and Windows Applications. The same problem has happened not only to my own Network but on two other Networks, one using XP as its Server and the other using Server 2003. All 3 of these are using different ISPs.

[Code]...

View 1 Replies

VS 2008 Get Save Button To Save As .rcp By Default?

Apr 11, 2011

I am working on a form that save contents of a TextBox as a txt file, but I want to make my own file type, with the extension .rcp. How do I get my save Button to save as .rcp by default? [code]

View 2 Replies

VS 2008 League Organizer Project - When I Save(Save Button) The Text File Saves All The Text Wrong

Oct 7, 2009

Its a League Organizer, basicly ive started it off with 16 teams and end up with 1(winner) 16 box's on the far left, then 8, then 4, then 2, then 1. the 16 box's have "Team 1" "Team 2" etc... ive put a new/clear/open/save button in that order.

BUT this is my problem..when i save(Save Button) the text file saves all the text wrong it ends up like this...Team 1Team 2Team 3Team 4 Etc...

But i want it to save like this

Team 1
Team 2
Team 3
Team 4
Etc...

The code is...

Dim Save As New SaveFileDialog
Save.Filter = "Text Files (*.txt)|*.txt|ALL FILES (*.*)|*.*"

[CODE]...

View 3 Replies

VS 2008 - Doesn't Use Vbkey

May 22, 2010

I'm guessing Vs8 doesn't use Vbkey. So how would I fix this so that it's right?

CODE:

View 15 Replies

VS 2008 Why Doesn't Have Dropdownlist?

May 7, 2010

why does my vb.net doesn't have dropdownlist?

View 2 Replies

VS 2008 Save As And Save Button?

Sep 2, 2009

In a word processor of mine, I made a save and open feature, but, I'd like to improve my save feature, so that, when the user tries to save, it doesn't make the user choose the location every single time. So I pretty much want my save to do the same thing as MS Word when you try to save.

View 1 Replies

Application Doesn´t Run On Server 2008 X64

Feb 10, 2012

There is a tool running in our company on 2003 servers. Now I want to test it on our 2008 x64 servers but when I start an error appears...

I´m searching for 2 days in forums and tutorials but can't find a solution. Here is the of the errormessage[code]...

View 11 Replies

VB 2008 Doesn't Set Alarm Clock Off

Jan 16, 2009

im new to the forums and vb. I decided to make a alarm clock and the basic functions work great. But I want to add a button that allows you to set the time you want to snooze till. The button stops the alarm but doesnt set it off. Basically it just does what my stop alarm button does well heres the code. P.S. The last button (button 3) is the snooze button

[Code]...

View 4 Replies

Vb Express 2008 - .exe Doesn't Run On Other System

Mar 25, 2009

im using vb express 2008 and have just created an application. i am also using windows xp sp2. when i build the application and it creates the .exe file i can only run the .exe successfully on my own system. when i try and send it to other xp systems, or vista it doesn't work! im guessing it needs specific files to run the .exe on other platforms. someone mentioned that there might be an option in vb express to package up the program so it can be installed and used on other pcs?

View 1 Replies

VS 2008 - Class Doesn't Work

Aug 1, 2009

When I use this

[code]...

But for some reason, it doesn't place the image into the picture box.If I use this, and replace it with the first box of code, then it works fine.

[code]...

So, why doesn't it work in my class?

View 4 Replies

VS 2008 : Beep API Doesn't Work In .net But In Vb6 Does

May 21, 2009

Private Declare Function Beep Lib "kernel32" (ByVal dwFreq As Long, ByVal dwDuration As Long) As Long I've used that API in both vb.net and vb6, but in vb.net doesnt work. Why?

View 7 Replies







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