Is it possible to change a setting somewhere in Visual Studio (2008 or 2010, in my case) to change the default display of a DateTime to 24 hour in the autos, locals, and watch windows?
For example, I have a DateTime corresponding to July 17, 2010 at 1:00 PM. Visual Studio displays this in the watch window as #7/17/2010 1:00:00PM#. I wou...
I have to access the value that underlies the active cell of a DataGrid (The cell with the black border around it).
Luckily DataGrid has a lot of properties such as CurrentCell, CurrentItem SelectedCells SelectedItem and SelectedItems seeming to provide me with the data I want.
However I have not figured out how to access the cell in ...
Question:
On
http://www.bbc.co.uk/news/10150007
one can see a map of european countries colored according to state debt/deficit.
Now I would have already found it useful several times if I was able to do such a thing myself, for example to visualize regional sales data.
Does anybody know:
Is there any (OpenSource) tool with which I ca...
I would like to create a custom task that is called in a fashion such as this:
<Target Name="Remap">
<ItemGroup>
<Entry Key="key1" Value="value1" />
<Entry Key="key2" Value="value2" />
</ItemGroup>
<CustomTask
Entries="@(Entry)"
/>
</Target>
Or this:
<Target Name="Remap">
<Item...
I'm making an overloaded TableLayoutPanel which draws some fancy borders, but for some reason the call to Graphics::DrawImage isn't working as expected. It seems to fade out my 1x10 pixel source image when I stretch it:
This is the function which does the rendering:
void GTableLayoutPanel::RenderSides(Graphics^ g, array<Drawing::Imag...
Is there any free, small, fast, thing for compiling C# .net 3.5 console apps on Windows? I want something to write c# windows consol apps using ffmpeg (using tao framework) on my home eee pc; can anyone help me with it?
...
Is out there any code example\tutorial on encoding video\audio using .net Tao.FFmpeg?
...
I have WCF service that is IIS-hosted and I have to send binary data (memory stream that is created by service) in intranet environment.
I use byte[] array in service contract method at present with httpBinding. Though array is not too big (500 KB typically) I am worried about unicode overhead (asmx soap web-services had one, but I'm ne...
Hi,
Is HttpUrlConnection thread safe? I.e. if I have an HttpConnection instance connected to a server and this instance is used by different threads (e.g.try to send a POST concurrently) how will this situation be handled by HttpUrlConnection? a) Will they send the POSTs serially, or b) the first thread sends the POST, gets the respons...
I've been playing around trying to thoroughly understand Reference and Value types. Just when I thought I had it, I came across this scenario...
I created a class that would contain a single object.
class Container
{
public object A {get; set;}
}
When I create an instance of this Container class (a) I am creating instance of a re...
I want to write a SQL migration tool. This tool must:
merge new scripts in a folder,
validate the merging of those scripts,
run those scripts against a database.
if a validation error occurred, then highlight the invalid rows.
if the script was successful deployed, I want to save this information in a database with the version and ot...
What is the difference between:
public class Person
{
public string Name { get; set; }
public Person(string name)
{
this.Name = name;
}
}
public class Person
{
public string Name { get; set; }
public Person(string name)
{
Name = name;
}
}
Don't they both do the exact same thing?
Th...
Dear skilled,
I have a class with a field of Dictionary<object, IntPtr>.
I allocate the memory dynamically, when user calls some method of my class:
IntPtr somePointer = Marshal.AllocHGlobal(/*some desired size*/);
Then I'm going to use that memory in another thread. Actually, after doing some job that thread frees allocated memory ...
In my Entity Framework v4 project, I have a table with two columns that are computed by the database (via triggers, etc.). In order to get EF to properly insert records into the table, I have to manually mark the columns as "Computed" in the EF Storage Model (the StoreGeneratedPattern attribute), which is not supported by the designer -...
Is there any solution for this error on Windows 7 64 bit (because I think it's the main cause) in .NET application? (ASP.MVC2 with EF4)
I've:
Windows 7 64 bit
Oracle Express 10g (i've tried to install Client 11g, but then, during installation i got another error - Net Configuration Assist~ Error - something about oraclj11 and java)
...
I'm looking for the least painful way (that is, with the least code) to implement DragAcceptFiles on the main window of a C# project.
I've been searching on the net, and it looks like I'll have to DllImport DragAcceptFiles, and override WndProc to catch and handle WM_DROPFILES messages.
Doesn't the .net-framework provide this somewhere...
Is there a difference from POV Performance / MemoryUsage initializing a object before, or after a return condition, like in the "sample":
Function Foo() as ComplexObject
' is there a difference ??? '
' A '
' Dim obj as New ComplexObject() '
If condition Then Return Nothing
' is there a difference ??? '
...
I want to make an application that is similar to the World of warcraft launcher.
My main concern is to not have a square windows form with the typical close buttons, but a custom shape. How can I achieve this with C# and the .NET framework?
...
I am hoping there is a better way to do this. Do I really have to wrap each method of my wcf service into an interface in order to use it?
I don't think my fellow developers are going to buy into this because of the amount of time it takes... there must be a better way!
...
Hello everybody
1) const int[] array={1,2,3,4}; //this gives below error
"Error 1 'ConsoleApplication1.Main.array' is of type 'int[]'.
A const field of a reference type other than string can only be initialized with null"
In my opinion according to error messeagge, it is not meaningfull to use const for reference types.Am i wron...