Click here to Skip to main content
15,888,733 members
Home / Discussions / C#
   

C#

 
AnswerRe: Deleting registry values Pin
Thomas Daniels13-Jan-13 6:06
mentorThomas Daniels13-Jan-13 6:06 
GeneralRe: Deleting registry values Pin
Erol230913-Jan-13 8:44
Erol230913-Jan-13 8:44 
GeneralRe: Deleting registry values Pin
Thomas Daniels14-Jan-13 5:57
mentorThomas Daniels14-Jan-13 5:57 
AnswerRe: Deleting registry values Pin
Pete O'Hanlon13-Jan-13 8:56
mvePete O'Hanlon13-Jan-13 8:56 
GeneralRe: Deleting registry values Pin
Erol230913-Jan-13 22:17
Erol230913-Jan-13 22:17 
GeneralRe: Deleting registry values Pin
Jibesh13-Jan-13 22:32
professionalJibesh13-Jan-13 22:32 
GeneralRe: Deleting registry values Pin
Pete O'Hanlon13-Jan-13 23:40
mvePete O'Hanlon13-Jan-13 23:40 
QuestionIndex was outside the bounds of the array. Pin
Erol230913-Jan-13 4:11
Erol230913-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?
C#
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. Pin
OriginalGriff13-Jan-13 4:15
mveOriginalGriff13-Jan-13 4:15 
GeneralRe: Index was outside the bounds of the array. Pin
Erol230913-Jan-13 4:17
Erol230913-Jan-13 4:17 
GeneralRe: Index was outside the bounds of the array. Pin
OriginalGriff13-Jan-13 4:21
mveOriginalGriff13-Jan-13 4:21 
AnswerRe: Index was outside the bounds of the array. Pin
PIEBALDconsult13-Jan-13 4:41
mvePIEBALDconsult13-Jan-13 4:41 
QuestionObject reference not set to an instance of an object Pin
Erol230912-Jan-13 19:25
Erol230912-Jan-13 19:25 
AnswerRe: Object reference not set to an instance of an object Pin
Jibesh12-Jan-13 19:41
professionalJibesh12-Jan-13 19:41 
QuestionSaving selected option into database Pin
Oyebisi Jemil12-Jan-13 11:31
Oyebisi Jemil12-Jan-13 11:31 
AnswerRe: Saving selected option into database Pin
Pete O'Hanlon12-Jan-13 11:45
mvePete O'Hanlon12-Jan-13 11:45 
AnswerRe: Saving selected option into database Pin
Dave Kreskowiak12-Jan-13 12:48
mveDave Kreskowiak12-Jan-13 12:48 
GeneralRe: Saving selected option into database Pin
Brisingr Aerowing12-Jan-13 13:49
professionalBrisingr Aerowing12-Jan-13 13:49 
GeneralRe: Saving selected option into database Pin
PIEBALDconsult12-Jan-13 15:22
mvePIEBALDconsult12-Jan-13 15:22 
QuestionBinary Reader Pin
dxtrx12-Jan-13 10:38
dxtrx12-Jan-13 10:38 
AnswerRe: Binary Reader Pin
Jibesh12-Jan-13 13:01
professionalJibesh12-Jan-13 13:01 
GeneralRe: Binary Reader Pin
dxtrx12-Jan-13 13:17
dxtrx12-Jan-13 13:17 
GeneralRe: Binary Reader Pin
Brisingr Aerowing12-Jan-13 13:48
professionalBrisingr Aerowing12-Jan-13 13:48 
QuestionSocket programming- Response to all client Pin
mohammadkaab12-Jan-13 7:36
mohammadkaab12-Jan-13 7:36 
AnswerRe: Socket programming- Response to all client Pin
pt140112-Jan-13 8:21
pt140112-Jan-13 8:21 

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

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