all groups > dotnet framework > august 2006
Filter by week: 1 2 3 4 5
update graphics between debugger stepping
Posted by Ben Voigt at 8/31/2006 2:19:37 PM
Ok, while troubleshooting painting code, I am trying to see my canvas after
each step. My OnPaint handler ultimately updates the screen with:
pe.Graphics.DrawImageUnscaled(bmpCanvas, -scrollOffset.X, -scrollOffset.Y);
So I tried writing the following, and calling it from the watch window
an... more >>
Microsoft Wireless Notebook Optical Mouse 4000--query
Posted by angryrotarian at 8/31/2006 1:22:02 PM
Hi
This such a poor question but..... can anyone tell me if this mouse glows or
flashes red?
Thanks for your help... more >>
CollectionBase custom collection / GetChanges ?
Posted by Olivier Matrot at 8/31/2006 12:25:16 PM
Hello,
Somebody ever tried to create a "GetChanges" method in a custom collection
implementation (CollectionBase)?
The goal is to provide the same behavior of the DataSet.GetChanges method to
update the underlying datasource.
TIA.
... more >>
Can someone please describe why impersonation requires the impersonator to be local admin?
Posted by Daniel at 8/31/2006 10:27:58 AM
Can someone please describe why impersonation requires the impersonator to
be local admin?
... more >>
Document Managment
Posted by Jeff Mason at 8/31/2006 9:16:20 AM
I hope I can get some advice on a design/technology question here.
The app is a medical claims case management system. It is written in VB.NET and it
works great. It is a Winforms app primarily; there is a web component, but that is
not relevant to this discussion.
A new requirement has re... more >>
Are Win32 functions be rewritten for .NET or simply wrapped?
Posted by Peter Olcott at 8/31/2006 7:31:42 AM
http://en.wikipedia.org/wiki/Windows_Communication_Foundation
..NET Framework 3.0 (formerly called WinFX) - the new .NET Windows API to succeed
Win32 with the release of Windows Vista.
The above quote is from the link above it. It seems to be saying that the .NET
Framework 3.0 will replac... more >>
Marshal single/float types
Posted by nojo(k)e via DotNetMonster.com at 8/30/2006 9:24:45 PM
Hi all,
I have to deal a lot with serial data exchange between a .NET (1.1)
application running on a PC on one side and controler based devices
programmed in plain C on the other. The latter expect data as a stream of
bytes, extracting numerical values or char[] by 'counting and casting'
(e... more >>
Serial port Error: The I/O operation has been aborted because of either a thread exit or an application request
Posted by Kite at 8/30/2006 8:38:32 PM
Hello, everyone!
I write a program with serial port, error happend--The I/O operation has been aborted because of either a thread exit or an application request. I have no idea with it.
This is my source code.
Imports System
Imports System.Data
Imports System.Windows.Forms
Imports System.IO
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
how can I < or > with two objects of any type passed as object?
Posted by ThunderMusic at 8/30/2006 3:48:04 PM
Hi,
I'm doing comparisons over arguments passed as Object... they can be of any
type, but must be comparable using < or >... unfortunatly, the compiler
does not give the possibility to compare 2 Object instances with < or >...
How can I do this without knowing the type of the objects?
He... more >>
System.IO.StreamWriter uses two bytes for ASCII characters with UT
Posted by Joe at 8/30/2006 3:11:01 PM
I am creating a text file with a StreamWriter set to UTF8 encoding like in
the following example:
Using writer As New IO.StreamWriter("C:\temp\HelloWorld.txt", False,
System.Text.Encoding.UTF8)
writer.Write("Hello World")
End Using
It appears that ASCII charac... more >>
Can't throw exception in calling class.
Posted by benjamin.soulier NO[at]SPAM gmail.com at 8/30/2006 8:09:59 AM
Hello all,
I got a problem using Exceptions in Debug mode in Visual Studio :
I got an Exception on a classe like :
catch Exception(e)
{
DoSomething();
throw e;
}
Running in debug mode when getting this exception works fine, but
trying to continue running code intercept... more >>
ClickOnce Deploying to LocalSystem user account
Posted by dfererer NO[at]SPAM gmail.com at 8/30/2006 7:02:24 AM
Dear all,
I want to install and run ClickOnce Deploying application under a
Windows Service,I have make the service starting the application
successfully(user API ShellExecute("MyApp.appref-ms")),but not like
under regular user account, some time,it acts as if the application is
still not insta... more >>
Question about AL
Posted by kishor at 8/30/2006 5:34:02 AM
Hi all,
I have private Assemblies (many) Now I am planing to put all in GAC. for XYZ
reason. I have generated all keys for all assemblies one for each.
assembly is A.dll key is a.key
Question is
is it possible to add a key file to a DLL directly without recompiling code ?
Al has some s... more >>
How Microsoft does it?
Posted by jayvardhan.patil NO[at]SPAM itbcomputerservices.com at 8/30/2006 3:43:01 AM
Dear All,
I am creating a Image Library and want to know what can the best and
standard procedure to do this.
Concept is to have all the images needed by all projects (dlls and
exes) in the product at a central place (in a single DLL) making it
easy to distribute and maintain.
There are ... more >>
C#, Compact Framework 2.0
Posted by pfluft at 8/30/2006 12:03:02 AM
I wrote a C# Application for Microsoft .NET CF 2.0. It is used on Microsoft
Pocket PC, Version 4.20.0 (Build 14053).
Is there a way to prevent my Application to be startet twice?
Best Regards
... more >>
Using Access Database on Different Location for .NET 2.0
Posted by MA P at 8/30/2006 12:00:00 AM
Hi!
I am use to the include file on classic asp for maintaining MS Access
database location. On using Visual Web Developer Express, I can only use the
MS Access database if it is located on the same folder with the web app. Is
there a way that I can locate MS Access as my database but the l... more >>
how to develop a C# application targetting .net1.1 version
Posted by chinna at 8/29/2006 8:54:40 PM
How to develop a C# Windows application targetting .NET1.1 using VS.NET
2005, I have tried to develop a C# app but it does not run in the
systems which do not .NET 2.0 version.
Thanks & Regards,
Prashant --> .Net Developer in WIPRO TECHNOLOGIES.
... more >>
what version of .net framework to install
Posted by Charlie Brookhart at 8/29/2006 6:12:02 PM
I was attempting to install an application, but apparently, it needs the
..net framework version 2. I currently have version 1.1 installed. When going
to the download page for the redistributable framework package, I see three
versions that are available: x86, x64, and IA64. I guessing that the 6... more >>
What do FTP servers do when file send fails durring a file upload? Are partial files ever written? does ftp protocol cover this?
Posted by Daniel at 8/29/2006 4:12:08 PM
What do FTP servers do when file send fails durring a file upload? Are
partial files ever written? does ftp protocol cover this?
... more >>
FoxPro 'true' SQL-Syntax?
Posted by mikael.palmblad NO[at]SPAM gmail.com at 8/29/2006 12:35:08 AM
Hi!
Easy question.
How do I compare a bit-column that has "True" and "False" in .NET
framework Query Designer?
I've made a connection to a Visual FoxPro database (ODBC-connection).
I've tried several things like:
select test1 from table1
where test1 = true
where test1 = 'true'
where... more >>
CLS compliance problem
Posted by Lloyd Dupont at 8/29/2006 12:00:00 AM
In C++/CLI I defined an enum like that:
public enum class FontQuality : __int32
{
Default = DEFAULT_QUALITY,
Draft = DRAFT_QUALITY,
Proof = PROOF_QUALITY,
NonAntiAliased = NONANTIALIASED_QUALITY,
AntiAliased = ANTIALIASED_QUALITY,
ClearType = CLEARTYPE_QUALITY,
ClearTypeNatura... more >>
Virtual desktop makes .NET modal dialog panels disappear
Posted by jbrock NO[at]SPAM panix.com at 8/28/2006 6:22:54 PM
At work we are using a virtual desktop manager called AltDesk
(http://www.astonshell.com/), and it is causing a weird and extremely
annoying problem with the VB.NET application I am developing.
If I start my app, open a test form using ShowDialog() (this is a
menu choice on the main app), and ... more >>
Saving appSettings when using file=
Posted by deangelj at 8/28/2006 5:56:01 PM
I have an app.config that looks like this:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings
file="External.config" >
</appSettings>
</configuration>
And External.config contains all my settings, e.g.
<?xml version="1.0" encoding="utf-8" ?>
<appSettings>
... more >>
In-Memory Assemblies: Stuck in Generating AppDomain?
Posted by John Rusk at 8/28/2006 5:48:01 PM
Hi,
I want to use CompileAssemblyFromSource to create an assembly on the fly,
then I want to run it in a separate AppDomain. The separate AppDomain will
have tight security permissions.
Is there any way to compile an assembly in Domain A, then execute it in
domain B, _without_ persist... more >>
WIndow Services Secondary Log on
Posted by Liming at 8/28/2006 5:17:40 PM
Hi Gurus,
My company just gave us a very weird requirement, they are asking two
layers of protection. First layer, the normal windows log on and once
users log in, for certain programs like microsoft word, outlook or
whatever other executables they specify (could totally be some
non-microsoft... more >>
Array.Copy and Cloning an array don't seem to work differently
Posted by illegal.prime NO[at]SPAM gmail.com at 8/28/2006 4:00:45 PM
I would like to have an array of objects (whose class I define) and
then just invoke either:
MyClass [] clonedArray = (MyClass[]) myArray.Clone();
OR
Array.Copy(myArray, clonedArray, myArray.Length);
and have an array of cloned objects (i.e. the new array of objects
aren't the objects contai... more >>
Drag Drop (C1 and windows forms)
Posted by feudalac! at 8/28/2006 3:09:29 PM
I need a litle help with dragdrop...
I can't find anything useful on google...
I have a ComponentOne True Grid and Windows Forms Treeview
i want to drag an item from the grid and into Microsoft Treeview...
so far i have done this:
grid.allowdrag = true
tree.allowdrop = true
privat... more >>
Serialization help needed
Posted by Jens Weiermann at 8/28/2006 11:47:12 AM
I'm writing kind of a "network monitor" application in .NET 2.0 (C#); At
runtime, the user should be able to configure all kinds of different
"sensors" and I want to serialize them to an xml file.
There are several different classes for different sensors, all derived from
an abstract base sen... more >>
Sending E-Mails "MailTo" Style
Posted by howardw NO[at]SPAM nospam.nospam at 8/28/2006 11:07:02 AM
I use classes in the System.Net.Mail namespace to send e-mails
programatically.
However what I want to do is the following: When the user clicks a button to
send mail, the effect is like what happens when you click a MailTo link in a
Web Browser. That is, (assuming Outlook is the user's ma... more >>
Keeps getting exception in dotfuscator output
Posted by Marcus at 8/28/2006 8:50:22 AM
I get exception when I try to run my c# windowsapplication after its
exe-file has been built with dotfuscator community edition. I can only
use the "rename" feature. But from what I have understood thats the
only thing available for this version.
My problem is that even if I exclude everything f... more >>
Cross-AppDomain call problems
Posted by Kai Iske at 8/28/2006 8:01:08 AM
Hi,
I have seen a couple of threads dealing with similar questions, but I
haven't found one to answer my question, so here I go:
I have a service application that loads a couple of tasks (Plug-Ins you
might want to call them). When a task gets executed it will be executed
in its own AppDoma... more >>
Exception in Reflection and System.Collections.Generic.List
Posted by DirkTheDaring at 8/28/2006 7:18:14 AM
Hi,
i have some generic List instances which where created for
different class (e.g. List<int> , or List<string>).
Now i have a reflection framework in place which tries to get all the
objects of the lists.
This is what i would do in a "standard" Code
for (int i=3D0; i< List.Count; i... more >>
Using InstallUtil - Unknown Error "-1"
Posted by Clancy at 8/28/2006 6:50:21 AM
I've built a small windows service on .NET 2.0 framework. In order to
test/debug the application if first must be installed using the
InstallUtil command from the vs command prompt. Everything I have
tried results in: Unknown Error "-1"
I built a similar service on my personal machine at hom... more >>
Windows Firewall and UDP Packets
Posted by dgcooper at 8/28/2006 6:29:01 AM
I would like the user to be able to choose "Unblock" on the security alert
dialog when my application attempts to send a UDP packet for the first time.
However, the securlty alert dialog does not appear. I have to tell the user
(when running the app for the first time) to manually add my app t... more >>
How to generate an HTML from XML documentation tags
Posted by Water Cooler v2 at 8/28/2006 5:40:36 AM
Having documented your C# code with the XML tags for documentation, how
do you then generate a HTML help file (.chm) for it?
I am talking about code decoration tags such as:
///<summary>
///</summary>
etc.
... more >>
Error window web access failed is displayed
Posted by vinuthan at 8/28/2006 5:29:57 AM
In local system .net is working fine, but while working on LAN we are
facing a problem .
We open IDE and select new project for with Visual basic template
choose asp.net webapplication
Then we give path as http://serverip/nameofapplication on clicking ok
button
The error window web access f... more >>
FTP rename fails with unix servers dotnet 2.0
Posted by Marty at 8/28/2006 1:25:02 AM
I'm writing an app to upload/download via FTP using VS2005.
I am using the FTP Client Library for .NET 2.0 by Howard Richards:
http://www.codeproject.com/vb/net/FtpClient.asp
Upload download works. but when trying to rename a file with GetResponse it
errors with error
500 (Syntax error, com... more >>
File.Exists?
Posted by Arpan at 8/28/2006 1:08:09 AM
A file named Form1.asp exists in the folder C:\Inetpub. The following
code exists in a file named FindFile.aspx which exists in
C:\Inetpub\wwwroot\ASPX:
<script runat="server">
Sub Page_Load(obj As Object, ea As EventArgs)
Dim ioFileInfo As FileInfo
ioFileInfo = New Fil... more >>
simple Socket Programming question.
Posted by Francois Malgreve at 8/28/2006 12:00:00 AM
Hi,
I am a bit new in socket programming and I have a question about what's the
best way to implemnt a TCPClient that can receive long messages?
The example I found in MSDN works for me but it downloads only the first
chunck of data sent by the server I connect to. How can i make the code ... more >>
XML reading issue....
Posted by Lloyd Dupont at 8/28/2006 12:00:00 AM
I have some XML file like that:
===
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>affiliateId</key>
<string>AFL9124395098</string>
................... more >>
convert VB6 function to VB.NET
Posted by Joao Tomas at 8/27/2006 2:54:04 PM
Please, can someone help me to translate this single function to VB.NET ?
' DECLARATIONS
Private Const BMP_MAGIC_COOKIE As Short = 19778
Private Structure BITMAPFILEHEADER '14 bytes
Dim bfType As Short
Dim bfSize As Integer
Dim bfReserved1 As Short
Dim bfReserved2 As Short
Dim b... more >>
DataControlFieldCollection instantiated twice
Posted by Sam Terburg - Emanon at 8/27/2006 1:53:50 PM
I'm trying to create my own GridView with some addons.
I'm realising that by creating a placeholder with a GridView and
SQLDataSource in it.
The problem is dat the fields defined in the DataFieldControlCollection
gets instantiated twice with which the second instantiation doesn't have
any at... more >>
DataGridView (.NET 2.0 Windows Forms) Text wrapping in DataGridView Items
Posted by Chris Hayes at 8/27/2006 10:53:46 AM
Greetings,
Is it possible to have the text wrap in a DataGridView's
DataGridViewItem/Row?
And if so how is it accomplished?
Thanks,
Chris
... more >>
FYI: Xmpp (Jabber) c# codebase, BSD style license, Piorun.Xmpp
Posted by nikicart NO[at]SPAM gmail.com at 8/26/2006 8:36:38 PM
For general information... as I spent a lot of time tracking down the
library I liked and wanted to be sure it was getting the attention it
deserved.
I am a long-term users of Jabber-net for our xmpp library but were
growing frustrated with the lack of Compact Framework support. I found
the ... more >>
Async Sockets and IOCPS
Posted by ken.overton NO[at]SPAM gmail.com at 8/26/2006 5:07:45 AM
Hang my head in shame; I only found out yesterday that .NET sockets are
already doing overlapped I/O with IOCPs when you make async calls. The
only problem I see (experimentally via debugging, so I don't know if
it's true), is that each socket gets it's own IOCP. Is there any way
to attach a s... more >>
Deploying native Windows DLL used by .NET applications
Posted by Boris at 8/26/2006 1:11:16 AM
We have a native Windows DLL (let's call it native.dll) we developed a .NET
interface for (let's say managed.dll). When a .NET application now uses the
..NET interface to talk to the Windows DLL we always thought that managed.dll
must be copied to the application directory (where the .NET appl... more >>
.NET 2.0 embaressment
Posted by Steve Hall at 8/25/2006 9:29:34 PM
Hi everyone.
I have a .NET 2.0 application that has been released using clickonce
installation both online and from CD. I have no control over the end user
systems and I am being flooded with complaints that the application fails to
install on XP SP1 machines and NT4 systems.
I understan... more >>
Asynchronous Design Pattern
Posted by Leslie Sanford at 8/25/2006 12:25:45 PM
I'm thinking about using the design pattern described at the link below
to solve a problem:
http://msdn2.microsoft.com/en-us/library/ms228963.aspx
I have a question, though, and would appreciate any help.
The pattern describes using BeginOperationName and EndOperationName
methods for as... more >>
Immutable Classes
Posted by Chris Mullins at 8/25/2006 11:13:43 AM
I've got some classes that I've built that currently require far too many
locks when they're running in a multi-threaded environment. To get around
this, I'm looking to make these classes immutable. I'm also trying to be (as
any good programmer) as lazy as possible about the approach tha tI ta... more >>
CreateChildView() vs DataTable.Select() on entire table
Posted by bfking at 8/25/2006 11:06:43 AM
Can anyone shed some light on why DataRowView.CreateChildView() would
significantly slower than DataTable.Select()?
my DataSet looks like this
DataSet ds; //ds assignment code left out for simplicity
ds.Tables["IDs"].PrimaryKey = new DataColumn[]{
ds.Tables["IDs"].Columns["ID"] };
ds.Tabl... more >>
|