PC Review


Reply
Thread Tools Rate Thread

Couple of VB.NET questions

 
 
punt
Guest
Posts: n/a
 
      10th Mar 2005
I've got a couple of questions about a deployed VB.NET application.
Firstly can a deployed application remember any variables(single string)
after being closed down and re-opened, without the use of a database?

Secondly I've been looking at inserting bookmarks into a word template like
shown in:
http://support.microsoft.com/default...b;EN-US;316383
Is it possible to insert an image into a bookmark as well, or does it only
work with strings?

Thanks a lot for any help
Punter


 
Reply With Quote
 
 
 
 
=?Utf-8?B?Q3JvdWNoaWUxOTk4?=
Guest
Posts: n/a
 
      10th Mar 2005
To answer your first question: You can have the deployed application creat
registry keys for you & when the application is open, check/update those
values.

For using the registry in a deployment project use the registry editor. To
change the values in code & store them in the registry reference the
'Microsoft.Win32'

Imports Microsoft.Win32

Dim reg As RegistryKey
reg = Registry.CurrentUser.CreateSubKey("Software\My Software Key")
reg.SetValue("My SubKey", "My Value")
reg.Close()

As for the second question: I am not sure because I really don't do MS
Office - VB.NET programming that often.
 
Reply With Quote
 
Rob Nicholson
Guest
Posts: n/a
 
      10th Mar 2005
> I've got a couple of questions about a deployed VB.NET application.
> Firstly can a deployed application remember any variables(single string)
> after being closed down and re-opened, without the use of a database?


Nope although there are many options:

o Use the HKEY_CURRENT_USER portion of the registry
o Save a file in a sub-folder (e.g. Windows) of the user's home directory
(My Documents)
o Save it in the program's own folder keyed using the user name or similar

As it's just a single string, the registry is probably the best bet.

Rob.


 
Reply With Quote
 
punt
Guest
Posts: n/a
 
      12th Mar 2005

"Rob Nicholson" <(E-Mail Removed)> wrote in message
news:%23Lz%(E-Mail Removed)...
> > I've got a couple of questions about a deployed VB.NET application.
> > Firstly can a deployed application remember any variables(single string)
> > after being closed down and re-opened, without the use of a database?

>
> Nope although there are many options:
>
> o Use the HKEY_CURRENT_USER portion of the registry
> o Save a file in a sub-folder (e.g. Windows) of the user's home directory
> (My Documents)
> o Save it in the program's own folder keyed using the user name or similar
>
> As it's just a single string, the registry is probably the best bet.
>
> Rob.


Thanks a lot for your and Crouchie's help

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
couple of questions cjbarron5 Microsoft Excel Misc 10 2nd Jun 2008 01:46 AM
Couple of Questions Toysforfids Microsoft Excel Misc 4 14th Sep 2006 05:20 AM
Couple of questions Alon Brodski Windows XP Networking 0 12th Jun 2004 10:07 AM
a couple of questions please...... =?Utf-8?B?Y2F0aGVyaW5lc2Vl?= Windows XP General 4 18th Jan 2004 01:51 AM
A couple of questions Vel Microsoft Access Getting Started 1 19th Sep 2003 05:45 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:22 PM.