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

C#

 
GeneralRe: problem with scrollbars auto positioning during dragging a panel Pin
Abhishrek8-Oct-11 16:37
Abhishrek8-Oct-11 16:37 
AnswerRe: problem with scrollbars auto positioning during dragging a panel Pin
Luc Pattyn8-Oct-11 16:45
sitebuilderLuc Pattyn8-Oct-11 16:45 
AnswerRe: problem with scrollbars auto positioning during dragging a panel Pin
Luc Pattyn9-Oct-11 13:30
sitebuilderLuc Pattyn9-Oct-11 13:30 
GeneralRe: problem with scrollbars auto positioning during dragging a panel Pin
Abhishrek9-Oct-11 15:18
Abhishrek9-Oct-11 15:18 
AnswerRe: problem with scrollbars auto positioning during dragging a panel Pin
Luc Pattyn9-Oct-11 16:49
sitebuilderLuc Pattyn9-Oct-11 16:49 
QuestionCaptcha Control Pin
Nolee K8-Oct-11 0:02
Nolee K8-Oct-11 0:02 
AnswerRe: Captcha Control Pin
PIEBALDconsult8-Oct-11 4:32
mvePIEBALDconsult8-Oct-11 4:32 
QuestionFinding values in strings Pin
CCodeNewbie7-Oct-11 10:46
CCodeNewbie7-Oct-11 10:46 
Greetings Gurus,

Could you help please?

I am querying the registry to get a list of installed programs, this works.

I am trying to locate a value in the list of returned items, this doesn't work.

e.g.
C#
RegistryKey rk = Registry.LocalMachine;
                RegistryKey rkprograms = rk.OpenSubKey(@"Software\Microsoft\Windows\CurrentVersion\Uninstall");
                foreach (string s in rkprograms.GetSubKeyNames())
                {
                    int idx;
                    idx = s.IndexOf(".NET");// see if anything with .NET in the name is installed e.g. Microsoft .NET Framework
                    Console.WriteLine(idx);
                    {
                        Console.WriteLine(s);
                    }
                    Console.ReadKey(true);
                }

but all "idx" values return "-1" i.e. not found.

Is my method faulty?
AnswerRe: Finding values in strings Pin
PIEBALDconsult7-Oct-11 12:09
mvePIEBALDconsult7-Oct-11 12:09 
AnswerRe: Finding values in strings Pin
André Kraak7-Oct-11 12:47
André Kraak7-Oct-11 12:47 
AnswerRe: Finding values in strings Pin
Dave Kreskowiak7-Oct-11 12:58
mveDave Kreskowiak7-Oct-11 12:58 
AnswerRe: Finding values in strings Pin
Luc Pattyn7-Oct-11 16:14
sitebuilderLuc Pattyn7-Oct-11 16:14 
GeneralRe: Finding values in strings Pin
Dave Kreskowiak7-Oct-11 17:31
mveDave Kreskowiak7-Oct-11 17:31 
GeneralRe: Finding values in strings Pin
CCodeNewbie8-Oct-11 20:24
CCodeNewbie8-Oct-11 20:24 
GeneralRe: Finding values in strings Pin
Dave Kreskowiak9-Oct-11 3:10
mveDave Kreskowiak9-Oct-11 3:10 
AnswerRe: Finding values in strings Pin
Richard MacCutchan7-Oct-11 21:19
mveRichard MacCutchan7-Oct-11 21:19 
SuggestionMessage Closed Pin
7-Oct-11 5:03
Catalin Stavaru7-Oct-11 5:03 
GeneralRe: How to create secure, uncrackable product keys for your application Pin
Albert Holguin7-Oct-11 5:06
professionalAlbert Holguin7-Oct-11 5:06 
GeneralRe: How to create secure, uncrackable product keys for your application Pin
BobJanova7-Oct-11 5:19
BobJanova7-Oct-11 5:19 
GeneralRe: How to create secure, uncrackable product keys for your application Pin
PIEBALDconsult7-Oct-11 5:29
mvePIEBALDconsult7-Oct-11 5:29 
GeneralRe: How to create secure, uncrackable product keys for your application Pin
harold aptroot7-Oct-11 5:43
harold aptroot7-Oct-11 5:43 
QuestionConvert Windows install date Pin
CCodeNewbie7-Oct-11 5:01
CCodeNewbie7-Oct-11 5:01 
AnswerRe: Convert Windows install date Pin
PIEBALDconsult7-Oct-11 5:26
mvePIEBALDconsult7-Oct-11 5:26 
GeneralRe: Convert Windows install date Pin
CCodeNewbie7-Oct-11 8:50
CCodeNewbie7-Oct-11 8:50 
QuestionIs there way to create a webpage in C# viewed somewhere else Pin
Klockness7-Oct-11 4:07
Klockness7-Oct-11 4:07 

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.