473,396 Members | 1,768 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,396 software developers and data experts.

need help adding a note pad

20
i am making a web browser , i have all the web browser controls sorted out , i wont to add a textbox or notepad at the bottom of the page , it only needs to be about 2-3 lines , where i can sort some text , that will still be there when i next open the browser.i wont this area to be editable so i can change it and add new things.

how can i do this?

thanks rob...
Feb 27 '08 #1
3 861
VBWheaties
145 100+
i am making a web browser , i have all the web browser controls sorted out , i wont to add a textbox or notepad at the bottom of the page , it only needs to be about 2-3 lines , where i can sort some text , that will still be there when i next open the browser.i wont this area to be editable so i can change it and add new things.

how can i do this?

thanks rob...
You can save your list to the registry with SaveSetting
Then, when you app loads do a GetSetting to get the set of values for your textboxes.
Feb 27 '08 #2
ooroboo
20
ty i understand , but can some1 give me an example of the code. i am still new to vb :P

thanks
Feb 27 '08 #3
VBWheaties
145 100+
ty i understand , but can some1 give me an example of the code. i am still new to vb :P

thanks
For saving, you could do something like this:
Expand|Select|Wrap|Line Numbers
  1. Dim AppName As String 
  2. Dim AppSection As String 
  3. Dim SectionKey As String 
  4. Dim KeyValue As String 
  5.  
  6. AppName = "MyBrowserApp" 'your apps name
  7. AppSection = "Settings" 'the section where you want to store data
  8. SectionKey = "BrowserNotes" 'the data name
  9. KeyValue= "This is what I need to save on my notepad" 'the data value  
  10.  
  11. SaveSetting AppName, AppSection, SectionKey, KeyValue 
  12.  

For getting, you can do something like this:
Expand|Select|Wrap|Line Numbers
  1. Dim AppName As String 
  2. Dim AppSection As String 
  3. Dim SectionKey As String 
  4. Dim KeyValue As String 
  5.  
  6. AppName = "MyBrowserApp" 'your apps name
  7. AppSection = "Settings" 'the section where you want to store data
  8. SectionKey = "BrowserNotes" 'the data name
  9.  
  10. KeyValue = GetSetting (AppName, AppSection, SectionKey, KeyValue, "") 
  11.  
Important to note that AppName, AppSection and SectionKey must all agree between GetSetting and SaveSetting.
Feb 27 '08 #4

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

Similar topics

4
by: KellyH | last post by:
Hi, I hope someone can point me in the right direction. I'll get it out of the way: Yes, I am a college student. No, I am not looking for anyone to do my homework, just looking for help. I have...
4
by: Derek | last post by:
Hi, I've built a rather large CGI that dumps a lot of data and a fairly complex javascript app out to the client's browser. Granted this may be poor style according to someone web design...
11
by: Steven D'Aprano | last post by:
Suppose I create a class with some methods: py> class C: .... def spam(self, x): .... print "spam " * x .... def ham(self, x): .... print "ham * %s" % x .......
48
by: Chad Z. Hower aka Kudzu | last post by:
A few of you may recognize me from the recent posts I have made about Indy <http://www.indyproject.org/indy.html> Those of you coming to .net from the Delphi world know truly how unique and...
3
by: MIGUEL | last post by:
Hi all, I'm quite lost with how adding web references to a project creates proxy classes. I've developed a web service with two classes inside and that contains three references to three...
6
by: Rolf Welskes | last post by:
Hello, if I have for example: <table style="width: 100%; height: 100%;" border="1"> <tr> <td style="width: 100px">k </td> <td style="width: 100px">k </td> </tr>
10
by: preethamkumark | last post by:
- The program first creates a shared memory buffer containing an array of 20 integers. - Each slot of the buffer can have either 0 or 1, where 0 represents an empty slot, and 1 represents an...
8
by: =?Utf-8?B?UHVjY2E=?= | last post by:
Hi, I'm using vs2005, .net 2, C# for Windows application. I use DllImport so I can call up a function written in C++ as unmanaged code and compiled as a dll us vs2005. My application is able to...
1
by: =?ISO-8859-1?Q?Lasse_V=E5gs=E6ther_Karlsen?= | last post by:
I get the above error in some of the ASP.NET web applications on a server, and I need some help figuring out how to deal with it. This is a rather long post, and I hope I have enough details that...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
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
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
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,...

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.