Click here to Skip to main content
12,359,102 members (32,408 online)
   

C#

 
GeneralRe: how i get data from datatable Pin
a1_shay14-Jan-13 0:53
membera1_shay14-Jan-13 0:53 
GeneralRe: how i get data from datatable Pin
PIEBALDconsult14-Jan-13 3:05
memberPIEBALDconsult14-Jan-13 3:05 
GeneralRe: how i get data from datatable Pin
a1_shay14-Jan-13 3:08
membera1_shay14-Jan-13 3:08 
GeneralRe: how i get data from datatable Pin
PIEBALDconsult14-Jan-13 3:36
memberPIEBALDconsult14-Jan-13 3:36 
GeneralRe: how i get data from datatable Pin
a1_shay14-Jan-13 12:34
membera1_shay14-Jan-13 12:34 
Questionis it possible to work with Word files using Binary Reader and writer? Pin
asem052513-Jan-13 5:41
memberasem052513-Jan-13 5:41 
AnswerRe: is it possible to work with Word files using Binary Reader and writer? Pin
Garth J Lancaster13-Jan-13 10:19
memberGarth J Lancaster13-Jan-13 10:19 
QuestionDeleting registry values Pin
Erol230913-Jan-13 4:51
memberErol230913-Jan-13 4:51 
Hello,

My code is trying to delete IExplorer history from the registry! The typed URLs are stored in a checked listbox, i can delete one value at a time both in the registry and from the checked listbox but when i try deleting multiple items at a time it doesn't work? here is the code
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(v[i]);
               }
 
           }
 
           for ( int i = count; i > 0; i--)
           {
               if (checkedListBox1.CheckedItems.Contains(checkedListBox1.Items[i - 1]))
               {
 
                   checkedListBox1.Items.RemoveAt(i - 1);
               }
           }
 

 

       }

AnswerRe: Deleting registry values Pin
ProgramFOX13-Jan-13 6:06
member ProgramFOX13-Jan-13 6:06 
GeneralRe: Deleting registry values Pin
Erol230913-Jan-13 8:44
memberErol230913-Jan-13 8:44 
GeneralRe: Deleting registry values Pin
ProgramFOX14-Jan-13 5:57
member ProgramFOX14-Jan-13 5:57 
AnswerRe: Deleting registry values Pin
Pete O'Hanlon13-Jan-13 8:56
protectorPete O'Hanlon13-Jan-13 8:56 
GeneralRe: Deleting registry values Pin
Erol230913-Jan-13 22:17
memberErol230913-Jan-13 22:17 
GeneralRe: Deleting registry values Pin
jibesh13-Jan-13 22:32
memberjibesh13-Jan-13 22:32 
GeneralRe: Deleting registry values Pin
Pete O'Hanlon13-Jan-13 23:40
protectorPete O'Hanlon13-Jan-13 23:40 
QuestionIndex was outside the bounds of the array. Pin
Erol230913-Jan-13 4:11
memberErol230913-Jan-13 4:11 
AnswerRe: Index was outside the bounds of the array. Pin
OriginalGriff13-Jan-13 4:15
mvpOriginalGriff13-Jan-13 4:15 
GeneralRe: Index was outside the bounds of the array. Pin
Erol230913-Jan-13 4:17
memberErol230913-Jan-13 4:17 
GeneralRe: Index was outside the bounds of the array. Pin
OriginalGriff13-Jan-13 4:21
mvpOriginalGriff13-Jan-13 4:21 
AnswerRe: Index was outside the bounds of the array. Pin
PIEBALDconsult13-Jan-13 4:41
memberPIEBALDconsult13-Jan-13 4:41 
QuestionObject reference not set to an instance of an object Pin
Erol230912-Jan-13 19:25
memberErol230912-Jan-13 19:25 
AnswerRe: Object reference not set to an instance of an object Pin
jibesh12-Jan-13 19:41
memberjibesh12-Jan-13 19:41 
QuestionSaving selected option into database Pin
Oyebisi Jemil12-Jan-13 11:31
memberOyebisi Jemil12-Jan-13 11:31 
AnswerRe: Saving selected option into database Pin
Pete O'Hanlon12-Jan-13 11:45
protectorPete O'Hanlon12-Jan-13 11:45 
AnswerRe: Saving selected option into database Pin
Dave Kreskowiak12-Jan-13 12:48
mvpDave Kreskowiak12-Jan-13 12:48 

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.


Advertise | Privacy | Mobile
Web02 | 2.8.160621.1 | Last Updated 1 Jul 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid