Click here to Skip to main content
       

C#

 
AnswerRe: Deleting registry values [modified] Pinmember ProgramFOX13-Jan-13 6:06 
GeneralRe: Deleting registry values PinmemberErol230913-Jan-13 8:44 
GeneralRe: Deleting registry values Pinmember ProgramFOX14-Jan-13 5:57 
AnswerRe: Deleting registry values PinprotectorPete O'Hanlon13-Jan-13 8:56 
GeneralRe: Deleting registry values PinmemberErol230913-Jan-13 22:17 
GeneralRe: Deleting registry values Pinmemberjibesh13-Jan-13 22:32 
GeneralRe: Deleting registry values PinprotectorPete O'Hanlon13-Jan-13 23:40 
QuestionIndex was outside the bounds of the array. PinmemberErol230913-Jan-13 4:11 
Hi,
 
I am trying to trite a small app that acceses internet browser history on IExplorer using its registry. Somehow i cannot delete the URLs that have been viewed.
note: After accesing the registry i store the data in a checkedlistbox. Any help?
 private void Delete_Click(object sender, EventArgs e)
        {
            RegistryKey key = Registry.CurrentUser.OpenSubKey("Software\\Microsoft\\Internet Explorer\\TypedURLs", true);
            string[] v = key.GetValueNames();
            string[] t = new string[v.Length];
            int count = checkedListBox1.Items.Count;
            for (int i = 0; i < v.Length - 1; i--)
            {
                t[i] = (string)key.GetValue(v[i]);
                if(t[i] == (string)checkedListBox1.SelectedItem)
                {
                    key.DeleteValue(t[i]);
                }
 
            }
            
            for ( int i = count; i > 0; i--)
            {
                if (checkedListBox1.CheckedItems.Contains(checkedListBox1.Items[i - 1]))
                {
                    
                    checkedListBox1.Items.RemoveAt(i - 1);
                }
            }

AnswerRe: Index was outside the bounds of the array. PinmvpOriginalGriff13-Jan-13 4:15 
GeneralRe: Index was outside the bounds of the array. PinmemberErol230913-Jan-13 4:17 
GeneralRe: Index was outside the bounds of the array. PinmvpOriginalGriff13-Jan-13 4:21 
AnswerRe: Index was outside the bounds of the array. PinmemberPIEBALDconsult13-Jan-13 4:41 
QuestionObject reference not set to an instance of an object PinmemberErol230912-Jan-13 19:25 
AnswerRe: Object reference not set to an instance of an object Pinmemberjibesh12-Jan-13 19:41 
QuestionSaving selected option into database PinmemberOyebisi Jemil12-Jan-13 11:31 
AnswerRe: Saving selected option into database PinprotectorPete O'Hanlon12-Jan-13 11:45 
AnswerRe: Saving selected option into database PinmvpDave Kreskowiak12-Jan-13 12:48 
GeneralRe: Saving selected option into database PinmemberBrisingr Aerowing12-Jan-13 13:49 
GeneralRe: Saving selected option into database PinmemberPIEBALDconsult12-Jan-13 15:22 
QuestionBinary Reader Pinmemberdxtrx12-Jan-13 10:38 
AnswerRe: Binary Reader [modified] Pinmemberjibesh12-Jan-13 13:01 
GeneralRe: Binary Reader Pinmemberdxtrx12-Jan-13 13:17 
GeneralRe: Binary Reader PinmemberBrisingr Aerowing12-Jan-13 13:48 
QuestionSocket programming- Response to all client [modified] Pinmembermohammadkaab12-Jan-13 7:36 
AnswerRe: Socket programming- Response to all client [modified] Pinmemberpt140112-Jan-13 8:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web03 | 2.8.140926.1 | Last Updated 1 Oct 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid