Now unfortunately due to the fact that WinCE Usb Device Arrival / Removal exposes itself via WindowsMessages I have to ensure that a certain (non-UI) component is not created on a background thread. I would like to assert this via an exception but am lacking the code for the assertion.
This component creates a MessageWindow* and uses it...
Does anyone have any advice for migrating a PowerBuilder 10 business application to .NET?
My company is considering migrating a legacy PB application to .NET (C#) and I am just wondering if anyone has any experience - good or bad - that you would like to share.
The application is rather large with 10 PBL libraries, some PFC as well as...
I have a TCP listener service to which the clients connect. Lately I have started receiving this error related to disconnection. I connect around 20 clients to it and the connection works fine. But when I connect another 10 clients to the service, the previous connections break with a 10053 or 10054 error.
Previously it used to run with...
Lets say I have the following XML file:
<?xml version="1.0" encoding="utf-8"?>
<Customers xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="Customer.xsd">
<Customer>
<FirstName></FirstName>
<LastName></LastName>
</Customer>
<Customer>
<FirstName></FirstName>
<LastName></...
I'm having a strange problem - I have about 14.5 million bitmap images, that are supposedly uncompressed. I need to convert these bitmaps to JPG and store them in a database.
When I use the classes provided in the .NET System.Drawing library to save the bitmap as a ImageFormat.Jpeg, the resulting JPEG is about twice the size of the ori...
In the application I'm working on, I've been trying to use the SaveFileDialog and OpenFileDialog for their customary purpose (saving and opening files.)
However, the application can't support modal forms/dialogs without crashing because too many time-sensitive things happen on the thread that owns the UI.
Rewriting the application to m...
I'm making an application where I interact with each running application, right now, I need a way of getting the windows zorder, for instance, if firefox and notepad are running, I need to know which is the must upfront...
Any ideas ? (basides doing this for each application mainWindow I also need to do it for it's childs and sisters (wi...
I have a fairly large CRUD WinForm app that has numerous objects. Person, Enrollment, Plan, CaseNote etc. There are over 30 forms that make up the app with the UI broken down logically. Member, Enrollments, Plans, CaseNotes, etc.
I am trying to figure out how I can create my Person Object after searching on the Search Form and pass ...
I have a .net WinForms app with buttons that are displaying as XP style (rounded corners) at design time, but Windows 2000 style (square corners) at runtime. My desktop theme is set to XP style. I'm guessing there's an obvious setting that I'm overlooking. Thanks.
...
How do you find the number of rows in a DataGrid using .net compact framework?
...
Using Linq To XML, how can I get the space_id value (720) from the xml below?
I am reading this but I think the namespace in the xml is my stumbling block.
<r25:spaces xmlns:r25="http://www.collegenet.com/r25" pubdate="2009-05-05T12:18:18-04:00">
<r25:space id="VE1QOjRhMDAyZThhXzFfMWRkNGY4MA==" crc="" status="new">
<r25:space_id>...
I'm new to Data Generation Plans in Visual Studio, but I googled a bit and can't find the answer to this question. I've made modifications to my schema on the database side (changed the size of an NVARCHAR field) based on data that was generated by a Data Generation Plan (a procedure broke because the field was too large), and now I want...
Basically I wanna know if all the types in a particular namespace implements a particular interface like IEnumerable.
I know I can do:
foreach type ...
if type is IEnumerable
...
But I don't wanna cast the type just to query if it implements an interface, because the cast will be thrown away either way.
...
I'm using C# (.Net 2.0), and I have a fairly large text file (~1600 lines on average) that I need to check periodically to make sure a certain line of text is there.
What is the most efficient way of doing this? Do I really have to load the entire file into memory each time?
Is there a file-content-search api of some sort that I could...
I wrote a dll in VS 2005 that will be loaded by another program that was developed in VS 2003. When that program tries to load my dll, it throws a System.BadImageFormatException: The format of the file 'Foo.dll' is invalid.
I searched SO and Google, and it seems that the different version of .NET is the culprit. My question is: How do I...
I need to determine the expiration date of the SSL certificates on my IIS boxes programatically. Ideally I would want to do this in C#, but if VB script is the only way that is acceptable as well.
Environment => IIS versions 6 & 7, .NET 2.0, Windows 2003 & 2008
Thanks
...
Hello,
Is there any function in F# similar to LINQ fluent syntax for sorting by multiple expressions:
myList.OrderBy(fun x->x.Something).ThenBy(fun x->x.SomethingElse)
I'd love something like:
myList
|> Seq.sort_by(fun x->x.Something)
|> Seq.then_by(fun x->x.SomethingElse)
Thx
...
I am moving lots of code loosely based on asynchronous method invocation. How is it typically implemented (preferably in production)?
How does it work?
How is it used?
How is it implemented?
...
I want to create a bunch of forms that all have the same properties and initialize the properties in the forms constructor by assigning the constructor's parameters.
I tried creating a class that inherits from form and then having all of my forms inherit from that class, but I think since I couldn't call InitializeComponent(), that I w...
I have a problem that I really need solved in any way (changing data types is an option)
Assumptions:
Both Program and Service done in VS2008
I have complete control over both Program and Service
I have a program that is passing a "list" of info to the Service Reference
Example:
Program snippet:
IList<string> XMLList = null;
XMLL...