Click here to Skip to main content
15,889,874 members
Home / Discussions / C#
   

C#

 
GeneralRe: listview autoarrange Pin
Alex Korchemniy17-Jul-05 14:29
Alex Korchemniy17-Jul-05 14:29 
GeneralRe: listview autoarrange Pin
Sabry190517-Jul-05 21:15
Sabry190517-Jul-05 21:15 
GeneralDelete Query String in Oledb Pin
pakFari16-Jul-05 23:55
pakFari16-Jul-05 23:55 
GeneralRe: Delete Query String in Oledb Pin
Colin Angus Mackay17-Jul-05 1:23
Colin Angus Mackay17-Jul-05 1:23 
Generalredirect shortcut key Pin
Sabry190516-Jul-05 23:54
Sabry190516-Jul-05 23:54 
GeneralRe: redirect shortcut key Pin
Alex Korchemniy17-Jul-05 14:32
Alex Korchemniy17-Jul-05 14:32 
GeneralRe: redirect shortcut key Pin
Sabry190517-Jul-05 21:20
Sabry190517-Jul-05 21:20 
Generalgetting registered file extensions Pin
g00fyman16-Jul-05 20:53
g00fyman16-Jul-05 20:53 
hi to all,

i am trying to get all registered file extensions on a system so i can filter queries to the filesystem that is displayed in a ListView Control

i am iterating the subkeys of CLASSES_ROOT but i am getting alot of keys that do not appear within the display of the Windows 'add new file type' list box. is there a way to only get this list of extensions ?

i will paste my code which basically just gets all subkey names starting with '.'

<br />
public IList<string> GetFileTypes()<br />
        {<br />
            IList<string> fileTypes = new List<string>();<br />
            RegistryKey root = Registry.ClassesRoot;<br />
            string[] subkeys = root.GetSubKeyNames();<br />
<br />
            foreach (string key in subkeys)<br />
            {<br />
                if (key.StartsWith("."))<br />
                {<br />
                    fileTypes.Add(key.Substring(1));<br />
                }<br />
            }<br />
            return fileTypes;<br />
        }<br />


thanx to all,
g00fy
GeneralRe: getting registered file extensions Pin
g00fyman17-Jul-05 2:05
g00fyman17-Jul-05 2:05 
GeneralRe: getting registered file extensions Pin
g00fyman17-Jul-05 3:34
g00fyman17-Jul-05 3:34 
GeneralSHGetFileInfo icon and dispose Pin
CiNN16-Jul-05 17:03
CiNN16-Jul-05 17:03 
GeneralRe: SHGetFileInfo icon and dispose Pin
Alex Korchemniy17-Jul-05 14:35
Alex Korchemniy17-Jul-05 14:35 
GeneralRe: SHGetFileInfo icon and dispose Pin
CiNN17-Jul-05 15:06
CiNN17-Jul-05 15:06 
QuestionTake screenshots using C#? Pin
Lord Kixdemp16-Jul-05 16:25
Lord Kixdemp16-Jul-05 16:25 
AnswerRe: Take screenshots using C#? Pin
bneacetp16-Jul-05 17:02
bneacetp16-Jul-05 17:02 
GeneralRe: Take screenshots using C#? Pin
Lord Kixdemp16-Jul-05 18:45
Lord Kixdemp16-Jul-05 18:45 
QuestionPaint control? Pin
Lord Kixdemp16-Jul-05 16:18
Lord Kixdemp16-Jul-05 16:18 
AnswerRe: Paint control? Pin
Tomas Petricek17-Jul-05 1:53
Tomas Petricek17-Jul-05 1:53 
GeneralRe: Paint control? Pin
Lord Kixdemp17-Jul-05 6:11
Lord Kixdemp17-Jul-05 6:11 
GeneralAsynchronous Comms Pin
Anonymous16-Jul-05 13:15
Anonymous16-Jul-05 13:15 
Generalbandwidth usage Pin
Mohamad Al Husseiny16-Jul-05 10:37
Mohamad Al Husseiny16-Jul-05 10:37 
GeneralHelp with client server apps, please! Pin
Member 161964216-Jul-05 9:26
Member 161964216-Jul-05 9:26 
Generalauto select tree node Pin
Anonymous16-Jul-05 9:19
Anonymous16-Jul-05 9:19 
GeneralRe: auto select tree node Pin
Luis Alonso Ramos16-Jul-05 18:39
Luis Alonso Ramos16-Jul-05 18:39 
GeneralRe: auto select tree node Pin
Anonymous17-Jul-05 10:09
Anonymous17-Jul-05 10:09 

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.