I'm trying to send an array of objects wrapped in an array object wrapper to a WS via JSR172 WS calls. Using the generated stub, I'm able to download objects from the server, but I'm not able to upload objects to the server. This currently happens on all simulators in house.
This is all the information I can get out of the server exce...
I've upgraded a solution to use MSBuild 4.0. It compiles but I get lots of warnings, for example:
"T:\projects\Castle.Core\buildscripts\Build.proj" (Package target) (1) ->
"T:\projects\Castle.Core\Castle.Core-vs2008.sln" (Build target) (2:2) ->
"T:\projects\Castle.Core\src\Castle.DynamicProxy.Tests\Castle.DynamicProxy.Tests-vs2008.cspr...
This is maybe a follow up to question about nullable types.
Where exactly are nullable value types (int?...) stored in memory? First I thought it's clear enough, as Nullable<T> is struct and those are value types. Then I found Jon Skeet's article "Memory in .NET", which says:
Note that a value type variable can
never have a value ...
Hello, Ive been making a find, find next function for my richtextbox, so I have these check boxes to let the user search by whole word or case sensitive or both, and I got the first two, to work but I can't get it to work with both case a whole word checked, here's my code:
if (isWhole == true && isCase == true)
{
...
I'm using .NET 2.0 with standard controls. I want to display a simple list with the following formatting:
Column1 contains a 32x32px icon
The second column contains 2 text lines:
1 Bold formatted text line
1 Non bold line
Rows are separated by a dotted line (3px space, 1px dot, 1px height)
What's the best way to do this ?
.... e...
Hello,
In asp.net 2.0 application I am trying to create thumbnails from uploaded images. However when I test the application on my PC under Windows7 it works fine, but on the real Windows 2003 Server the resized image has worse quality.
Where this difference could come from? Different JPEG codec or what, if Yes how it can be updated o...
Why is it that I have to upgrade to VS 2010 to build/run .NET4 projects? This seems somewhat ridiculous to me. Why should the run-time that my code runs against, or the compiler that the IDE invokes (hopefully) generically through MSBUILD rules have anything to do with the IDE I am using?
...
In C# what's the best way to remove blank lines i.e., lines that contain only whitespace from a string? I'm happy to use a Regex if that's the best solution.
EDIT: I should add I'm using .NET 2.0.
...
I have Dual Monitors and want displaying a windows form in the center of the screen. (I have a variable MonitorId=0 or 1).
I have:
System.Windows.Forms.Screen[] allScreens=System.Windows.Forms.Screen.AllScreens;
System.Windows.Forms.Screen myScreen = allScreens[0];
int screenId = RegistryManager.ScreenId;
// DualScreen management
if ...
Why does the following display 12/31/1600 ???
Imports System.IO
Module Module1
Sub Main()
Dim fi As New FileInfo("DocFiles\phillips_phone_number.txt")
Console.WriteLine(fi.FullName)
Console.WriteLine(fi.LastAccessTime.ToShortDateString)
Console.ReadKey()
End Sub
End Module
...
The question explains it all.
I have different classlibraries but I would like to compile them into one general DLL.
Is this possible?
I'm using .NET 3.5 with visual studio 2008.
cheers,
M
...
Hi,
I am using pnunit to run nunit tests on remote machines, the pnunit agent loads the test and runs it in Windows 2008 but the test fails to load in Windows 2003, the agent error is
INFO PNUnit.Agent.PNUnitAgent - Registering channel on port 9080
INFO PNUnit.Agent.PNUnitAgent - RunTest called for Test MyTest, AssemblyName test.dl...
VB6 & SQL Server 2005
When i run the Windows based Software exe file,
it is showing the login page,
after login page - no screen is displaying,
I checked the task manager, in task manager it is showing as software as running,
But there is no page is appearing.
Is any firewall blocking or some other issue. But software is running wi...
I've been given 2 .net services. 1 needs to run right after the other. Ideally I'd merge the two services into 1, but given that this is a stopgap measure for only another month or two before its not needed any more I'd prefer not to have to do that much modification and testing on a large change. I was wondering how I could tell service...
Hello guys,
I need to develop a client server system where I can have multiple clients communicating with one server at the same time. I want to communicate xml serialized objects and also need to send and receive other commands to invoke methods. Now, I am just starting with socket programming in C# and .Net and found that the asynchron...
I was just thinking about it and since .Net has introduced properties is there ever a situation where you would want to leave your code as a method that returns a value as opposed to a readonly property.
...
In standard MSN code, there's a line on a ListView - Ownerdraw - DrawItem :
if ((e.State & ListViewItemStates.Selected) != 0)
{
//Draw the selected background
}
Apparently it does a bitwise comparison for the state ?? Why bitwise ?
The following doesn't work:
if (e.State == ListViewItemStates.Selected)
{
//Doesn't work ??
}
...
In my C# app I get an xml from a server that contains some replies like in a forum thread (with elements like author, time, body, title, whatever).
When I get this xml, I create a new form in which i want to display these replies, and a little text box with an "add reply" button. I'd also like some edit buttons on perhaps my own replies...
I was working on Project Euler 40, and was a bit bothered that there was no int.Parse(char). Not a big deal, but I did some asking around and someone suggested char.GetNumericValue. GetNumericValue seems like a very odd method to me:
Takes in a char as a parameter and returns...a double?
Returns -1.0 if the char is not '0' through '9...
Can you have more than one CustomValidator on a single page?
I have two separate CustomValidators with two separate controls on one page. Both ServerValidateEventHandlers are setup for each control.
The issue is that it only fires on the first event handler twice.
...