I would like to use NGEN.EXE in order to generate native images of my assemblies before I create my installer. I am hoping this will keep my binaries Reflector-proof. Am I correct about this?
I have just come to understand that all native images are now being stored in the Native Image Cache. Is there a way to get native binaries which ...
In a previous question about formatting a double[][] to CSV format, Marc Gravell said that using StringBuilder would be faster than String.Join. Is this true?
...
I am searching a way to print data in tablesw with text and images, in a WYSIWYG, nice and good looking way.
So far I have: header + images + web-like decorations + arabic labels & values + data in dataset (xml)
+ I need to give a way for buisness analysts to change the output layout.
Crystal Report does all of this.
But I don't like C...
How can I make a pdf from a crystal report in C# code (I don't want to see them)?
...
I'm using a Dictionary<TKey, TValue> and I'm getting some odd, though somewhat understandable behaviour in my tests.
No matter the order I add entries to the dictionary when I call Dictionary.Keys the keys are returned in the order specified by the IComparable<T> implementation for the key's type.
This is good for me as I want to get t...
class Program
{
static void Main(string[] args)
{
mylist myitems1 = new mylist("Yusuf","Karatoprak");
SelectedItemsList slist = new SelectedItemsList();
slist.Items.Add(myitems1);
foreach( object o in slist.Items)
Console.Write(o.ToString()+"\n");
...
Hey all. I have a ASP.NET page that lists a bunch of user accounts.
If I click on a user, an event called LinkChosen is fired, which opens the account view page for that user.
I can also search for users, which narrows down the list. This event is called btnSearch_click
If I click on a user, LinkChosen() is called, and I'm taken to a ...
Now that we have tremendous functionality thanks to LINQ, I'm wondering which syntax is preferable. For example, I found the following method (just thought it was a good example):
foreach (FixtureImageServicesData image in _fixture.Images)
{
if (image.Filename != _selectedFixtureImage.Filename && image.IsPrimary)
{
image...
In my current project I'm using two libraries where one is using log4net and the other NLog for its logging. I'm personally prefer NLog so it is used in my application as well.
I'm not knowing much about log4net so I'm asking what would be the best way to programmatically forward all the messages from log4net to NLog.
There is a post a...
I'm developing WPF SW, and I see the 3D effect is very slow if we did it in XAML file, I want to know if there is a book which introduce how to do 3D effect in WPF? Thanks in advace.
...
The MdiLayout enumeration has an value called ArrangeIcons. If this is sent to the LayoutMdi method of a MDI parent form then 'All MDI child icons are arranged within the client region of the MDI parent form.'
When I tried putting together a sample MDI form and passing this value into LayoutMdi nothing appeared to happen.
What is an MD...
My application reads an Excel file using VSTO and adds read data to a StringDictionary. It adds only data that is a number with few digits (1000 1000,2 1000,34 - comma is a delimiter in Russian standards).
What is better to check current string being appropriate number?
object data, string key; // data had read
try
{
Convert.ToDoubl...
I need to find the control under the mouse, within an event of another control. I could start with GetTopLevel and iterate down using GetChildAtPoint, but is there a quicker way?
...
I am trying to replce the follwing code that works fine
TcpClient oC = new TcpClient(ip, port);
oC = new TcpClient(ip, port);
StreamReader messageReader;
try {
messageReader = new StreamReader(oC.GetStream(), Encoding.ASCII);
reply = messageReader.ReadLine();
}
with
try {
using (messageReader = new StreamReader(oC.GetStream...
Visual Studio (2005 Professional), Windows Forms application : I've got a form which contains 8 tabs, each of them containing a few dozen of controls. Each of them is bound to an element of a typed dataset. This great except for the fact that data binding errors can only be found at runtime, and are often silent.
Typical case : I have t...
I'm trying to use a loading overlay on top of a Windows form that adds a 50% opaque layer on top of a windows form with a loading GIF, while it does what it needs to do in a background thread. The overlay is a windows form that I'm drawing in the onPaint event.
The loading overlay works fine on multiple different form loads, but fails ...
What is the best way to troubleshoot IPC?
Are there any tools/tricks to determine problems (without requesting the source code)?
I have two, third party components. The IPC server config and client config seems correct. Yet the two components don't want to communicate. One component throwing a null object exception, which I believe is...
I have a linq object that I'd like to "retire" when certain aspects are changed and the Save() method is called. The database does this by having a Terminated column which when set causes the object to be ignored on subsequent queries. I'd like to do this transparently so for example:
DataContext db = new DataContext();
Foo bar = (from ...
I have a large DataGridView control that has several cells most of which contain a button. How can I change the color of those buttons?
This changes the "outline" of the button but not the button itself.
row.Cells[2].Style.BackColor = System.Drawing.Color.Red;
This doesn't seem to change anything that's visible:
row.Cells[2].Style....
I have two questions:
Can I use Visual Studio Content Installer for Visual Studio 2008 to install .NET Compact Framework custom controls in Toolbox?
If answer to question 1 is "Yes", what will be FileContentType value in .vscontent file for control.asmmeta.dll file and control.designer.dll? Do I have to be careful about any other infor...