I am looking for a Java equivalent to .NET's Snippet Compiler. Is there any such utility out there? That or a really light weight Java IDE for Windows? Eclipse and NetBeans seem too heavy-weight to practice basic syntax.
...
Using WPF .NET 4.0 in VS2010 RTM: I can't create a fullscreen WPF popup.
If I create a popup that is sized 50% width and 100% height everything works fine, but if I try to create a "full screen" popup sized to 100% width and height it ends up displaying at 100% width and 75% height... the bottom is truncated.
Note: The width and height...
Hello, I'm trying to use the VST.Net and NAudio frameworks to build an application that processes audio using a VST plugin.
Ideally, the application should load a wav or mp3 file, process it with the VST, and then write a new file.
I have done some poking around with the VST.Net library and was able to compile and run the samples (spec...
I transformed my VS2008 ASP.NET Website to a "Web Application" today using VS2010. So now it's possible to build a Deployment Package. A Zip Package which can be direclty imported into IIS7.
Usually I added a website in IIS7 called mydomain.com and put everything in its root dir. That worked.
However, since I converted to an Web Applic...
Hi
I need to create a very simple GUI application for Windows(open a file, do some changes based on user input, upload the file to an intranet server). The client company has the latest release versions of Java SE, .NET and Adobe AIR installed on all their machines. And their #1 requirement is to have the smallest possible package for x...
Hi Guys, I've been spending some time doing JavaCC parser generation for assignments at University and was wondering if there is a similar simple parser generator framework for .NET available?
I know there is ANTLR, but I found it a bit too big for my taste and really started to like the simplicity that JavaCC brings..
greetings Danie...
I just started working on a small team of .NET programmers about a month ago and recently got in a discussion with our team lead regarding why we don't use databinding at all in our code. Every time we work with a data grid, we iterate through a data table and populate the grid row by row; the code usually looks something like this:
Di...
Hi,
I have a byte[] with some data in it, I would like to write this byte array AS-IS to the log file using log4.net. The problems that i am facing is that
There are no overload for byte[] in TextWriter, so even implementing an IObjectRenderer is of no use.
I dont have access to the underlying Stream object of Log4.net
Also tried conve...
I suppose this question is more general than working with COM components. I have a .NET client written in C# and COM component written in pure Win32 API. Client side uses this component to perform some actions. How to know on the client that component did its job?
I think it may be socket/pipe, with component writing to it about results,...
I downloaded the .NET 4 framework from Microsoft here: http://www.microsoft.com/downloads/details.aspx?FamilyID=9cfb2d51-5ff4-4491-b0e5-b386f32c0992&displaylang=en
I installed and rebooted.
When I go to compile options --> target framework... .NET 4 isn't on the list.
Is .net 4 not compatible with VS2008? It would be nice if M...
How can I use the ListView_GetBkImage macro:
http://msdn.microsoft.com/en-us/library/bb761246(v=VS.85).aspx
... from a C#/WinForms application? I think this macro just wraps the SendMessage method, but I'm not sure. I couldn't find any C#-based samples on this.
Basically I'm trying to get a LVBKIMAGE ( http://msdn.microsoft.com/en-u...
i am trying to fetch anything that looks like a URL from a string
how would i do this with c#?
most of the are going to look like this: http://www.something.com, but some may look like this: http://something.somethingelse.com
...
Suppose I want to throw a new exception when invoking a generic method with a type that doesn't have a required attribute. Is there a .NET exception that's appropriate for this situation, or, more likely, one that would be a suitable ancestor for a custom exception?
For example:
public static class ClassA
{
public static T DoSomet...
For example I have a file '1.mp3', metadata are length, codec, compositor, license, bitrate, etc
How can I get that metadata? I want to get metadata from different types of files.
...
I have a project where I have multiple instances of an app running, each of which was started with different command line arguments. I'd like to have a way to click a button from one of those instances which then shuts down all of the instances and starts them back up again with the same command line arguments.
I can get the processes t...
Hey guys, I'm pretty new to Unit Testing so bear with me.
I realize that best best practice is not to auto generate unit tests, however I'd like to use Code Generation to set-up the basic skeleton of the tests.
Now, I know Visual Studio 2008 already has the built in "create tests", however, it just creates a flat list of all the classe...
I have a constructor question for C#.
I have this class:
public partial class Signature : Form, ISignature
{
private readonly SignatureMediator mediator;
public Signature(SignatureMediator mediator)
{
this.mediator = mediator;
InitializeComponent();
}
.... more stuff
}
I want to construct this c...
Now that Visual Studio 2010 has been officially released has anyone used it for developing for the .NET micro-framework and if so do you have any tips to help a newbie to the micro-framework?
...
I have a web service method in which I create a particular type of object, use it for a few seconds, and then dispose it. Because of problems arising from multiple threads creating and using instances of this class at the same time, I need to restrict the method so that only one caller at a time ever has one of these objects.
To do thi...
If I have a .Net Bitmap, I can create from it a GDI bitmap by calling the Bitmap's GetHbitmap() method.
Bitmap bmp = new Bitmap(100, 100);
IntPtr gdiBmp = bmp.GetHbitmap();
This works fine, but every time you call GetHbitmap, Windows has to allocate the new memory that the returned IntPtr references.
What I'd like to do - if possib...