all groups > dotnet framework > may 2007 > threads for may 15 - 21, 2007
Filter by week: 1 2 3 4 5
System.Drawing.Printing.PrintDocument.PrinterSettings.GetHdevmode() returns some garbage
Posted by valentin tihomirov at 5/21/2007 6:04:04 PM
When I OpenPrinter() with defaults set to the result GetHdevmode() result,
it fails with 1804 (The specified datatype is invalid) error:
DEVMODE *pDevMode = (DEVMODE*) pd.PrinterSettings.GetHdevmode();
try {
IntPtr hPrinter;
Win32Check(OpenPrinter( printerName, out hPrint... more >>
Convertion between XPS and PDF
Posted by jim1800 NO[at]SPAM community.nospam at 5/21/2007 4:45:00 PM
Is there any API or tool available? Thanks.
Jim... more >>
What is the best way to prevent multiple instance?
Posted by Andrew at 5/21/2007 3:30:03 PM
Hello, friends,
In c#.net, what is the best way to prevent users from creating multiple
instances of an app? I found a few ways, but not sure which one is the best.
(I know in VB6, we do something like: If App.PrevInstance Then End)
Thanks.... more >>
Decimal datatype in properties
Posted by kurt sune at 5/21/2007 1:55:40 PM
Hi,
I am trying to do a property on a class with datatype decimal including
scale and precision.
Thus:
Private _Code2 As Decimal(3,2)
Public Property Code2() As Decimal(3,2)
Get
Return _Code2
End Get
Set(ByVal value As Decimal(3,2))
_Code2 = value
End Set
End Property
... more >>
What is this concept? - Shared Sub New
Posted by B. Chernick at 5/21/2007 9:05:01 AM
I've inherited some legacy code that I'm supposed to base my own work on. I
thought I was a fairly experienced VB.Net programmer but I've never seen
anything like this before.
The programmer has created a NotInheritable class full of shared properties
and functions. It contains the foll... more >>
Launching SmartClient in IE7
Posted by WillM at 5/21/2007 3:52:00 AM
I have a query regarding launching a .NET smart client application via ASP.
The smart client application is launched via asp - client side VB Script
using "window.open()" passing in the URL location of the smart client. Using
IE 6.0, this works fine and a window appears momentarily while the s... more >>
Shadow Copy for a Windows Service
Posted by Matt at 5/21/2007 1:22:08 AM
Hi,
I want to be able to continue working with some assemblies after
they've been installed/started as a service. Does anyone know anything
about setting up shadow copying functionality for a windows service?
Thanks,
Matt
... more >>
No such interface supported
Posted by Nathan Franklin at 5/21/2007 12:00:00 AM
Hello LIST,
PLEASE, PLEASE HELP!! I am trying to fix my visual studio installation, I
dont know what has happened, but I have lost SO MUCH TIME TRYING TO FIX THIS
PROBLEM WITHOUT ANY SUCCESS. And especially when you are self employed every
minute can count,
I load up visual studio 2005 w... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Bug with Visual C# designer?
Posted by herr at 5/21/2007 12:00:00 AM
Hi all,
I am having this problem with C# 2005 professional, while I could never see
such a thing in VS 2003. The problem is that the form designer doesn't
reflect the changes I make to a form through the property panel on-the-fly.
Even if a change is reflected in the designer, when I compil... more >>
Any suggestion for directory layout of project support both Full .NET Framework and Compact Framework?
Posted by ping235 at 5/21/2007 12:00:00 AM
Recently, i am busying myself on a project that support both .NET
Framework 2.0 and .NET Compact Framework 2.0, with the same set of c#
code, but have different project properties and references.
The question is how could I achieve this, should i create separate
project for each purpose?
... more >>
Potential Bug: ASp.NEt session variables and Filewatcher
Posted by Avi at 5/20/2007 8:42:00 PM
Hi
I have an interesting issue, I hope someone can shead light on. [I posted
this under ASP.NET as well just in case , please forgive the duplication]:
I have a 2 server "web farm" with a web app that produces image files. To
ensure synchronization of content on both machines, we have buil... more >>
VS 2005 Setup Projects
Posted by Greg at 5/20/2007 6:46:52 PM
Hi,
I am trying to create an Installer from the Setup Project in VS2005.
Right now I am having it do some pretty tame stuff;
- Create some directories
- Create some reg keys
Unfortunately I am having a hard time find documentation on this type
of project. I.e., what if I want to chang... more >>
TextBox.SelectionChanged event?
Posted by Peter Duniho at 5/20/2007 5:37:42 PM
Okay, someone please tell me what I'm missing here. Lots of controls have
a wide variety of events that occur when properties for the control
change. The TextBox control itself has a wide variety, inherited from
Control and TextBoxBase (including a "TextChanged" event, which I am using
... more >>
Volume Control
Posted by cnickl at 5/20/2007 2:26:01 PM
Hi,
I’m looking for an easy way to read and set the Main Volume of the default
speakers in C#. All I found so far is way to elaborate using the entire mixer
with all the options of setting line in and mic levels and all that using
API. There must be an easy way to set this using managed c... more >>
Win32 LPTSTR -=> [MarshalAs(UnmanagedType.LPStr)] public string?
Posted by valentin tihomirov at 5/20/2007 2:03:34 PM
There are three types of strings for P/Invoke marshalling: LPstr, LPTStr and
LPWStr. It is reasonable to guess that the types corrsepond to the Win32
platform types. However, I have mentioned and want to know why the platform
LPTSTR must be mapped as LPStr and fails when marshaled as LPTStr.
... more >>
grab an frame from a video file... how to?
Posted by buu at 5/20/2007 12:26:29 PM
how could I grab an image from a video file using .net 2.0??
(any format - avi, etc)
... more >>
Thread Pool
Posted by Abhishek at 5/20/2007 8:01:02 AM
Hi,
In ASP.NET applications, the .NET framework maintains a thread pool to
process user requests by default this value is 25.
1) Whether this pool is managed by IIS? If we increase the size to 30 what
impact it will cause on IIS?
2) Suppose if I create three threads from my ASP.NET appl... more >>
font change
Posted by Chloe333 at 5/19/2007 4:13:00 PM
I selected and changed personal writing to a font called Bookshelf Symbol 7
for privacy reasons. Now when I try to change it back to the original font it
only shows me small squares instead of letters. Can anyone help? It's very
precious infomation to me! I"m using Microsoft Office word docume... more >>
"DataSet.Merge()" simple problem
Posted by Mark Chambers at 5/19/2007 10:29:55 AM
Hi there,
Can anyone explain the following (very) simple scenario.
1) I make an exact copy of my "DataSet" and delete one record from a given
table (in the copy)
2) I invoke "DataSet.GetChanges()" on the above copy and pass the results to
"DataSet.Merge()" on the original copy
3) If I no... more >>
Modal Window Locking Only Immediate Parent Window
Posted by CodeChamp at 5/18/2007 3:53:03 PM
Hello,
I did my initial search on this to get done, and now hoping that
someone will come up and hel me.
Scenario is:
When I execute my application it opens the Shell(Windows Form), which
contains access to different modules of the application.
Now I open a Module window(Windows Form) ... more >>
.Netframe work version
Posted by gouqizi.lvcha NO[at]SPAM gmail.com at 5/18/2007 3:22:03 PM
If I have a third party precompiled DLL file, how can I know which
version of the .netframe work it will work with. Is there any tools I
can check the DLL file?
... more >>
Does .NET 3.0 x64 redistributable contain x86 also?
Posted by rlusian at 5/18/2007 11:19:03 AM
I know the .NET 2.0 x64 redistributable contains the both the x64 and x86
versions. Is this also true for the .NET 3.0 x64 redistributable? I can't
find a definitive statement.... more >>
How to know the modified files with clickonce
Posted by I.M at 5/18/2007 3:31:55 AM
Hello,
is there anyway to know which files have been updated in an
application published with clickonce?
thanks
... more >>
.net licensing cost in pakistan
Posted by dani at 5/18/2007 1:27:25 AM
i want to develop a web-based time sheet application in asp.net. we
haev a licensed windows server 2003 running on our system but can
someone plz tell me if there will be licnesing cost of using asp.net
for development in pakistan
... more >>
Sami language and System.Globalization.CultureInfo
Posted by peuramaki NO[at]SPAM gmail.com at 5/18/2007 12:19:13 AM
Hello all,
a client of mine requires their web site to work with sami language,
which is spoken throughout northern parts of scandinavia. I'm trying
to set up the culture with ISO 639-1 compliant abbreviation se-FI
which works just fine in my development environment. Nevertheless, in
producti... more >>
[Exceptions Handling] How to understand the different type of errors
Posted by Starsky at 5/18/2007 12:00:00 AM
Hi all,
I need to understand what kind of error is catched in a try/catch block
because in the catch section I need to do different things depending of the
error type (sockets & co)
I have these 2 situations (generated by a DataStream.EndRead operation),
the messages are in italian language
... more >>
How hard is it to generate code at runtime?
Posted by Juan Dent at 5/17/2007 5:40:00 PM
Hi,
I have a situation where I want to generate code (whether C# or IL I don't
know which is easier or whether C# is slower because needs to be converted to
IL at the end).
I have a dynamic SQL string, say:
--------------------
"Select " + cslist + "into :lsVariable, :llidValor" + " FR... more >>
Decrypt String Issue
Posted by -Steve- at 5/17/2007 2:04:41 PM
I'm being passed a string that has been encrypted using 3DES. I'm writing a
function to decrypt that string.
All is well except I get garbarage before the decrypted string I'm supposed
to be retrieving.
For example I should get back 12345678, but instead I'm getting back
?l???#?K1234567... more >>
File creation notification
Posted by John H at 5/17/2007 9:49:38 AM
Hi,
I need to run a piece of .net code every time a file is added to a
certain folder.
Any ideas best way to do this - preferrably in .net?
Thanks for all help.
Regards
John
... more >>
.NET Runtime 2.0 Error
Posted by Hugo Figueira at 5/17/2007 9:02:00 AM
Hi there.
Recently event viewer started showing the .NET Runtime 2.0 error event.
The body is:
EventType clr20r3, P1 w3wp.exe, P2 6.0.3790.1830, P3 42435be1, P4 system, P5
2.0.0.0, P6 45b04225, P7 3a3e, P8 7a, P9 system.unauthorizedaccess, P10 NIL.
Have already reinstalled the 2.0 framew... more >>
Loading referenced assemblies on program start, or ... ?
Posted by Lasse_Vågsæther_Karlsen at 5/16/2007 10:35:33 PM
I have two questions. The first question is simply if what I'm about to
describe is the best way to do what I want to do. If not then I'd very
much like to know how others are solving similar issues.
What I have done is to build a class library with some general code in
it. Part of this cod... more >>
DLL & Single-Threaded Apartment Issue
Posted by SR at 5/16/2007 11:24:27 AM
I have written a DLL to give to a customer that he can use to search a
database and bring back some results. When he calls my search function,
once the search is performed a windows form is opened up with the results.
This functionality works fine if called from a windows form but throws a
... more >>
The Data Area Passed to a System Call Is Too Small - Printing file
Posted by Durai at 5/16/2007 8:10:01 AM
we are using PrintDocument class in the .NET Framework library to print a
file to a printer that uses the Generic/Text Only printer driver. It is
working fine if we try to print from the XP operating system. The same is not
working when we move to the windows 2000 server family. We are gettin... more >>
Document View Architecture in .NET
Posted by Fallen at 5/16/2007 2:35:15 AM
Hi,
Can somebody point me to a Document/View implementation in .NET? What
are the usual approaches for managing SDI/MDI style apps in .NET?
regards,
Fallen
... more >>
mouse pointer opens everything
Posted by jagerpuff at 5/15/2007 11:12:00 PM
i just got a inspiron e1501 with vista home premium,how can i get the pointer
to stop openning everything it happens to come across,it acts like it has
some kind of auto click function if it goes over something that can be
clicked on.... more >>
how to launch .NET Framework 2.0 Configuration
Posted by GordonLiq at 5/15/2007 9:32:01 PM
Hi ,
I have installed the .net framework 1.1 and 2.0 at a clean winxp,
I can found the .net framework 1.1 wizard and configure at control panel ->
administrative tools
but I cannot found them for 2.0.
so , how can I launch .NET Framework 2.0 Configuration?
--
Gordon... more >>
APM behaviour, is this a bug?
Posted by Alexander Malapheev at 5/15/2007 6:58:59 PM
Hello,
I'm writing an application which use APM.
For example:
class Program
{
static Socket socket = new Socket(AddressFamily.InterNetwork,
SocketType.Stream, ProtocolType.Tcp);
static void Main(string[] args)
{
IAsyncResult res = socket.BeginCo... more >>
looking for Configuration Applications
Posted by GaryDean at 5/15/2007 4:28:17 PM
I'm actually looking for a headstart for a "Configuration Application." We
need to do something like Dell Computer does when you go online and
configure a computer - it's got to have infinite optioning capability with
trees and compatibility and dependency attributes. I'm looking around at
... more >>
Replace a framework class
Posted by e-mre at 5/15/2007 1:37:32 PM
Is is possible to replace a framework class for my application?
Let's say that I want to add a new property to the System.Data.Dataset
class. I can do that by extending the class. But I also want my new class to
replace the default System.Data.Dataset class in the framework. Whenever
System... more >>
Allow end user to configure database connection
Posted by Alex at 5/15/2007 12:53:22 PM
I am fairly new to .net 2.0 development. I have created a simple web
service application that points at a user's database using datasets
and connections strings from the web.config file.
At this point, I have to manually edit the connection strings
contained in the web.config file for every de... more >>
Compact Framework 2 on Windows CE 4 devices
Posted by Juan Segura at 5/15/2007 12:06:02 PM
Hello, I put this post here because I don’t found a Compact Framework group.
If it is the wrong site, please, accept my apologies and move it or tell me
the right forum.
I need to develop an application in Windows CE .Net 4 devices. Actually it
runs .Net Compact Framework 1 applications.
... more >>
Reflection and Nullable/Generic types
Posted by Kenneth Baltrinic at 5/15/2007 11:51:57 AM
I need to perform two functions that I can't figure out how to do as
follows:
Type GetUnderlyingTypeForNullableType( Type nullableType)
{
//For every value type T where nullableType = typeof(Nullable<T>)
//need to return typeof(T)
return ....
}
And a the revers function:
... more >>
SuppressFinalize on Class with no finalizer
Posted by Brian R. at 5/15/2007 10:25:01 AM
We are using FxCOP in our coding process and implementing the Dispose pattern
in some of our classes. Our resources are not unmanaged, so Finalizers are
not necessary.
Is there any harm in calling SuppressFinalize and passing an object that
does not implement a finalizer?
--
Brian R... more >>
ClickOnce Shortcut
Posted by John Simpson at 5/15/2007 8:08:04 AM
Hello,
I have some Word documents I deploy to my users via ClickOnce along with the
application files. Unfortunately, I can find no way to put a shortcut in the
Start Menu's Program group for the user to click (I can only show the
application file and the website support shortcut). Could ... more >>
Checking if a property of a widget has changed
Posted by ingoberben NO[at]SPAM gmail.com at 5/15/2007 5:55:48 AM
Hi, I'm currently working on a project (UIML.NET) where I need to
detect dynamically when a property of a widget has changed. Currently
I'm just registering all events the widget can throw, is there a
better way to do this?
So I need a mechanism that when for example a checkbox is enabled or
... more >>
BackGroundWorker issue on Vista x64
Posted by BR at 5/15/2007 5:44:22 AM
Hi,
I am writing a small utility to perform system maintainence tasks on
Windows. In this, I am launching a MMC snapin as a process using
BackGroundWorker and using the "RunWorkerCompleted" event handler to
know when the snapin was closed. This works fine on Xp and Vista 32
bit and the RunWor... more >>
Where is installed application located?
Posted by zeid at 5/15/2007 2:16:26 AM
I am a real newbie to .net but have many years of experience with VB6
and java. I published a VB.net application and installed it on another
machine. As domain admin it installs and works fine. However as a
"regular" user I am not even able to run it once it has been
installed. The security set ... more >>
List<T> casting question
Posted by JDC at 5/15/2007 12:30:33 AM
Hi all,
Say I have a couple of classes which implement an interface
public interface IDataItem
{
int ID { get; set; }
string Name { get; set; }
}
public class Foo : IDataItem
{
private int id;
public int ID
{
g... more >>
|