Hi,
i am using numerical updown in my form,
there if i change the value itself a event should raise,
(eg:if i change the value from 6 to 7 in the numerical updown a event should raise)
i used ValueChange event for that, but that event is getting raised, only if the value is changing on mousewheel or on spinbutton.
if i enter the value ...
I am connecting to a third-party end point via WCF and I have one problem. The schema for the SOAP envelope that is generated by WCF isn't compatible with the end point.
Currently WCF is generating this:
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing">
But it needs to b...
Possible Duplicate:
How can I determine whether Console.Out has been redirected to a file?
Is there a way of telling whether the stdin stream to a console app is coming from the console or from a file using .Net?
I'm writing an app that should read from a file on the stdin if there is one but ideally shouldn't read from the s...
I wonder what the Form.KeyPreview property actually is good for? Why do it exist and what do I "risk" by setting it to true? I guess it must have some negative effect - otherwise it shouldn't exist at all (or at least be true by default)?
EDIT: I know perfectly well what it does. I'm asking why. Why do I have to set it to true in order ...
I have two different modules that need access to a single file (One will have ReadWrite Access - Other only Read). The file is opened using the following code in one of the modules:
FileStream fs1 = new FileStream(@"D:\post.xml", FileMode.Open, FileAccess.ReadWrite, FileShare.Read);
Th problem is that the second module fails while try...
Consider following program:
static void Main (string[] args) {
int i;
uint ui;
i = -1;
Console.WriteLine (i == 0xFFFFFFFF ? "Matches" : "Doesn't match");
i = -1;
ui = (uint)i;
Console.WriteLine (ui == 0xFFFFFFFF ? "Matches" : "Doesn't match");
Console.ReadLine ();
}
The output of above program is:
D...
We are trying to implement the Microsoft Sync Framework into our application that persists it's domain using NHibernate.
One of the problems we encountered is that after the Sync Framework has altered your initial database structure (adding shadow tables and triggers) NHibernate seems to get upset by throwing an toomanyrowsaffectedexcep...
With C#, how do I delete a sms on Google Voice? Alternatively, how do I mark a sms as read? I'd rather delete it but marking it would be ok too.
As far as marking it as read I tried this
public String markAsRead(string _authToken, string _msgID, string rnrSEE)
{
String smsdata = HttpUtility.UrlEncode("auth", Encoding.U...
Hello guys...
I´m developing a ebay-like system in .NET/C# ...
Is Lucene a good option to a system like that? Or maybe a simpler solution ?
The performance is the most important thing to that...
EDIT
I´ll use a Full-Text Sql Search (Is it the best option?)
Any ideas, suggestions?
Paul
...
I'm building a web service which uses MessageContracts, because I want to add custom fields to my SOAP header. In a previous topic, I learned that a composite response has to be wrapped. For this purpose, I devised a generic ResponseWrapper class.
[MessageContract(WrapperNamespace = "http://mynamespace.com",
Wrappe...
I need to export a gridview to excel, I put the return html code from the gridview to a HtmlTextWriter and put this into the response.
The result file work fine in excel, excel can parse the html and the result is readable, work perfect on excel 2003 and 2007, but in some machines with Excel 2008 (MACOS) excel shows only the raw html co...
I'm writing a CMS in ASP.NET/C#, and I need to process things like that, every page request:
<html>
<head>
<title>[Title]</title>
</head>
<body>
<form action="[Action]" method="get">
[TextBox Name="Email", Background=Red]
[Button Type="Submit"]
</form>
</body>
</html>
and replace the [...] of course.
My qu...
Is there any open source .NET-based (no Win32 native, ActiveX, COM+ etc) library so I will can easily set up a ftp server? It is going to be a ftp server that will update a SQL Server database, and not regular files.
Thank you.
...
I have a Windows.Forms based .NET desktop application that stores privileged information in a file on disk (not using .NET configuraton files), encrypted using a symmetric cryptography algorithm such as TripleDES using MS's CryptoAPI. This file must be read/written over multiple program runs / machine power cycles, aka, use the same Key...
Given a relatively big home-grown framework written in .NET. For an additional lower priority feature, we would like to use a third party open source project. However, this third party project is not safe to run in x64 mode, so we force it to compile 32bit. Due to this referenced 32bit assembly, VS wants our entire framework being compil...
I use this to convert DateTime value into Date and then I add 00:00:00 and 23:59:59 to make sure whole day is taken into consideration when counting stuff. I'm pretty sure it's wrong way of doing things. What would be the right way?
DateTime varObliczOd = DateTime.Parse(dateTimeWycenaPortfelaObliczDataOd.Value.ToShortDateString(...
Hi Stackoverflowers :)
imagine the following environment: an XBAP application running in partial trust mode (default behaviour; requiring Full Trust is not an option - but before you ask, if full trust is given to the XBAP, everything works as expected) is referencing a locally installed assembly, which is located in the GAC. To achieve...
I am looking for a .NET library (or, more specifically, a .NET component) which allows me to write annotations to a document (not specifically a Word document - the component itself could display a document which I can also add annotations to). Even better would be something with similar functionality to the reviewing process in Microso...
I'm trying to bring to managed side (C#) a structure built in C.
Let's assume this structure (C code):
typedef struct S{
int i;
union{
TypeA a;
TypeB b;
TypeC c;
}uni;
} S;
Now, i create the C# wrapper classes:
[StructLayout(LayoutKind.Explicit)]
public class S
{
[FieldOffset(0)]
p...
I understand that AppFabric has both caching capabilities along with hosting WCF/WF services. I have seen Windows Activation Service used interchangeably with AppFabric when talking about hosting services on IIS 7.0
Are both one and the same?
...