need help adding a note pad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ooroboo
    New Member
    • Feb 2008
    • 20

    need help adding a note pad

    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...
  • VBWheaties
    New Member
    • Feb 2008
    • 145

    #2
    Originally posted by ooroboo
    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.

    Comment

    • ooroboo
      New Member
      • Feb 2008
      • 20

      #3
      ty i understand , but can some1 give me an example of the code. i am still new to vb :P

      thanks

      Comment

      • VBWheaties
        New Member
        • Feb 2008
        • 145

        #4
        Originally posted by ooroboo
        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:
        Code:
        Dim AppName As String 
        Dim AppSection As String 
        Dim SectionKey As String 
        Dim KeyValue As String 
        
        AppName = "MyBrowserApp" 'your apps name
        AppSection = "Settings" 'the section where you want to store data
        SectionKey = "BrowserNotes" 'the data name
        KeyValue= "This is what I need to save on my notepad" 'the data value  
        
        SaveSetting AppName, AppSection, SectionKey, KeyValue

        For getting, you can do something like this:
        Code:
        Dim AppName As String 
        Dim AppSection As String 
        Dim SectionKey As String 
        Dim KeyValue As String 
        
        AppName = "MyBrowserApp" 'your apps name
        AppSection = "Settings" 'the section where you want to store data
        SectionKey = "BrowserNotes" 'the data name
        
        KeyValue = GetSetting (AppName, AppSection, SectionKey, KeyValue, "")
        Important to note that AppName, AppSection and SectionKey must all agree between GetSetting and SaveSetting.

        Comment

        Working...