all groups > dotnet framework > november 2006 > threads for november 1 - 7, 2006
Filter by week: 1 2 3 4 5
Installer Project with Custom Action for Application Configuration
Posted by Lucas Ponzo at 11/7/2006 10:38:01 PM
How to do custom action in a Install Project that asks for database
conectivity and set these information in the web.config or app.config ?
To be more generic, how to do a dialog that receives custom information and
store then in the configuration file (web.config or app.config) ?
Can... more >>
combining hash codes
Posted by Zachary Turner at 11/7/2006 6:57:55 PM
I want to use a custom object as a key in a Dictionary or SortedList,
and uniqueness is determined by more than just a specific field. I
know the "suggested" method is to xor all the hash codes together, but
this doesn't seem safe? For example, say
Key1 = (A, B)
Key2 = (C, D)
Is it possi... more >>
GetLogicalDrives function does not return mapped drives
Posted by RMB at 11/7/2006 3:45:02 PM
FW 1.1 VB.Net
When I make a call to either system.environment.getlogicaldrives or
System.io.Directory.GetLogicalDrives from a Windows service, my mapped drives
are not returned.
I also tried WMI WIN32_MappedLogicalDisk, but unfortunately this does not
work with W2K.
Any ideas why ... more >>
Serialization: Store some objects into a file
Posted by Robert Schneider at 11/7/2006 2:33:32 PM
I would like to serialize some model objects into a file. For that I use the
BinaryFormatter. In order to not serialize the event delegates of those
objects (due to the observer pattern) I have implemented the ISerializable
interface where I use the GetValue and AddValue methods. So I do this ... more >>
Printing XSL document in Windows .NET Application
Posted by .NETUser at 11/7/2006 1:42:36 PM
Hello,
I hope that I can explain this correctly. I am trying to print a
specific report based upon user's input in a Windows application. I'm a
newbie to XSL and unaware of how to go about this. Basically, I want to
create the XML file based on the user's input, format the report with
XSL an... more >>
Pointer to interface?
Posted by Mark Raishbrook at 11/7/2006 12:22:01 PM
I've added a library to the project I'm currently working on which contains
the following function:
ConfigureFilterUsingProfile(ByVal pProfile As System.IntPtr) As Integer
pProfile is a pointer to the Windows Media Encoder interface IWMEncProfile.
If I create a profile -- Dim EncProfile ... more >>
Instances of class at runtime
Posted by Naresh Mirkhelkar at 11/7/2006 10:41:01 AM
Hi,
Can someone please let me know if, during runtime, without using any counter
in a class (say class constructor), is it possible to find the number of
instances of a particular class (class objects) created and are not garbage
collected?
Thanks,
Naresh... more >>
Redirecting System.Diagnostics.Process.StandardInput
Posted by Dick at 11/7/2006 3:55:02 AM
The code below uses System.Diagnostics.Process to call Net.exe to delete a
mapped network drive. It works well except when the mapped drive is in use in
which case Net.exe prompts the "user" to confirm the drive should be deleted.
I'm sure I should be able to reply to this question by redirect... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
ANN: .NET 3.0 Final
Posted by Thomas Scheidegger [MVP] at 11/7/2006 12:46:23 AM
Microsoft .NET Framework 3.0 Redistributable Package
http://www.microsoft.com/downloads/details.aspx?familyid=10cc340b-f857-4a14-83f5-25634c3bf043
Readme
http://msdn.microsoft.com/windowsvista/support/relnotes/netfx3/default.aspx
Visual Studio 2005 extensions for .NET Framework 3.0
... more >>
.Net Versions
Posted by Darren Brook at 11/7/2006 12:38:34 AM
I am using Visual Studio.Net 2005. I am learning!!!
I have a couple of questions: -
- What version of the .Net Framework should I have installed? 2.0.what?
- What version of ASP.Net should be installed on my PC?
- I have seen that SP1 Beta for VS.Net 2005 is available - should I downlo... more >>
string.Trim() and White spaces list?
Posted by adi at 11/6/2006 10:48:23 PM
Hi
I'm working on a documentation on my application.
I need to explain the reader that the white spaces will be removed from
a text.
I use string.Trim() method. Note: no arguments passed to the method.
It is not enough to tell this to an untrained person; I need to tell
him the complete list... more >>
IE won't open more than 1 window
Posted by jolou at 11/6/2006 12:06:02 PM
When I open one browser window, it will appear as normal. Once a second or
third is opened, the original closes. It will also close the original window
if i right-click on a link and click on 'Open in new window' or if I open an
email attatchment (through a provider not in outlook, meaning my ... more >>
Uri Class broken for authenticated URIs?
Posted by Leonard Chung at 11/6/2006 1:02:01 AM
I'm trying to create an authenticated session to a remote FTP server using
the FtpWebClient class which takes a URI. Problem is, the URI doesn't seem to
accept standard ftp://username:password@server/ URIs and gives me the
following error when I try to get the propery serverUri.uri from below:... more >>
XML Filter Fast Way?
Posted by xeroxero at 11/6/2006 12:12:41 AM
I have an XML document that I would like to remove/filter whole nodes
(and their child nodes) if an attribute is not contained/matched. I
would like to output a new XML document, not modifying the original.
Can anyone recommend XSLT for this or a programmatic way if it's
faster?
<item ... more >>
MonthCalendar change interval or get Notification from Clock
Posted by mtczx232 NO[at]SPAM yahoo.com at 11/6/2006 12:00:44 AM
MonthCalendar fire DateChange every two minutes, have a way to get it
every 1 minut, or have another way to get Notification from Clock every
round minute?
... more >>
How to find where is the seconde screen in on a dual monitor system
Posted by Rolf Welskes at 11/6/2006 12:00:00 AM
Hello,
I have a dot net application which must use dual screen of windows xp.
I use .net 1.1 (and it must be 1.1).
Now I can recognize for example from a point that I am not on the
PrimeryScreen. Ok.
But to make coordinate calculation I must know where is the second screen
on the left on ... more >>
Code snipets
Posted by Lucas Ponzo at 11/5/2006 12:26:02 PM
Microsoft says:
To access the Code Snippets Manager:
On the Tools menu, click Code Snippets Manager.
But I my Tools menu, this option doen't exist. Why ?
I have VS 2005 Professinal Edition 8.0.50727.42 (RTM 0.50727-4200) and .NET
Framework 2.0.50727 shiped by MSDN Universal Subscriptio... more >>
Regarding SqlRowUpdateEventHandler
Posted by Hyderabadi at 11/4/2006 11:29:17 AM
Hi,
I am trying to perform concurrent updates of same record using two
connections and I want to display a message box when this happens.
I am using two connections : in One I hardcode the Update statement on
this record and In the other I use a form to modify the record values
and when sav... more >>
Property reflection
Posted by Saso at 11/4/2006 3:25:01 AM
Hello!
I was wondering if there is a some way to mark a class property,
without modifiers use. By using reflection, I know how to get all properties
that returns int, but how to get only specific int properties?
See example below:
public class Test
{
private int _A;
private int _B... more >>
Permissions to use installutil.exe
Posted by David Samson at 11/3/2006 9:30:01 PM
I need to give a local account on the windows server permission to use
installutil.exe to uninstall/install .NET windows services without giving the
account Administrative access. Any ideas?... more >>
ListView won't show items on x64?
Posted by Alex Clark at 11/3/2006 3:58:19 PM
Hi All,
I've found that the ListView control won't display items when my program is
running in x64 mode. I've tried this on both a Pentium D running XP Pro x64
edition and Windows Server 2003 R2 x64 on a Core 2 Duo. Same results on
both.
If I compile for the specific x86 architecture, ... more >>
writing to the 32-bit registry from a 64-bit application (that darn WOW6432Node)
Posted by Chris Mullins at 11/3/2006 3:14:47 PM
I need to write to the 32-bit registry, and need to do so from a 64-bit MSI.
It never occurred to me that this would be difficult...
I have an application that installs some 64-bit binaries for development use
in Visual Studio 2005. As such I want them to appear in the .Net References
menu w... more >>
x86 vs x64
Posted by param NO[at]SPAM community.nospam at 11/3/2006 11:38:04 AM
Hi all,
We are considering migrating some of our production web and application
servers to 64-bit platform. My question is do I need to re-compile my code
on a x64 machine running a x64 version of Windows and x64 version of .net?
Or will the same code run on the new x64 environment without ... more >>
Why Assembly.Load get returns wrong assembly.
Posted by Vlad Hrybok at 11/3/2006 11:16:01 AM
Background:
I created a windows service with .NET 1.1 that is a shell that simply loads
assemblies and then loads a certain type there and calls a method. Those
dynamically loaded assmeblies meant to be upgardable. I wrote a code that
replaced assemly files with the new version and then windo... more >>
How many people have .NET 2.0?
Posted by Nathan Funk at 11/3/2006 11:05:06 AM
I develop end-user apps and would like to access stats about how many
people have .NET 2.0 installed on their computers.
My new app will rely on the 2.0 framework, but now I'm second-guessing
myself as to whether this was a wise choice. With the 20MB framework
download, it is significant.
I... more >>
Accessing Shared Properties of a Parent Windows App from Class Lib
Posted by Jon Ebersole at 11/3/2006 9:08:02 AM
I have a windows app that instantiates custom objects from a class library
many times over and over. Each object interacts with the database and must
create, open, and close the database connections as needed. As you can
imagine, this is very inefficient when working with a database.
I wo... more >>
PowerPoint Narration
Posted by Calwest at 11/3/2006 7:01:02 AM
What is the simplest easiest way of adding narration (voice) to a PowerPoint
Presentation?
Thanks
--
Lucky... more >>
Detect if an Excel file is open
Posted by Jakob Lithner at 11/3/2006 1:18:01 AM
How can I detect if an Excel file is open?
Is it possible to use the Excel "Open Exclusive mechanism"?
Would it help if I can assume they are running on the same machine and only
opened by Excel Application?... more >>
.NET version confusion
Posted by Budhi Saputra Prasetya at 11/2/2006 9:23:02 PM
Hi All,
I have 1.1 and 2.0 installed on my machine. I also have application that is
using 1.1. When I run the application on my computer, which version of the
..NET Framework that it will use? Is there a way to check it?
Regards,
Budhi... more >>
Prevent Inherited Property From Persisting
Posted by mikesnoise NO[at]SPAM gmail.com at 11/2/2006 7:38:36 PM
I have a control called FolderTreeView that derives from
System.Windows.Forms.TreeView and automatically populates itself with
TreeNodes representing the Windows file system. Here's the behavior I'm
seeing:
1) Add the FolderTreeView control to my Form in the designer.
2) Modify the FolderTree... more >>
IPAddress class in Framework 2.0
Posted by Jason at 11/2/2006 12:26:04 PM
All,
Please note the following:
IPAddress ip = IPAddress.Parse(“10.1.176.10â€);
Works fine, as expected, as does:
bool good = IPAddress.TryParse(“10.1.176.10â€);
Both return the proper result. HOWEVER…
IPAddress ip = IPAddress.Parse(“10.1.176â€);
Also works fine? It c... more >>
Iterate XML Document and Add Attirbute?
Posted by xeroxero at 11/2/2006 11:28:04 AM
I have an XML document with this as a sample fragment:
<?xml version="1.0" encoding="utf-16"?>
<directory path="c:\\test\\directory">
<file name="fileA.doc" />
<file name="fileB.txt" />
</directory>
I would like to iterate over the document, find any element that is
named 'file', and add ... more >>
FileWatcher Multiple Unrelated Directories
Posted by Jon Turlington at 11/2/2006 8:10:03 AM
I have a Windows Service that I use to watch for certain files of
certain sizes being created in directories. When the file size is of my
specified size a SQL connection is made to determine if any action
should be taken. The problem is that this puts an extremely high load
on the server at time... more >>
Removing ASP.NET Development Server Icon in notification area
Posted by jpero09 NO[at]SPAM gmail.com at 11/2/2006 7:43:22 AM
Does anyone know of a way to disable the "ASP.NET Development Server"
icon that appears in the notification area of the task bar when
launching an app in 2.0? Or atleast the balloon tip?
... more >>
showing a document to the user which is in IO.filestream object
Posted by sameer at 11/2/2006 7:03:01 AM
HI all,
application details:
---------------------
visual studio 2003
..net 1.1, vb.net, winforms
Application read a document ( could be word, pdf, tiff, jpeg etc) from the
local filesystem into to the system.io.filestream object and now i want to
open this document up in the document;... more >>
Question about ReaderWriterLock
Posted by Nadav Popplewell at 11/2/2006 4:26:02 AM
Hi Everybody,
I've got a question about ReaderWriterLock:
Let's say I want to write a function that will update an object under write
lock
both if the calling thread has a reader lock or not.
That Is, I want a function Write() that will work properly in both these
cases:
static int ... more >>
Socket.BeginReceive problem
Posted by Cecil Sheng at 11/1/2006 11:02:01 PM
Hi,
I use socket in my program and I have a problem on BeginRecieve.
The code is like this:
connection.Socket.BeginReceive(Buffer, 0, Buffer.Length, SocketFlags.None,
new AsyncCallback(RecieveData), connection);
I test the code with telnet on win32, netcat on freebsd, both works fine.
... more >>
trouble with Serial Port class vs Hyperterminal
Posted by Bill at 11/1/2006 6:18:56 PM
I am using VS2005 and VB and the .Net 2 Serial Port class at 9600 8 N 1
I have been using some example code to connect to another device over a
serial port and issue text commands and receive feedback
Everthing works - but the characters sent are getting mangled/dropped and
commands are... more >>
Simple "Not" Match?
Posted by xeroxero at 11/1/2006 4:44:01 PM
I have code that recursively traverses a directory and writes to a
file. I would like to ignore any directory or file that matches a
pattern that is in a string array ( '*.obj' , 'doc*.*' ). Can anyone
show an example of how to do that?
Thanks.
... more >>
How to activate an existing program
Posted by Bob Altman at 11/1/2006 4:12:23 PM
Hi all,
I need to activate a running Windows application from my .Net application.
(I want to display the application's main form if it's minimized and try to
give it focus.) For example:
Dim procs() as Process = Process.GetProcessesByName("SomeApp")
If procs.Length > 0 Then
Pro... more >>
xml serialization of List<byte>
Posted by lee.crabtree NO[at]SPAM gmail.com at 11/1/2006 12:39:00 PM
I'm trying to serialize a generic List of bytes, as in List<byte>. Out
of the box, it works, but it winds up like this:
....
<LineData>0</LineData>
<LineData>0</LineData>
<LineData>0</LineData>
<LineData>0</LineData>
<LineData>0</LineData>
<LineData>0</LineData>
<LineData>0</LineData>
<... more >>
ArgumentExceptionIsUnHandled
Posted by Laurence at 11/1/2006 11:11:25 AM
In VS.2005 Using VB.NET on a windows XP (sp2) fully patched.
I have a project that has a Microsoft DataGridView on it.
Occasionally, when I click on a column header, I get:
ArgumentExceptionIsUnHandled
At least one object must implement IComparable
this problem is Intermittent, it doesn't... more >>
Framework and Window 2003
Posted by Jamal at 11/1/2006 9:31:41 AM
All,
We have a production sever that has window 2003 and currently run ASP
applications. I would like to run ASP.NET 2.0 along side ASP. It appears
that the framework 1.1 is already installed but I'm not sure how to verify.
My assumptions is that all I need to do is install the framework 2.... more >>
virus scan uploaded document.
Posted by sameer at 11/1/2006 9:29:02 AM
Application details :
winforms over webservice or webforms with Vb.net
vusual studio 2003
sql sever 2000
I am working on a document managment module of the application, all the user
does is upload a document to the server which is stored in the database,
before storing it in the database i... more >>
Namespace and Project reference
Posted by Anandhi at 11/1/2006 7:39:01 AM
I have a class A in my project. I also have a project reference projectB. The
project and classA have method Add(). I have added the classA in my code by
"using" in my webform. Will there be a compiler error, If I refer to add() of
class A, as it is a method in the ProjectB also.
... more >>
System.Net.Mail.MailAddress.To
Posted by Amelia at 11/1/2006 4:51:03 AM
In the old System.Web.Mail, you could use a string of delimited email address
(say stored in a config file) and bulk email setting it to the TO property.
eg "person1@whereever.com,person2@whereever.com"
The new System.Net.Mail.MailAddress.To appears to allow the string ok (we
are on Lotus so... more >>
Behaviour of streams in and out of scope
Posted by Kevin at 11/1/2006 3:05:01 AM
Hi...
I was wondering what happens to streams when they're passed between objects,
because my understanding of them is that they're effectively a pointer to a
data structure (or a location within it), rather than a copy of the structure
itself. E.g. a file stream is not a copy of the file (... more >>
|