|
Bug in Uri class?
I believe I have found a bug in the Uri class. I believe it is incorrectly
removing periods that appear at the end of segments in the path. The
following code shows what I mean:
public void TestUriAndPeriods()
{
const string urlWithoutPeriod =
"http://my.domain.com/top.level.folder/top.level.folder/my.cool.picture.jpg";
const string urlWithPeriod =
"http://my.domain.com/t...
|
1 |
12/22/2008 7:50:52 PM |
|
Forcing validations in WPF
Sorry for the repost, but apparently I didn't post it right the first time...
Does anyone know how to force WPF validations to run from the code behind? I
have been banging my head against the wall for way too long on this one. The
premise is simple. I have a form with a bunch of fields (TextBox, CheckBox,
RadioButton, etc). Since the user doesn't have to tab through all of they
fields ...
|
1 |
12/22/2008 5:48:05 PM |
|
Enumerate the enum values
I have a enum.
I need to get the character array of names of the constants that are
included in this enum.
http://www.alvas.net - Audio tools for C# and VB.Net developers + Christmas
Gift
...
|
2 |
12/22/2008 1:43:01 PM |
|
WPF ListBox - cannot get to scroll automatically to bottom
Hi there,
I know this sounds simple, but how can you get a ListBox (in WPF) to
scroll down to the bottom, so that new items auto scroll the items
upwards? Something like setting a TopIndex, or a PutInView. Right now
I'm iserting at the top (insert position 0) so that it scrolls
downwards.
Thanks!
-Dean...
|
3 |
12/21/2008 4:09:57 AM |
|
dotnet 3.0 installed?
hi all,
i'm a packager, creating MSI files, and a package i need to do has dotnet
3.0 as a pre-requisite.
in order to verify the dotnet installation, how can i make sure that it was
correctly installed?
i know nothing about dotnet, i just need to verify the installation is good.
thanks!...
|
2 |
12/20/2008 12:13:01 PM |
|
Marshalling List<>
I'm writing a UserControl based Class Library that will
basically be an ActiveX control that will need to be used in
unmanaged and managed clients. I need to be able to
expose some static information that says something
about the functionality of the control. The information
is stored in a struct and a list of the structs.
How can I accomplish the property below of:
public List<MYI...
|
1 |
12/19/2008 2:37:43 PM |
|
How to implement DRM functionality in Windows mobile using C#
Hi Experts,
how to implement FDRM concept in windows mobile using C#.
currently i doing a project in that i have to download DRM protected
data file from the server and to save in windows mobile device. i able
to get the server response using http request , after that i donot
know how to save it (using DRM encryption techniques). please help me
out. please provide if any source code...
|
1 |
12/19/2008 12:16:18 PM |
|
Linq LoadOptions problem
Hi,
When I do:
DataClassesDataContext db = new DataClassesDataContext (connectionString);
//do some select, read data from result
var options = new DataLoadOptions();
options.LoadWith<User>(u => u.UserType);
db.LoadOptions = options; // exception
I have an exception:
"Setting load options is not allowed after results have been returned from a
query".
It ridiculous that...
|
4 |
12/19/2008 8:51:16 AM |
|
Working with sparse files in .NET
I'm trying to create a sparse file and set the EOF to 4 TB. I can do this
easily enough in unmanaged code:
#include <windows.h>
#include <stdio.h>
void main(int argc, char *argv[])
{
// Cleanup
HANDLE hFile = (HANDLE) INVALID_HANDLE_VALUE;
// Cleanup
LARGE_INTEGER li = {0, 1024};
DWORD cb;
DWORD dwTick;
HRESULT hr = S_OK;
dwTick = GetTickCount();
...
|
2 |
12/19/2008 7:17:19 AM |
|
runchkdskutility
When I try to defrag,I get the
warning"directoryc:\docum~1\frank\locals~1\applicationdata\cyberdefender is
corrupt and unreadable" Then it says Please run the chkdsk utility.I'm new to
the PC and i do not know what that means...I'm running XP sp3 I really need
to run this dskchk thing..Thankx for the help.......
|
2 |
12/18/2008 10:28:27 PM |
|
Using the loader with a custom runtime
Hi,
There are different Common Language Infrastructure implementations in
addition to Microsoft .NET Framework. Examples include Mono,
Portable.NET, Rotor, VMKit, Parrot, ILDJIT, etc.
I would like to use test my software with other implementations as well.
One of the unique features of .NET Framework is that it integrates with
the loader component of the operating system that result...
|
2 |
12/18/2008 12:57:16 PM |
|
Problem with socket Connection shutdown
Hi,
I have a server which is listening on port 8000 which is writtern in
C Language. There is a macro MAX_TCP_CONNECTION defined as 4. I have a
TCP/IP client writtern in c#.Net, so when i want to send a data to the
server i am creating a new socket, connect it, send the data and
disconnect it. The problem is after 4 times even though i send data
the server is not getting any data. While clo...
|
2 |
12/18/2008 12:56:16 PM |
|
Help: "Not Responding" with splash screen on Vista
My app (.NET 2.0) has a very basic splash screen (borderless form) that I
load manually early in app startup. It works fine on XP.
On Vista, the app takes longer to load. In a few moments, the splash
screen is replaced with a blank form of the same size with a title bar,
which reads "<form text property> (Not Responding)". After a few moments
more the app continues normally.
...
|
3 |
12/18/2008 2:00:09 AM |
|
Wrap a class during runtime
Hi,
I need to wrap a class and change its attributes to readonly during
run-time. My class has primitive datatype properties and a lot of properties
with class datatype. I have a code sampe that wrap "partially" of the class
properties. So far, all of the datatypes could be wrap except for class
datatype.
I have sample code posted here
http://www.experts-exchange.com/Programming/L...
|
1 |
12/18/2008 12:22:10 AM |
|
Forcing validations in WPF
Does anyone know how to force WPF validations to run from the code behind? I
have been banging my head against the wall for way too long on this one. The
premise is simple. I have a form with a bunch of fields (TextBox, CheckBox,
RadioButton, etc). Since the user doesn't have to tab through all of they
fields (should, but they the UI doesn't make them) I need to make sure all of
the fiel...
|
1 |
12/16/2008 11:30:00 PM |
|
How to check if directory exists
I need to set Environment.CurrentDirectory. If the path I am trying to set
doesn't exist, the statement raises an exception. Is there a way to check
whether given path exists? In the other words, is there in Framework 2.0
something similar to File.Exists() for directories?
Gregory Khrapunovich...
|
2 |
12/16/2008 7:42:01 PM |
|
Mouse pointer changed
My mouse pointer has changed from an arrow to a smaller arrow and egg-timer -
still works but is annoying. I've tried to change it through the Control
Panel but it still does the same thing.
Can anyone help and explain whats happened and how to resolve it?
Thanks...
|
1 |
12/16/2008 4:13:01 PM |
|
Can I install Client Profile by installing DotNetFx??Client_Packag
Can I install Client Profile by installing DotNetFx??Client_Package_x86.exe
in turn?
For example:
1) if there isn't any .NetFramework have been installed, then all 3 packages
will be installed:
DotNetFx20Client_Package_x86
DotNetFx30Client_Package_x86
DotNetFx35Client_Package_x86
2) If there is .NetFramework 2.0 have been installed, then I only install
the last 2 packages:
Dot...
|
3 |
12/16/2008 11:03:59 AM |
|
HDD Drive light stays on
After installing a new a DVD-CD Drive the HDD drive light stays on always.
Running Windows xp sp3 any suggestions?
...
|
4 |
12/16/2008 12:29:46 AM |
|
Visual Studio 2005. Web Application Projects ? The project type is not supported by this installation.
I just re-installed Visual Studio 2005, after attempting to address
this issue by installing VS 2005 Dev team sp1 and the Web application
project add-on with no luck.
After a reinstall - I reset my environment to Web development.
I can't find the Web Application project type when I do File > new >
project .. anywhere.. where is it.
Also, If I attempt to open an existing Web Appl...
|
6 |
12/15/2008 11:58:02 PM |
|
Shared Calendar Visibility Outlook 2007
Hi All,
My organization migrated to Outlook 2007 a few months back- typically we all
keep our calendars private
It came to my attention today that my calendar was not set to private as it
previously had been when we used Outlook 2003 and it appears that anyone in
my organization can see my meeting details and open the meetings to view any
attachments included.
Many of my meetings ...
|
1 |
12/15/2008 11:20:01 PM |
|
operator overload for generic methods so I can do == and ++
I've got a method that I would like to turn into a generic that accepts
either an int or a long. However in the method I would like to:
a. test an instance of the generic type against 0 (or default(T))
and
b. increment an instance of the generic type.
Something like:
public T[] GetIds<T>(string[] names)
{
...
T id;
...
if (id == (T) 0)
...
...
...
|
4 |
12/15/2008 5:44:25 PM |
|
Workflow Error Binding System.Drawing.Size
I developed a custom activity that has a System.Drawing.Size
dependency property called AspectRatio. When a value is entered for
AspectRatio, the activity serializes/deserializes fine. But when I
bind AspectRatio to another System.Drawing.Size property,
deserialization results in an error (although serialization works
fine). I am using XOML files for workflow persistence:
Designer...
|
1 |
12/15/2008 5:14:42 PM |
|
HttpWebRequest issue
I am trying to connect to
http://ws.audioscrobbler.com/2.0/?method=user.getweeklychartlist&user=kurtrips&api_key=b25b959554ed76058ac220b7b2e0a026
using the code below. When the 'user' is correct (kurtrips in this
case), it's fine. The problem is when I use a user which does not
exist (say kurtrips123). In this case the exception is thrown as
expected, but I can't read the friendly error messa...
|
2 |
12/15/2008 4:54:46 PM |
|
Is there a way to resize an array from inside a procedure? Using Reflection maybe?
I want to write a VB.NET subroutine that will take an input array
of arbitrary type and resize it. Here is a trivial example of what
I am trying to do:
'Increase the length of an arbitrary input array by one, using ReDim.
Public Sub TryToReDim(ByRef ArrayIn As Object())
ReDim Preserve ArrayIn(ArrayIn.Length)
End Sub
Actually what I really want -- because VB is so braindead when i...
|
22 |
12/15/2008 3:41:58 AM |