I've been working with .net since 2001, and I am considering making a move into the java space.
I find that java has so many more mature tools (hibernate is more mature, spring framework, established patters/designs, containers, distributed cache frameworks, etc etc.)
I have been doing .net, and just recently I have been getting into d...
I recently wrote a piece of code that looked a bit like this:
IEnumerable<DTO.Employee> xEmployee =
from e in xDoc.Descendants("Employee")
where int.Parse(e.Attribute("Id").Value) == emp.Id
select new DTO.Employee
{
Id = (int)e.Attribute("Id"),
LastName = (string)e.Element("LastName"),
FirstName =...
Hi! I need to dynamically call web service! For this I made simple web service Service1.asmx
Then I created the proxy class for the Service1 Web Service, I use the WSDL.exe utility and following command at the command prompt:
wsdl /language:VB /out:myclass.vb http://localhost:3245/Service1.asmx?WSDL
This command create class myclass.v...
I understand that the "NUnit vs. MSTest" question has been asked alot on SO. However, I have a simple question that I think hasn't been answered directly.
I am new to TDD, and I know that both have their pro's and con's, however I want to know from a simplicity point of view which would be easier, MSTest or NUnit?
I have no preconceive...
I recently created a windows service which can wear various hats depending on what it needs to do. One of these hats is the ability to create update and delete outlook contacts on an exchange server. Before the windows service, the application ran as a windows app and used the outlook interop to get the job done. As a windows service tha...
I have a formview. With the datasource of the formview i want to insert a record into the database, but i want to insert a value i get from a method i create in code. Doesn't that mean that i will not be able to directly code this onto the Data source using the wizard?
...
Is there any differences between Math.IEEERemainder(x,y) and x%y ?
...
I don't want to actually MAKE the pong easter egg, but for anyone with Dreamweaver, try typing 'dreamweaver' into the color selection box to play a round of pong.
The bit that I want to know how it works is the bit at the end once you lose.
After your loss, it will immediately play a small tune, whether or not your volume is on. In fac...
Hi,
I have a question. Is it possible to replace dataContractSerializer in Windows Communication Foundation with my own serializer. If it is possible, how can I achieve this?
...
How can I determine if the running application is a Windows Forms or a Console application?
...
So, I have the following tables:
Using LLBLGen 2.6 (Adapter Version - No Linq), SQL Server, and .NET 3.5, how would I write the following query?
SELECT o.ObjectID
FROM Object o
INNER JOIN ObjectDetail d ON i.ObjectID = d.ObjectID
WHERE d.CreatedDate = ( SELECT MAX(CreatedDate)
FROM ObjectDetail
...
I need to come up with a better way to manage my utility functions. Currently, functions are pasted from other projects into the solution where they are needed, as they are needed. Definitely not the way to go. It's a huge PITA! Especially painful when these functions change over time due to a variety of reasons.
I'm think I want to cre...
I have a C# application which consists of 3 forms:
1: Battleship Game GUI
2: Network GUI (does client/server connections)
3: Chat GUI
Form 1 is loaded first. When the user selects setup network, Form 2 is displayed.
Chats are displayed when the user opts to send a chat or when a chat is received.
I would like Form 2 to process all...
We are looking into the PureComponents Ultimate Suite for a WinForms project. The controls seem to offer a lot of nice function but we are concerned about their stability. Does anyone have experience with these controls?
http://www.purecomponents.com/
...
According to http://msdn.microsoft.com/en-us/library/ms229017.aspx, value types "are allocated on the stack or inline with other structures*". Yet in the stack is an implementation detail, Eric Lippert states that that's an implementation detail.
To my understanding, an implementation detail is "a behavior produced by code which may be...
I'm modifying an existing winforms application to use the Logging Application Block. For historical reasons this app gets its main database connection string from the registry, and I'd like the Logging Application Block to use the same details for logging to the database. How can I do this?
The approaches i can think of are:
1) Create ...
this is my button click sub
Protected Sub abc_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnsavecurrent.Click
Try
If Not Page.IsValid Then Exit Sub
Saveabc()
Response.Redirect("abc.aspx")
Catch exab As Threading.ThreadAbortException
Catch ex As Exception
ReportError(ex...
I have a WinForms control on which I want to display two things:
An underlying image painstakingly loaded bit-by-bit from an external input device; and
A series of DrawLine calls that create a visual pattern over that image.
Thing #1, for our purposes, doesn't change, and I'd rather not have to redraw it.
Thing #2 has to be redrawn ...
Hi All,
I have created a windows application which makes use of Office.dll and powerpoint dll of Microsoft office 2003. At design time, when I am adding referrence of these dlls to my project it refers following path;
C:\WINDOWS\assembly\GAC\Microsoft.Office.Interop.PowerPoint\
The application runs perfect on the machine where it is de...
I have to develop a console application that would monitor and list all the events fired by browsers: Internet Explorer 8, Mozilla Firefox and Google Chrome.
What topics need to be studied? Can you help me in some ways?
...