Click here to Skip to main content
15,905,563 members
Home / Discussions / C#
   

C#

 
QuestionRe: Visual Studio Drag-and-Drop features, how???? Pin
Groulien3-Mar-11 23:33
Groulien3-Mar-11 23:33 
AnswerRe: Visual Studio Drag-and-Drop features, how???? Pin
Pravin Patil, Mumbai4-Mar-11 0:03
Pravin Patil, Mumbai4-Mar-11 0:03 
AnswerRe: Visual Studio Drag-and-Drop features, how???? Pin
Pravin Patil, Mumbai4-Mar-11 0:03
Pravin Patil, Mumbai4-Mar-11 0:03 
AnswerRe: Visual Studio Drag-and-Drop features, how???? Pin
Henry Minute4-Mar-11 5:43
Henry Minute4-Mar-11 5:43 
AnswerRe: Visual Studio Drag-and-Drop features, how???? Pin
Ravi Bhavnani5-Mar-11 13:52
professionalRavi Bhavnani5-Mar-11 13:52 
AnswerRe: Visual Studio Drag-and-Drop features, how???? Pin
andres_hs8-Mar-11 4:37
andres_hs8-Mar-11 4:37 
QuestionWCF resricts on MaxArrayLength Pin
Amit Sk Sharma3-Mar-11 21:14
Amit Sk Sharma3-Mar-11 21:14 
AnswerRe: WCF resricts on MaxArrayLength Pin
Pete O'Hanlon3-Mar-11 21:38
mvePete O'Hanlon3-Mar-11 21:38 
GeneralRe: WCF resricts on MaxArrayLength Pin
Amit Sk Sharma3-Mar-11 21:51
Amit Sk Sharma3-Mar-11 21:51 
QuestionUpdate data through gridview Pin
Neha_Gupta3-Mar-11 20:08
Neha_Gupta3-Mar-11 20:08 
AnswerRe: Update data through gridview Pin
Pravin Patil, Mumbai4-Mar-11 0:17
Pravin Patil, Mumbai4-Mar-11 0:17 
QuestionHow to open a PDF in VS2005 Pin
Exelioindia3-Mar-11 19:40
Exelioindia3-Mar-11 19:40 
AnswerRe: How to open a PDF in VS2005 Pin
Bernhard Hiller3-Mar-11 20:37
Bernhard Hiller3-Mar-11 20:37 
GeneralRe: How to open a PDF in VS2005 Pin
Exelioindia3-Mar-11 21:37
Exelioindia3-Mar-11 21:37 
GeneralRe: How to open a PDF in VS2005 Pin
Pete O'Hanlon3-Mar-11 22:31
mvePete O'Hanlon3-Mar-11 22:31 
GeneralRe: How to open a PDF in VS2005 Pin
Bernhard Hiller4-Mar-11 4:32
Bernhard Hiller4-Mar-11 4:32 
QuestionVisua studio 2008 Pin
anishkannan3-Mar-11 18:51
anishkannan3-Mar-11 18:51 
AnswerRe: Visua studio 2008 Pin
_AnsHUMAN_ 3-Mar-11 19:22
_AnsHUMAN_ 3-Mar-11 19:22 
QuestionDelete certificates programmatically Pin
NarVish3-Mar-11 18:34
NarVish3-Mar-11 18:34 
I created certificate by executing a batch file, which has the below commands.

cd C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin
makecert -ss BBBC

On executing above batch file, its creating "BBBC" folder. It contains a default certificate. I would like to remove the default one by below code. But, I'm not getting any list in "fcollection" variable. Please correct the code to find default certificate in BBBC and remove the same.

X509Store store = new X509Store(StoreName.AuthRoot, StoreLocation.CurrentUser); 
store.Open(OpenFlags.ReadWrite | OpenFlags.MaxAllowed); 
X509Certificate2Collection collection = (X509Certificate2Collection)store.Certificates; 
X509Certificate2Collection fcollection = (X509Certificate2Collection)collection.Find(X509FindType.FindBySubjectName, "localhost", false); 
Console.WriteLine("Number of certificates: {0}{1}", fcollection.Count, Environment.NewLine); 
foreach (X509Certificate2 x509 in fcollection) 
{ 
     byte[] rawdata = x509.RawData; 
           Console.WriteLine("Friendly Name: {0}{1}", x509.FriendlyName, Environment.NewLine); 
     Console.WriteLine("Simple Name: {0}{1}", x509.GetNameInfo(X509NameType.SimpleName, true), Environment.NewLine); 
                store.Remove(x509); 
     Console.WriteLine("X509Certificate2 for localhost removed."); 
} 
store.Close();

AnswerRe: Delete certificates programmatically Pin
NarVish3-Mar-11 18:45
NarVish3-Mar-11 18:45 
QuestionAdding your own toolbox controls to the IDE and linking up their events... Pin
code-frog3-Mar-11 12:25
professionalcode-frog3-Mar-11 12:25 
AnswerRe: Adding your own toolbox controls to the IDE and linking up their events... Pin
N a v a n e e t h3-Mar-11 13:54
N a v a n e e t h3-Mar-11 13:54 
QuestionAdding a socket to application Pin
Bob Pawley3-Mar-11 12:14
Bob Pawley3-Mar-11 12:14 
AnswerRe: Adding a socket to application Pin
N a v a n e e t h3-Mar-11 13:44
N a v a n e e t h3-Mar-11 13:44 
AnswerRe: Adding a socket to application Pin
Groulien3-Mar-11 23:43
Groulien3-Mar-11 23:43 

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.