Hi,
I am search a way to disable usage (**throw new exception **) of specific exception in our c# solution.
If can I configure c# compiler and show compiled error if somebody try to throw a specific exception or, maybe, can I call a utility and analyze compiled binaries and show message if the specific exception was raises in our soluti...
Is there anybody use the Guard Class provided by Microsoft in its open source project CompositeUI Application Block?
I noticed that, in the Guard class, there are only some methods to do the argument parameter validating. But as we all know that, in our self codes, there are may be many cases that need to validate some other variable (wh...
I have an ActiveX component with no user interface that was created with C++ / Visual Studio 6.
Now I need to create a .NET component reusing the code. How do I go for this? Can I just wrap or embed the ActiveX inside a .NET component?
...
So far I've always stored my unit test on my HDD, as I'm the only one in the company to actually care about them, but I'm thinking of cheking them in the repository in order to use them in my CI server, and look into code coverage, so I'm wondering... where do you find the corresponding projects to be better stored in a SVN repository? a...
I have this code behind:
CustomUserControl.xaml.cs
namespace MyProject
{
public partial class CustomUserControl<T> : UserControl
{
...
}
}
and this xaml:
CustomUserControl.xaml
<UserControl x:Class="MyProject.CustomUserControl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
x...
There are a lot of information on building DAL with ORM ((N)Hibernate, LINQ to SQL). But I can't find any recomendations on doing it with plain SQL or mixed (ORM + SQL) approach.
I wonder, are there any resources (sites, books) on this subject?
Besides common best practices I've got a few points of interest:
how organize storing ...
Hi,
I have an application which generates a .pdf file and open it using myProcess.start(pdfFileName); . This called is called in the event handler of a click event on a button in a Winfom app.
Everything works fine, except that if I quit (alt-f4 or using the top-right cross) my application after Acrobat Reader have been started, my app...
i have the current scenario:
my app generates for each user an
valid system email address of form
lets say: [email protected]
when an user has a problem/question he can send an
email from any address to that
predefined system email address
the app should receive the emails sent by the user and process them(check for spam, insert in db)
...
How do i install the .net micro framework on an arm board?
...
I'm attempting to work out whether a hardware RNG is actually any safer than RNGCryptoServiceProvider.
Given that randomness from RNGCryptoServiceProvider is provided using various system and user data such as the process ID, thread ID, system clock, system time, system counter, memory status, free disk clusters, and hashed user environ...
how to calculate the other country time. using my local machine time in c#?
Example:
My system having India time and my array contains all the countries GMT time.
How to do the calculation to get the other country time?
if my time is 5.00 P.M if the country is Pakistan it should show 4.30 p.m
...
Raven.Server started and binded to port 8022. I initialize DataStore in the following way:
var store = new DocumentStore() { Url = "http://localhost:8022" };
store.Initialize();
Then i'm making such query:
using (var session = store.OpenSession())
{
Stopwatch watch = new Stopwatch();
...
How to open a popup page that has parameters(calculated in button event) in button event
ButtonClick()
{
string id=TextBox.Text;
/////HERE i want to open a popup as "Index.aspx?ID=id" ///////
}
PLESE RESPOND SOON
...
Hello,
why do i have to increase MeasureString() result width by 21%
size.Width = size.Width * 1.21f;
to evade Word Wrap in DrawString()?
I need a solution to get the exact result.
Same font, same stringformat, same text used in both functions.
From answer by OP:
SizeF size = graphics.MeasureString(element.Currency, Currencyfont...
I am trying to search 33 .dll to find references for a method, It takes more than 10 minutes to through all the dlls and find references.
Is there a way to speed up things.
each of these dll's approximately has 450 classes and each of this class has approximately 200 methods each
Step that I follow:
`
assemblyName = System.IO.Path.Ge...
Simple curiosity here, tinged with some practical concerns because I get caught out by this occasionally.
How come Color.DarkGray is lighter than Color.Gray?
...
Why the control.OnHandleDestroyed() is not called when the parent TabPage is removed using the tabControl1.RemoveAt() call?
Thanks.
...
In a Winform application,I want to use a single backgroundworker (or may be one for each form) to do different tasks on different events. For eg: Search, Loading Data in grid, opening new forms, sending emails, File transfer etc.
How can i manage all this in backgroundWorker_DoWork() and backgroundWorker_RunWorkerCompleted() events?
...
I use ADO.NET Entity Framework with several data access layer methods that return the same domain entity. Let it be:
class PersonEntity {
public int Id { get; set; }
public string Name { get; set; }
}
and methods return Person entity by different criteria:
PersonEntity GetById(int id) {
return db.Person.FirstOrDefault(x => new ...
I'm using the version 0.3.1 of Cuke4Nuke and I'm having problems defining my feature-files with an other language than English. Googling didn't bring any solutions, so my question is simple: Does Cuke4Nuke support defining the features in other languages than English?
I've tried to use the examples from the GitHub's Cucumber repository....