microsoft.public.dotnet.framework Archive - December 2001
Post a message to this list
Messages
Page: 1234
No object name for System.Threading.ManualResetEvent? (3 replies)
microsoft.public.dotnet.framework
Win32 synchronization objects (events, mutex, ...) all have a name. Having a name allows you to have several processes cooperating by sinchronizing each other using well known sync objects. However, in .NET ManualResetEvent and AutoResetEvent doesn't have an object name! Is there any reason for that? Workarounds? TIA Pablo Castro [MVP] Lagash Systems S.A. [Remove "nospam" from my e mail address]
Debugger incosistencies with strings including \x0000 (5 replies)
microsoft.public.dotnet.framework
Hi, Perhaps this is by design and I'm missing something. I also apologize if this has been covered before; I couldn't find any posts If you place a breakpoint on the third line of code in the debugger and run it, you'll see that s2.Length is 0 in locals/command. However, when evaluated in code, it returns the length of the byte array it was converted from. The array contains 256 "\x0000"s. I've fo...
anybody get codebase hint to work ? (5 replies)
microsoft.public.dotnet.framework
This question seems to keep coming up. I need a shared assembly, located in a sibling directory (not the app directory or a subdirectory). Catch is I don't want to use the GAC, which blows my xcopy deployment. How do I make this codebase tag work in the app config file ? Every variation I try gives me a FileLoadException.
working with textboxes, simple question (2 replies)
microsoft.public.dotnet.framework
Hi all, How is it possible with a server control like a textbox, to check when it receives the focus ? For example, assuming you've got 3 tboxes, and the third one is supposed to sum, values from the two first, that user entered. But i'd like to process it automatically when the 3rd textbox receives the focus, you got it ? I didn't find any event that would allow me doing this, shall i use javascr...
Importing HTML Text Into .NET's HTML Model (2 replies)
microsoft.public.dotnet.framework
Can this be done? In other words, can I parse HTML results from other web sites by passing them into some constructor in the System.Web.HTML namespace and exploring the resulting object model? Jeff.
Line Numbers in Exceptions (2 replies)
microsoft.public.dotnet.framework
In ASP, we used to be able to retrieve the Line Number of an exception. On calling the Server.GetlastError() function, one could read the value of the line number from the line number property of the returned exception. The Exception class no longer contains a LineNumber property, so how do we find out where the exception happened from our custom error handler pages? I guess it is possible because...
ASCII encoding and character sets... (3 replies)
microsoft.public.dotnet.framework
I'm also having problems with special characters on an ASCII files. I create the StreamReader that reads the file this way: StreamReader stream new StreamReader(fileName, new ASCIIEncoding()); The number of characters read is correct but every time a letter has some kind of accentuation, it shows a question mark or some wierd sentence. Is it possible to set the ASCII character set on the StreamRea...
ShellExecute replacement (3 replies)
microsoft.public.dotnet.framework
What is the .Net replacement for ShellExecute API call?
A replacement to "InetCtls.Inet.1" object? (2 replies)
microsoft.public.dotnet.framework
Hello, I just wonder if there is any replacement for InetCtls.Inet.1 object that I could use in asp pages. This is an activex object that allows me to read an html file just like IE does. when I execute OpenUrl method with URL as parameter, the return value equals whole html page source code. Thanks
How to send a message to a control using .NET ? (2 replies)
microsoft.public.dotnet.framework
This is a basic question, but how can I send a message to a given control ? For example, I would like to redirect some keydown message from one control to an other. I use ProcessKeyMessage, where I get a Message structure. protected override bool ProcessKeyMessage(ref Message m); But how can I send such "Message" to an other control ? I couldn't find anything like "SendMessage" in the SDK. I'm usi...
Public Fields or Properties? (8 replies)
microsoft.public.dotnet.framework
Hello, Normally, a Public Field works the same as a Public Property, right? I can set values and retrieve them. I think it is much cleaner to have a public field nicely on one line, rather than more lines just so I can have a property. What are the guidelines on this? I just found out that the Repeater won't databind to a field (other databinding worked like that), but it will to a property. Very ...
SSL vs Encrypting Web Service (4 replies)
microsoft.public.dotnet.framework
I'm writing a Web service that has secure data. What would be the advantages/disadvantages of using SSL to talk to the web service vs. Using the Crypto API to encrypt and decrypt the data that my web service returns. Thanks
System.Runtime.Remoting.Channels.TCP ? (Remoting) (5 replies)
microsoft.public.dotnet.framework
Hey, The examples on http://www.gotdotnet.com in the ASP Quickstart tutorial use the following namespace for remoting: System.Runtime.Remoting.Channels.TCP But I can't find it with WinCV and when I compile an application it says the namespace can't be found. Is it something I have to install after installing the SDK Beta2 ??? Thnx TP.
long pathname (4 replies)
microsoft.public.dotnet.framework
I ma using the follow win32 function in a C# program to obtain the long pathname from a name that has only the short 8.3 version. It works, but is there an equivalent in the framework? [DllImport("kernel32.dll")] static extern uint GetLongPathName( string shortname, StringBuilder longnamebuff, uint buffersize);
Rich Text Formatting (2 replies)
microsoft.public.dotnet.framework
Probably a daft question but ...... Its easy to format text with the FontDialog Box using C# if(FontDialog.ShowDialog() DialogResult.OK) { RichText1.SelectionFont FontDialog.Font: } but how do I set the Bold/Underline etc individually ? RichText1,SelectionFont.Bold is a Readonly property Thanks in advance David a sceptical Smalltalker
Singlecast delegate... (2 replies)
microsoft.public.dotnet.framework
Hi All, could somebody explain the difference between single and multi cast delegates. Would appreciate a sample on how singlecast can is written. Thanks, zy
System.Net.Sockets, Networkstream, and datatype conversion question (2 replies)
microsoft.public.dotnet.framework
Hi all, I am trying to connect from a .Net app to an UNIX(AIX to be exact) socket server that reqires me to send and receive data in C style structs. Below is an example of the request message struct: struct RequestMessage { char version[8]; char request; char type; char str1[9]; char str2[8]; char str3[16]; }; Question: Is there an easy way(as in some built in .net class or method that i've overl...
Typed XML Docs? (6 replies, VIP)
microsoft.public.dotnet.framework
How should I go about getting a Typed XML Doc? Something like a dataset, but without the database idea behind it... Thanks, Mike
file access synchronization (5 replies)
microsoft.public.dotnet.framework
If i want to write to a shared file with different processes at the same time, how can i do that? Here is the class i tried but it fails: class TestFile { ReaderWriterLock rwl new ReaderWriterLock(); FileStream fs new FileStream("a.txt", FileMode.Append, FileAccess.Write, FileShare.ReadWrite); public void Write(String message) { rwl.AcquireWriterLock(Timeout.Infinite); try { StreamWriter writer; t...
System.ServiceProcess ? (2 replies)
microsoft.public.dotnet.framework
I've found a lot of documentation regarding the System.ServiceProcess namespace but when I try to use it from within VS.NET RC1 I'm told that ServiceProcess does not exist in the System namespace!? What's up, ideas? TIA, Noah
Date object & DayofWeek (3 replies)
microsoft.public.dotnet.framework
Im trying to retrieve the day of the week from a date. for example Monday , sunday etc. Looking at the date object there is a dayofweek property which returns a system.dayof week value. This is 0 for sunday , 1 for monday etc. I could write a select case statement to work out the string value of the date given the dayofweek value. However, there must be a better way of retriving the actual day of ...
Adding icon resource? (3 replies)
microsoft.public.dotnet.framework
How do I add icons as resources so I can use the ResoureManager to retrieve them at run time can't find anything in help? I have seem many examples of how to retrieve them using the resource manager, but know one has said how to get the icons embedded so that it's possible to access them at runtime. Thanks, Tony
hy doesn't .NET support HTTP 1.0? Is this a BUG? (2 replies)
microsoft.public.dotnet.framework
Assuming that I want to talk to an HTTP 1.0 server, and so I don't want the "extra" headers (Connection, Expect, Host, etc.) choking the other end, why do I have to drop to the sockets level? It seems to me that if I set the WebRequest.ProtocolVersion to 1.0, maybe it shouldn't be sending non 1.0 headers...? James Hill jhill@cantimflas.com
Writing an XML Doc (2 replies)
microsoft.public.dotnet.framework
Hello, I just want to make sure I'm not missing something. To write an XML Doc out to a string, I must: 1. Create my XMLDocument. 2. Create a StringWriter 3. Create an XMLTextWriter on top of the StringWriter 4. Write from my XMLDoc to the XMLTextWritre. 5. StringWriter.GetStringBuilder.ToString() Is this correct? Is there an easier or shorter way? Thanks, Mike
NotifyIcon -> ContextMenu SHOW/HIDE ? (3 replies)
microsoft.public.dotnet.framework
How do I get the nofityIcon's context menu to SHOW so the lower left corner of the menu is touching the mouse (I think I need to measure the context menu, but how)? Also, how do you HIDE the menu when you click anything else on the screen? Thanks, Steve PS: Sample code with hard coded values!!! private void notifyIconTest MouseDown(object sender, System.Windows.Forms.MouseEventArgs eventInfo) { if...
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