all groups > dotnet framework > may 2007
Filter by week: 1 2 3 4 5
A simple enough problem
Posted by AlBruAn at 5/31/2007 5:30:00 PM
I have a class I've written that works great as is; however, I now need to
add three additonal fields to it. One of the additional fields is an
integer, as is the case with the already existing field...actually, I guess
property would be the better name for it...anyway; the other two properti... more >>
VS 2005 post Build event problem
Posted by Steve B. at 5/31/2007 3:30:51 PM
Hi,
I'm working on Windows 2003 Server SP2 X64 edition to create SharePoint
extentions.
After each rebuild, I have to recycle app pool that use the extention I've
build, that's why I wanted to add the following line in post build events :
"%windir%\system32\cscript.exe" "%windir%\system... more >>
Where can I find 'standard' tool bar icon images?
Posted by Jamie Risk at 5/31/2007 12:56:42 PM
I"m programming an application in VS2005 (C#) and I'm having a
devil of time locating images to put on my toolbar ... where are
they found?
- Jamie
... more >>
udp (UdpClient) not transmitting in vista
Posted by Jim Mead at 5/31/2007 12:28:01 PM
I have a program (works fine under XP), sends a udp message using .net
udpclient and listens for a udp response from dedicated music server that our
company manufactures. It does not work under Vista.
I have Norton Anit-virus for Vista (completely turned off).
I also have Windows firewall (c... more >>
Large MemoryStream > 2gb
Posted by Luca Martinetti - Phatsoft at 5/31/2007 6:54:03 AM
Hi,
Anybody has ever implemented a MemoryStream supporting more than 2gb?
I'm trying to implement it buf I have some problems with Buffer.BlockCopy
for large arrays.
Any suggestion or useful resource?
Thank
--
Phatsoft Inc.... more >>
Arrange Folder menu
Posted by Tony Lecart at 5/31/2007 6:45:01 AM
When I double click on a folder instead of opening the contents the search
options appears instead. On right clicking the folder I find the search
option appears at the top of the list and open option is second on the list.
How do I re-arrange these so that 'Open' appears at the top of the lis... more >>
caspol.exe from .NET 2.0 on Vista - access denied
Posted by Ihor Bobak at 5/31/2007 3:13:01 AM
I've installed Vista Business on a virtual machine, created a user "test"
during installation. This user is in the Administrators role, I can see it in
Computer / Manage / Local Users and Groups.
My problem is next. When I run a .NET 2.0 configuration command
caspol -m -ag All_Code -site mys... more >>
New setting at runtime
Posted by e-mre at 5/30/2007 4:05:12 PM
Is it possible to add a new record to the settings file at run-time? Or is
the only possible time to add a new setting is design-time?
There are many many thing in my application that the user can customize for
him/her. I am thinking of stroring these in the settings file on the user PC
but... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
windows service termates when user logs out
Posted by Andy Fish at 5/30/2007 2:28:02 PM
hi,
I have a windows service which is managed C# .NET 1.1. It is installed on
many sites but on one site the admin has reported that the service shuts
down whenever someone logs off the console. There is an event log message
saying the service terminated unexpectedly.
The service is runn... more >>
configSource option in web.config
Posted by lf at 5/30/2007 1:26:01 PM
I have a web.config file and I want to externalize my connectionStrings
setting so that it points to a separate file like so:
<connectionStrings configSource=".\subdir\connectionstrings.config">
However, I am attempting to encrypt this in code. (I can't use
aspnet_regiis because I need th... more >>
How to get a reference to parent object
Posted by news.microsoft.com at 5/30/2007 1:21:20 PM
In some classes i have properties defined on others classes.
In the classes referenced by properties, i need a reference to "parent"
object.
Something like this
Public Class MainClass
Public property1 as ClsData
...
End Class
Public Class ClsData
private _pa... more >>
How to get username/password info of a windows service user accoun
Posted by Andrew at 5/30/2007 12:04:02 PM
Hello, friends,
In windows service, after specifying username/password in installer like the
follows:
this.serviceProcessInstaller1.Password = "12345";
this.serviceProcessInstaller1.Username = "prodDomain\\appUser";
and installing this window service, I believe th... more >>
MSBUILD and ASCII Copyright
Posted by Flomo Togba Kwele at 5/30/2007 11:03:45 AM
Is there a way to create a copyright symbol as output? I've tried and haven't been able to.
<AssemblyInfo CodeLanguage="VB"
OutputFile=".\AssemblyInfo.vb"
AssemblyTitle="App"
AssemblyDescription="App Description"
AssemblyCompany="Company Name"
AssemblyP... more >>
where are the network classes in .NET?
Posted by giddy at 5/30/2007 10:22:38 AM
hi ,
I'm really confused about where microsoft programmers have put the
network classes?
I've been looking for classes in .NET that can enumerate/set etc
network shares , file sharing etc... for months now.
I know that the WNetEnumOpen , and its family of API are the win32 way
to go. but... more >>
Orcas, IIS7 and Windows XP
Posted by Sune42 at 5/30/2007 9:21:43 AM
Hi
Lets say that me an my developer team wants to develope a website
using Orcas and ASP.NET 3.0 features, targeting IIS7 on a future
longhorn server.
And we want to keep our windows XP (Don't want to move to Vista)
Is that possible to develop against ASP.NET 3.0/IIS7 on a XP machine
usi... more >>
Comparing objects using reflection
Posted by GeezerButler at 5/30/2007 8:51:15 AM
I am comparing 2 objects with a lot of public properties(more than 100
which are all ValueType or string)
So i decided to write a reflection based solution for that.
My code looks something like this:
public bool AreEqual(Mytype a, Mytype b)
{
PropertyInfo[] props =
typeof(MyType).GetProper... more >>
Saving a bitmap as a PNG without the gamma info
Posted by Patrick Ruzand at 5/30/2007 12:00:00 AM
Hello,
[Apologize for the cross-post in microsoft.public.dotnet.framework.drawing,
but I just noticed the .drawing group is not in the managed newsgroups list]
I have written a custom web control that dynamically generates bitmaps
in the response stream, using the Image.Save(stream, format) ... more >>
WCF is in .net 3.0 or higher only?
Posted by Andrew at 5/29/2007 3:04:01 PM
Hello, friends,
I found some articles about WCF, and saw it used System.ServiceModel.
However, I could not find this name space in our .net 2005. Is WCF in .net
3.0 or higher only?
Thanks.... more >>
Regular Epx
Posted by guate911 at 5/29/2007 1:03:32 PM
I am using the Regular Expression Validator, and I need to test for a
pattern that allows words in quotes, or multiple words in quotes
seperated by the word "OR".
I can get the single word in quotes check [^"]*, but I don't know how
to add the OR delimeter. Any suggestions?
See example Belo... more >>
serializable Class
Posted by sapsy at 5/29/2007 10:30:29 AM
hi,
I have a class which uses Microsoft.Win32.RegistryKey
class, and i am trying to Serialize this class but i get the following
Error... anu ponter will be really helpfull..
Message="Type 'Microsoft.Win32.RegistryKey' in Assembly 'mscorlib,
Version=2.0.0.0, Culture=neutral, Publi... more >>
need help on regex
Posted by AVL at 5/29/2007 8:08:03 AM
hi,
i'm a newbie to regex....
i need to check if a given string has more than two occurences of . in the
begiining of string
for ex, if string has value .test is valid but ..test is invalid
Can you help me out with the pattern for such strings?... more >>
Available COM Ports on Pocket PC (C#)
Posted by Khalid at 5/29/2007 1:53:22 AM
Hi all.
There is any way to know what are COM ports available/active on Pocket
PC throught C# Compact Framework?
And if possible also the name of the card/program that use these
ports.
Thank you very much
... more >>
Asp.net 2.0 error
Posted by Ravi Chander at 5/29/2007 1:09:02 AM
I am using windws 2003 std edition server with IIS 6.0 which was ruuning fine
with dot net frame work 1.1 with out any errors. But in last week I have
installed dotnet frame work 2.0 which are generating a unique error message
in event viewer. Please find the error message below and help me i... more >>
.NET Framework vs C++ code
Posted by Allen Maki at 5/29/2007 12:00:00 AM
I would be pleased if someone gives me a general idea; how I am going to do
this. I am using visual C++ .NET 2003.
I made a simple program using conventional C++ code. This program accepts
data from the user, does some calculations and outputs the result back to
the user using the co... more >>
Serializing some properties of a UserControl-derived class
Posted by she_prog at 5/28/2007 12:49:20 PM
I have a class derived from UserControl.
I need to serialize an object of this class, but only some properties
of it, as not all properties are serializable (some of the properties
coming from UserControl are like that). When serializing, how
could I ignore all the properties coming from the Use... more >>
treeview control
Posted by AVL at 5/28/2007 7:29:00 AM
Hi,
I need bind a Treeview control in my windows form with xml file and also,,,
display icons for each tree node....
how can I acheive it? ... more >>
writing tags in tiff images
Posted by Geordie at 5/28/2007 3:59:12 AM
Hello, we are developing an application that must process images
coming from a multispectral vision system. Images must be saved and
loaded in TIFF format, which I know it's possible calling
Save(System.String filename, System.Drawing.Imaging.ImageFormat
format)
The problem is that we need to w... more >>
Creating Shell Extensions in C#.NET
Posted by cjsoftuk at 5/28/2007 2:32:01 AM
Hello,
I'm trying to create a Shell Namespace Extension in C#, but I'm kind of stuck.
I'm using the framework at "http://www.dcooney.com/wiki/?NamespaceExtension"
to create the Namespace, and I can see that. I can see the folders I have
asked it to create when I double click, except they ar... more >>
Get existing Wi-Fi settings
Posted by Srini at 5/28/2007 12:37:42 AM
Hi,
I have a Wi-Fi adapter connected to my PC. It detects some access
points and some computers and devices with Wi-fi capabilities. I want
to know where these information stored in the PC. Is there any way to
get these information through C#? Please let me know.
To be more clear, I dont w... more >>
File searching is really slow, how do I speed it up?
Posted by janderson at 5/26/2007 8:01:10 PM
Hi gang,
I have a win32 C# app that needs to recursively search for a particular
file type really fast. It always searches the same place for these files.
I'm using Directory.GetDirectories and Directory.GetFiles to do it
currently. Because I know the location is the same every time I b... more >>
ListBox crash when accessing SelectedIndex
Posted by Valerie Hough at 5/26/2007 3:46:44 PM
Can anyone please tell me how it is possible to get the following crash when
accessing ListBox.SelectedIndex property:
Message: Index was outside the bounds of the array.
Stack Trace:
at System.Windows.Forms.ListBox.ItemArray.GetEntryObject( Int32
virtualIndex, Int32 stateMask)
at System... more >>
Converting to/from a string without regard to culture
Posted by John Brown at 5/26/2007 12:42:36 PM
Hi there,
Does anyone know how to go about reading/writing a type to a file in a
language (culture) independent way. For instance, let's say you're dealing
with the native "System.Drawing.Size" type on an English version of Windows.
You use the "TypeConverter" for this structure to generate... more >>
Threading question
Posted by GeezerButler at 5/26/2007 4:33:08 AM
I am very new to threading.
I am having trouble deciding on which object i should obtain lock.
class MyClass
{
private ICollection<ClassB> myColl;
public void ModifyCollection()
{
lock(????)
{
//modify the collection
}
}
}
Should I obtain lock on myColl itself or should... more >>
Parsing web.config
Posted by Andrew Chalk at 5/25/2007 5:10:52 PM
I am parsing my ASP.NET 2.0 web apps. web.config file. The following line
produces xnl with 0 elements
XmlNodeList xnl = xd.SelectNodes("/configuration/appSettings/add");
if web. config has:
<?xml version="1.0"?>
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
... more >>
XAMLParse Problems
Posted by Yehia A.Salam at 5/25/2007 4:34:35 PM
Hello,
I'm trying to build a WPF project in Visual Studio 2005, I didn't type much
code in the project, I just opened a new WPF Application template from
Visual Studio and run it, however the resulting executable fails to run with
this runtime error retrieved from Microsoft error reporting ... more >>
Installing a Windows Service
Posted by Andrew Chalk at 5/25/2007 1:51:16 PM
I want to use a .Net class to install a service written in unmanaged C++.
Are there .Net classes to do this? It appears the classes only allow you to
install a service written in .Net.
Thanks.
... more >>
Inheritance question
Posted by Flomo Togba Kwele at 5/25/2007 1:47:42 PM
My application consists of a single form with a panel on it. When the user selects a menu item, a
UserControl is loaded onto the panel.
All the UserControl forms are derived from ctrlForm.vb. I want to embed 4 Subversion keywords into
each UserControl. Each of these keywords would be represente... more >>
TcpClient
Posted by EdisonCPP at 5/25/2007 1:34:58 PM
Hi,
I see that TcpClient.Connected only gets updated after
an I/O operation. This stumps me. I have a service
that listens for connections, and spawns a thread
for each connection to deal with client requests.
I maintian the thread as long as the service is running
and the socket is connec... more >>
Are the free books at programmerworld legal?
Posted by tim_witort NO[at]SPAM hotmail.com at 5/25/2007 11:58:40 AM
A search for programming books turned up programmerworld.net where
I found tons of books that can be downloaded for free. Some of
these are fairly recent (2006). Are these just authors who allow
electronic distribution of their books or is something fishy going
on here?
-- TRW
___________... more >>
Reporviewer localreport margins
Posted by esoci at 5/25/2007 10:48:04 AM
Looking for Steven Cheng [MSFT] and Mr. Walter Wang...
I have created rdlc files and when I load them into Report Viewer at run
time they appear OK, If I click on 'Print layout' button on Report Viewer
the view again appears unacceptable and clicking on 'Page setup' button the
margins left &... more >>
Thread or Web Service Callback
Posted by Abhishek at 5/25/2007 4:11:01 AM
Hi,
I have to create a web page in .net 1.1 having controls whose actions are
performed through AJAX, means user can do operation without any post back. In
back end I defined a Ajax method which is called every time whenever a hit is
made.
This method invokes a web method resides in Web ... more >>
how to extract values from webpage
Posted by shantanu at 5/24/2007 10:25:21 PM
Hi all
I have a requirement and i need some resolution to work on.
i have to read a webpage and extract few values from the page. I am
using the httpwebrequest meathod to query the webpage that based on
the values generate a result on the webpage and then i need to pick
the phone number a... more >>
Finding an object property in list
Posted by mpaine at 5/24/2007 9:52:02 PM
Hello,
I am trying to avoid using a DataTable to find particular data rows, because
I believe generic.list(of someobject) is faster. Unfortunately, two
seperately instantiated objects do not have the same hashcode so I am unable
to compare them within a Contains() call [even though they co... more >>
outlook express
Posted by butler077 at 5/24/2007 9:08:01 PM
I "lost" outlook express. In the control panel under mail I deleted my old
dial up account because now i have dsl. when i did this my mail icon on my
desktop disappeared. Went back into the "cp" under Mail and added my new
one. Still no icon and when i open my email from my browser"with th... more >>
Permissions exception saving app config
Posted by Brad at 5/24/2007 3:50:40 PM
I have some code for a .Net 2.0 winforms application which modifies the app's config file. The code works without error
for me, but when another developer runs the same code in Visual Studio debug he receives a permissions exception on the
statement
config.Save(ConfigurationSaveMode.M... more >>
Debugging a class libary
Posted by Andrew Chalk at 5/24/2007 2:30:14 PM
I have created an installer class library. I am trying to run it inside the
debugger by running INSTALLUTIL.EXE to load the .dll.
What is the correct syntax to do this, and pass command line arguments to
the DLL, in the 'Properties' page of the class libary project.
Many thanks.
... more >>
Best first .NET book for experienced programmer?
Posted by tim_witort NO[at]SPAM hotmail.com at 5/24/2007 12:53:29 PM
I've been programming for 20 years in a variety of languages
including C, xBase, SQL and others including quite a bit of OOP.
I have yet to do any C++ or C# development. I want to delve
into .NET and/or other current Microsoft development platforms,
but am not sure what direction to go in. The... more >>
Windows service concept?
Posted by Andrew at 5/24/2007 12:51:01 PM
Hi, friends,
Here is a question about Windows service concept in C#.net 2005.
Suppose my service is doing a transaction, say modifying records/data of a
database. At this point, a user issues a command to stop this service? How
this service will behave? It will stop right away without roll... more >>
Cursor location
Posted by Hansford cornett at 5/24/2007 12:27:01 PM
I am in a form and want to place the one of two date fields into a report I
am emailing.
the Date field names are FirstDateMailed and SecDateMailed.....
I want to identify where the cursor is (in which field) and then place the
contents of the field into a report. I think I know how to d... more >>
Error "The network path was not found"
Posted by Flomo Togba Kwele at 5/24/2007 8:59:52 AM
I've defined the following snippet:
--
Private _docNav As XPathDocument = Nothing
Private _nav As XPathNavigator = Nothing
Public Function Process() As List(Of ICassIn)
_docNav = New XPathDocument(FileName)
_nav = _docNav.CreateNavigator
Me.RecursiveW... more >>
|