I have a pretty simple client-server app that I am using to separate two components that can't live together in the same process. When developing them (the server is an exe, the client is a library), all my unit tests are happy as pigs in manure. When I move on to re-using the library elsewhere, I get the following exception:
System.Run...
The .Net framework has an Array.Sort overload that allows one to specify the starting and ending indicies for the sort to act upon. However these parameters are only 32 bit. So I don't see a way to sort a part of a large array when the indicies that describe the sort range can only be specified using a 64-bit number. I suppose I could...
I have a VB.NET Windows Service that I wrote and it works fine. In VB.NET there is an overrideable method called OnStop() that gets called when the service is stopped. However, it appears it only gets stopped if someone actually stops the service from the Services MMC Console Window.
My question is, is there an event or an overridable m...
In MSBuild you can override a <Target /> from another file in your own. For example the AfterBuild target included in Microsoft.Common.targets file simply by defining your own Target with the same name:
<Target Name="AfterBuild">
<!-- Do something different -->
</TargetName>
You'll see a note like this:
Overriding target "AfterBu...
Duplicate:
Continuous Integration
Cruise Control .NET alternatives?
I'm planning to start Continuous Integration where I work. I used to use TFS in my previous workplace and before that CruiseControl.Net and before that we wrote our own CI server.
I was wondering what tools are other people are using and why?
I'm mainl...
I have a control library in my application that's a bit big for the type of application I'm developing. The library is more than 2Mb and I barely use it's functionality, I would say I use like 5% to 10% of all it's functionality.
Is there anyway to remove code that my application never uses from the library?
P.S: The library is not dev...
I am currenting manintaining a windows service that programmatcially generates a HttpWebRequest and HttpWebResponse objects for retrieving the response message of the request.
The UserAgent property of the HttpWebRequest was hard coded to use IE 6 as the browser agent. Is the a way to programmatcially detect which version of IE is inst...
Hello,
I am attempting to iterate through a ControlCollection in the CreatedUser event of my CreateUserWizardStep. I have a ContentTemplate that contains a table full of checkboxes that I am using to gather a user's availability during the week. For the sake of brevity I will paste my code on pastebin.
Here is a link to the .aspx page....
Why does
properties[5].PropertyType.GetGenericTypeDefinition() ==
Type.GetType("System.Nullable`1")
equals to true while
properties[5].PropertyType.GetGenericTypeDefinition() ==
Type.GetType("System.Nullable")
equals to false?
Properties[5] being a public Nullable<DateTime> field.
What does the `1 after the System.Nullabl...
I have a ListView with the Activation property with HotTracking. There appears to be about a 2 second delay between when the user clicks the item and the event fires. Is there a way to get the event to fire immediately upon the user click?
...
I've got a generic Dictionary that holds a bunch of data. I'd like to start removing items (I know how to determine which ones) when the size of the Dictionary starts taking up too much memory.
What's the best way for my program to monitor the RAM used by this Dictionary?
Each item in the Dictionary is a variable size.
...
I read this story on slashdot today where they announce a new parallel programming language by Microsoft.
What is this new programming language about? It says Parallel Programming. But is it going to be an alternative/replacement for MPI, PVM, OpenMP and similar parallel libraries/frameworks?
Any thoughts?
...
Is it a replacement for if, then blocks? I have seen a lot of code where they are used like that.
...
Hi there,
I'm developing an Excel 2003 add-on and trying to make my own menu like so:
Application.ScreenUpdating = true;
Application.MenuBars.Add("MyMenu");
Application.MenuBars["MyMenu"].Menus.Add("MyMenuItem1", null, null);
It seems to run just fine but I can't see my menu at all.
any ideas why?
...
Hi to all,
I just using regular expression to remove comment tag in html file
(Pattern is: "<!--(.|\s)*?--!?>")
but some site not using standard html tag,
sample:
<script language="javascript">
<!--
js code ...
</script>
in this case, my regular expression hang, and also try-catch does not catch error.
Are you have an...
Hi,
I have a function that search for a keyword and then return DataTable. I want to check if there rows inside because sometimes there's no query found.
'which one shoud I use ?
If dtDataTable Is Nothing Then
'some code
lbl_count.Text = "Found 0 result"
End If
If dtDataTable.Rows.Count > 0 Then
...
I am using .NET and am looking for a way to convert just about any document into a preview image. I say any, but the priorities are Office Documents, PDF, and most image files.
I would assume that I can somehow build upon the Windows Explorer's ability to preview documents... but I do not know how.
What would you do?
...
Will static members be ever collected by the garbage collector?
...
Title says it all:
If I am creating a custom ASP.NET control (or, I suppose, a Windows Forms control), how do I specify one or more Smart Tags for it, and the behavior that goes with it? I want to provide some rich designer support.
EDIT: Prefer C# code, but not necessary.
...
I am trying to load an XML file into a tree view control, edit it and save it back in a different XML format.
<MyConfig>
<description>
<![CDATA[Add All config data]]>
</description>
<group name="Server">
<description>
<![CDATA[Server info]]>
</description>
<parameter name="Host" type="string">
<descript...