microsoft.public.dotnet.framework.sdk Archive - April 2002
Post a message to this list
Messages
Page: 1
OpenFileDialog directories? (6 replies)
microsoft.public.dotnet.framework.sdk
Hello. I'd like to use OpenFileDialog to select a directory. How can I do that?
Creating a CLR thunk to a delegate (2 replies)
microsoft.public.dotnet.framework.sdk
I wish to create a delegate which can be called without an object reference. For example normalDelegate new MyDelegate(someClass) boundDelegate new boundDelegate(normalDelegate,someObjectInstance) I want boundDelegate("arg") to now invoke a static function somewhere (created during the boundDelegate constructor) which then invokes someObjectInstace.normalDelegate. How would I go about this with th...
DataGrid Style (4 replies)
microsoft.public.dotnet.framework.sdk
Can I create a DataGrid Style like this(pls watch the attatchment)? ZhangZQ
Return Local Computer IP address (2 replies)
microsoft.public.dotnet.framework.sdk
Anyone know how a class/method/property that will return the local machine's IP address? Also, it would be helpful to know the computer's name, but IP address is essential. Thanks much, Alan Ross IAFF Web Manager
serilaizing objects and streaming though a socket (2 replies)
microsoft.public.dotnet.framework.sdk
I am trying to send objects back and forth between client and server (messages). I want to serialize them using the BinaryFormatter. For some reason it doesn't work: chatClient is TcpClient ProtocolV1.LoginRequest login new ProtocolV1.LoginRequest(); login.username "emad"; login.password "1234"; BinaryFormatter bf new BinaryFormatter() ; bf.Serialize(chatClient.GetStream(),login); chatClient.GetSt...
XmlSerialization & public constructor. (8 replies)
microsoft.public.dotnet.framework.sdk
Hi All, ..NET gurus help! :) I have a class library. I need to add XML serialization to it. I DO NOT want to have default public constructor as it will ruin the library idealogy. How can I use standar (XML) serialization provided by .NET and do not have default public constructor? Things I tried: 1. Used attribute [Serializable] on the class. 2. Implemented ISerializable interface. 3. Implemented ...
How to integrate a C++ Dll into a C# .Net Project? (3 replies)
microsoft.public.dotnet.framework.sdk
Hi all, I'd like to know if it's possible and what are the consequences of integrating a C dll (simple one with a couple a classes, the use of MFC classes use of RASAPI32.dll that is dynamically linked to my dll) to a C# ..Net project... In fact we have started a project with some business C dll modules and now we want to integrate these objects to a .Net application but we don't know if we have t...
DateTimeFormatInfo.RFC1123Pattern does not follow RFC1123 (5 replies)
microsoft.public.dotnet.framework.sdk
I'm having a problem parsing a Date field from an email message. According to the documentation for DateTimeFormatInfo it should recognize RFC 1123 as an input string. It does not actually follow the spec RFC 1123 though in that the time zone must be identifiable in offset format. If I replace the 0700 with GMT or some other time zone in RFC 822 it seems to work okay. string dateToConvert "Wed, 17...
Troubleshooting with .NET (3 replies)
microsoft.public.dotnet.framework.sdk
Hi, I installed .Net Framework on my pc and everything worked fine. But when i install the .Net Framework on my server it wil not start. Using in w2k member server or an w2k pdc with iis 5.0 and Frontpage ext. MDAC 2.7 I already checked the machine.config file and the the section: processModel userName "SYSTEM" password "xxx" .... Where should i start troubleshooting, any logfiles I can check? Can...
equivalent to opener.document.form1.fieldname ? (2 replies)
microsoft.public.dotnet.framework.sdk
Hello, I would like to open a child window and then based on the user selection in the child window I have to populate multiple fields in the parents window. Listbox population is also included. How to acheive this?? Thanks, Karthik
DictionaryBase Example (3 replies)
microsoft.public.dotnet.framework.sdk
Has anyone seem a DictionaryBase class example. I having having problems, type conversion with option strict, when enumerating the collection in a For Each loop. Thanks
Launching exe (2 replies)
microsoft.public.dotnet.framework.sdk
Is there any methods in the .Net library that I can call to launch an external exe (mananged or unmanaged) similar to ShellExecute()? And how about methods similar to EnumWindows()? Do I have to call native Win32 API instead? Thanks, David
COMException in interop (4 replies)
microsoft.public.dotnet.framework.sdk
I get the following exception when trying to access a COM object method that takes a VARIANT parameter. System.Runtime.InteropServices.COMException (0x80004302): Exception from HRESULT: 0x80004302. at ImageView.CVimasImageClass.Load(Object Source) at test.Class1.Main(String[] args) in c:\program files\image optimization sdk \examples\test\class1.cs:line 23 I cannot find a definition for this error...
Change Directory or file Name (2 replies)
microsoft.public.dotnet.framework.sdk
Probably this is very simple but i'm not finding the method for that : How do i change the name of a directory or file with the System.IO namespace ?
convert to System.Byte (2 replies)
microsoft.public.dotnet.framework.sdk
Hi All, How do i convert anything (picture, file, string, etc) into a System.Byte[] array?? I've tried Convert.ToByte() but that does not seem to do the trick properly.. any help would be much appriciated! Thanks, Sumit Varshney svarshney@yahoo.com
Pb integrating a System dll into a C# project using DllImport (3 replies)
microsoft.public.dotnet.framework.sdk
Hi all, Here is my problem, I need to map a system Dll (rasapi32.dll) into a custom C# dll. I use DllImport to import each function I need. For some functions there is no marshalling problem between C types and C#... For pointers I use "unmanage" and it seems to work fine. My problem is one of the functions I want to import has 2 parameters of type: pointer to a structure... Of course I cannot inc...
Serialize a HttpWebRequest (2 replies)
microsoft.public.dotnet.framework.sdk
I would like to serialize a HttpWebRequest/Response into a database, later deserialize it and resend/reread it if necessary. I have tried serializing using BinaryFormatters and SoapFormatters on a HttpWebRequest and when it is deserialized, I can no longer call GetResponse(). I receive a ArgumentNullException with a "key cannot be null" message. Is there anyway to serialize/deserialize or at least...
ConfigurationException with WebRequestModuleHandler in protocol handler (4 replies)
microsoft.public.dotnet.framework.sdk
I added the following lines to my app.exe.config file and I received a System.ConfigurationException with the addtional information of "WebRequestModuleHandler" when I call WebRequest.Create( uri ). In the type I have tried the request and the creator, and referencing the dll ("type FtpRR.dll, FtpWebRequest"). configuration system.net webRequestModules add prefix "ftp" type "FtpWebRequest" / /webR...
String Hash-Algorithm Documented? (5 replies)
microsoft.public.dotnet.framework.sdk
Does anybody know what hash algorithm is used by the overriden System.String.GetHashCode method? I need to know because I am writing an application where it is necessary for non .NET clients to generate the equivalent hash. Thanks, Bryce
Newbie Question: resources (2 replies)
microsoft.public.dotnet.framework.sdk
Ok, I am used to the simple resources of C and VB6. I have just made the move to VB.Net and I am having problems with resources. I have an Image List that I am adding icons to. I am just adding them using the collections attribute, during design time. When it tries to load the Icons during runtime, it throws a MissingManifestResourceException error when the ImageStream is loaded. I am using window...
EventLog Category (3 replies)
microsoft.public.dotnet.framework.sdk
Hello all, Is there a way to specify items for the Category field as displayed in the Event Viewer? I don't see anything in the help documentation for System.Diagnostics.EventLog. I remember doing it via the Message Compiler file in the old days but how can it be done via the .Net Framework classes? Kral kral ferch@hotmail.com
How to list directories in a TreeView control? (3 replies)
microsoft.public.dotnet.framework.sdk
Hi, Is there any controls (preferrably, part of the Windows distribution) that will list all the file system's directories in a TreeView like control? I'm planning to put 2 such controls side by side in a single form, to allow users to select 2 directories. Would appreciate any pointers on this. Thanks. Jonathan
ShadowCopyDirectories don't work? PrivateBinPath don't work? (5 replies)
microsoft.public.dotnet.framework.sdk
Hello, I play with dynamic loading and overriding assemblies. I have two problems. 1. I can't set directories for searching assemblies. When I save assembly in c:\ (not in Environment.CurrentDirectory) I get exception System.IO.FileNotFoundException (File or assembly name foo.dll, or one of its dependencies, was not found.) Dim apps As New AppDomainSetup() apps.ApplicationBase Environment.CurrentD...
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