473,397 Members | 2,099 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Couple of VB.NET questions

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
Nov 21 '05 #1
3 1098
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.
Nov 21 '05 #2
> 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.
Nov 21 '05 #3

"Rob Nicholson" <ro***********@nospam-unforgettable.com> wrote in message
news:%2******************@tk2msftngp13.phx.gbl...
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

Nov 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: bjs | last post by:
I hope I've got the right group here and apologies if I haven't. I'm a hobby programmer and have just upgraded to Visual Basic.net and have a couple of questions if anybody can help. In VB 6...
1
by: hoochiegooch | last post by:
Hi, all. I have a couple of questions about NAnt. 1. Is there a better way to invoke NAnt from a C# "Master Test Rig" than shelling out? IOW, how should an ASP.NET web app or Windows Service...
21
by: Rob Somers | last post by:
Hey people, I read a good thread on here regarding the reason why we use function prototypes, and it answered most of my questions, but I wanted to double check on a couple of things, as I am...
1
by: dln | last post by:
Howdy. I'm a bit new to C# and got a couple of quick questions that perhaps someone can help me answer. First, is there a property that you set on a TextBox control that will force the control to...
4
by: Sccr18 | last post by:
I just have a couple of easy questions: 1. In Asp.net using Vb is there a way to list all the possible characters without listing them all like Char() = "abc..."? 2. I was trying to set the focus...
0
by: Marc | last post by:
Hi, I'm working with a customer that is trying to find a solution to provide geographical redundancy. Our application is currently using IBM DB2 v8.2. I have a couple of questions with regards...
3
by: Ron | last post by:
Hello everyone, I have a couple of questions really quick questions. I am creating a dispatch database. What I would really like to do is have to option of automatically inserting the time...
3
by: melton9 | last post by:
I'm just getting into using datagrid and have a couple of questions. 1.)How do you get the grid to show the values of a datatable automatically? Currently I have to hit the + sign and then...
0
by: Newish | last post by:
Hi Couple of questions on datagrid 1) Is there a performance issue when using datagrid to display data from a datatable. 2) Is there a security issue when using datagrid to display data...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.