Whenever a dialog appears and there is no attached handler, watin auto closes the dialog. This is helpful when you don't want to add code for different/several simple confirmations the application might have.
The issue is that using this default behavior can cause simple issues to go unnoticed, like a confirmation dialog appearing in t...
I was having this problem in IE7 where the saturdays appear to be missing from the calendar. It displays fine in Firefox and a few people have suggested that it could be my other stylesheets messing it up so i am now using a custom calendar CSS theme and i'm still having the same problem.
Any ideas? is there a known bug with the ajax to...
Hello, Is there a .NET obfuscation tool present for Linux? Or is there a class which can provide me a functionality of writing a obfuscation tool for byte code?
...
Name is not compliant? Layout? What?
Do you have ideas what exactly could generate this message? Any ideas are welcome. I have bunch of such warning.
Actually, I am open to remove CLSCompliant(true), but I want to know root cause.
...
Hi, This is a doubt regading the usage of cruise control.NET which is invoking my IDE for execution.After the execution,i am unable to getthe data present in my IDE to some text file.Is there any way that i can do it so that if i could get the text file or log files,i could then integrate with my ccnet and in turn notify the developers r...
What is the difference between
public function Foo(ref Bar bar)
{
bar.Prop = 1;
}
public function Foo(Bar bar)
{
bar.Prop = 1;
}
essentially what is the point of "ref". isn't an object always by reference?
...
Does anybody have a suggestion on how to create a gui that can change size with the size of the window. Similar to how Media Center works. If media center is maximized the fonts etc increase in size. So the gui is always "uniform"?
...
I have the impression, that in the .NET-world, there is no real need for a Maven-like tool.
I am aware that there is Byldan and NMaven (is it still alive?), but I have not yet seen a real-world project that uses them.
Also in most .NET projects I have worked on, there never was voiced an need for a Maven-like tool. The problems Maven m...
In a web based .Net solution which uses compiled help documentation made with Sandcastle we get an error when accessing the help documentation. The web applikation is run on https wich creates a problem since the help documents link to a css file through ms-help:// and according to the webapplication this is not a secure location.
In th...
Hi,
I would like to create a shortcut on the desktop using VBScript code. I have a virtual Drive in my computer. (Virtual Drive is like G drive) I want this shortcut to explore that Drive directly. For this I find out that Shortcut with following string as a TargetPath would work for me:
C:\WINDOWS\explorer.exe /n,::{20D04FE0-3AEA-1069...
I have the following object in App.xaml
<Application.Resources>
<ResourceDictionary>
<GridView x:Key="myGridView" x:Shared="false">
<GridViewColumn Header="Created" DisplayMemberBinding="{Binding Path=Created}"/>
... more code ...
And I use this grid view in multiple places. Example:
...
Hi all.. I have a question.
I am having problems updating data in an SQL database with Windows Forms (Visual Studio project).
Here is what I do:
I get user information in text boxes.
I edit some of them.
I do 1 back n get to this form again. The info is updated.
When I quit and login again, it shows me the old data!
It seems as ...
I am seeing simple examples regarding custom configuration in .NET. My case is a bit more complex, with nested nodes.
I'd like to be able to read this from the configuration file:
<environments>
<environment name="live" url="http://www.live.com">
<server name="a" IP="192.168.1.10"></server>
<server name="b" IP="192.168.1.20"><...
I have a C# application the performs some runtime compilation of source files containing calculations into dynamic assemblies. Obviously this presents a serious security issue.
From the following 'formula', the code below would be generated, and a dynamic assembly created:
Formula:
Int32 _index = value.LastIndexOf('.');
String _retVal...
There are some posts that asks what the difference between those two are already.
(why do I have to even mention this...)
But my question is different in a way that I am calling "throw ex" in another error god-like handling method.
public class Program
{
public static void Main(string[] args)
{
try
{
...
This is a follow-up question to Is there a difference between “throw” and “throw ex”?
is there a way to extract a new error handling method without resetting the stack trace?
[EDIT]
I will be trying both "inner method" and another answer provided by Earwicker and see which one can work out better to mark an answer.
...
Will LINQ's parallel extensions automatically detect the number of cores and utilize them all? Conversely, if the code is run on a single core machine, will it still work or do I have to detect the number of cores and tell PLINQ how many to run across?
Sadly, I don't have access to any single core machines to test my code on so I can...
Hey Folks:
I know there should be an easy way to do this but I guess my brain isn't working today. I need to refresh a page in x number of seconds. I can do that in .NET using the following:
Response.AddHeader("Refresh", "300");
This is fine except I also need to display the number of minutes and seconds until the next refresh.
So...
I have the following class hierarchy:
public abstract class BaseData
{
//some properties
}
public class CoData : BaseData
{
//some properties
}
I am working with a method that requires the return type to be List<BaseData>. In the method, I have access to List<CoData>
public List<BaseData> Save()
{
List<CoData> listCoData = Get...
I have the following C#.Net code that I am trying to get to return the stored procedure results along with the schema of those results. Below is how my code (simplified) currently looks...
Database db = DatabaseFactory.CreateDatabase();
DbCommand dbCommand = db.GetStoredProcCommand("MyStoredProcedure");
IDataReader drData = db.ExecuteRe...