Home All Groups Group Topic Archive Search About

.NET Framework

microsoft.public.dotnet.framework
Score Another String.Format() Question
thomas - 28 Oct 2006 11:17 PM - 5 messages
Hello Everyone, I am trying to format decimal values the way so decimal point is display only if the number is any digits after decimal other than zero. Example: 9.000000 -> "9" 9.500000 -> "9.5" Does anyone have an idea how the format string should look like? Is it, at ...
Score Graph control
Esha - 28 Oct 2006 4:21 PM - 7 messages
I was asked by my boss to create representation of data by Graphs in VB 6 application. I checked the features of VB6 Graph control as well as Excel graphs. They are not good enough. I tried to find any third party ocx and all I found do not look good enough ...
Score Mutually Exclusive C# Method
Paul Allan - 27 Oct 2006 8:14 PM - 11 messages
I am creating a VS 2005, C# Assembly. I want to create an assembly with a method that can only be executed by one thread across process at any given time (so that it's totally mutually exclusive). I have played around with creating a singleton class, that uses the ...
Score Errors in Page directive
Nathan Sokalski - 27 Oct 2006 8:07 PM - 5 messages
I have a couple pages in my application that show errors in the Page directive that I cannot find. Here is a copy of my Page directive and the errors that it lists for it: <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="adminhome.aspx.vb" Inherits="AFBE.adminhome" %> ...
Score installation
li - 27 Oct 2006 6:47 PM - 2 messages
Can I install Visual Studio 2005 on a computer that has Visual Studio 6? ...
Score ISerializable and SerializableAttribute
Steve B. - 27 Oct 2006 2:28 PM - 2 messages
Hi, If a class implements the ISerializable, does the class has the SerializableAttribute "automatically" defined, and if a class has the SerializableAttribute defined, does it implements the ISerializable interface ? Actually, I'd like to create a serialization utility that can serializable ...
Score Redirect a method call
Ralph - 27 Oct 2006 1:27 PM - 3 messages
Hi, Does anybody know if it is possible to redirect a method call? Let' say I want to call my own implementation of the message box each time when somebody in my application calls the MessageBox.Show. My application has many modules that are loaded dynamically ...
Score Windows Service Security Problem
bthubbard - 27 Oct 2006 12:13 PM - 2 messages
Hello All, I've run into a bit of an issue and I was hoping that someone here could help me.  I have inherited a Windows Service written in .Net 2.0 (C#) from a previous employee.  It build successfully and I am able to ...
Score Is .NET Framework 3.0 100% compatible to the Framework 2.0?
Frank - 27 Oct 2006 7:22 AM - 2 messages
Hello, does anybody knows if the Framework 3.0 was 100% compatible to the Framework 2.0? My Information was that the Framework 3.0 was the Framework 2.0 with WinFX. The Framework 3.0 only supports Win XP and Win Vista is not a suitable ...
Score List<MyStruct> serialization problem (.Net 2.0)
thomas - 27 Oct 2006 6:09 AM - 1 message
Hello, Probably I am mission something obvious, but here is the problem: I have a very simple structure (struct)  with a read/write public property. Then, I serialize and deserialize generics List of my simple structure - actually ASP.Net does it inside the HttpSessionState object. ...
Score Image Recommendations
Brent - 27 Oct 2006 1:36 AM - 4 messages
Hi eveyrone. I am writing a client/server application that has to deal with displaying images to the user. The user will have the ability to add images to entries. Ok im kind of looking for a best practice here on what to do ...
Score session variable and asynchrous call
carrolky@gmail.com - 26 Oct 2006 10:48 PM - 4 messages
Here's my scenario.  Please advise me if you can. I have an ASP.NET web application on a corporate intranet which retrieves some user information it uses from a webservice.  The data does not change often, but when it does, my site needs the updated ...
Score Net Framework 1.0 install/uninstall issues- help?
jaydag71 - 26 Oct 2006 9:01 PM - 2 messages
i have been trying to re-install my Net Framework 1.0 installation after I tried to uninstal it and it timed out on me. I had to kill it using the task manager and now when I try to install again it times out everytime! I used ...
Score Hover effects, IMessageFilter not working as expected
ThunderMusic - 26 Oct 2006 7:18 PM - 5 messages
Hi, I'm developping a form that renders differently when hovered and trigger some processing when not hovered (leaved). The thing is, when I leave my form and another form from my application is underneath, it works fine, but if I leave my form and anything that is not from my application is ...
Score .NET 2.0 Reflection Problem vs framework 1.1x - how to get the fields of a given Structure in the sa
hugo.braganca - 26 Oct 2006 6:52 PM - 4 messages
Hi, I need to iterate the Fields of given Structure though Reflection in the same order they where declared. Note that I only meet the Structure at Runtime. 'ex.: Structure MyStruct       Dim Play As Byte ...
Score .NET 2.0 problem: 100% cpu usage in mscorwks.dll!CreateApplicationContext
Alex Chudnovsky - 26 Oct 2006 5:39 PM - 3 messages
Hi, I've come across with a problem that results in 100% CPU usage in code inside framework itself, specifically process explorer shows that the offending thread is mscorwks.dll!CreateApplicationContext - it shows that this thread is making a lot of context switches without doing any ...
Score Binary Serialization -- how to actually insert into database?
matt - 26 Oct 2006 4:54 PM - 10 messages
hey all, ive read some good articles on the tenents of serialization and when & why youd want to do it, as well as the types. great! now id like to put it to practice. however....none of the articles i ...
Score VS2003 - VS2005 -> DisconnectedContext was detected
Ralf - 26 Oct 2006 4:30 PM - 4 messages
Hi! If I do the following in VS2003 it works - and in VS2005 it complains about a DisconnectedContext... using (ManagementClass mcDiskDrive = new ManagementClass(@"Win32_Diskdrive")) {                 // mcDiskDrive.GetInstances() is thowing the exception ...
Score Regex - words extraction
Saso - 26 Oct 2006 1:50 PM - 8 messages
Hello! I have the following string: <wordX::wordY[wordZ]> I would like to extract from that string three words wordX, wordY and wordZ by Regex usage. Regards Saso ...
Score custom adapter
Siva - 26 Oct 2006 1:40 PM - 2 messages
Hi, I have a problem in returning status code from standard Http Adapter. What I want to do is: I am using Http Adapter in IIS to post xml messages. I have custom receive pipeline to validate the XML message. When I get invalide message, I want to ...
Score FtpWebRequest Connection Issue
BobbyLupo - 26 Oct 2006 12:24 PM - 2 messages
Hello. I am trying to use FtpWebRequest to send a file.  Everything was initially working fine until the ftp server had a load balancer installed. Now when I connect and try to send a file, I get the following exception: ...
Score Own macrolanguage
Andrey Dzizenko - 26 Oct 2006 12:08 PM - 2 messages
Hello! Is there an opportunity to write an interpreter of an own macrolanguage  like JavaScript or VBScript for existing web browser like Internet  Explorer? Could you please tell me where should I search for helpful information? Best regards, ...
Score COM Interop issue : .Net is being too 'smart'
Bob S - 26 Oct 2006 8:57 AM - 3 messages
I am having trouble with the following scenario.... Assembly A Returns a managed implementation of COM IStream interface to the unmanaged world ============= ///////////////// [ComImport] [GUID("..")] interface IStreamAssemblyA { ... } class MyStreamImpl : IStreamAssemblyA { .......... } IntPtr GetStreamImpl() { MyStreamImpl obj = new MyStreamImpl(); IntPtr ret = Marshal.GetComInterfaceForObject(obj,typeof(IStreamAssemblyA)); ...
Score doing some background work occasionally
bonk - 26 Oct 2006 6:55 AM - 34 messages
I have an application that needs to perform some background work, i.e. Logging, wich must not block the main thread. How would I basically design such a scenario? It is obvious that I should do that on an extra ...
Score Debug symbols not loading when built on another machine
Bardo - 26 Oct 2006 4:52 AM - 4 messages
Hi all, We are trying to debug an assembly which was built in debug configuration on our build server.  The output window of visual studio indicates that no symbols are being loaded for the assembly. However, when the PDB file is copied alongside the dll, the symbols load ok. ...
Score Are Regex objects thread-safe?
mnowosad - 26 Oct 2006 12:18 AM - 3 messages
The MSDN documentation about the Regex class seems to have contradictory information. At the "Remarks" section, the documentation states: "The Regex class is immutable (read-only) and is inherently thread safe. Regex objects can be created on any thread and shared between threads. " ...
Score response.transmitfile fails when deployed (ASP.NET 2)
EmeraldShield - 25 Oct 2006 6:31 PM - 11 messages
I am confused about this... I have an app that has worked for a long time in 1.1.  I upgraded it to 2.0. Everything works on my local machine, including transmit file. When I deploy the site to a Server 2003 (SP1) machine the transmit file ...
Score Windows service with Socket won't accept a connection
Paul Tulou - 25 Oct 2006 2:01 PM - 4 messages
Hello, I have created a Windows service that uses the Socket class to listen for incoming connections.  I have tested my socket code in a normal windows application for easy debugging and everything worked fine. When I transfered this code to the service and started it up, the ...
Score SetRop2 with GDI+
Glenn - 25 Oct 2006 12:27 PM - 3 messages
Hello, From what I can tell there is no equivalent in GDI+ to the SetRop2 API.  Is this correct or have I missed something? I'm able to use GDI in some cases but not all.  My rendering code only has ...
Score System.Net.Sockets.SocketException - DontRoute option set - OS Vista
Sugan - 25 Oct 2006 10:26 AM - 1 message
Hi All, I use DontRoute option for a socket in my application which works with no issues in Windows 2000 and Windows XP but throws an exception in Windows Vista RC2. Here is the code: tcpClient.SetSocketOption(SocketOptionLevel.Tcp, SocketOptionName.DontRoute, 1); ...
Score writing an advanced filestream class
bonk - 25 Oct 2006 6:49 AM - 7 messages
I am trying to create a stream that writes text to a file and: - automatically creates a new file once the current file exceeds a certain size - makes it possible to be used by multiple threads and/or processes so ...
Score What is the error message when .NET 2.0 is not installed?
Matt - 25 Oct 2006 1:01 AM - 3 messages
I was wondering what the exact error message is when a user attempts to run a .NET 2.0 application on a machine that does not have the framework installed. I remember in 1.1 it was a nasty cryptic message ...
Score ERROR-Some of the files required for web references are not instal
Chris Davoli - 24 Oct 2006 10:20 PM - 2 messages
When I try to add a web reference to my web site (I just right click on App_WebReferneces), I get the error "Some of the files required for web references are not installed" and the ok button. I've tried to uninstall and ...
Score nullptr for a property
--== Alain ==-- - 24 Oct 2006 6:56 PM - 13 messages
Hi, I would like to define the default value of my property. My property is from type Bitmap^, therefore i was thinking to do : [DefaultValueAttribute(nullptr)] but i does not work. how is it possible to define this property to no pointer ? ...
Score cursor
slowandgentle25 - 24 Oct 2006 6:19 PM - 1 message
when i type in word or using messengers for chatting the cursor keeps moving back along previous typing in the sentence. i checked for viruses and there was none found. also auto format is off ...
Score How can I compile my VS2005 c# code to not be dependent on CLR to run?
Marcus - 24 Oct 2006 5:56 PM - 5 messages
How can I compile my VS2005 c# code to not be dependent on CLR to run? I want people that install my software to be able to run it without having to bother with CLR's and "Windows installers". I would like to generate a binary for lets say Windows XP. ...
Score videos in ie 7
mick020 - 24 Oct 2006 5:51 PM - 1 message
downloaded ie 7 last night then tried viewing websites like you tube etc and other websites but on each one none of the videos would start i didnt even get a connecting to media msg the videos would not even play in firefox  In ...
Score Publishing the methods with parameters
ramnadh - 24 Oct 2006 4:53 PM - 2 messages
I am using .net framework 1.1. I am having an application which is pluggable to other applications. In this application there are some state transitions defining based on the business rules. As business rules are specific to the main application. ...
Score Clear/Reset com port?
Rico - 24 Oct 2006 3:21 PM - 2 messages
Hi Everyone, Thanks for reading my post.  I have a .net application written in C# that uses RAS to create a dial up connection.  My problem is once in a while, the dial-up connection may drop, and I will receive an error, ...
Score Code Access Security Question
Jeff - 24 Oct 2006 2:48 PM - 2 messages
I have a component dll that lives in the GAC.  One of the classes in the component dll calls unmanaged code.  I use the component dll from an ASP.NET application that I'm trying to get to run under medium trust.  My call looks ...
Score What is the next event to fire after the OnCreateControl?
Greg - 24 Oct 2006 1:54 PM - 8 messages
I am designing an inherited control. Besides the OnCreateControl , what other events can be listened to that the if(!DesignMode) test willl work? The reason I am asking is that a customer has asked to hide the control. However, setting the controls visible property to false means ...
Score Catching unhandled exceptions in the finalizer under .NET 2.0
Stefan_Kühnel - 24 Oct 2006 10:24 AM - 7 messages
Hi! We're having a problem with converting a program from .NET 1.1 to .NET 2.0. The program is kind of an AppServer (which can run as NT service or as a console application), where we don't control which applications are ...
Score Framework 1.1 versus 2.0
adelscott - 24 Oct 2006 10:04 AM - 3 messages
Hi, Does anyone know where I could find a quick comparison between FrameWork 1.1 and 2.0 ? I have a component working on FW1.1 and tried to convert it to FW2.0. It seems to work but the exe crashes sometimes with ...
Score XML -> method call
Kristoffer Persson - 24 Oct 2006 9:45 AM - 5 messages
Q: Does functionality exist within the .NET CF 2 to invoke a method where the call is specified in XML? I mean where the XML is automatically translated to the method call. Where is it and how do I use it? ...
Score Signed DLLs
usenet - 24 Oct 2006 9:11 AM - 2 messages
I have a DLL which is not in the GAC, but it is signed. What I want to know is whether somebody could replace my DLL with one of their own which has the same classes, properties etc. and in every way had an ...
Score Builiding Terminalserver Aware Appliocation
Patrick Jox - 24 Oct 2006 9:01 AM - 1 message
Hello, I am searching for information about developing terminalserver aware application with the .NET framework. In C++ there is a linker option "tsaware". Is there any comparable option for .net (c#). Has anybody experiences concerning development of terminalserver aware applications. ...
Score VSS problem
Julia - 24 Oct 2006 8:26 AM - 2 messages
Hi I have Visual Studio 2003 and Visual Studio 2005 installed on my computer. I also have VSS 2005 installed. I will now run a .NET project in Visual Studio 2003. I got all code from Source Safe using "Get Latest Version". ...
Score HTMLElement2 scrolling
Andrey Dzizenko - 24 Oct 2006 7:41 AM - 1 message
Hi all! The problem appears if I set the screen resolution to 1024x768.  = IHTMLElement2.scrollTop doesn't work. I can't scroll the document, but  = there's an ability to scroll it. // Immediate window ihtmlElement2.scrollHeight    // try to get possible scrolling area ...
Score Determining IP of client in Windows Terminal Server, .NET
green - 24 Oct 2006 4:33 AM - 4 messages
Hey there - I'm looking for a working solution to get the IP address of a client that has connected into a terminal services server. IE, the user would be logged into the server, and they would run an app ...
Score Finding most approximated item in collection object?
Hyun-jik Bae - 24 Oct 2006 1:45 AM - 7 messages
Is there any way how to get the item which has the most similar key in key-value collection object such as Dictionary<> or SortedDictionary<> although there is no matching key? If there is none, is there any ...
Score UIPBA and popup
ame2171 - 23 Oct 2006 10:06 PM - 1 message
I have a large problem that I do not succeed to resolve. I am using the UIPAB and from a sure page I have the necessity to call a popup. Subsequently, from a link of the same one popup I must return on the ...
Score system.enum.getvalues
Jeff Mason - 23 Oct 2006 8:58 PM - 6 messages
I am observing some puzzling behavior with the GetValues method of enumerations. I wonder if this something I just don't understand, or is this just wrong. The documentation for the GetValues method says "The elements of the array [returned] ...
Score browser detection and redirection
jaydev2605 - 23 Oct 2006 8:27 PM - 2 messages
Hi, I am looking for code to detect and redirect to the corresponding browser download page if the clients uses old version, could anyone have a sample code for this? I want to use the following version browser only, if they are other ...
Score Spell Check
Mary C. - 23 Oct 2006 6:28 PM - 2 messages
When opening Toold- Options -- and looking for spell check there is no tab for spell check.  There are 9 tabs and should be 10.  What happened to Spell Check for OE? Would appreciate any assistance. Thank you. Mary C. ...
Score Limit socket connection to local machine
Bob - 23 Oct 2006 4:58 PM - 2 messages
What is the best way to limit a socket connect to the local machine Is this correct & best way to do this? mySocket = s.Accept(); if(mySocket.LocalEndPoint != mySocket.RemoteEndPoint)     mySocket.Close(); Bob ...
Score Secure data protection under .NET 1.1
Jacob F. - 23 Oct 2006 4:28 PM - 2 messages
Greetings, I am attempting to find a way to store a chunk of data inside of a C#.NET application.  I originally intended to use DPAPI via the Protect class in System.Security.Cryptography.  However, one of the consumers of this ...
Score No Touch Deployment.Net 1.1 Issues
Lawrence - 23 Oct 2006 3:48 PM - 1 message
I have an app developed in VS 2003 using the 1.1 Framework that uses a private assembly. First I deployed this through IIS, adding the website to the trusted sites. These are in the same directory on the web ...
Score Type of base pointer
dotNiemand - 23 Oct 2006 2:40 PM - 3 messages
Take a look on this code: using System; using System.Collections.Generic; using System.Text; namespace BasePtr {     class Program     {         class A         { ...
Score How to use ConfigurationSection
Edwin Engelen - 23 Oct 2006 12:26 PM - 6 messages
Currently, we are storing our application settings in the registry, but we want them to be stored in config-files. In order to accomplish that I'm using the .NET 2.0 System.Configuration namespace. A couple of my own configuration ...
Score Seeking advice on best practice.
Adrian Parker - 23 Oct 2006 9:51 AM - 7 messages
We currently have a 4GL Application written in PowerBuilder and C.    The PowerBuilder deals with the UI and the C does most of the business logic. We want to convert the C to VB.NET (as we use that in our web app and so am ...
Score Compilation to MSIL
Bhuwan Bhaskar - 23 Oct 2006 3:11 AM - 6 messages
Hi everyone ! Can anyone tell me how source code to converted into MSIL in dotnet framework. Thanks Bhuwan ...
Score How to Create Share Folder only to one user ?
HuffmaN - 23 Oct 2006 2:43 AM - 2 messages
My code goes here following, but it can't work, why ? Bytheway,if only one user should be permitted to accesss it,how can i do ? thx! static void Main(string[] args) {             try ...
Score XmlTextReader disposal pattern
Leon - 23 Oct 2006 12:21 AM - 3 messages
Hi, I am amazed that XmlTextReader does not implement IDispoable. Is there any reason? In the case of XmlTextReader( Stream ) construction, if I wrap the Stream with a C# using statement like this: using( StringStream ss = new StringStream.... ) {     XmlTextReader xr = new XmlTextReader( ss ); ...
Score watch new created processes
tresqboy - 22 Oct 2006 8:38 PM - 2 messages
Iam wondering if it is even possible to watch for new created process from the same machine. I want o be notified when *ANY* application is created, by monitoring the processes (or calling wmi or any other methods). thanks all, ...
Score Garbage Collector
virtualwarp - 22 Oct 2006 5:09 PM - 8 messages
Hey everyone, i'm currently trying to implement a WeakDictionary, where all keys are WeakReferences. Now I want to remove the keys when the targets are no longer reachable. Is there any possibility to get informed when an object is garbage ...
Score A question on 1.1 and 2.0 interoperability
Roland - 22 Oct 2006 11:31 AM - 8 messages
Is it possible to call a dll that was compiled against 1.1 when the exe is compiled against 2.0? I have bought some dll's that are compiled against 1.1 and, obviously, I don't have the source code. I hate to buy all libraries again each time ...
Next »