I have an application in which SoundEx algorithm is implemented. Now i want to test the functionality.
Here is what i observe
In my database i have 2 names Breaks and Brakes. Assume these are names of 2 employees of a company.
Now i am searching for the name giving Break as search criteria and now this returns me the 2 results breaks an...
I have a table with approx 3000 records which I need to export to csv (through a .net Web application) however I also need to pull information from about 10 other tables (also about 3000 records each) so that the form more columns, e.g.
Individual Table
Organisation Table
IndividualOrganisation Table
Output:
Individual.Name, Orga...
I’m trying to add a feature to my winforms app that prints the version number on the main screen. I currently have this:
txtVersion.Text = ProductVersion.ToString();
Which tells me the version of the program – all well and good.
However, what I’d ideally like it to do is to pick up the version of the installer program that was used ...
Hello,
I had a .Net webService that returns a custom class, lets call it "MyClass", used like this example:
[WebMethod]
public MyClass sampleMethod()
{
return new MyClass();
}
If works ok when invoked from a .Net application.
From a Java application using AXIS I am getting the error "MyClass is referenced but not defined".
How...
How do I show a MDIChild Form always on top of other MDIChild Forms ?
I have set TopMost property of the ChildForm to True, But the form still behaves the same way...
I have tried to set TopLevel property of ChildForm to True and got the error message... "Top-level Style of a Parented control cannot be changed."
How do I achieve this....
As mentioned in a previous post, I am currently learning C#, and for my first (well second if you include hello world and some messing about) real project, I'm going to create a basic EPOS system and then expand upon it..
My intention is to have all pricing, Cashier details, sales transactions, etc.. stored within a MySQL Database (I ca...
For one reason or another, I sometimes find it useful or just interesting to look at the optimised compiler output for a function.
For unmanaged C/C++ code, my favourite way to do this has been to compile in Release mode, stick a breakpoint in the function of interest, run, and view the disassembly in Visual Studio when it hits the brea...
One of my upcoming projects needs a rather complex control (functionality wise) and I was wondering what, from experience, are good resources to look at / read? Any suggestions
...
It's Friday and my mind already seems to have moved to weekend thinking.
Given this xml structure -
<?xml version="1.0" encoding="utf-8"?>
<results requiredAttribute="somedatahere">
<entry>
<!-- Xml structure in here -->
</entry>
<entry>
<!-- Xml structure in here -->
</entry>
<entry>
<!-- Xml structure in here --...
Hi,
The .NET method Socket.AcceptAsync() has a neat feature: The ability to specify an initial buffer that will receive some amount of data immediately after accepting the new connection. This could be useful for exchanging a fixed-length signature, protocol header, session ID or similar initiatory data (and in fact, that is what the MS...
Hi all,
Using NHibernate I'm trying to get obtain a list of B's where an IList property of B contains a specific instance of A.
The following code should hopefully explain the situation more clearly:
public void test()
{
A a1 = new A();
A a2 = new A();
B b1 = new B();
b1.As = new List<A> { a1 };
// ...database save...
long[] b = new long[1];
int i1 = b[0]; // compile error as it should
// no warning at all, large values gets converted to negative values silently
foreach (int i2 in b)
{
}
class Customer : Person{}
Person[]p = new Person[]{mypers};
// no warning at all, throws typecastexception at runtime
foreach (Customer c in p)
{
}
I know they...
I am trying to make a character counter, 40/200...41/200 and so on. Now for a textbox control I am hooking into the KeyUp Event with something like this...
public static void GetRemainingChars(MyTextBox txt, LabelControl lbl)
{
var maxChars = txt.Properties.MaxLength;
lbl.Text = txt.Text.Length + "/" + maxChars;...
Hi,
I wrote a function in Delphi 2010 COM object. This function will return string using PChar. I tried to use the COM object in C# .net. So, i added the reference to the COM DLL in my C#. NET application.
I found out that the function is not visible in the References explorer list, whereas the other functions which i wrote earlier a...
I've been reading up on MVVM and so far have found it very interesting. Most of the examples I've found, however, are for Windows apps, as opposed to Web apps. I've also seen a lot of mention of MVVM used with Silverlight, and I know Silverlight can be used for either Web or Windows apps.
So my question is - is MVVM a valid pattern for ...
Hi,
I am trying to export a dataset to excel from asp.net page method(webmethod) using the following code.
[WebMethod]
public static void ExporttoExcel()
{
DataSet ds;
productfactory pf=new productfactory();
ds = pf.getproducts();
HttpResponse response = HttpContext.Current.Response;
// f...
It seems there is a known bug in wsdl.exe, the tool that Visual Studio uses to generate web service proxies. With certain XSD schemas the tool will generate classes that can't be deserialized from the XML.
As far as I'm concerned that's unacceptable, but I don't know how to fix it.
I will describe my case in detail, hopefully somebody...
Hello.
I've custom data list, for example list of persons:
-name
-surname
-photo
I'd like to give my customers opprtunity to design, how would they like to see this data in exported document:
name | surname | photo
or
name surname
photo
etc.
Do you know any easy to use tools that could help? It would be wonderful if they would...
I have a .NET 1.1. application which provides string resources through a bespoke translation system that looks a little like this:
interface ITranslationProvider
{
string GetTranslation(string key);
event LanguageChangedEvent LanguageChanged;
}
ie: language can change at runtime, and components need to respond by updating dis...
I am using Amazon WS SDK for .net and trying to get S3ObjectMetaData Info and in return what i got is an exception below. Seems like the AmazonS3Client connection get closed or timeout, I am not sure about the cause.
How can i fix this error. Is there any way i can check if S3Client is no more valid and need to recreate its instance?
R...