Click here to Skip to main content
15,886,919 members
Home / Discussions / C#
   

C#

 
GeneralRe: User Control Pin
User 62554645-Jun-09 19:35
User 62554645-Jun-09 19:35 
Questionnon selectable cells/columns in datagridview Pin
Otex4-Jun-09 21:01
Otex4-Jun-09 21:01 
AnswerRe: non selectable cells/columns in datagridview Pin
dan!sh 4-Jun-09 23:12
professional dan!sh 4-Jun-09 23:12 
QuestiondataGrid SelectedIndexChanged Method not available in Compact Framework Pin
Paulo Mitchell4-Jun-09 20:27
Paulo Mitchell4-Jun-09 20:27 
AnswerRe: dataGrid SelectedIndexChanged Method not available in Compact Framework Pin
MickCurley5-Jun-09 0:16
MickCurley5-Jun-09 0:16 
GeneralRe: dataGrid SelectedIndexChanged Method not available in Compact Framework Pin
Paulo Mitchell5-Jun-09 3:18
Paulo Mitchell5-Jun-09 3:18 
GeneralRe: dataGrid SelectedIndexChanged Method not available in Compact Framework Pin
MickCurley5-Jun-09 4:05
MickCurley5-Jun-09 4:05 
QuestionBHO not gets injected? Pin
svt gdwl4-Jun-09 20:19
svt gdwl4-Jun-09 20:19 
I had a bho application developed in Vs2005 c#, I had made an msi setup, when I was trying to install

the setup, it is successfully getting installed, but the dll does not gets injected in the registry.
Why?
The registry path is "Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Browser Helper Objects"

But this is succesfully injected in other Pc's
The .Net framework2.0 is present in all PC's

Code for registering and unregistering:

public static string BHOKEYNAME = "Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Browser

Helper Objects";

[ComRegisterFunction]
public static void RegisterBHO(Type type)
{
RegistryKey key = Registry.LocalMachine.OpenSubKey(BHOKEYNAME, true);
if (key == null)
{
key = Registry.LocalMachine.CreateSubKey(BHOKEYNAME);
}

string guidString = type.GUID.ToString("B");
RegistryKey bhoKey = key.OpenSubKey(guidString, true);

if (bhoKey == null)
{
bhoKey = key.CreateSubKey(guidString);
}

// NoExplorer:dword = 1 prevents the BHO to be loaded by Explorer
string _name = "NoExplorer";
object _value = (object)1;
bhoKey.SetValue(_name, _value);
key.Close();
bhoKey.Close();
}

[ComUnregisterFunction]
public static void UnregisterBHO(Type type)
{
RegistryKey registryKey = Registry.LocalMachine.OpenSubKey(BHOKEYNAME, true);
string guid = type.GUID.ToString("B");

if (registryKey != null)
registryKey.DeleteSubKey(guid, false);
}


In some PC's the dll gets registered and in some PC's dll doe not gets registered
AnswerThis is the error occured during installation Pin
svt gdwl4-Jun-09 21:14
svt gdwl4-Jun-09 21:14 
QuestionEquivalent C# 2.0 code Pin
Ankit Rajpoot4-Jun-09 18:56
Ankit Rajpoot4-Jun-09 18:56 
AnswerRe: Equivalent C# 2.0 code Pin
Christian Graus4-Jun-09 21:40
protectorChristian Graus4-Jun-09 21:40 
QuestionHow to type special character such as √ ,Π in C#? Pin
tannghia4-Jun-09 17:19
tannghia4-Jun-09 17:19 
AnswerRe: How to type special character such as √ ,Π in C#? Pin
Christian Graus4-Jun-09 17:32
protectorChristian Graus4-Jun-09 17:32 
QuestionAutoscroll DataGridview Control Pin
Member 20251764-Jun-09 16:07
Member 20251764-Jun-09 16:07 
AnswerRe: Autoscroll DataGridview Control Pin
Niladri_Biswas4-Jun-09 16:25
Niladri_Biswas4-Jun-09 16:25 
GeneralRe: Autoscroll DataGridview Control Pin
Christian Graus4-Jun-09 16:26
protectorChristian Graus4-Jun-09 16:26 
AnswerRe: Autoscroll DataGridview Control Pin
Christian Graus4-Jun-09 16:25
protectorChristian Graus4-Jun-09 16:25 
QuestionHow to copy sysDiagrams when copying a database Pin
fiaolle4-Jun-09 8:51
fiaolle4-Jun-09 8:51 
QuestionIs it possible to use VB control in C#? Pin
Seraph_summer4-Jun-09 8:49
Seraph_summer4-Jun-09 8:49 
AnswerRe: Is it possible to use VB control in C#? Pin
DaveyM694-Jun-09 8:53
professionalDaveyM694-Jun-09 8:53 
AnswerRe: Is it possible to use VB control in C#? Pin
0x3c04-Jun-09 9:36
0x3c04-Jun-09 9:36 
GeneralRe: Is it possible to use VB control in C#? Pin
Seraph_summer4-Jun-09 10:08
Seraph_summer4-Jun-09 10:08 
GeneralRe: Is it possible to use VB control in C#? Pin
Dave Kreskowiak4-Jun-09 10:16
mveDave Kreskowiak4-Jun-09 10:16 
GeneralRe: Is it possible to use VB control in C#? Pin
0x3c04-Jun-09 10:24
0x3c04-Jun-09 10:24 
GeneralRe: Is it possible to use VB control in C#? Pin
harold aptroot4-Jun-09 10:45
harold aptroot4-Jun-09 10:45 

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.