I have a usercontrol containing a textbox which i load dynamically onto a form.
At the form's start up i initiate the usercontrol and set it's visibility tag to 'false'.
I want to trigger a method automatically when the usercontrol becomes visible, since this method writes some output to the textbox this method should only start executin...
I have a WCF service that is hosted in IIS on a public web server, and needs to be discoverable.
Thing is, when I browse http://myserver.mydomain/myfolder/myService.svc, the page that is displayed shows the actual machine name instead of the URL I provided, e.g. http://myRealServer.myRealDomain/myFolder/myService.svc?wsdl as the link to...
Hi
How do you draw a string that is supposed to be on top of everything else?
Right now in my panel i have some user controls in Panel1.Controls. So i added this to the Paint method:
Graphics g = Panel1.CreateGraphics();
g.DrawString("BUSTED", new Font("Arial", 20f), new SolidBrush(Color.Black), new PointF(50, 50));
The problem is ...
I am searching a moderate number (~500) of folders for a large number (~200,000) of files from a .NET application.
I hoped to use DirectoryInfo.GetFiles, passing in SearchOption.AllDirectories. However this approach seems to be a lot slower than writing my own code to iterate through the directories and do GetFiles just passing in a sea...
I seem to have misunderstanding here.
I need to implement public/private key encryption (PKCS) with digital signing. I've found the following classes in .Net framework.
RSACryptoServiceProvider
DSACryptoServiceProvider
I want to encrypt files then digitally sign them, and at the receiver verify the signature and then decrypt.
The...
Is there a way I can get the VM platform version by running a program on the guest system?
Is there any C# API available? What is the easiest way to do this task?
...
I have a certificate installed in my test environment. The subject of this is delimited by commas e.g. S80, My Company Name, Country
The code below worked when the subject name was just S80 but now there are more details in the subject it no longer works.
<serviceCredentials>
<serviceCertificate findValue="S80, My Company N...
Google has this fine new Google Maps API v3 which is a "Javascript API".
Is there any possibility to invoke this API from a Windows Forms application written in Visual C# .net 3.5?
EDIT:
The goal is to convert addresses to lat/long format using the Google Maps Geocoder.
EDIT 2:
I'd like to use v3 of the API as it doesn't require an AP...
I have a server certificate working with my WCF service.
However when I run the webservice I seem to have a permissions problem.
[ArgumentException: The certificate 'CN=S80' must have a private key that is capable of key exchange. The process must have access rights for the private key.]
Any idea?
...
I need to develop an application that can search through a book and list out all the pages and lines that contain a given keyword.
For books that are split up in some other way, such as a bible which is split up by chapter and verse; they would be able to search for all verses that contain a certain keyword. Or alternatively, search wi...
What are Encryption techniques available with .NET (using C#). I have a numeric value with me which I want to encrypt to a string representation. Which one has decrypting support ?
...
How can I check if the current user is using roaming profile?
Is there any .net framework library that can help?
...
I'm experiencing big problems using ExcelPackage, because sometimes the formulas are not updated (even if I remove the value).
I've tried using ExcelInterop to save xlsx as xls, thinking that this could resolve the issue, but it didn't.
The way I've found to resolve it is by pressing CTRL + ALT + F9. The user will not like doing it eve...
I'm having a problem regarding namespaces used by my service references. I have a number of WCF services, say with the namespace MyCompany.Services.MyProduct (the actual namespaces are longer).
As part of the product, I'm also providing a sample C# .NET website. This web application uses the namespace MyCompany.MyProduct.
During initial...
What is the best way to verify that there are no duplicate SPNs (Service Principal Names) set?
We are given the SPN prefix, say, MyService\Myhost
Any .net framework library class I can use?
...
I'm using the COM library to save in C# a xlsx file into an Excel 8 format.
The weird thing going on here is a compatibility verification popup, pausing the savingAs process and pointing out to some compatibility issues. These are not important errors, and the process becomes user-dependent because of this popup. Since I want to do it a...
Does anyone have anything against using this vs. creating your own proxy classes?
Also, does anyone have a good overview of using Web Service Reference? I searched the net but couldn't find any good articles.
...
I am writing a .net winforms application. I want to be able to do the following...
Enumerate all of the hard drives on a system.
Furthermore I would love to be able to determine which of the drives is Fixed and Which is removable.
Finally, of the removable drives, I would love to be able to determine which of them is a flash (SS...
Hello,
I was about to ask this question...but since it has already asked I will ask a different one.
I have never created a production website and I am thinking it is time for me to learn how. (I have simple one I can do for a customer.)
I personally LOVE the Convention Over Configuration paradigm at the heart of MVC (and I perso...
How to get the delegation settings for a given user account programmatically?
Any .net framework library can help here?
...