Is it possible to get to the object that an ObjectDataSource creates when calling the select function? Not the result of the select function itself but the object that is creates from the parameter specified in TypeName.
I would like to call some other functions on that same instance after Select is called.
The other solution would be ...
Can someone tell me how to create tabs in the title bar area of a C# Winforms application? I'm looking for something similar to how Google Chrome looks. Each tab in Chrome is docked in the title bar of the main application window.
...
When using regasm to register an assembly for COM interop, one of things it does is create a HKEY_CLASSES_ROOT\CLSID{000…000} registry key with a default value of the ProgId of the COM class (See MSDN article Registering Assemblies with COM).
Is it possible to specify the string that regasm sets as the default value of the key? I.e. Giv...
I'm hoping someone can shed some light on what might be happening for me. Here's a summary of whats happening.
I have an application that does lots of "stuff". Its a pretty hefty application that does lots of number crunching using many threads. There are several timers that are used. Over a long period of time, the timers stop consi...
I'm not sure how to phrase this question, but considering the differences in .NET listed below, is there any comparison to Java and all it's deployments?
Platform
The same version of .NET can run on either a server or workstatation
Since the full version of .NET may be too much for some deployments, there is a client profile only vers...
As I was working on a project, I thought to myself "Hmmm, it would be really handy to log a message, and then throw an Exception with that same message". Since this would let me keep my "exceptions are for exceptional circumstances" principle, but still make sure we're recording detailed information about what went wrong in the system.
...
I've discovered that in Visual Studio 2010 Professional it is possible to refresh the database for a SQL Server Database Project (This feature is normally only available to the Premium and Ultimate versions). All you need to do is delete all the SQL files from the "Schema Objects" folder (but leave the folder structure intact) and the "...
Hello,
I recently faced an issue with a third-party DLL we use in one of our ASP.NET websites.
When I need to update it, I download a newer version from vendor's website and just replace the binary in the "bin" folder in the website folder. Immediately Visual Studio loses this library's namespace (says the method is not accessible due ...
I need to create an interface similar to this mock-up (sorry, drawing is not my thing). It was impossible for me to create " the component" in the second column, the one with the link-buttons and and the formatted text. Is there any way to do this or some third-party component to do something similar?
The mock-up
...
How do you filter on more than one extension?
I've tried:
FileInfo[] Files = dinfo.GetFiles("*.jpg;*.tiff;*.bmp");
FileInfo[] Files = dinfo.GetFiles("*.jpg,*.tiff,*.bmp");
...
Am creating a custom attribute for my properties and was wondering if anyone know how i could access the the value of the Attribute inside of the get accessor.
public class MyClass
{
[Guid("{2017ECDA-2B1B-45A9-A321-49EA70943F6D}")]
public string MyProperty
{
get { return "value loaded from guid"; }
}
}
...
I have a client and a server application which communicate over .NET 2.0 Remoting using binary serialization.
A small change has been made to one of the data transfer object's interface and the implementing class, well, an array of strings field was added.
If I to redeploy a new version of server application, will my old clients cont...
How can I tell whether the user launched my console application by double-clicking the EXE (or a shortcut), or whether they already had a command line window open and executed my console app within that session?
...
I had used SosAssistin past and it was awesome, now I i tried to download it again but it is no longer available :( any other tool which can visually show memory/threads/callstack?
...
I am using C# System.Diagnostics.TextWriterTraceListener to print trace. But the trace file becomes too large (hundreds of MBs).
I want to change the behavior of TextWriterTraceListener, that if the trace file becomes large, it writes output to another file.
For example, the original trace file is 'output1.txt', if it becomes larger th...
I have class representing a unit of measure with a Decimal as the numeric. Just to simplify things for this example, let's say I'm representing centimeters. I'd like to implement a ToString() method for this class. The thing is, if the numeric value is a whole number I'd like to just display the decimal as an integer. Otherwise, I'd ...
I am working on a line of business application for our company and I came across Prism. I have never worked with it before but the concepts it talks about sound a lot like what I did for the last project in Winforms. I had a ShellForm and then multiple User Controls.
Anyway, assuming I am not seriously misunderstanding what Prism is ...
My application has a standard top level window for the application. I need to force a repaint of the window chrome (otherwise known as the non-client area of the window). I do not care if the client area is also repainted or not but the chrome itself needs to be forced to repaint.
In particular I need this to work on Windows 7. Whether...
Given this XML, I want to retrieve a XmlNodeList of <member> nodes from <group> nodes whose <id> matches 'Tech'. The matching should be case-insensitive.
<groups>
<group>
<id>Tech</id>
<members>
<member>johndoe</member>
<member>janedoe</member>
<member>ro...
I like messagebox styles as display in
http://dotnetperls.com/messagebox-show
(white stripe in the middle, right-aligning for "OK").
However, when I'm trying to reproduce it (in standard C# Windows Form application) using the code like
MessageBox.Show("Dot Net Perls is awesome.");
I get messagebox with a different style, like in www....