By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,738 Members | 1,456 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,738 IT Pros & Developers. It's quick & easy.

The Save/Load Function in vb.net

P: 21
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
Share this Question
Share on Google+
10 Replies


Plater
Expert 5K+
P: 7,872
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

P: 21
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
Expert 100+
P: 569
... 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

P: 21
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

P: 21
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

10K+
P: 13,264
...
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

P: 21
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

P: 21
One is not amused -.-
Oct 21 '08 #9

Plater
Expert 5K+
P: 7,872
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
Expert 2.5K+
P: 3,256
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

Post your reply

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