473,473 Members | 2,125 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

The Save/Load Function in vb.net

21 New Member
Hi, I recently just unsubscribed my other thread due to the fact that it went against the posting regulations...

If you feel offended by what I posted, I apologize

I need Code for a save button... this save button must be able to...
---save data!
---must have a save as function...obviously due to the fact that some data might be new
---Explore the windows directory as default

I therefore also need code for a load button with the exact same needs as above (but obviously it shouldn't be able to save -.-)


If you have suggestions on different ways I could implement the save or load function in vb.net feel free to post them, However please DO NOT go on about C++ or any other language because I simply don't have the experience for it (yes I know I really am a noob at programming!)


Finally, how could I use it in a form based system... I want to implement my code in a way that is suitable for my needs, I do not however want to program in a different language as it would take far too long to implement and learn.

OH and please post things which I would want

I would not like:
--- website urls
--- giant pieces of code... believe me its hard to find the difference between some "small" pieces!
--- C++ (YUK!)
--- Things that have nothing to do with the information that I seek!
Oct 21 '08 #1
10 4396
Plater
7,872 Recognized Expert Expert
What is it that you want to save?
There is a SaveFileDialog that can be used to produce a filename for you to save to. What you do with it is up to you.
Oct 21 '08 #2
Marren02
21 New Member
What is it that you want to save?
There is a SaveFileDialog that can be used to produce a filename for you to save to. What you do with it is up to you.
... Its not just that... I want the code and the ways of doing it... I've only just switched to VB.NET it can be annoying when you have no idea what you are doing!

I'm intending it for form data... however I could use it for other "necessities"
Oct 21 '08 #3
MrMancunian
569 Recognized Expert Contributor
... Its not just that... I want the code and the ways of doing it... I've only just switched to VB.NET it can be annoying when you have no idea what you are doing!

I'm intending it for form data... however I could use it for other "necessities"
If you want the code and the ways of doing it I suggest that you hire someone who is gonna build it for you, 'cause we're certainly not going to...

OH and please post things which I would want

I would not like:
--- website urls
--- giant pieces of code... believe me its hard to find the difference between some "small" pieces!
--- C++ (YUK!)
--- Things that have nothing to do with the information that I seek!
This is a really lousy attitude. Show some respect!

Steven
Oct 21 '08 #4
Marren02
21 New Member
If you want the code and the ways of doing it I suggest that you hire someone who is gonna build it for you, 'cause we're certainly not going to...



This is a really lousy attitude. Show some respect!

Steven
*grumbles* C++ *murmers* lousy design view *more grummbling...* my opinion... grr.... *mubling* frosties are grrrrrrrrrrrrrrreat!
Oct 21 '08 #5
Marren02
21 New Member
If you want the code and the ways of doing it I suggest that you hire someone who is gonna build it for you, 'cause we're certainly not going to...



This is a really lousy attitude. Show some respect!

Steven
I aint hiring... if i were I'd be telling YOU what to do, I'm only telling YOU what I want, there aint no difference man!
Oct 21 '08 #6
r035198x
13,262 MVP
...
I'm intending it for form data... however I could use it for other "necessities"
You have to know what you want to save.
It's not possible to have so generic a save function that it can save form data, files, goblins, defenestratable giants, wibble banana jellyfish and any dynamically specified trivia.
Oct 21 '08 #7
Marren02
21 New Member
I need Code for a save button... this save button must be able to...

---save data!
---must have a save as function to ensure the data is new (unsure!)
---Explore the windows directory as default

I therefore also need code for a load button with the exact same needs as above
Except I don't need a load as obviously!

Finally, how could I use it in a form based system... I want to implement my code in a way that is suitable for my needs, I do not however want to program in a different language as it would take far too long to implement and learn.
Please answer my question and stop flaming my posts >:(
Oct 21 '08 #8
Marren02
21 New Member
One is not amused -.-
Oct 21 '08 #9
Plater
7,872 Recognized Expert Expert
Please stop double posting your questions.
No one is flamming your posts.
MODERATOR

We continue to ask you to explain your question, you continue to refuse to.
You say you have explained what you want from us, but that is very much not the case.
Since you refuse to explain what you actually want to save, here is the answer you have asked for:
Expand|Select|Wrap|Line Numbers
  1. Public Shared Sub Save(o As Object) 
  2. End Sub 
  3. Public Shared Function Load() As Object 
  4.     Return New Object() 
  5. End Function 
  6.  
Until you provide a better description of what you are requesting, this is the best that can be offered.
Oct 21 '08 #10
Curtis Rutland
3,256 Recognized Expert Specialist
I'm only going to post this one more time.

You're coming to a site for free asking for help from experts donating their time, and you're acting like we all owe you something.

Telling us what you don't want to hear is disrespectful. Clearly laying out your problem, and providing clarification when asked would be the respectful and correct route.

Had you come to us with the proper attitude, you would likely already have an answer. But act like this and guess what, nobody wants to help you! And nobody has to, because as I've already stated, we're all unpaid volunteers, doing this for personal enjoyment.

This isn't a powertrip or some vain desire for worship-like respect. We are professionals, and we just wish to be treated as such.

Now please stop being rude to our members, experts, mods, and admins.

MODERATOR
Oct 21 '08 #11

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Andras Gilicz | last post by:
Hi VB fans I'm working on a relatively large project in VB6 with about a dozen forms, including graphs, labels, text boxes, etc. The software itself is actually a flow simulator with more or...
3
by: Jim Williams | last post by:
**** Post for FREE via your newsreader at post.usenet.com **** I have some questions aboyt XML, and it's use for file loading/saving. I'm working in a C++ environment, on MS Windows. I'll try...
4
by: Glenn M | last post by:
I have a shared XML file on a server . i also have one xslt file that performs a simple transform on in to view the data. now i want to have another page that lets users modify the shared xml...
2
by: Dave | last post by:
Hello. I need to load an URL and save it to a file in Asp.Net. The function below is creating the file, but isn't putting the data in it. Also the data is binary, so I'm not sure if I need to...
8
by: david.lindsay.green | last post by:
Hello all, I am quite new a web scripting and making web pages in general and I have stumbled across a problem I have as yet been unable to solve. I am trying to take the contents of a textarea box...
1
by: Irene | last post by:
Hello all! I'm creating a web site in ASP.NET (VB.NET). One of the requirements was to allow users to create orders going through several steps. A must have is to have an option to save the work...
1
by: liuliuliu | last post by:
hi -- sorry if this is trivial -- but how do you make a screenshot of a pygame display? i have a surface which is basically the entire visible screen -- how do you write this surface as an image...
0
Ensonix
by: Ensonix | last post by:
I found a post about this, and it had some C# code that wouldn't convert, and when I finally got it converted it didn't work in .NET 1.1. So I made a few changes to the converted VB version and now...
7
by: Marren02 | last post by:
Hi, I have looked on the internet for quite some time concerning this issue The problem is loads and loads and loads of people use their examples instead of simply stating what code you use...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.