I'm coming from a Java / web background with no C# experience and I want to write a prototype C# / .NET desktop app to run against my existing DB2 database. The idea is that the prototype should use libraries and tools which are suitable for scaling up to full production and should be standard and free.
Of the top of my head, the two b...
I am developing a .Net 2.0 application in which a StackOverflowException occurs. Is there a way to print/log the stack trace before/during the application aborts?
This is a long running server-side process which would be hard to execute under a debugger.
I know that StackOverflowException can not be caught.
...
Does anyone know the millisecond interval, used by the framework trackbar, between calling the ValueChanged event when moving the grip with a mouse?
I've implemented my own trackbar and I'd like the behaviour to be consistent with what the user expects.
I've had a look in reflector but it's one of those controls where most of the imple...
Hello,
I have a datagrid with some TextColumn and one DataGridCheckBoxColumn. I bind it with à itemsource that contaned à boolean and i can see that my checkboxes or checked or not by the boolean everything is OK at this point.
but the checkboxs cells are in ReadOnly even if i assigne IsReadOnly = False. I cant find the right and clean...
I need ability to modify the cursor while my application is running, and restore it afterwards.
Cursor.Current doesn't seem to work. Any other alternatives? Is there any API for this?
Thanks
...
Hi,
In my application when I click on one of my button in the page it is giving error like this..
Could not find a part of the path 'V:\User\EnterTrailorVideos\luck.swf'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and ...
Hi all,
I intend using the Argotic framework in support of a .Net Atom server. Unfortunately my target server (over which I have no control) only has .Net 1.1 - any the Argotic library is only in .Net 2 and 3.5.
So, I now need to back-port the code to 1.1.
Can anybody provide any strategic tips for this undertaking?
I'm aware of the ...
I have a non transparent, colour bitmap with length 2480 and width 3507.
Using Bitmap.GetPixel(int x, int y) I am able to get the colour information of each pixel in the bitmap.
If I squirt the bitmap into a byte[]:
MemoryStream ms = new MemoryStream();
bmp.Save(ms, ImageFormat.Bmp);
ms.Position = 0;
byte[] bytes = ms.ToArray();
the...
I have a .net application calling to a COM component (C++) which in turn calls to another COM object implemented in .NET.
This application is using Windows SxS capabilities and does not register any of it's COM components. Not the one written in C++, and not the one written in .net.
This first call to the C++ COM component works fine. ...
Hi,
I am trying to use my .net image editor user control as an activeX object in a web form.
After internet search, I created a asp.net web site from VS2008 and added the following code
<object classid="res/ImageEditor.dll#ImageEditor.Editor"
height="400" width="400" id="myControl1" name="myControl1" >
</object>
<INPUT id="...
Hey fellows,
I'm working on a large web application that includes many modules (CRM, Inventory, Administration, etc.) What I want to accomplish is to be able develop each of these modules independently (the UI, Core Logic, DataAccess Logic, and all) and then integrate them all together into a core module (this integration should only ...
I want the ability add properties and tags to a file
(specifically ebook files and ebook related properties in Windows 7 but interested to go so for as many OSes as possible)
For e.g. Example.txt or Example.doc or Example.epub should all store and carry properties like 'Author', 'Publication date', 'Tags' etc..
the properties should b...
I have a csv importroutine which imports my CSV values into Sitecore. After this proces is done i want to show the errors in an asp:literal. This is not working, and I think this is because i need an updatepanel for this in order to be able to update text after the first postback (the csv upload / import).
I made this:
<asp:ScriptMa...
I have the following code that sends a HttpWebRequest to Bing. When I request the url below though it returns what appears to be an empty response when it should be returning a list of results.
var response = string.Empty;
var httpWebRequest = WebRequest.Create("http://www.bing.com/search?q=stackoverflow&coun...
Hi,
I am trying to get some data relevant to a stored procedure (or funtion) back from a database using .Net.
The first thing I need to be able to do, is get the stored proc from the database and turn it into string format.
The information I need is: The return set of columns, tables used within the SP, Stored Procedures called from the...
When Installing .NET Framework 4 in the near future, I would like to know if this product will replace all the previous .net frameworks that I have installed (i.e. 1.1, 2.0, 3, 3.5).
If yes, could I uninstall all of them?
...
I have a fairly simple class that I want to save to SQL Server via NHibernate (w/ Fluent mappings). The class is made up mostly of optional string fields.
My problem is I default the class fields to string.empty to avoid NullRefExceptions and when NHibernate saves the row to the database each column contains an empty string instead of...
Do any of you know of an easy/clean way to find a substring within a string while ignoring some specified characters to find it. I think an example would explain things better:
string: "Hello, -this- is a string"
substring to find: "Hello this"
chars to ignore: "," and "-"
found the substring, result: "Hello, -this"
Using Regex is no...
I have two datatables.
First is
DataTable NameAdressPhones = new DataTable();
with Three columns Name,Adress and PhoneNo.But I want only two columns Name and Adress data so I am copy those columns (with data) to the new datatable
DataTable NameAdress = new DataTable();
For that I do
foreach (DataRow sourcerow in Nam...
I am trying to create a .NET DLL so I can use the cryptographic functions with my non .NET application.
I have created a class library so far with this code:
namespace AESEncryption
{
public class EncryptDecrypt
{
private static readonly byte[] optionalEntropy = { 0x21, 0x05, 0x07, 0x08, 0x27, 0x02, 0x23, 0x36, 0x45, 0x...