I am doing a project on FTP file-transfer using FtpWebRequest class. While transferring the file, if my network connection gets disconnected the file in the receiving end gets hanged. I am not able to process further even though I re-establish my network connection. After some time the file gets removed; then I am able to put the file ag...
I have a custom UserControl (a label and a textbox).
My problem is I need to handle the key down, key up events to navigate between controls in the form (.NET Compact Framework textbox, combobox, etc). With the controls provided by the .NET Compact Framework framework it works, but when I reach a usercontrol written by me, that control ...
Hi all,
I am looking for some tutorials on how I can consume a .Net webservice on the iPhone platform (3.0). I have never looked at Cocoa XML prasing before, to the more indepth the tutorial is the better.
We have an existing webservice framework currently in place, which return XML, so I would ideally like to consume these, as opposed...
I need a c# code to output xml results for google search results.
Please help!
...
I'm trying to improve performance in our app. I've got performance information in the form of a tree of calls, with the following node class:
public class Node
{
public string Name; // method name
public decimal Time; // time spent in method
public List<Node> Children;
}
I want to print out the tree such that I can see li...
Is there any difference between following two ways of creating an object.
Student s1 = Activator.CreateInstance<Student>();
Student s1 = new Student();
Is there any difference in , the way constructor is called ? initializing the memory ?
As per my understanding, the first method looks completely redundant to me. If programmer knows ...
I'm looking to take the result of a SQL Server stored procedure and transform it into XML in .NET/C#
What I'm interested in is what standard libraries there are in .NET to help with the specifics of generating XML and if there any external libraries or tricks that can help automating the transformation from result set to XML.
I've look...
I have a UserControl, with a TextBox and a databound property - Value.
Value can be any object such as a Color, Array, Font etc.
Any time the text changes, the property Value is changed as long as it is valid.
Looking at the msdn article: How to: Apply the PropertyNameChanged Pattern
, it says I should use the PropertyNameChanged Event...
I have a unit test that tests if an Exception is throw, but this Exception is only throw in Debug mode (via the [Conditional("DEBUG")] Attribute). If I run this test in Release mode, it fails. I tried to apply the same Attribute on the test but it's no taken into account.
How can I exclude a test in Release mode? Does it even make sense...
Hello,
I've to insert a new Row(user) into the Database using SqlDataAdapter.
I also have to edit any desired row (whose PID is given).
Problem is that both of them are not working.
I've Created an Array of selectQuries[] with quries of the form
for INSERT: "SELECT X,Y,Z FROM TAB1 WHERE 0=1".
for Editing: "SELECT X,Y,Z FROM TAB1 WHER...
I've got a stored procedure in Oracle:
procedure Test(results OUT gencursor, id in number) is
v_cursor gencursor;
begin
OPEN v_cursor FOR
select id, name, age from tblcustomers s where s.id = id;
results:=v_cursor;
end Test;
Now, i'd like to execute this procedure using nHibernate ISession.CreateSQLQuery. All the examples ...
I have made an INF file, its contents are as follows
[version]
Signature="$CHICAGO$"
AdvancedINF=2.0
[Add.Code]
MyControl.dll=MyControl.dll
; Now installing the ActiveX
[MyControl.dll]
file-win32-x86=thiscab
clsid={05B7BC83-FCA1-452d-9D33-193784FEC637}
FileVersion=1,0,0,1
RegisterServer=yes
but the Control is not registered after I...
Hello,
I have a project which exposes object model to use by different types of clients. Written in .Net 3.5 it exposes classes to COM. Problem is while all seems to work from test VB6 client, I faced strange errors while trying to automate it with JScript and Windows Script Host.
Here's code snippet:
var scComponent = new ActiveXObje...
How would I go about writing to a COM port, trying to convert the following example to .Net (C#), specifically the PHP part? If possible is there an easier way to write out to a USB?
...
I am writing front end app that connects to a DB and downloads any package it needs for a specified project. The user should be able to close the app which will not start any more DLs and wait for the current to finish and an option to forcefully close which will disconnect the current download and quit.
The files i am downloading may b...
I think it's probably my inexperience with .net, but I think I'm going to have to give up on my plan to use NLog instead of fixing our broken proprietary logging code.
The plan was to introduce NLog then extend logging if we ever move to c#.
I've called my own simple assembly code from VC6 before (get a pointer to the managed interface...
Hi,
i have a performance problem while inserting data to sqlce.I'm reading string and making inserts to My tables.In LU_MAM table,i insert 1000 records withing 8 seconds.After Mam tables i make some inserts but my largest table is CR_MUS.When i want to insert record into CR_MUS,it takes too much time.CR_MUS has 2000 records and insert ...
I'm doing some work with registry hives, and I need to know if the file the user supplies the program with really is a registry hive. Short of attempting to mount it, how can I tell if the file really is a registry hive?
...
I have a C# assembly that I use as an in-proc COM server consumed by an unmanaged C++ application. The assembly consumes a webservice that will not ever change so there's no need to ever update the webservice proxy classes. That's why the proxy classes are create donce and Reference.cs files are simply put into the repository and only co...
What does the requirePermission attribute in the <section> element do?
For example:
<configuration>
<configSections>
<section name="urlrewritingnet"
restartOnExternalChanges="true"
requirePermission ="false"
type="UrlRewritingNet.Configuration.UrlRewriteSection,
U...