microsoft.public.dotnet.framework.sdk Archive - May 2002
Post a message to this list
Messages
Page: 1
Custom Formatter (2 replies)
microsoft.public.dotnet.framework.sdk
Hi All, I'm looking for custom implementation of System.Runtime.Serialization.Formatter. Can anyone point me to it? Many thanks in advance, Sergiy Mesropyan.
Type Conversion (5 replies)
microsoft.public.dotnet.framework.sdk
How can I convert a int array to a byte array. In an other word, I need to write a int array into a memorystream. How can I do it? Thanks
How to get the current Windows login user? (2 replies)
microsoft.public.dotnet.framework.sdk
In a Winform project how do I get the currently logged in Windows user? TIA.
DotNet Cryptography (non stream) (VB .NET) (5 replies)
microsoft.public.dotnet.framework.sdk
I am trying to accept a string from a text box encrypt it and store it as a string in a text (XML) file. I can encrypt it just fine. However when I try and decrypt it I face the following problems. (I am using DESCryptoServiceProvider in VB.NET) 1) When I use the TransformBlock method returns no error, but the output byte array is full of 0s. 2) when I use TransformFinalBlock I get the error : Bad...
Event (4 replies)
microsoft.public.dotnet.framework.sdk
I want an event being handled only once, then disconnect the event process function from an event, is it possible? example, I want to handle the click event of a button only once, btn Sample.Click new EventHandle(btn Sample Click); private void btn Sample Click(object sender, EventArgs e) { // doing something.... // then I don't want to handle this event again, and I don't want to use // programmi...
String operation (2 replies)
microsoft.public.dotnet.framework.sdk
Does .net Framework provide a string operation like Format method in CString in VC ? CString str; str.Format("i %d, j %d, k %d", i, j, k); can .net framework do the same thing as CString.Format method? ZhangZQ
HOWTO: Monitor window creation in Managed code ? (3 replies)
microsoft.public.dotnet.framework.sdk
Hello, I am wondering if its possible to monitor any window creation only with Managed code ? Hooks seem to help at the moment, but isnt there anyother way ? Thanks for your time.
USER_INFO_3 struct for use with NETAPI Functions (5 replies)
microsoft.public.dotnet.framework.sdk
I am attempting to create a managed wrapper for the Platform SDK stuff contained in the netapi32.dll. I've tried declaring the struct as follows: [StructLayoutAttribute (LayoutKind.Sequential)] public struct USER INFO 3 { [MarshalAs(UnmanagedType.LPWStr)] public string usri3 name; [MarshalAs(UnmanagedType.LPWStr)] public string usri3 password; public uint usri3 password age; public uint usri3 priv...
Image Resizing Library (2 replies)
microsoft.public.dotnet.framework.sdk
I need to resize an image from a .NET application. I can do this with interop but am looking for a native .NET library. Does one exist in the framework or maybe third party?
DataSet.WriteXml(): What am I missing? (5 replies)
microsoft.public.dotnet.framework.sdk
I have a DataSet loaded with ten tables, and I want to write its contents and schema to an Xml file. I'm providing this: DataSet.WriteXml(@"C:\myfile.xml", XmlWriteMode.WriteSchema); All I get as a result is the following (i.e. no actual data): NewDataSet xs:schema id "NewDataSet" xmlns "" xmlns:xs "http://www.w3.org/2001/XMLSchema" xmlns:msdata "urn:schemas microsoft com:xml msdata" xs:element na...
Unfathomable interaction of HScrollBar props (Win Forms) (2 replies)
microsoft.public.dotnet.framework.sdk
Hello, Can anyone please refer me to a primer on the correct sequence to use (if any...) for adjusting the properties of HScrollBar? The following code is an example: // hScrollBar.Minimum 47000; hScrollBar.Maximum 61000; hScrollBar.Value some integer between Minimum and Maximum ; // line 1 hScrollBar.SmallChange 30; //line 2; hScrollBar.LargeChange 10 * hScrollBar.SmallChange ; //line3 Here's the...
Can an EXE look for a class in a different DLL than what it was (6 replies)
microsoft.public.dotnet.framework.sdk
Without going into the details as to why, I'd like to find out how I can do the following with .NET: 1. I have a dll A.DLL. It contains a class called ATree. 2. I have an EXE called C.EXE. It Instantiates ATree in A.DLL using the 'New' keyword. i.e. ATree a New ATree(); A.DLL is referenced using the /r command line option when C.EXE is compiled. 3. When I run C.EXE, it attempts to locate ATree wit...
encrypt strings? (3 replies)
microsoft.public.dotnet.framework.sdk
hi all, Could anyone point me to some code samples to perform basic encryption to a string value? i guess would be using system.security.cryptography namespace? thanks
Convert (2 replies)
microsoft.public.dotnet.framework.sdk
Does .net Framework provide a simple mechanism to convert a string to byte[]? ZhangZQ
How to generate window form button from database (4 replies)
microsoft.public.dotnet.framework.sdk
Hi Expert, I would like to generate some of the window button control from the database. Let say I have a database table setup as follows: CREATE TABLE [dbo].[T Table] ( [ID] [int] NOT NULL , [Button Name] [varchar] (50) , [Position x] [int] NOT NULL , [Position y] [int] NOT NULL , [Width] [int] NOT NULL , [Height] [int] NOT NULL ) ON [PRIMARY] GO Do you think is this possible to generate and init...
PerfMon != PerformanceCounter.NextValue() (7 replies)
microsoft.public.dotnet.framework.sdk
Performance Monitor shows disk activity going up and down constantly on PHYSICAL DISK\% Disk Time whereas PerformanceCounter.NextValue shows 0. I AM SEEING MOVEMENT in Performance Monitor, so my PhysicalDisk counters are correctly set to run at startup (Win2K enables them by default anyway). Use the PCREAD QuickStart sample to demonstrate. I'm running MS.NETv1SP1 runtimes on Win2KSP2, although the...
Form Inheritance Bug? (5 replies)
microsoft.public.dotnet.framework.sdk
I'm seeing a weird behavior in the VS .NET IDE designer editor, when I use form inheritance. I always have to open/load first the base form, before opening the inherited form. Otherwise VS .NET seems to have problems loading it and throws exceptions. This seems to be a bug in .NET to me. Is it? Or am I doing something wrong?
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