Hello,
The DBA displays a lot of info in his stored proc as it executes.
From a Visual Studio 2003 CSharp Windows Form,
when you launch a SQL Server 2000 stored procedure that returns records as well as an OUTPUT param,
is it possible to display the same verbose output as you would see in the Query Analyzer tool?
This is on top of sh...
This is follow up for my last question about converting string to float
I have this value stored in a float variable: 33.9112625 (it's thirty three) and I need to convert it to string and get the exact value but I'm unable to do so. float.ToString( CultureInfo.InvariantCulture) gives me "33.91126" as result. I tried .ToString("G"), "G7"...
Writing an asp.net mvc app and i have something like this...
Public Class AA
'... has some variables...
End Class
Public Class BB
Inherits AA
Public ExtraVariable As Integer ' just adds another variable and thats it!
End Class
So, now in my program, i just want to copy object of type AA to an empty variable of type BB?
it makes sens...
I'm developing a server application that asynchronously accepts TCP connections (BeginAccept/EndAccept) and data (BeginReceive/EndReceive). The protocol requires an ACK to be sent whenever the EOM character is found before it will send the next message. The accept and receive are working but the sending app is not receiving the ACK (sent...
Let's say I have a list of visual objects (CustomControls). They could be inside a StackPanel or be items on a ListView, I think the container is part of the answer to this question.
Visually, you can think of these objects as items on a queue. Every time I pop an object from the bottom of this queue, I'd like to animate the whole queue...
I had a strange problem editing a class in the property grid whereby the property grid would refresh incorrectly.
I managed to reduce the problem down to a class with just two properties. I've included the code at the end to ease explanation.
It basically boils down to a class with two properties. The first of which is expandable (a fo...
I have seen solutions to a very similar issue, yet it doesn't translate to mine. (Namely, this article: http://blogs.msdn.com/wpfsdk/archive/2007/04/16/how-do-i-programmatically-interact-with-template-generated-elements-part-ii.aspx)
My ItemsControl is bound to an observable collection, which can have items dynamically added to it.
...
Is there any way to do something like this?
public interface ISomething
{
}
public class SomethingThatImplementsISomething: ISomething
{
}
public class SomethingElse
{
public ICollection<ISomething> PropertyName{ get; set; }
}
I've tried it out, and it keeps failing. Any ideas?
...
So I have this datagridview that is linked to a Binding source that is binding to an underlying data table. The problem is I need to manual add rows to the datagridview.
This cannot be done while it is bound, so I have to work with the databinding.
If I add the rows to the underlying datatable, when the datatable is saved, the rows are...
Curious if there are any disadvantages to using an ElementHost to host a WPF UserControl in a Winform application?
I ask because in general I feel that it takes to much time for me create a new WPF application with a basic interface that looks decent. Decent in the sense that if I create a new Winforms application and throw some control...
We had a rare exception occur when reading the standard .Net user settings (this are the ones found in "project properties" in VS 2008):
System.Configuration.ConfigurationErrorsException was caught
Message="Configuration system failed to initialize"
Source="System.Configuration"
BareMessage="Configuration system failed to initiali...
I'm following this article to registering SENS events via COM, but I think I'm missing something. I'm calling the SubscribeToEvents method the article says to write, like this:
EventSystemRegistrar.SubscribeToEvents("ManagedSENS EventSubscriber", "ManagedSENS.SensLogonInterop", subscriptionViewerID, this, typeof(SensLogon));
which lea...
I have a third-party .NET library that enables output of some key diagnostic information to a TextWriter instance. I'd like to have this information dumped to the output window of Visual Studio 2008 while in debug mode and ignored if not in debug mode. Is there any way I can get a reference to an output stream that uses this output win...
I'm an IoC newbie, so I'm wondering if it's even the right tool for the job I want to do.
I'm writing a multi-tenant application, and there are several places that we might want to use different implementations of interfaces based on the organization to which the currently logged-on user belongs.
Say, for example, when a user from ...
I'm trying to get the Foreign Keys for a table in my SQL Server 2005 database. I'm using the GetOleDbSchemaTable function right now:
DataTable schemaTable = connection.GetOleDbSchemaTable(
OleDbSchemaGuid.Foreign_Keys,
new object[] { null, null, null, "TABLE" });
This pulls back the right foreign keys, the only problem...
i have an actionlink in my view
<%= Html.ActionLink("action","controller") %>
the action has a [AcceptVerbs(HttpVerbs.Post)] atttribute, and the lactionlink doesn't work.
how to make it work by "POST"??
...
I've been looking at some of the articles for the CLR Profiling API, and many of those articles talk about calling SetILFunctionBody() to do the actual IL rewriting; however, none of those articles actually explain exactly what you could use to rewrite the actual method IL bytes. Is there an unmanaged library out there that allows me to ...
I am in the process of rewriting a data driven application in ASP.NET MVC and i am struggling to solve the following problem.
The application allows the user to create one or more documents are to be reviewed by a chain of different type of reviewers.
The reviews are done by users of different roles (Reviewer, Manager, FinanceApprover...
I would like to create a browser plugin which works LIKE flash, with embedded content from my application on the page.
How would I go about doing this? Is it doable with .net applications?
Thanks for the help.
EDIT: To clarify, I have no intention of making something EXACTLY like flash, or remotely similar. I merely wish to be able t...
I am writing a code to upload a zip file to an ftp server. Surprisingly the code works fine for small files, but with bigger files I end up in problem. I am using Stream object and I have noted that my code is getting stuck while trying to close the Stream (only for big files). The code runs fine if I do not close the Stream (even for bi...