Most comparisons I can read on the internet are about the syntax whereas it doesn't matter much. I care more about advanced features. For example, I read on .NET about these features:
Partial Class .Net support not java http://stackoverflow.com/questions/2501736/java-partial-classes
Adaptive Control Behavior http://msdn.microsoft.com/e...
I know this might seem silly, but why does the following code only work if I Close() the file? If I don't close the file, the entire stream is not written.
Steps:
Run this code on form load.
Close form using mouse once it is displayed.
Program terminates.
Shouldn't the file object be flushed or closed automatically when it goes out...
Hello, I have a problem I need to create a desktop WPF application in .NET.
The application receives and sends data from Web- server, and the application can work in offline mode when the Web server isn't available.
For example the application need to calculate how much time the user work on a project, the application connect to the se...
I've started playing with the OpenNETCF Framework to capture information related to the WiFi connection available on the device I am writing an application for. I found a very usefull example at http://msdn.microsoft.com/en-us/library/aa446491.aspx but found that:
a. I could not get the MAC address for the AP I was currently connected t...
I want to use GPU for counting purposes. I need it to fall on to CPU if no GPU found and provide me with unified api. (interested in any .net for example №4)
...
I am writing a GUI application.
The application is opening multiple threads during it's life time. One of the threads is handling events that can come from other applications, so it is waiting in a while(true) loop for the event which is never been terminated.
The user can close the application in any minute. I want to close all the t...
I am working on a task where my .net application should send emails using Lotus Notes client ( NOT SMTP) with .NET using Dominos.dll. I am able to send mails also. But the problem comes when i close my Lotus Notes mail client and try to run my application which does not deliver mails. Reason, i think they were being stored in "Outgoing m...
I am planning to develop a system with tens of thousands of objects in it, which will each have up to 42(but more likely down around 4 or 5) separate actions they will potentially be performing at regular intervals. I also plan to write code that will deactivate the timers until the object comes into use. When idle, the objects will on...
Is there a way to do this?
I have a library with 'helper' code wich I want tp use from a Silverlight project. I don't know why, but Visual Studio won't let me add the reference even though there's nothing prohibited in my library (like DataSets)
I don't want to write all that code again, so I was thinking maybe creating a Silverlight c...
Is it possible to edit the data returned from command.ExecuteReader, and then return that to SqlContext.Pipe.Send()? Are there any forseeable issues (I have to reset the cursor to the beginning)?
I have a .NET stored procedure that will query a table like this
(code from MSDN)
public class StoredProcedures
{
/// <summary>
///...
I have a VS Add-In that's using a BinaryFormatter to deserialize an object. To resolve the type of this object, it's calling Assembly.Load(objectTypeFullName) but it's triggering an exception because Assembly.Load cannot find the assembly in any of the places it's searching on. The given assembly is sibling to the add-in assembly, but it...
Hello,
I'm trying to do a RadAjaxPanel ajaxRequest (invoked on the client) to call the server event-handler. I'm getting a 404. I do have a server-side AjaxRequest handler defined but it never gets call because of something with the request. What do I have to do to figure this out?
.NET 4.0, IIS 7.5, latest telerik.
Thanks.
...
I am using ASP.NET MVC to develop a web application and would like to display different web pages based on the geographic location of the incoming HTTP requests. Any idea how I can achieve this?
...
sqlmetal wrongly generates code for my sproc as ISingleResult. I need multiple results! Check this out. SqlMetal actually generates ISingleResult for a sproc like this:
CREATE PROCEDURE GetDetailReportData AS
BEGIN
select * from Log
END
How do you get sqlmetal to generate with multiple results for a sproc?
Does anyone ever use sproc...
Create a .net 2.0 Windows form app, add a splitContainer docked Fill, with this in its form constructor:
public Form1()
{
InitializeComponent();
for (int i = 1; i <= 300; i++)
{
FlowLayoutPanel f = new FlowLayoutPanel();
f.Dock = DockStyle.Fill;
Button b = new Button();
f.Controls.Add(b);
splitContainer1.Panel2.Controls.Ad...
I'm running PHP under Apache and I'd like to send a slow trickle of POST data to the page that will write messages into a database as the POST data arrives. I'm sending the data from a .NET app using WebRequest and I've set SendChunked to true.
Unfortunately, it looks like the PHP script doesn't start executing until all the POST data h...
Hello,
I created a library of classes in C++ and compiled it to a .dll. Everything compiles fine in .NET framework 3.5 using VS2008.
Then I want to reference my .dll in a C# project I'm working on in VS2010. The .dll is linked fine and all the methods are loaded properly (meaning if I type a class variable and then a ".", it drops do...
Hi
Exception type: System.ComponentModel.Win32Exception
Exception message: Error creating window handle.
I could not reproduce it in development environ, although from time to time it appears at the end user.
I know this may be a little too general and vague, but if you encountered such an exception what were the potential causes?
...
When I load my executable in NUnit, the application appears to be "locked". I run the tests but when I want to make some modifications to them, I have to close NUnit first otherwise my compilation will fail.
Is there any workaround for this?
EDIT
According to Process Explorer, the only process accessing my executable right now are "nu...
I recently created a Windows service. One thing that it faithfully does is log any errors to the Application log. I have the following code that does this:
Dim appLog = New System.Diagnostics.EventLog With {.Source = "MyService"}
appLog.WriteEntry(message, EventLogEntryType.Error, transactionID)
I also have the following in my app.con...