all groups > dotnet framework > june 2006
Filter by week: 1 2 3 4 5
How do I do this
Posted by Larry Smith at 6/30/2006 9:13:01 PM
Looking at the ".resx" files produced by the Windows forms designer, I see
nodes like this:
<data name="MyRadioBtn.Size" type="System.Drawing.Size, System.Drawing">
<value>94, 21</value>
If you then read the "94, 21" back into your code as a string (exactly as
seen), how do you then... more >>
Cryptography: RSA Questions
Posted by David at 6/30/2006 8:04:18 PM
1) Is RSA used by other programming system? Eg. If I gen. a key,
can I share it and someone with Java, etc. access it?
2). When generating a public key, you get <Modulus> and <Exponent>
values. What parts do you need to share with someone. Also, what is
the correct format for these value... more >>
service pack ?
Posted by Spartaco at 6/30/2006 5:59:29 PM
do you know if there is a plan from MS to release a service pack for .net
2.0 and vs2005 ?
thanks.-
... more >>
Escaping backslashes in XPath (C#)
Posted by chris at 6/30/2006 8:37:02 AM
I have an XML file which have nodes that contain filepaths,
e.g.<path>c:\SomeDirectory\SomeFile.txt</path>
I'm using an XmlDocument and XPath query to try and find a node
XmlDocument doc = new XmlDocument();
doc.LoadXml(File.ReadAllText(xmlFilePath));
string somePath = @"c:\SomeDirectory\S... more >>
.Net framework and VB
Posted by Prateek at 6/30/2006 6:41:27 AM
Hi,
I have recently started coding and designing the ,.NET based system
using different technology involved in .NET and well from the subject
line of this post, it is obvious that I am coming from a VB background.
I have many years of expirance in designing distributed system based on
... more >>
Casting IEnumerable<T> to IEnumerable<V>
Posted by Daniel at 6/30/2006 4:57:31 AM
Suppose a collection class defined as:
public class Friends: ReadOnlyCollection<Friend> {}
where Friend implements IPerson:
public class Friend:IPerson {}
My question: is there a neat+lean way to implement IEnumerable<Person>
in the collection class?:
public class Friends: ReadOnlyCo... more >>
mail failed
Posted by Crespo at 6/30/2006 12:00:00 AM
hi,everybody
I use dotnet 2005 and c sharp to deliever a mail to a certain mail
address,but it failed with messages such as "invalid parameter,the server
response: decode failed". My codes is listed belowed:
try
{
MailMessage mailObj = new MailMessage();
mai... more >>
ImageAttributes isn't working
Posted by ryandailey21 NO[at]SPAM hotmail.com at 6/29/2006 10:23:12 PM
Hello,
For some reason this ImageAttributes isn't doing what I tell it. I'm
not sure what I am missing. I am trying to get background of the image
to display as transparent. But it draws the image unchanged. Here's
my code.
Dim ImgColorMap(0) As System.Drawing.Imaging.ColorMap
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Convert to Long from Double that is over 18 digit long from Oracle
Posted by Jordan at 6/29/2006 9:53:01 PM
This is a serious bug in .NET 1.1
Using SQL select one field from Oracle table,
This column Oracle data type is: Number(18),
the field value is: 235312035283022003
which is the correct value.
However, using DataReader,
(We want the end result is long type, the only way is GetDouble(read... more >>
Opening projects from VS 2003 in VS 2005
Posted by Nathan Sokalski at 6/29/2006 5:07:20 PM
I recently upgraded from Visual Studio .NET 2003 to Visual Studio .NET 2005.
I have several projects that I created in Visual Studio .NET 2003, but when
I try to open them in Visual Studio .NET 2005 it tries to force me to
convert them. for some of these it would be fine, but some of them run ... more >>
Now I need to do this without breaking ASP.Net
Posted by Patrick Bates at 6/29/2006 3:51:20 PM
I've been struggling for two weeks now to duplicate a VB6 ActiveX control in
VB.Net, and also improve it's functionality. The control is used to collect
the user's fingerprint and compare it to a stored copy on the server, and if
the match is successful fill some hidden fields with values and... more >>
RSACryptoServiceProvider.VerifyData Hangs
Posted by PV at 6/29/2006 2:46:37 PM
I have found that RSACryptoServiceProvider.VerifyData sometimes hangs for
several (typically 6 or more) seconds. This is very irritating since a
component that I am using makes this call every time a form in my
application opens. The entire application freezes. Obviously it makes my
appli... more >>
Pinning a managed structure
Posted by Ulrich Sprick at 6/29/2006 2:43:30 PM
Hi all,
is there a simple possibility to pin down a C# class member (a structure) so
that I can use it in an unmanaged DLL?
I only found the C# fixed() statement, but the structure is used throughout
the whole application lifetime, so fixed() does not seem to be the method of
choice...
... more >>
How to Stop a Listening socket?
Posted by rossu at 6/29/2006 1:52:01 PM
I'm trying to make a simple little asynchronous socket server. It accepts
connections, reads and writes, but I can't make it gracefully stop listening.
listener.listen(1)
listener.beginaccept(...)
If before anyone has attempted to connect, I try to stop the listener
socket, I get nasty ... more >>
Up/down value conversions
Posted by Mike at 6/29/2006 10:43:49 AM
Greetings,
We are using an up/down control to facilitate numeric data entry,
however, we are noticing issues converting from the up/down value
(apparently a Decimal) to the units we are working with (Double) and
vice versa. There appear to be precision issues, and then we take those
numbers a... more >>
Display text in different colors in a textbox using WndProc
Posted by digitalshehan at 6/29/2006 9:19:41 AM
Hi All,
I need to have a text box that displays text in different colors. I
tired overriding WndProc but I still couldn't. Below is the code
snippet I'm using.
Would appreciate if someone could help me out with this (wolud
appreciate if the solution is done using WndProc)
cons... more >>
MS Unit test and CruiseControl.Net integration
Posted by StuG at 6/29/2006 9:06:37 AM
Hi All,
We are currently running continous integration using a server running
cruise control.net. This server does not have VS2005 installed on it,
only the .Net framework.
Previously, we have been using Nunit to write our tests but I thought I
would give the integrated MS unit test a go an... more >>
.NET UpDown KeyPress Beep
Posted by Mike at 6/29/2006 7:06:17 AM
Greetings,
We are handling the KeyPress event in an UpDown control, which
determines if Enter or Escape has been pressed, then closes the dialog
with either a DialogResult.OK or DialogResult.Cancel, respectively. We
seem to be having a beep occur when this happens, at some point after
the eve... more >>
Maximum Characters in Stringbuilder?
Posted by avarga82 NO[at]SPAM gmail.com at 6/29/2006 5:44:45 AM
Hello,
I'm using a Stringbuilder to building dynamic HTML, and I was wondering
how long it can get before it gives up. I won't know the length of the
HTML until it's finished building it. I've read a few articles that
suggest setting an initial size when you instantiate it, but will that
wo... more >>
binding to an unsigned assembly outside the appbase
Posted by janekw at 6/29/2006 2:20:52 AM
....is this possible? Can you perchance provide an entry in the config
file which would allow such behaviour?
I think it should be possible at least on the local machine, you can
always copy those unsigned assemblies to a subfolder of your app, so
it's not like it's a security feat.
Thanks ... more >>
how to produce library documentation?
Posted by Lloyd Dupont at 6/29/2006 12:23:11 AM
I'm trying to write the documentation of my library using XML tags.
I'm using NDoc but it doesn't support C# 2.0 very well.
Any tip on what other product I could use?
... more >>
Event Broker
Posted by Goh at 6/29/2006 12:00:00 AM
Hi,
How Event Broker actually work? Any simple examples show Event Broker
future in simple way?
Thanks ,
Goh
... more >>
Tab Control without tab section
Posted by Goh at 6/28/2006 6:51:51 PM
Hi,
Any component that work like Tab but without the all the tabs for
user to click from one view to another view. we will programmatically other
button to perform tabs view change from one to another.
hope that you guy understand what I trying to explain. I need this
bec... more >>
how do I download the right version
Posted by Windwatcher at 6/28/2006 5:33:38 PM
I am trying to install a program which requires Net Framework 1.1.4332.
Microsoft has so many different listings for this, I can't figure out which
one I am supposed to download. I'd appreciate a link or just the correct
title for what I want. Thanks for helping....
... more >>
Getting Array Type From Type
Posted by gary at 6/28/2006 4:21:07 PM
Currently I am doing the following to find an one dimensional array
type of a type -
Type asSingle;
Type asArray = Array.CreateInstance ( asSingle , 0 ).GetType ( );
Is there a way to do this without creating an instance?
I do not know the array type at design time.
Thanks in adv... more >>
Update Profile of Created User
Posted by Morgan at 6/28/2006 3:17:01 PM
I've created my own version of the CreateUserWizard control that gathers up
all the information I need when a user requests an account. Once all the
data is gathered and validated, the FinishButtonClick property calls a method
that does the following:
1. Creates the user account:
Membersh... more >>
Error with partitioned session
Posted by Demi at 6/28/2006 1:33:02 PM
Running ASP.NET2. Every once in a while I get this error:
Unable to cast object of type 'System.Collections.DictionaryEntry' to type
'System.Web.PartitionInfo'.
at System.Web.PartitionManager.Dispose()
at System.Web.SessionState.SqlSessionStateStore.OnAppDomainUnload(Object
unuse... more >>
Get Dotnet Framework version from command line
Posted by bcastaing NO[at]SPAM gmail.com at 6/28/2006 9:45:15 AM
Hi everybody,
I write a VBS script witch uses csc.exe (command line dotnet compiler),
but my problem is to detect what version of Dotnet Framework is
installed on the server to use the good repertory 1.1 or 2.0 (v1.1.4322
or v2.0.50215 ...)
What command line or script can I use to get this in... more >>
Combobox refresh after changing displaymember and valuemember
Posted by dchman at 6/28/2006 9:31:02 AM
I want to set the values for the combobox.displaymember and valuemember at
runtime. Its seems simple enough, but after changing them in response to a
change in an option group, I can't figure out how to get the combobox to
refresh itself with the new settings. I've tried the combobox.refresh... more >>
OrderedDictionary - to retrieve objects in same order
Posted by Suhaib at 6/28/2006 8:20:01 AM
Hi,
I want to use OrderedDictionary to get my objects in same order as they
are inserted in. I also want to access the objects using a key. So my
question is whether this is the best option or there is some better
collection object than OD. The current MSDN documentation dosn't says
anyt... more >>
Not CLS-compliant
Posted by Kevin Burton at 6/28/2006 8:09:02 AM
I have an argument in the constructor for a VB form that as a parameter that
looks like:
ByVal lblHeader As Controls.MGLabel
Visual Studio 2005 gives me a warning:
Type of parameter 'lblHeader' is not CLS-compliant
I am not sure what to do.
Thank you.
Kevin... more >>
way using splash screen
Posted by Goh at 6/28/2006 12:00:00 AM
Hi,
Just think to get some comment from communitiy regarding best
pratice using splash screen. If we develop an application that need loading
database to dataset it's we need done it at main page fill up all nessarcy
table to dataset. since the splash screen only counter the main pa... more >>
Managed to unmanaged performance
Posted by Toadfather at 6/27/2006 11:24:21 PM
Hi all
Existing COM ATL DLL wrapping a C++ library. Interoping from a C#
application, passing a large string containng XML (5-130kb). Need to
significantly improve performance of both the interoping and the
performance of the native functions (performance critical app).
Opinions sought on mos... more >>
Diagnosing root cause of .NET application using nearly 500 MB memory
Posted by Matt Adamson at 6/27/2006 9:23:49 PM
We have a .NET application which is obviously using nearly 500MB memory and
we can't understand why. I created a dump for a different issue and the
server ended up creating a process shutdown dump of this size.
I have seen the DumpLargeObjectSegments command however I'm not sure what to
look... more >>
Versions Needed?
Posted by Tom Grillot at 6/27/2006 4:26:22 PM
In my "Add or Remove Programs" list I have the following:
Microsoft .NET Framework (English)
Update Installed on 3/16/2005
Update Installed on 3/18/2005
and
Microsoft .NET Framework 1.1
Update Installed on 3/16/2005
Update ... more >>
How to figure out if data is base64encoded.
Posted by Jeremy Chapman at 6/27/2006 4:25:29 PM
Is there some way to programatically tell if a string is base64 encoded?
... more >>
Assembly.LoadFrom loading a .net 2.0 assembly from a 1.1 app
Posted by Jeremy Chapman at 6/27/2006 2:28:37 PM
Is it possible to load a .net 2.0 assembly from a 1.1 app using
Assenbly.LoadFrom or possibly some other means?
... more >>
Selialize exceptions
Posted by YC at 6/27/2006 7:57:02 AM
Hi,
I creating a custom exception and I'm implementing the best practice with a
constructor which is needed for serialization (with Serialization Info info,
StreamingContext context).
My question is - what’s the use for serializing exceptions when working with
web services as my remoting m... more >>
CHM file with .NET
Posted by Fla at 6/27/2006 7:05:52 AM
Hy!
I've got the following question in VB.NET.
How can I access to a particular topic of a CHM file generated by HTML
Help Workshop?
Some newsgroups/sites on web suggest to use CHM file for help-on-line
and the HTML files for accessing a particular topic; but I want to use
only the CHM file al... more >>
XML merging
Posted by Sanjib Biswas at 6/27/2006 1:52:46 AM
Hi All,
I am looking for XML merging for the following scenarios. I want to =
load both the input files and show in the tree viewer and highlight the =
differences. Now its up to the user to select the correct node. Any non =
conflicting differences should be automatically merge onto the me... more >>
convert datetime to sortable format
Posted by pranesh.nayak NO[at]SPAM gmail.com at 6/26/2006 11:38:43 PM
Hello again,
I need to convert date to "yyyy-MM-ddTHH:mm:ss" format.
Below code does this, but it appends time twice in date variable.
DateTimeFormatInfo dy = new DateTimeFormatInfo();
dy.ShortDatePattern = "yyyy-MM-ddTHH:mm:ss";
dy.ShortTimePattern = "";
// next set dy to current cultur... more >>
DateTime without time instance
Posted by pranesh.nayak NO[at]SPAM gmail.com at 6/26/2006 11:01:56 PM
Hello group,
I'm calling Java webservice from c#.Net client which accepts only date
without time instance. The type of variable should be DateTime. I think
c# doesn't support shortdate type. Please let me know if anybody has
already come across this problem.
... more >>
NOT using the System.Threadpool in server class applications
Posted by Chris Mullins at 6/26/2006 9:24:07 PM
Quite often of late I've been asked about when to use the System Threadpool.
I finally sat down and wrote a blog detailing the issues in the ThreadPool
and why it's unsuitable for use in production grade server applications.
Any feedback on this is appriciated!
http://www.coversant.net/do... more >>
DataGridView
Posted by Goh at 6/26/2006 6:05:34 PM
Hi,
As we all know that Asp.net allo DataGridView inside another
DataGridView. How can we implement this kind of thing in Win Form.
Thanks.
Goh
... more >>
Create my own designer
Posted by Andrey Dzizenko at 6/26/2006 1:56:22 PM
Hi all!
I want to create a designer for graphical elements such as line or
rectangle. This designer should add an object to some workspace and then
allow to transform it (change size and position).
Its something like ControlDesigner, but ControlDesigner doesn't allow to
move the right... more >>
Programmatically Install Certificate into Windows Certificate Store
Posted by Brad at 6/26/2006 12:08:40 PM
I have a Personal Information Exchange PCKS #12 certificate file that
requires a password when manually installing. This certificate was
issued by a 3rd party company I need to communicate with via https.
Initially I exported the PCKS #12 certificate to a DER encoded binary
X.509 certificate an... more >>
How should I convert Rtf to plain text?
Posted by PIEBALD at 6/26/2006 12:03:02 PM
So far, as a work-around at least, I'm instantiating a RichTextBox, setting
its Rtf property to the rich text I have, then using the Text property to get
the plain text.
This works, but I expect there's a more efficient way.... more >>
Possible binding issue
Posted by Trent Rossiter at 6/26/2006 11:00:02 AM
I am using reflection to create an assembly (Assembly A) and invoke a method.
Assembly A has its own config file, which is set at run time. To read this
config file I had to set some binding flags in the code, now this seems to
work fine, Assembly A can read its config file. However Assembly A... more >>
Get text message of textbox in a webpage
Posted by vutaviva NO[at]SPAM gmail.com at 6/25/2006 3:14:42 AM
Hi,
Please help me!
I want to get the text of one textbox in a webpage. For example, I
compose mail by gmail. After I type content of my mail and click a
button on toolbar (created by myself), my function will grasp all this
content. Final, I'll create signature from this content.
How... more >>
compile-time error generating custom attributes
Posted by Picho at 6/25/2006 1:34:46 AM
hi all,
can I create my own compile-time attributes?
e.g. an attribute applied to a method and that will generate a compile time
error if the method has the wrong signature?
I was hinted twords 'Intellisense API' but cant seem to find it at all...
thanx,
Picho
... more >>
|