I have a printdialog that I do the following with:
PrintDialog pd = new PrintDialog();
pd.AllowCurrentPage = true;
pd.UseEXDialog = true;
if (pd.ShowDialog() == DialogResult.OK) {
Once the user has hit OK, I need to see if the "Current Page" or the "All pages" button is highlighted so I can ... gosh ... print All pages or just the cur...
I'm using reporting services in local processing mode.
I'm setting the report data to a Dataset pulled from a sql database.
When I come to render the report I get two warnings:
The data set ‘PPA_Dev’ contains a definition for the Field ‘EMail’. This field is missing from the returned result set from the data source.
The data set ‘PPA...
I am aware that IIS is configure for multithreading as standard. I am having performance issues with my web servers hosting Sharepoint 2007.
So my question is;
Does Sharepoint 2007 use multithreading as standard out of the box solution, or is it only customisations using .net?
And does anyone know how I could limit users creating mu...
Hello there,
I am somewhat confused right now with a obviously pretty simple regex but it must be the lack of caffein or the weather today. Basically what I have is a string that can be something like 'sw' or 'ee' or 'n.a.'.
Now what I want & need is a regex.match that gives me back '' in case the provided string is 'n.a.', in all othe...
Hi Folks,
Could anyone please recommend some decent tutorials covering the basics of using DevExpress Winforms on C# .NET ?
I have googled a bit, but don't seem to find anything much.
It's really much appreciated.
...
I have a method that tries to create a Uri and then clean it up (removes fragments, excludes some domains and query string patterns, etc.). The method looks like this:
static public bool TryCreateCleanUri(Uri baseUri, string relstr, out Uri result)
{
if (!Uri.TryCreate(baseUri, relstr, out result))
{
return false;
}...
How does one obtain programmatically a reference to the object of which a FieldInfo object is a field?
For example, I'd like something like this:
myFieldInfo.GetOwner(); // returns the object of which myFieldObject is a field
...
What are some of the considerations needed when adding multilingual support for a .NET application designed to run in Windows CE (5)?
...
Is there a way to set a .NET application's TimeZone to a value other than the OS's TimeZone?
For instance, I am using my application on an OS with Central Standard Time set, and I would like the app to behave as if it were in Eastern Standard Time, without having to manually convert all DateTimes in my application using a method like ...
In my application, _collection is a List from which I need to remove all User objects which do not match the criteria.
However, the following code gets an invalid operation error in its second iteration since the _collection itself has been changed:
foreach (User user in _collection)
{
if (!user.IsApproved())
{
_collect...
What is considered better style for an event definition:
public event Action<object, double> OnNumberChanged;
or
public delegate void DNumberChanged(object sender, double number);
public event DNumberChanged OnNumberChanged;
The first takes less typing, but the delegate one gives names to the parameters. As I type this, I think nu...
Hello
Just been introduced to the ASP.NET Provider Model as a potential data-access technology. My own idea is to use LINQ repositories, but want to keep an open mind.
Any thoughts?
Thanks
...
With the String class, you can do:
string text = new string('x', 5);
//text is "xxxxx"
What's the shortest way to create a List< T > that is full of n elements which are all the same reference?
...
NOTE: This question is being reasked because I accidentally clicked Community Wiki in the previous one, and obviously that didn't provide enough incentive in the form of reputation for people to answer it. Here is a link to the old question, please do not duplicate those answers (they weren't exactly helpful anyway):
Link to Original Q...
I am using the CSD tool to create custom configuration sections in my asp.net 3.5 web application. I have no problem with setting up the section, elements, and collections. However, when I create new instances of these to represent what I need to persist to the file system, I cannot obtain the resultant XML. I'm hoping somebody may ha...
In .NET & C#, suppose ClassB has a field that is of type ClassA.
One can easily use method GetFields to list ClassB's fields.
However, I want to also list the fields of those ClassB fields that themselves have fields.
For example, ClassB's field x has fields b, s, and i. I'd like to (programmatically) list those fields (as suggested by ...
Is there any way (utilizing Reflection I hope) that I can make an instantiated object immutable along with all of its public properties? I have a class from someone else's codebase (no source available) that I need to utilize and I basically want an exception to be thrown if any piece of code anywhere tries to call a public setter within...
Is there a way in .net to do any of the following:
Check if the directory or file is accessible to the program so I don't have to have a try catch for every file/directory access attempt.
Ask the user for permission or admin access to only read the content of the particular file/dir.
I'm writing a multi-threaded duplicates and empties...
What are the various options to implement a pointer-to-member construct in C++/CLI?
I have implemented some 2D geometry algorithms which perform some actions based on X and Y co-ordinates. I find that I am frequently duplicating code once for the X-axis and once for the Y-axis. An example is finding the maximum and minimum bounds along ...
I have a ASP.NET MVC application that runs in both IIS 6 and 7. The application requires special right and needs to run in a application pool with a special users that are part of of some specific groups. The application also stores a a lot of settings in a couple of XML files. These files are stored under "Application Data" special fold...