microsoft.public.dotnet.framework.sdk Archive - October 2001
Post a message to this list
Messages
Page: 123
CodeDom & preprocessor keywords (2 replies)
microsoft.public.dotnet.framework.sdk
Does System.CodeDom describes preprocessor keywords?
Soap Formatter (2 replies)
microsoft.public.dotnet.framework.sdk
Hello, I got an incridible problem. I am trying to write a program using C# under W2k, .NET beta 2, Visual Studio.NET beta 2. Then I found I don't have System.Runtime.Serialization.Formatters.Soap name space, I can onky: using System.Runtime.Serialization.Formatters.Binary; But can not, using System.Runtime.Serialization.Formatters.Soap; The system will say that Soap doesn't exist if I try to buil...
Filling Colors in a GIF image with GDI+ and .NET (2 replies)
microsoft.public.dotnet.framework.sdk
I was wondering if any one could post some info on how to perform a "fill" operation in .NET. I have a gif image that I want to dynamically modify by changing all the "green" color in a region(let's say a rectangular area) to a different color like red. The image I want to modify is an AutoCAD drawing with various computers that have been laid out on it. I want to do a status display, by marking a...
ImageEditor : UITypeEditor problem (2 replies)
microsoft.public.dotnet.framework.sdk
Hello, In my usercontrol I have a Image defined. In the property window at design time I get the image editor without doing anything. However, it is just a little different compared to the image editor used by the base properties like BackgroundImage. If you have assigned a bitmap to the property but want to remove it, you get a RESET menucommand if you go over to the BackgroundImage property. How...
EnableViewState (2 replies, VIP)
microsoft.public.dotnet.framework.sdk
I have EnableViewState Property set to fals on some text boxes, and set to true on others. The problem is that there is no difference the values of the text boxes are saved regardless of the EnaableViewState property value. Is there something I am doing wrong??? Thanks.
Event Log Information of a remote machine? (2 replies)
microsoft.public.dotnet.framework.sdk
I am programming in ASP.NET and C#. I was trying to retrieve the event log information from a remote machine in my code using the EventLog class from .NET Framework. It throws an Unauthorized access exception when I try to get event log information of any remote computer. Though, I am able to access these event logs through Event Viewer. I was researching on the web and I read that I need registry...
Problems with PictureBox and System.Drawing.Graphics class (2 replies)
microsoft.public.dotnet.framework.sdk
I have two little problems with PictureBox and System.Drawing.Graphics class. The problems are following: 1) I have a form (say Form1) with a PictureBox box object (say picturebox) on it. The function below drawing diagonal the line over the PictureBox: void DrawSomething() { System.Drawing.Graphics Graphic null; Graphic picturebox.CreateGraphics(); System.Drawing.Pen pen new System.Drawing.Pen(Sy...
EZ: File.Copy("url", local-file)? (2 replies)
microsoft.public.dotnet.framework.sdk
I have files mounted on both Web Shared folders and on SharePoint Web Folders. I would like something that is the equivelent of System.IO.File.Copy() to be able to copy these files to the local drive. The problem is that File.Copy() only takes local files or maped directories (and not web shares, etc.) This should be an EZ problem, but I have not yet found it in Deja or in the .NET framework docs....
How to create a new object using DirectoryServices? (2 replies)
microsoft.public.dotnet.framework.sdk
Hi, Does anyone know how to create new objects using System.DirectoryServices. For example, I would like to create new members (cn) in ou Members,o myOrg container in Site Server's Membership Directory. I can create/read properties using DirectoryEntry class but cannot seem to find any documentation on how to create new objects. Thanks, Robbie
Using custom permissions with attributes (2 replies)
microsoft.public.dotnet.framework.sdk
Hello everyone, I am having a problem with custom permission, and perhaps attributes in general. I have created a custom permission named TestPermission, which implements IPermission and does not inherit from CodeAccessPermission. I have also created a custom attribute named TestPermissionAttribute which implements all of the overrideable methods, the most important being CreatePermission which I ...
DIB Bitmap and GDI+ (2 replies)
microsoft.public.dotnet.framework.sdk
If I have a legacy DIB (Win32 BITMAPINFO struct followed by pixel datas) in memory (as IntPtr), how do I convert this to a .NET Bitmap class? GDI has promising: GdipCreateBitmapFromGdiDib() but this is not exposed in .NET (e.g. as a constructor of Bitmap class or static creator fn) I would like this existing .NET Bitmap member fn: public static Bitmap FromHicon( IntPtr hicon ) add a new for DIBs: ...
Could someone help, please? (2 replies)
microsoft.public.dotnet.framework.sdk
I was wondering if anyone could help me unravel something that I am experiencing when using the .Net Framework SDK Beta 2 (v1.0.2914.16). Roughly what I am trying to do is get a list of XML files from a directory, iterate through that list, open each XML file read certain nodes out of it and write those nodes to an output file. Whenever I write the output to the console, it displays it in full exa...
signature verification (3 replies)
microsoft.public.dotnet.framework.sdk
Hi, I need to verify a signature, does anyone know of sample code doing this? Has anyone here done it? The "RSAPKCS1SignatureDeformatter" has these promising methods: SetHashAlgorithm SetKey VerifySignature Specifications: Hash: SHA 1 Public key encryption: RSA Library used: Open SSL The public key looks like this: e4ca0ac386fe6fc28d33f279ef2d610c1852f8fc154e7164ef6015efba4 9e0e070cd2920b988 87528...
DirectoryServices - Get users in a group (2 replies)
microsoft.public.dotnet.framework.sdk
I am trying to get the users in a domain group using directory services. In adsi/com I do: Set GroupObj GetObject("WinNT://MyDomain/MyGroup") For Each UserObj in GroupObj.Members WScript.Echo UserObj.Name Next And it works fine. Using .NET I tried DirectoryEntry entry new DirectoryEntry ("WinNT://MyDomain/MyGroup"); foreach( DirectoryEntry member in entry.Children) { Console.WriteLine( member.Name...
WebResponseStream (stream too short!) terminates early. (2 replies)
microsoft.public.dotnet.framework.sdk
Regardless of buffer size, this piece of code is always getting about 1/5 of the actual file. The URL is for a Excel binary: http://server/file.xls: The WebResponse.ContentLength; does show the right number of bytes 80K, but this writes only 16KB, regardless of block size. (I watched it, and it only goes through the loop four times, So I know the problem is in the read). (I have tried things like ...
Turning off (no action) deployment projects (2 replies)
microsoft.public.dotnet.framework.sdk
It is pretty easy to figure out how to turn off compliation of a C# ASP or WebService (or a particular C# of VBscript file). But how does one specify to not do the lenghthy and timeconsuming process of rebuilding a deployment project? Yechezkal Gutfreund, Ph.D. Chief Scientist Surgency, Inc. Cambridge, MA USA
How to use Application Configuration Files for Application Variables (2 replies)
microsoft.public.dotnet.framework.sdk
I am trying to store application variables in my custom .exe like I do in my ..ASP web app. for a application named client.exe I have a client.exe.config file that looks like this: ?xml version "1.0" encoding "utf 8" ? configuration appSettings add key "connectionString" value "server ECHO01;uid sa;pwd ;database wksalessfa" / /appSettings /configuration Here is my main form load. private void Data...
What is the best way to concatenate strings ? (2 replies)
microsoft.public.dotnet.framework.sdk
The String.Format() method seems to be the simplest. Any issues here ? Method A: lblUserName.Text " " Session["UserName"]; Method B: StringBuilder MyStringBuilder new StringBuilder(" "); MyStringBuilder.Append(Session["UserName"]); lblUserName.Text MyStringBuilder.ToString(); Method C: lblUserName.Text String.Format(" {1}", Session["UserName"]);
Using TypeLibConverter.ConvertTypeLibToAssembly() (2 replies, VIP)
microsoft.public.dotnet.framework.sdk
I am trying to use TypeLibConverter.ConvertTypeLibToAssembly() and AssemblyBuilder.Save() to dynamically convert a typelib to an assembly. The problem is that I am unable to control where the new assembly will end up on disk, as AssemblyBuilder.Save() doesn't accept full paths. Is there a way to specify the location of the assembly? TIA Karim
UTF-8 code support in C# (3 replies)
microsoft.public.dotnet.framework.sdk
I try to use C# to send the UTF8 code to mobile short message gateway. In original Java code to send Short message, I can use byte[] b unicode my no ascii code string.getbyte("UTF8") to convert Non ASCII into byte[] with UTF8 code. In Visual Basic 6, I can use the code below and it works. strconv (string, vbFromUnicode) What's the equivalence in C# to convert some no ASCII code to UTF8? I had trie...
Xml bug? (2 replies)
microsoft.public.dotnet.framework.sdk
Hi, I've just tried using the XML classes to do something simple, like adding a node to the document, and writing the output back to a file. The output produced is wrong in that the begin/end tags do not match. Below is the code fragment, and the before and after results. Can someone tell me if this is wrong, or if this is a bug in the code I have written. The test is so simple, I thought that if ...
How to use the static "Select" function in System.Net.Sockets.Socket class (2 replies, VIP)
microsoft.public.dotnet.framework.sdk
I can't create a IList of Socket for Select function.
Please, help with IOleCommandTarget. (3 replies)
microsoft.public.dotnet.framework.sdk
Hello, I try to call an IOleCommandTarget.Exec on the current document selection in AxSHDocVw.AxWebBrowser. But unfortunately I have got an Exception: "Value null was found where an instance of an object was required". I think that the reason is in a wrong definition of IOleCommandTarget. Can somebody point what I'm doing wrong? Thanks in advance. Here is a code: [ComImport(), GuidAttribute("B722B...
Pooled Objects, Finalize, and External Resources (2 replies)
microsoft.public.dotnet.framework.sdk
I'm having trouble understanding how to handle cleanup in pooled objects that have references to external resources. What I'm looking for is a way to have the external reference freed only when the pooled object is shutdown. Win2K AS, C#, .NET Beta 2 Here's some pseudocode to show the problem. If I run this and then do a shutdown on the COM app, the Handler pooled object obviously goes away from t...
Loging API for .NET? (3 replies)
microsoft.public.dotnet.framework.sdk
Hello All, Does the .NET framework provide a standard api for logging as well? regards, Abhishek.
Ad
Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification