Program Saving User Selected Image And Reloading It Upon Program Load

Jul 4, 2012

I have my rpg, still, first time working on it n ages, and I want each user to be able to set their own personalized picture background for the game...

each character in the game has its own dedicated folder for each file that the character has relating to it...

what I want to know how to do, is to have my game copy the loaded/chosen background image to their respective characters data folder, and have the game reload/reset the games default background image, to the one piced by he player...I am having a hard time figuring out how to do this however...I've tried a lot of different things...and nothing is working yet...

here is my example code right now:

[Code].....

View 3 Replies


ADVERTISEMENT

Saving The Screenshot - Program Where The User Fills Out Info

Nov 17, 2009

I'm making a program where the user fills out info, then they click one button and the program takes a screenshot of the form, then they click another button and the screenshot gets saved. I'm having a couple problems with my code though. For one, I'm trying to make the screenshot go to an invisible picturebox to make saving easier, but I cant figure out how to make the image go to the picturebox. The other problem is that I want it to automatically save without showing the dialog, but so far, it won't save.

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
TakeShotOfScreens()
Picturebox1.image=allscreenscapture

CODE:...........................

View 4 Replies

Load In Image / File From Location Of Program?

Sep 7, 2009

If I create an array of bitmaps, something like Dim PictureArray(10) as New Bitmap..How do I then load my pictures into the array? If I try Picture Array(1) = "("c:image.bmp") I get an error.Also, can someone remind me of how I load in an image/file from the location of my program? Do I just use ("image.bmp") or do I need to specify curdir or something?

View 15 Replies

Saving Data Which Would Need To Be Updated Every Time The User Exits The Program

Aug 21, 2011

I want to work on a project I have in mind and this envolves saving data which would need to be updated every time the user exits the program. I suppose I need to know how to save a file to a blank text document, and how to get the application to read the information when it is called for. I believe I need to set delimiters or such, the helpfile is useful, but limited and some information is not listed at all.

View 7 Replies

Saving Information So Program Remembers Next Time User Signs In

Feb 25, 2010

i want the user to login, and the first thing is, having the text document for that(if theres a safer way to do it, let me know) then it goes to the weekly sales page, but theres also the goals for the sales, which rarely change, but if they do i would like them to be able to change them, then next page is the list of the workers, and if they need to i would like them to be able to add workers. so my question is: is there anyway that maybe i could save both the goals, and the workers in the text document, and when they need to change it/add workers it will save it in the text document and the next time they sign in the changes will be permanent? also is there a way to delete the user once they have been created, other than going into the txt document and deleting it.

View 2 Replies

VS 2008 ImageList - Stop Image From Being Selected Again While The Program Is Open?

Jan 16, 2010

When i select an image randomly from an imagelist on my form and insert it into a picturebox, how can i stop that image from being selected again while the program is open ?

View 1 Replies

C# - Load The Settings The User Used The Last Time When The Program Starts

Jul 18, 2009

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]

View 2 Replies

My Program Isn't Selected The Right Item That Click On - Allows A User To View A List Of Foods In A Combo Box

May 1, 2012

I am creating a program that allows a user to view a list of foods in a combo box, add that food unto a list box, and adds all of the calories of that food together. When the user highlights their select food, the program automatically shows the amount of calories for that particular food in a text box. The program is getting the food and calorie information from an access database. I managed to get all of the food calories to add up properly, however, I ran into a problem. Sometimes, well, most of the time, when I select certain foods from the combo box, the program automatically reselects another random food, usually a food that begins with either an A, B, or C. Also, the other random food that the program chooses usually has the same amount of calories as the food I originally wanted to choose. I have over 6,000 items in the database. I don't understand why this is happening. This is what my code looks like for the button that adds each food to the list box:

Private Sub Button4_Click(sender As System.Object, e As System.EventArgs) Handles Button4.Click
Foods_Selected.Items.Add(ComboBox1.Text)

Static i As Single

[CODE]...

And this is what my code looks like for the button that adds all of the foods together:

Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click

Dim x As Single
Dim TotalCalories As Single

[CODE]...

I have no idea what to try. It's like the program just skips over random foods, even though all of the information for them is in the database.

View 2 Replies

Program First Open And Saving Data When Program Is Closed?

Nov 19, 2011

I am currently working on a menu driven console program that so far has 4 menu options of checking internet connection, decrypting/encrypting a message, calculator, and a logout, and i am wondering about a few current things.

1. How do i make it to where, when a program starts for the first time, it asks for a user to enter in his data, like signing up for a site for the first time?

2. How do i make it to where the program will save the data entered, and does not delete when the user closed the program.

3. How can i make it to where when a user signs in, his/her data is read correctly? Like an array search for a multidimensional array.For my "New user" sign data i created a function...

Function createNewUser() As String()
Dim name As String
Dim userName As String[code]...

View 2 Replies

Program Files Are All Mixed Up - In Class Saved Program In With Load Of Other Test Programs For The Same Assignment

Jan 8, 2010

In class i saved my program in with load of other test programs for the same assignment and got everything mixed up i finally figured out what was what and loaded the program in Visual Basic. Now my program doesn't recognize one of my forms when i try to access the design view of it. I hit run for the hell of it and the program runs with errors of course but the form1 "the missing one" shows up with all the buttons etc and i can use it.

Heres the link to the files. [URL]

View 3 Replies

Program Fails To Load When Publish Database Vb Program?

Apr 13, 2012

i have a application that i designed for an assignment which uses a DB (ACCESS) However when i publish the application it fails to load even though the application completes. I have managed to find that it is the database that is not copying over, how do i solve this (the db is located when debugging and is also in the project files)

View 3 Replies

Saving + Reloading A Completed Form?

Aug 7, 2009

i am currently trying to create an expenses calculator, the sort that includes all your monthly outgoings and give you a total. I would like to be able to fill the form in the save it + reload it when i run the program again, what is the best way to do this ?

View 5 Replies

Saving A TextBox On Close And Reloading

Mar 24, 2010

how i can make it so if somebody enters information to a textbox in a form. how can i make it so when they reopen the application theyre text is there.

View 1 Replies

VS 2005 Saving And Reloading Datagridview Rows

Mar 16, 2010

I have a datagridview control. I want to save the rows and then restore them the next time I run the program.

How do I write the rows out to an XML file?

I know how to fill the rows from an XML file. But when I've done so I can't add any more rows. It gives the following exception when I try: Rows cannot be programmatically added to the DataGridView's rows collection when the control is data-bound. What can I do about this?

Or is there an easier way to save and restore the rows?

View 1 Replies

Add A Image Where And When Double Click On The Icon And The Program Starts It Shows A Picture Before The Program Loads?

Oct 11, 2010

How can you add a image where when you double click on the icon and the program starts it shows a picture before the program loads. Like Photoshop startup or the new 2010 visual Basic express start up

[Code]...

View 1 Replies

Waitonload - Load A Picture Into A Picturebox Before Start With Saving The Image ?

Jun 26, 2010

Im wanting to load a picture into a picturebox before i start with saving the image. but im stuck i cant figure out how to make the code wait.

cover.ImageLocation = file
cover.Image.Save(path.Text & "mymovies-front.jpg", System.Drawing.Imaging.ImageFormat.Jpeg)

When i use the code above and chack the picture after save it shows me the "x" picture just before the picture is loaded i have had a look at picture.waitonload

View 1 Replies

If Wrong Password X2 Than Close Program And Block User From Opening Program For 180 Seconds?

Sep 2, 2011

I am making a program that NEEDS to be password protected, so i made a textbox with a code so that when the user enters the right password it lets you in. But if the user/person enters a wrong password 2X it will kick you out. So is there a way to keep the

View 3 Replies

Either End The Program Or Start The Program Over In A Visual Basic Console Application - Based Upon User Input?

Apr 8, 2012

I have a procedure at the end of my console application that ask the user to either hit enter to end the program, or type s to perform another search. The issue I'm having is no matter what the user types in the program end. What I would like to happen is if the user types s, then the program starts over and lets the user perform another search. The program is procedural and I need to find a way to start back off at the top of the program which ask the user to type a name to search.

[Code]....

View 1 Replies

Load Data Based On A Selected Month By The User ?

Jun 22, 2010

I have a vb .NET 2005 form that needs to load data based on a selected month by the user. Because there is a large amount of data in the table (60k+ records per month) it is taking the query a long time to pull the dataset back and populate the form. how I can decrease the overhead associated with querying a large dataset to populate a base form?

Note, I have created an identity key on the main table but haven't yet indexed any other fields (Though I could use some suggestions on how I should index).

See the following example of the Stored Proc that is run before my .net form is launched:

Dim cmd2 As New SqlCommand
Dim ConnectionString As String
Dim TheDatabase As System.Data.SqlClient.SqlConnection

[CODE]...

View 3 Replies

VS 2008 Capturing Image Without Reloading?

Mar 19, 2010

I'm working on a software where I need to download an image from the web browser without reloading the image.

View 2 Replies

VS 2008 Download Image In Webbrowser Without Reloading?

Aug 23, 2010

I have looked around and cannot find a way to download an image from a webbrowser without reloading the image or webbrowser AKA using the cached image.

View 1 Replies

How Do Publish A Vb Express 2008 Program With "terms Of Use" Clause The User Must Agree To In Order To Install The Program?

May 26, 2009

I have a program in vb express 2008 which I would like to publish in a little more professional manner than provided in the standard vb express package. I would at least like to include a "Terms of Use" document the user must agree to before installing the program. I have dovnloaded and installed web developer, c# and vs 2008. Do any of these include a professional installer? If not are there any free installer packages available? I am 72 and live on a limited budget so I cannot aford an expensive package for one program.

View 3 Replies

Load A Certain Gif Image When The User Wins Or Loses?

Dec 1, 2008

Is there anyway to put some code in to load a certain Gif image when the user wins or loses? i currently have this in place

[Code]...

View 2 Replies

VS 2010 - List(Of ).Clear() - Load Several Lists Of Codes From A Database Depending On The Import Selected By The User

Dec 29, 2011

When .Clear() is invoked, is the memory freed up that was allocated when all of the items were added? I need to load several lists of codes from a database depending on the import selected by the user. Each list of codes will be a List(Of String). My idea is that I will load only small strings into a List(Of String) along with a List(Of <class>) for the data I will be validating and manipulating. When I am done, I want all of the data from the Lists to be purged from memory. Will .Clear() take care of that or does the memory still remain allocated and have to be dumped by the OS once memory gets full? (And, incidentally, what causes the OS to decide which memory blocks to dump? FIFO concept?)

There are so many lists, I'm not sure if I just want them sitting in memory or not. Granted, the lists will just consist of a single string value for each code pulled from the database. So there won't be a ton of data, so maybe I could just load all the validation lists at the beginning of runtime and only worry about purging the data List since it will contain between 35-50 "fields" per record and there will be a couple thousand records each import that is run. I don't want my program to actually cause a hit in performance in the long run. I ultimately don't see a problem because I won't be running millions or even hundreds of thousands of records at once, but I just want to be sure.

View 10 Replies

Reloading User Entered Data At First Run Logic

Aug 20, 2011

Ok so I have designed a program to figure out commissions for phone sales at my company. Since the devices we sell and their associated prices change over time, I had to make that data within my program dynamic. I have a form within my program (frmprice) that has 160 textboxes - 80 for the devices and 80 for the associated prices. Now I hard coded the .text members with default values for our current stock of phones and prices.

I also added code so whenever that form with the phones and prices (frmprice) closes it saves any changes that have been made to either the phones or prices and when the form loads it overwrites the default data with any data that the user had entered at last run.

HERE is my logic problem. At the very first run the program is overwriting the default hard coded values with "" because no user data has ever been entered before. So when the form with the prices loads, it passes the user entered data from last run which is null because it has never run before. If I test to see if default value <> the user entered data before it executes the code to pass the user entered values it will always test to be true because the user entered data is null at first run. If I test to see if the default value is = to the user data it will always at first run test to be false because there is no user data yet.

HOWEVER once the user entered data is initialized (anytime after the first run) I need the program to pass the user data from the previous runs back in. Just NOT at the first run. Here is the code i am using: (in the code below the variables ending in "val" are the ones that are of the type string and are saved in the application settings) The frmprice_Load Event:

[Code]....

View 3 Replies

Saving Program Settings

Jun 15, 2009

Okay, i have this program that gives the user some settings that need to be saved and loaded when the program runs. Can anyone help me with this?

View 15 Replies

Open Image In Default Image Viewer Using Program?

May 4, 2012

Execute the default image viewer when i pass the path of the image.

View 2 Replies

Record Is Not Saving In Datavew In Program

Mar 26, 2012

I am using this code of VB.net.

Filling Data Set, Assign DataView, Navigating Record.

Every things is going fine. but permanently record is not updating (Saving) in SQL Server Express.[code]...

View 4 Replies

Saving A File When Closing Program?

Nov 23, 2011

I am trying to write a code that lets you open a text file and display it in a text box. I need to make it so that when the user tries to close the program it will ask them if they want to save any changes made to it.

View 3 Replies

Saving The Value Of A Variable When Program Is Closed?

Feb 8, 2012

I am looking for an easy way to save the value of a variable when a program is closed. And then when it is reopened the variable has the same value as what it was previously when the program was closed. The variable has an integer value.

View 2 Replies







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