Click here to Skip to main content
15,892,746 members
Home / Discussions / C#
   

C#

 
GeneralRe: Looks like C# does not support Global Variables Pin
Luc Pattyn28-Mar-19 1:07
sitebuilderLuc Pattyn28-Mar-19 1:07 
GeneralRe: Looks like C# does not support Global Variables Pin
Brian_TheLion28-Mar-19 1:31
Brian_TheLion28-Mar-19 1:31 
GeneralRe: Looks like C# does not support Global Variables Pin
Luc Pattyn28-Mar-19 1:37
sitebuilderLuc Pattyn28-Mar-19 1:37 
GeneralRe: Looks like C# does not support Global Variables Pin
Brian_TheLion28-Mar-19 2:03
Brian_TheLion28-Mar-19 2:03 
GeneralRe: Looks like C# does not support Global Variables Pin
OriginalGriff28-Mar-19 3:26
mveOriginalGriff28-Mar-19 3:26 
GeneralRe: Looks like C# does not support Global Variables Pin
Brian_TheLion28-Mar-19 16:54
Brian_TheLion28-Mar-19 16:54 
GeneralRe: Looks like C# does not support Global Variables Pin
OriginalGriff29-Mar-19 2:33
mveOriginalGriff29-Mar-19 2:33 
GeneralRe: Looks like C# does not support Global Variables Pin
Brian_TheLion29-Mar-19 3:39
Brian_TheLion29-Mar-19 3:39 
GeneralRe: Looks like C# does not support Global Variables Pin
OriginalGriff1-Apr-19 20:01
mveOriginalGriff1-Apr-19 20:01 
GeneralRe: Looks like C# does not support Global Variables Pin
Brian_TheLion2-Apr-19 1:04
Brian_TheLion2-Apr-19 1:04 
GeneralRe: Looks like C# does not support Global Variables Pin
Brian_TheLion2-Apr-19 14:23
Brian_TheLion2-Apr-19 14:23 
GeneralRe: Looks like C# does not support Global Variables Pin
#realJSOP29-Mar-19 2:28
mve#realJSOP29-Mar-19 2:28 
AnswerRe: Looks like C# does not support Global Variables Pin
OriginalGriff28-Mar-19 0:20
mveOriginalGriff28-Mar-19 0:20 
GeneralRe: Looks like C# does not support Global Variables Pin
Brian_TheLion28-Mar-19 0:26
Brian_TheLion28-Mar-19 0:26 
GeneralRe: Looks like C# does not support Global Variables Pin
OriginalGriff28-Mar-19 0:40
mveOriginalGriff28-Mar-19 0:40 
GeneralRe: Looks like C# does not support Global Variables Pin
Brian_TheLion28-Mar-19 1:00
Brian_TheLion28-Mar-19 1:00 
GeneralRe: Looks like C# does not support Global Variables Pin
OriginalGriff28-Mar-19 2:35
mveOriginalGriff28-Mar-19 2:35 
QuestionReading Registry Values Pin
ormonds27-Mar-19 15:33
ormonds27-Mar-19 15:33 
I have some registry values:
[HKEY_CLASSES_ROOT\WinZip\Shell\Unzip_Model]@="Unzip Model"

[HKEY_CLASSES_ROOT\WinZip\Shell\Unzip_Model\command]@="\"D:\TeklaZipping\TeklaZipping.exe\" \"%1\" "

I am trying to read the value prior to correcting it if wrong:
RegistryKey UnZipping = Registry.ClassesRoot.OpenSubKey(@"WinZip\Shell\Unzip_Model");
   if (UnZipping != null)
   {
       whattodo = UnZipping.GetValue("command").ToString();
       UnZipping.Close();
   }
the line
whattodo = UnZipping.GetValue("command").ToString();
always gives an error System.NullReferenceException. "Object reference not set to an instance of an object."

I've tried with "(Default)" instead of "command" and various other possibilities but get the same error. Clearly there is something here I don;t understand, can anyone help?
AnswerRe: Reading Registry Values Pin
Super Lloyd27-Mar-19 19:38
Super Lloyd27-Mar-19 19:38 
AnswerRe: Reading Registry Values Pin
OriginalGriff27-Mar-19 20:35
mveOriginalGriff27-Mar-19 20:35 
AnswerRe: Reading Registry Values Pin
Luc Pattyn27-Mar-19 22:01
sitebuilderLuc Pattyn27-Mar-19 22:01 
QuestionOData InvalidOperationException. Bad Request - Error in query syntax Pin
Bastien Vandamme26-Mar-19 16:13
Bastien Vandamme26-Mar-19 16:13 
AnswerRe: OData InvalidOperationException. Bad Request - Error in query syntax Pin
Gerry Schmitz26-Mar-19 20:40
mveGerry Schmitz26-Mar-19 20:40 
GeneralRe: OData InvalidOperationException. Bad Request - Error in query syntax Pin
Eddy Vluggen27-Mar-19 3:35
professionalEddy Vluggen27-Mar-19 3:35 
GeneralRe: OData InvalidOperationException. Bad Request - Error in query syntax Pin
Pete O'Hanlon27-Mar-19 3:50
mvePete O'Hanlon27-Mar-19 3:50 

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.