I saw something in the framework to create a regular shortcut, but not a My Network Place shortcut to a file in a Sharepoint site on our intranet.
I found a kludge, but it doesn't always work for all folder names, not sure where it is failing. The kludge reverse engineers an existing shortcut rather than using a function for this purpos...
HI everyone, I'm having the following issue that is really driving me crazy.
After I perform any sort of postback, several controls do not rebind themselves, for instance
DetailsView with an attached ObjectDataSource (in my case ObjectContainerDataSource)
LoginView is not showing the LoggedInTemplate but LoginStatus is showing me as lo...
hey guys,
I'm very excited about the dynamic features in C# (C#4 dynamic keyword - why not?), especially because in certain Library parts of my code I use a lot of reflection.
My question is twofold:
1. does "dynamic" replace Generics, as in the case below?
Generics method:
public static void Do_Something_If_Object_Not_Null<SomeType...
I have a SqlDataAdapter with a SqlCommandBuilder attached to it.
public SqlDataAdapter SelectNone(string Table)
{
SqlDataAdapter result = new SqlDataAdapter();
SqlCommandBuilder builder = new SqlCommandBuilder(result);
builder.ConflictOption = ConflictOption.OverwriteChanges;
builder.SetAllValues = true;
result.Sele...
Hello, I have two Database, DB1 and DB2. How can I transfer data of DB1
specific table to DB2 in SQL Server 2000?
...
Basically I want to run a script checking for the existence of a certain filetype at each new revision.
Subversion is used for source control.
...
I have a small application that I am building a Chat application into, so far I have the functionality to post messages!
I don't need a login as there will only be a small number of users and I will use their windows username for identification.
Has anyone done anything similiar? What else do I need to add? It doesn't need to be all si...
Every time I write out a setter whose Value property value isn't describable inline, I curse the fact that the API doesn't mark the Setter class with [ContentProperty("Value")], which would allow this:
<Setter Property="BitmapEffect">
<Setter.Value>
<OuterGlowBitmapEffect GlowColor="#AAC" Opacity="0.2" GlowSize="1.25" />
</Sette...
We have a large body of legacy code, several portions of which are scheduled for refactoring or replacement. We wish to optimise parts that currently impact on the user-experience, facilitate reuse in a new product being planned, and hopefully improve maintainability too.
We have quite good/comprehensive functional tests for an existing...
Hi,
try
{
throw new Exception("test");
}
finally
{
//Inspect the exception ????
//Log(Exception);
}
Is there a way to get the exception from the run-time in the finally?
I cannot use a catch :-)
Thanks for your answers.
I cannot use a catch because its not actually my code(to refactor).
We want to wrap a...
I'm a bit stuck playing with DataBinding in a tryout project. I have a simple form with just a spinbox, which I want to bind to a member of the form.
class Form1 {
public class Data : System.ComponentModel.INotifyPropertyChanged {
int _value = 10;
public int value {get;set;}
public event System.ComponentMode...
We have a client application that needs to send messages to a server for various notifications. In order that the client can run occasionally connected I'm going to go with a message-queue approach. The queue processing will take messages off the queue and call a web service that will put them on another queue to finally be processed. ...
Hello, I'm making a c# program to replace, kinda of a template file, some tags on a rtf file, this rtf file was created in Word 2007. The problem is that in this file have to replace some entries is a table, I have the table define in the rtf, the header of the table and the first row with some tags to be replaced, the table can have mor...
Hello,
I want to retrieve a child of the window I am in Gtk#. So far the only way I found looking at the documentation is to do it using a loop through the Children property of the Window, like:
foreach (Widget w in this)
{
if (w.Name == "MyWidget")
return w;
}
where this is the window.
I am sure there must be a better,...
Am I right to be concerned about extending SSIS packages with custom objects? I accept custom objects can extend the functionality of SSIS and can reduce repetition & complexity within SSIS. Are there any guidelines as to when to use custom objects? What are the risks e.g. performance, maintainability etc? Where do I draw the line?
...
double? test = true ? null : 1.0;
In my book, this is the same as
if (true) {
test = null;
} else {
test = 1.0;
}
But the first line gives this compiler error:
Type of conditional expression cannot
be determined because there is no
implicit conversion between '<null>'
and 'double'.
...
I have a server application that handles clients requests in different manner.
I want to know how many users can be served with minimal latency, so I made a small stress test application that simulate the users requests; at the same time another application monitor the memory/CPU utilization.
The stress test tool creates thread every s...
Hi,
Until now I've always used the ASP.NET MVC framework source for debugging ASP.NET MVC. On my laptop I just tried a different approach, namely bringing up the "Modules" window in VS while I am debugging and right-clicking System.Web.Mvc, then select "Load Symbols From" > "Microsoft Symbol Servers".
VS seemed to actually load someth...
I've learned that to have a singleton lazy loading, this is the pattern to use:
private MyObject()
{
}
public static MyObject Instance
{
get { return SingletonCreator.CreatorInstance; }
}
private static class SingletonCreator
{
private static readonly MyObject _instance = new MyObject();
public static MyObject CreatorInst...
I have a WinForms 2.0 with a couple of ComboBox controls on it. For some of those ComboBoxes the property DropDownStyle is set to DropDown, while others are set to DropDownList.
Now, to indicate changes in the selection the property BackColor is set to a different value for each ComboBox. Those with the DropDownList style have a complet...