Re: [DOTNET] Show selection always in ListView

2002-05-21 Thread Liviu Anca
*This message was transferred with a trial version of CommuniGate(tm) Pro* Thank you. -Original Message- From: dotnet discussion [mailto:[EMAIL PROTECTED]]On Behalf Of Andreas Häber Sent: Tuesday, May 21, 2002 4:50 PM To: [EMAIL PROTECTED] Subject: Re: [DOTNET] Show selection always in Li

Re: [DOTNET] Multiple threads and external utility

2002-05-21 Thread Ed Stegman
Different processes will not ensure multiple instances of your utility are safe. For example, if the thing uses a temp file and the name is hardcoded, or derived by using the system time, you will have issues. If you do determine that multiple instances of your utility are undesirable, then the

Re: [DOTNET] How to marshal WChar[256] in COM interop?

2002-05-21 Thread Ed Stegman
You may also want to type the dwMask, dwModeFlags, and crBkgnd members of your struct as uint, as the native Win32 struct has them as DWORD and COLORREF, which are unsigned types. Here's a handy little table: ms-help://MS.VSCC/MS.MSDNVS/win32/type_4ylv.htm Keep Smilin' Ed Stegman -Origina

[DOTNET] Datset/Datatable Schema?

2002-05-21 Thread Rolls, Robert
Hi all, We have a class that has a one-to-one mapping with columns in a database (a dataset) so for each property of the class we simply write the data to the enclosed dataset. However to create an empty dataset we're thinking of what we do with ADO i.e. we simply query the database to get the co

Re: [DOTNET] Object serialization to string representation

2002-05-21 Thread Christoph
Steve, There is no requirement for a default constructor with the SoapFormatter, only with the XmlSerializer. I messed around a little bit more trying to serialize a class derived from or containing a TreeNode and I get exceptions in both cases. Then I tried a BinaryFormatter instead a SoapForma

[DOTNET] Remoting under IIS gives me a Win32Exception

2002-05-21 Thread Stan LaRue
Hi All, I am new to the list and just wanted to see if someone here could point me in the right direction. I have an assembly that I am hosting under IIS. Everything seems to fine as far as security goes (I am using WIndows Integrated Authentication and on the client side I am doing something lik

Re: [DOTNET] Editing ASP.Net files on remote machine - "Changed o utside environment"?

2002-05-21 Thread Philo
Doesn't work. Philo At 04:21 PM 5/21/2002 -0500, Eric Rhea wrote: >I do not know why this occurs. I can guess, but I won't. Nasty critters, >them guess's. > >You can turn off the notice. Tools->Options->Documents should be a >checkbox off to the side. > > > -Original Message- > > From: P

Re: [DOTNET] Resolving DNS names with DNS.GetHostByAddress

2002-05-21 Thread Jon Gilkison
Not sure how that got screwed up, but the line of code is: Response.Write("host name:"+Dns.GetHostByAddress(Request.UserHostAddress).HostName); Still can't get it sorted out though ... HELP PLEASE > -Original Message- > From: dotnet discussion [mailto:[EMAIL PROTECTED]] > On Behalf Of

Re: [DOTNET] Attributes question

2002-05-21 Thread Sievert, James A
> Can anyone confirm or deny whether the "context" infrastructure will > change. >From [1]: "jhawk_MS Q: Can we expect things like ContextBoundObject, context attributes, properties and interfaces like IContributeObjectSink & friends to be documented in the next version? Or will they be even be

[DOTNET] Binary/Stream Writer Write question?

2002-05-21 Thread Rolls, Robert
Hi all, First off are these two classes simply pass through streams? (are there any more) and second would it not seem logical that there should be an overloaded Write method that takes a stream? saves having to have an indermediate type holding the data? Regards, Robert Rolls ***

[DOTNET] Resolving DNS names with DNS.GetHostByAddress

2002-05-21 Thread Jon Gilkison
I'm having quite a bit of trouble getting the System.Net.Dns class working in my asp.net application. Below is the simple line of code causing me grey hairs: Response.Write("host name:"+Dns.GetHostByAddress(Dns.GetHostByAddress(Request.UserHostAddress ).HostName); Hitting this page from the int

[DOTNET] ANN: System.Configuration for the SDE

2002-05-21 Thread Dean Cleaver
Here is a DLL I have written to enable configuration features on the SDE: http://www.nettech.co.nz/ConfigurationSDE.zip Add a reference to that DLL in your SDE project, and then you will have a System.Configuration namespace, and it has a Configuration.AppSettings collection just like the normal

Re: [DOTNET] Attributes question

2002-05-21 Thread Michael Weinhardt
On Fri, 17 May 2002 08:51:24 +0100, Ian Griffiths <[EMAIL PROTECTED]> wrote: >Having said that, there is the whole context architecture. I should warn >you that the context architecture used to be documented (in Beta 2 of the >framework) but they took out all the docs for the first release. Thi

[DOTNET] Virus Scanning Uploaded Files and Returning the Result

2002-05-21 Thread Dave Levy
Anyone have any experience with virus scanning uploaded files? I want to be able to advise users that the file they uploaded was infected with a virus and will be deleted. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://

[ADVANCED-DOTNET] InvalidCastException when using Reflection

2002-05-21 Thread donatas
Hi all, I have strange problem with .NET Reflection. The basic scenario follows: Using reflection I create the object of the type in the my own assembly. Instance is created fine. Then use reflection to get info about type fields. I want to use the field of the object just created: object

Re: [ADVANCED-DOTNET] Help Architecting A Middle Tier

2002-05-21 Thread Curtis Koppang
Craig, I agree with everything you stated. What if I change one of your assumptions - and it only took .006 seconds to open (and close) a database connection. Would that change your architecture? I was just doing some testing of un-pooled connections and I was suprised to find that I was able t

Re: [DOTNET] Editing ASP.Net files on remote machine - "Changed o utside environment"?

2002-05-21 Thread Eric Rhea
I do not know why this occurs. I can guess, but I won't. Nasty critters, them guess's. You can turn off the notice. Tools->Options->Documents should be a checkbox off to the side. > -Original Message- > From: Philo [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, May 21, 2002 4:09 PM > To: [E

Re: [DOTNET] WAY OT: MRU List in Word 2002

2002-05-21 Thread Shawn Wildermuth
It's greyed out for some reason...hmph! Thanks for trying. Thanks, Shawn Wildermuth [EMAIL PROTECTED] > -Original Message- > From: dotnet discussion [mailto:[EMAIL PROTECTED]] > On Behalf Of Patrick Steele > Sent: Tuesday, May 21, 2002 5:11 PM > To: [EMAIL PROTECTED] > Subject: Re: [DO

Re: [DOTNET] Editing ASP.Net files on remote machine - "Changed o utside environment"?

2002-05-21 Thread Philo
At 05:10 PM 5/21/2002 +0100, Chris Anderson wrote: > > I've opened an ASP.Net project on a remote machine (via a > > mapped drive). I keep getting warnings that some process > > outside the development environment has modified the files. > > > > *What* process? Is it a function of caching? > > > >

Re: [DOTNET] WAY OT: MRU List in Word 2002

2002-05-21 Thread Patrick Steele
Tools, Options, General tab, Check "Recently Used File List:" and make sure theres a value > 0. After this, it won't start appearing until you start saving docs. --- Patrick Steele ([EMAIL PROTECTED]) Lead Software Architect Image Process Design -Original Message- From: Shawn Wildermu

[DOTNET] WAY OT: MRU List in Word 2002

2002-05-21 Thread Shawn Wildermuth
Anyone know how to get the MRU list back in Word 2002 (in Office XP)? Thanks, Shawn Wildermuth [EMAIL PROTECTED] http://adoguy.com http://shawnwildermuth.com This e-mail is provided "AS IS" with no warranties, and confers no rights. Any outlandish claims, boasting, or obvious guesses are stric

Re: [DOTNET] MDIClient Object not available?....

2002-05-21 Thread Matt Horne
Ian, I need to exactly place windows within the client area. The application that I am porting does a lot of hand-holding for the user and places windows for them. I also would like to get rid of that annoying border that is placed around the MDI client area. Here is a screen shot of the app s

Re: [DOTNET] PrintToFile

2002-05-21 Thread João Paulo Carreiro
Hello William, Have you considered building your file using the Bitmap class? That way you could save it to TIFF. -- Best regards, João Paulo Carreiro Tuesday, May 21, 2002, 8:29:31 PM, you wrote: WO> Well, let me explain the full situation and perhaps someone might have a WO> better soluti

Re: [DOTNET] DateTime.AddHours does not work !

2002-05-21 Thread Andreas Häber
>> If you read the docs for DateTime.AddHours[1] then it is very clear that >> this is the expected behaviour. Read especially the "Remarks" section... > >Although I agree with that, my view is that the opening sentence of the >documentation of this method is not helpful. (This sentence also appe

Re: [DOTNET] Async Delegates

2002-05-21 Thread Bill Conroy
In that code you specifically wait, so there is not way this isn't synchronous. You need to use a callback to have it be asynchronous. I modified the code so you can see how to do this: Hope this helps, -Bill Conroy using System; namespace AsyncFormatsNET { delegate void Working(

Re: [DOTNET] PrintToFile

2002-05-21 Thread William Oliveri
Well, let me explain the full situation and perhaps someone might have a better solution. We are using ZetaFax as our Faxserver. They have some "psudo" API methodology to send a fax from code. This methodology includes the following: 1. Add a printer (Epson LQ-1000). 2. Set the printer port t

Re: [DOTNET] PrintToFile

2002-05-21 Thread Patrick Steele
I don't think I'd want there to be a UI-less way of doing that. Imagine a new craze in virus writing -- print to C:\winnt\system32\kernel32.dll Yikes... And no, I'm not getting any bounces today (I've only posted 1 or 2 today though). --- Patrick Steele ([EMAIL PROTECTED]) Lead Software Ar

Re: [DOTNET] PrintToFile

2002-05-21 Thread William Oliveri
Yes, I found this after I posted. Thank you. Is there no way to do this? I have an application that must use some form of PrintToFile and be transparent to the user. That is, this function is on our server. Is there no way to define the path and filename on a printtofile (in or out of DotNet)

Re: [DOTNET] PrintToFile

2002-05-21 Thread Patrick Steele
See the "Remarks" section in the docs under "PrinterSettings.PrintToFile Property". --- Patrick Steele ([EMAIL PROTECTED]) Lead Software Architect Image Process Design -Original Message- From: William Oliveri [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 21, 2002 2:39 PM To: [EMAIL PRO

[DOTNET] Async Delegates

2002-05-21 Thread Mike Bluestein
I'm trying to implement a simple command line program to make an asynchronus method call. The calls all seem to work but they appear to be synchronous. In the code below, I was expect to see the Console echo the text "before call" and "after call" prior to the method called by the async delegate

Re: [DOTNET] Object serialization to string representation

2002-05-21 Thread Steve Holak
IIRC, there is a requirement for a default parameterless public contructor on the serializable class, in order for the Soap Formatter to serialize it, but I may be incorrect. I haven't looked at Treenode; and have you tried :base()? (or the VB analog?) Steve Holak Senior Software Architect B

[DOTNET] PrintToFile

2002-05-21 Thread William Oliveri
Hi all, I see there is a property called PrintToFile of a PrintDocument in DotNet. However, I don't see where you can set the path and filename if PrintToFile is set to true. Anyone have any suggestions on this? Thanks in advance, William Oliveri You can read messages from the DOTNET archiv

Re: [DOTNET] C# arraylists

2002-05-21 Thread Federico Raggi
Scott: You can access ArrayLists with an index as if they were a normal array, this is what differentiates it from a normal list. Check this example: using System; using System.Collections; class myApp { static void Main() { ArrayList al = new ArrayList(); al

Re: [DOTNET] C# arraylists

2002-05-21 Thread Ethan Smith
ArrayList has an item(index) member. This shows up as an indexer in c#, I'm not sure on the VB syntax. Maybe Item(index)? -Original Message- From: dotnet discussion [mailto:[EMAIL PROTECTED]] On Behalf Of Scott Weston Sent: Tuesday, May 21, 2002 2:17 PM To: [EMAIL PROTECTED] Subject: [DOT

Re: [DOTNET] C# arraylists

2002-05-21 Thread Marsh, Drew
I wrote: > // Get the fifth item out of the ArrayList > object fifthItem = myArrayList[5]; Heheh... woops. The above code would actually this would get the *sixth* item being that ArrayLists are zero based. Later, Drew You can read messages from the DOTNET archive, unsubscribe from DOTNET, or

Re: [DOTNET] C# arraylists

2002-05-21 Thread Marsh, Drew
Scott Weston [mailto:[EMAIL PROTECTED]] wrote: > Is there a way to get a value out of an arraylist like in an > indexed array w/o enumerating? An ArrayList has an indexer just like an array, so you just do: ArrayList myArrayList = new ArrayList; ... populate the array list somehow ... // Get

Re: [DOTNET] Object serialization to string representation

2002-05-21 Thread franklin gray
Does anybody have an example of Binary, Soap or XML serialization of a class that inherits Treenode? I am getting the feeling that it can't be done. -Original Message- From: Christoph [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 21, 2002 12:47 PM To: [EMAIL PROTECTED] Subject: Re: [DOT

[DOTNET] C# arraylists

2002-05-21 Thread Scott Weston
Is there a way to get a value out of an arraylist like in an indexed array w/o enumerating? Basically I want to choose a random value out of the list. So what is the best method for doing this rather than loop until i = random_number - 1 enumerate end loop get ne

Re: [DOTNET] Object serialization to string representation

2002-05-21 Thread Steve Holak
Franklin, using (or Imports) System.Runtime.Serialization; using System.Runtime.Serialization.Formatters.Soap; There actually needs to be a reference set to the System.Runtime.Serialization.Formatters.Soap library in your project references (C: \WINNT\Microsoft.NET\Framework\v1.0.3705\System.Ru

[DOTNET] VS: [DOTNET] ADO .NET provider-independent code

2002-05-21 Thread Ahti Haukilehto
because you don't have to create DataAdapter, command.Execute... returns its. Yours, ahti -Alkuperäinen viesti- Lähettäjä: Marian Aioanei [mailto:[EMAIL PROTECTED]] Lähetetty: ti 21.5.2002 20:29 Vastaanottaja: [EMAIL PROTECTED] Kopio:

Re: [DOTNET] ANN: Npgsql - .Net Data Provider for PostgreSQL

2002-05-21 Thread Francisco Jr.
On Mon, 20 May 2002 18:41:07 -0400, Daniel Morgan <[EMAIL PROTECTED]> wrote: >You are correct. > >Francisco is working on a provider that is written entirely in C# and >adheres to the PostgreSQL protocol to accomplish its magic. > Yes. I started to work with PostgreSQL and I wanted to learn it a

[DOTNET] ADO .NET provider-independent code

2002-05-21 Thread Marian Aioanei
Hi, Why there is no way to obtain a reference to a DataAdapter in a provider-independent manner in ADO.NET ? While IDbConnection has the CreateCommand method to get a Command object, why there is no CreateDataAdapter method in IDbConnection ? TIA, Marian Aioanei You can read messages from

Re: [DOTNET] Object serialization to string representation

2002-05-21 Thread Christoph
This usually means that your class implements the ISerializable interface, but does not implement the required constructor of the format. Here's from the Framework docs: The ISerializable interface implies a constructor with the signature Constructor(SerializationInfo info, StreamingContext conte

Re: [DOTNET] More .Net/IIS tweaking.

2002-05-21 Thread Kompella, Kamesh S APX
Is 'Allow Anonymous' unchecked on the virtual directory, by default it will be checked. Thanks Kamesh Kompella (847) 935-3692 -Original Message- From: Thomas Have Sent: Tuesday, May 21, 2002 2:46 AM Subject: More .Net/IIS tweaking. Hello. We have a client app that connects to an IIS-s

Re: [DOTNET] Development/deployment of Web services on Windows XP professional

2002-05-21 Thread Sills, Adam
Even if you do install IIS later, it's easy enough to get asp.net, etc running. Open up the "Visual Studio .NET Command Prompt" and run "aspnet_regiis -I" to install the asp.net features Adam.. -Original Message- From: Kevin Dente [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 21, 2002 1:

Re: [DOTNET] Development/deployment of Web services on Windows XP professional

2002-05-21 Thread Kevin Dente
Did you install IIS before you installed the .Net framework? If you do it the other way around (.Net then IIS), the framework won't be able to install its hooks into IIS. I've definitely developed Web Services on XP Pro, so I'm sure it works. On Fri, 17 May 2002 13:47:48 -0500, Syed.Alam <[EMAIL

Re: [DOTNET] help with owner draw menus

2002-05-21 Thread Joao Santa Barbara
Hi people... o saw all the explanations ...but i still have a question ... how can i draw my xp / vs menus without the aperance in 3d ... if you saw the link that luis abreu give you will notice that the blue rectangle has been drawned in the far left of the menu but isn´t in the beggining of th

Re: [DOTNET] More .Net/IIS tweaking.

2002-05-21 Thread Greg Reinacker
You can't help this for the first request. HTTP/NTLM authentication is based on the server sending a challenge (with the 401 response), and the client uses this challenge along with credential information to send a new request with authentication information. Greg Reinacker Reinacker & Associate

Re: [DOTNET] Object serialization to string representation

2002-05-21 Thread franklin gray
Any idea what this means? An unhandled exception of type 'System.Runtime.Serialization.SerializationException' occurred in mscorlib.dll Additional information: The constructor to deserialize an object of type SoapSerialization.Class2 was not found. I tried it 3 ways with an error but the 4th

Re: [DOTNET] DateTime.AddHours does not work !

2002-05-21 Thread Barry Cornelius
On Tue, 21 May 2002, Andreas Häber wrote: > If you read the docs for DateTime.AddHours[1] then it is very clear that > this is the expected behaviour. Read especially the "Remarks" section... Although I agree with that, my view is that the opening sentence of the documentation of this method is n

Re: [DOTNET] How to work around bug in DataSet?

2002-05-21 Thread Shawn Wildermuth
You might also want to set DataAdapter.MissingSchemaAction to Error. This will alert you to when a new row is found that you do not have mapped instead of blindly adding a new column. Thanks, Shawn Wildermuth [EMAIL PROTECTED] > -Original Message- > From: dotnet discussion [mailto:[EMAI

Re: [DOTNET] Object serialization to string representation

2002-05-21 Thread Steve Holak
Jeff, Yeah, I had tried that once and got a 'cannot convert from 'System.IO.StringWriter' to 'System.IO.Stream' complaint from the compiler. (The formatter's looking for a Stream in the first argument.) StringWriter derices from TextWriter; how do we get Stream involved? I originally started

Re: [DOTNET] DateTime.AddHours does not work !

2002-05-21 Thread Andreas Häber
To add 4 hours to Now or to some other DateTime isn't anything different... Using your code, this is how it should look like: DateTime t = Convert.ToDateTime("11/1/2002"); string s = t.ToString(); //this yields a time of 12:00 AM t = t.AddHours(4); s = t.ToString(); // Should no

Re: [DOTNET] DateTime.AddHours does not work !

2002-05-21 Thread Patrick Steele
t = t.AddHours(4) It returns the new time. It doesn't affect the current one. --- Patrick Steele ([EMAIL PROTECTED]) Lead Software Architect Image Process Design -Original Message- From: Jeff Roberts [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 21, 2002 12:26 PM To: [EMAIL PROTECTED

Re: [DOTNET] DateTime.AddHours does not work !

2002-05-21 Thread Sean Greer (SBI-Chico)
It was an example showing that DateTime.AddHours does not modify the instance that you call the method on, but rather returns a new instance of a DateTime with the hours property has been adjusted accordingly. -Original Message- From: Jeff Roberts [mailto:[EMAIL PROTECTED]] Sent: Tuesday,

Re: [DOTNET] Object serialization to string representation

2002-05-21 Thread Christoph
StringWriter does not inherit from Stream, you have to stick with the MemoryStream. Christoph Schittko Software Architect Mshow - a division of InterCall - Original Message - From: "franklin gray" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, May 21, 2002 11:19 AM Subject: R

Re: [DOTNET] DateTime.AddHours does not work !

2002-05-21 Thread Jeff Roberts
Sean, I don't want to add 4 hours to Now, I want to add 4 hours to an older DateTime ! Thanks, jeff You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.

Re: [DOTNET] DateTime.AddHours does not work !

2002-05-21 Thread franklin gray
you have to do it like t = t.addhours(4) -Original Message- From: Jeff Roberts [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 21, 2002 11:26 AM To: [EMAIL PROTECTED] Subject: [DOTNET] DateTime.AddHours does not work ! I am trying to add to the hours of a DateTime object and it does not s

Re: [DOTNET] DateTime.AddHours does not work !

2002-05-21 Thread Sean Greer (SBI-Chico)
DateTime instances are immutable. Try this: DateTime dtNowPlus4 = DateTime.Now.AddHours(4); -Original Message- From: Jeff Roberts [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 21, 2002 9:26 AM To: [EMAIL PROTECTED] Subject: [DOTNET] DateTime.AddHours does not work ! I am trying to add

[DOTNET] DateTime.AddHours does not work !

2002-05-21 Thread Jeff Roberts
I am trying to add to the hours of a DateTime object and it does not seam to work: DateTime t = Convert.ToDateTime("11/1/2002"); string s = t.ToString(); //this yields a time of 12:00 AM t.AddHours(4); s = t.ToString(); //still yields a time of 12:00 AM Why doesn't the H

Re: [DOTNET] Object serialization to string representation

2002-05-21 Thread franklin gray
I got a Invalid case exception but thought it was because the object I was trying to serialize inherited from TreeNode. After reading your email, I commented that out and I still got it. -Original Message- From: Sean Greer (SBI-Chico) [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 21, 2

Re: [DOTNET] Object serialization to string representation

2002-05-21 Thread Sean Greer (SBI-Chico)
When I attempt to use your SoapSerialize function I get the following errors: xmlserialize.cs(29,3): error CS1502: The best overloaded method match for 'System.Runtime.Serialization.Formatters.Soap.SoapFormatter.Serialize(Sy stem.IO.Stream, object)' has some invalid arguments xmlserializ

Re: [DOTNET] Editing ASP.Net files on remote machine - "Changed o utside environment"?

2002-05-21 Thread Chris Anderson
> I've opened an ASP.Net project on a remote machine (via a > mapped drive). I keep getting warnings that some process > outside the development environment has modified the files. > > *What* process? Is it a function of caching? > > It's driving me crazy... FWIW I'm getting the same warnings dev

[DOTNET] Editing ASP.Net files on remote machine - "Changed outside environment"?

2002-05-21 Thread Philo
I've opened an ASP.Net project on a remote machine (via a mapped drive). I keep getting warnings that some process outside the development environment has modified the files. *What* process? Is it a function of caching? It's driving me crazy... Philo You can read messages from the DOTNET archi

Re: [DOTNET] Object serialization to string representation

2002-05-21 Thread franklin gray
NevermindI found it. I was missing a reference. -Original Message- From: franklin gray Sent: Tuesday, May 21, 2002 10:14 AM To: [EMAIL PROTECTED] Subject: Re: [DOTNET] Object serialization to string representation Thanks for the code Steve, but I have a question. What namespace d

Re: [DOTNET] System.Data.SqlTypes

2002-05-21 Thread Marsh, Drew
I wrote: > For more details on this, please check > out this section in the SDK. Woops, sorry... got distracted while writing the email. I was referring to the INullable interface and forgot to include the link[1]. Later, Drew .NET MVP [1] ms-help://MS.VSCC/MS.MSDNVS/cpref/html/frlrfSystemData

Re: [DOTNET] Object serialization to string representation

2002-05-21 Thread franklin gray
There doesn't seem to be a .Close in vb.net for a StringWriter. -Original Message- From: Jeff Key [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 21, 2002 10:11 AM To: [EMAIL PROTECTED] Subject: Re: [DOTNET] Object serialization to string representation Steve, You can save yourself a cou

Re: [DOTNET] Object serialization to string representation

2002-05-21 Thread franklin gray
Thanks for the code Steve, but I have a question. What namespace does the SoapFormatter come from? I tried to do this from the help files but this namespace doesn't seem to exist. Do I need to add a reference to something? Imports System.Runtime.Serialization.Formatters.Soap -Original

Re: [DOTNET] Object serialization to string representation

2002-05-21 Thread Steve Holak
Thanks to all who replied to this; I took it all to heart and played with various scenarios based on our needs (and the intent was, as Brent stated, simply to persist the object to a database for a while and re-hydrate it later), and decided to use the SoapFormatter. I wrote a little wrapper clas

Re: [DOTNET] How to work around bug in DataSet?

2002-05-21 Thread Jim Arnold
It's not a bug. DataSet/DataTable.Clear() removes all *rows*, but it leaves the schema intact. So after you've renamed your columns and call Fill() again, new columns will be created to correspond with the original database schema. Try using mappings as Bob suggested. Jim > -Original Mess

Re: [DOTNET] Fourth argument of WinMain in a WinForms application?

2002-05-21 Thread Chris Sells
The strange thing is that no matter when I pop up the message box with WindowStyle [1] in it, it always says Normal. However, it seems like WinForms is using it as the style on the first window it creates, i.e. if I show the main form first, that will be normal, minimized or maximized. However, if

Re: [DOTNET] TOOL: .NET XsdClassesGen

2002-05-21 Thread Chris Sells
> Hi, what ist the difference between your tool and the already built-in tool > "msdatasetgenerator" ? The MsDataSetGenerator generates typed datasets ala xsd.exe /dataset. Mine generates XML serialization classes ala xsd.exe /classes. You can read messages from the DOTNET archive, unsubscribe f

[DOTNET] ImageList problem

2002-05-21 Thread Bill Schmidt
I have a C# WinForms project whose main form includes an ImageList, linked to a Toolbar, and I'm running it in Debug mode. Sometimes, it works completely. However, I intermittently get a System.Argument exception, with additional information 'Stream is not a valid resource file!' on this line fr

Re: [DOTNET] Partition II Metadata Spec question

2002-05-21 Thread Brent E. Rector
Get Serge's Inside Microsoft .NET IL Assembler book (ISBN 0-7356-1547-0). It's an excellent book and answers many of the questions I've posted here over the past few months. It's also much more readable than the partition II spec (the spec is pretty good though). Nowadays, I code from the spec but

[DOTNET] System.Data.SqlTypes

2002-05-21 Thread Saar Carmi
Hi. Does anyone use the System.Data.SqlTypes namespace ? Why not use the regular datatypes? Thanks, Saar You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.

Re: [DOTNET] Show selection always in ListView

2002-05-21 Thread Andreas Häber
Use the ListView.HideSelection property. The default is true, change this to false... Andreas Häber - Original Message - From: "Liviu Anca" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, May 21, 2002 3:44 PM Subject: [DOTNET] Show selection always in ListView > *This messag

[DOTNET] Show selection always in ListView

2002-05-21 Thread Liviu Anca
*This message was transferred with a trial version of CommuniGate(tm) Pro* Does the ListView control have a property or something similar to the LVS_SHOWSELALWAYS style of the Win32 ListView ? Liviu You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other De

Re: [DOTNET] STAThread and Clipboard/DnD/CommonDialog

2002-05-21 Thread Murphy, James
But if you are doing drag and drop you are likely a UI thread which "should" be in an STA, no? Jim > -Original Message- > From: Richard Blewett [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, May 21, 2002 6:55 AM > To: [EMAIL PROTECTED] > Subject: Re: [DOTNET] STAThread and Clipboard/DnD/Com

Re: [DOTNET] Multiple threads and external utility

2002-05-21 Thread Murphy, James
> -Original Message- > From: Erick Thompson [mailto:[EMAIL PROTECTED]] > > I have an application that uses an external process/utility > (pdftotext.exe) > that is normally called from a command window. I use > ProcessStartInfo and > Process to manage the external utility. > There are mult

Re: [DOTNET] How to work around bug in DataSet?

2002-05-21 Thread Beauchemin, Bob
If you are filling the DataSet from a database, have you tried using the DataAdapter's ColumnMappings rather than renaming the columns after the fact? Or does your design prohibit this? Have you tried removing the data bindings before renaming and adding them back afterwards? Bob Beauchemin [E

[DOTNET] How to work around bug in DataSet?

2002-05-21 Thread David Ferguson
How to work around bug in DataSet? The DataSet wont clear if ColumnNames Modified. Any help or a work around would be greatly appreciated. If you modify dataSet.Tables[].Columns[].ColumnName the dataSet will accumulate more and more columns. It appears that something is holding on to a r

Re: [DOTNET] ANN: Npgsql - .Net Data Provider for PostgreSQL

2002-05-21 Thread Francisco Jr.
On Mon, 20 May 2002 15:21:39 -0400, Daniel Morgan <[EMAIL PROTECTED]> wrote: >You might want to look at the PostgreSQL provider in Mono C# class >library at >http://www.go-mono.com/ado-net.html > >We currently can do: connect/disconnect, execute command, retrieve data, >etc... > >Would you like t

Re: [DOTNET] help with owner draw menus

2002-05-21 Thread Luis Abreu
Hello Ian, Tuesday, May 21, 2002, 12:07:46 PM, you wrote: thanks a lot for this explanation. well, regarding your question of why used SystemBrushes on same places and not in other...oh, well, it's that this is the first time I'm trying to build an app using .net and c#, and I'm a still a little

Re: [DOTNET] Partition II Metadata Spec question

2002-05-21 Thread Peter Foreman
--- Serge Lidin <[EMAIL PROTECTED]> wrote: > Clearly, this deficiency needs fixing. And I extend our profound thanks to Brent, >The Intrepid > Vigilante of Partition II and Surrounding Territories! Indeed, perhaps time for a separate partition II mailing list... ;-> Your discussions make me real

Re: [DOTNET] help with owner draw menus

2002-05-21 Thread Luis Abreu
Hello Henrik, Tuesday, May 21, 2002, 7:43:08 AM, you wrote: HER> I think that what you see is a driver problem. I have a similar HER> problem with a Matrox G400 Dual Head card. Yes, that's my card. HER> In my case, switching from 32-bit to 24-bit mode solves the HER> problem and switching to a

Re: [DOTNET] help with owner draw menus

2002-05-21 Thread Ian Griffiths
As someone has already pointed out this looks like it's probably a driver problem - works fine when I try your code. However there are some problems in your code. They're unrelated, but you should know about them: > gr.FillRectangle( new SolidBrush( SystemColors.ControlLight ), rect ); It

Re: [DOTNET] STAThread and Clipboard/DnD/CommonDialog

2002-05-21 Thread Richard Blewett
yep -Original Message- From: dotnet discussion [mailto:[EMAIL PROTECTED]]On Behalf Of Richard Birkby Sent: 21 May 2002 11:30 To: [EMAIL PROTECTED] Subject: Re: [DOTNET] STAThread and Clipboard/DnD/CommonDialog So the only way to initialize Drag and Drop is via a call to OleInitialize, w

Re: [DOTNET] STAThread and Clipboard/DnD/CommonDialog

2002-05-21 Thread Richard Birkby
So the only way to initialize Drag and Drop is via a call to OleInitialize, which also has the (unfortunate*) side effect of placing you in an STA. Richard * marshalling performance is not really a concern with Drag and Drop... > -Original Message- > From: dotnet discussion [mailto:[EMA

Re: [DOTNET] Owner draw / virtual controls in System.Windows.Forms

2002-05-21 Thread John Lam
Thanks Bryan, just needed to know it was possible ;) Cheers, -John http://www.iunknown.com -Original Message- From: alpine [mailto:[EMAIL PROTECTED]] Sent: Monday, May 20, 2002 7:27 PM To: [EMAIL PROTECTED] Subject: Re: [DOTNET] Owner draw / virtual controls in System.Windows.Forms >

Re: [DOTNET] STAThread and Clipboard/DnD/CommonDialog

2002-05-21 Thread Richard Blewett
To make that clearer. I mean't that the [STAThread] attribute means that OleInitialize will be called (some may have assumed it would force a call to CoInitialize). Absence of this attribute will cause CoInitializeEx(NULL, COINIT_MULTITHREADED); to be called. Obviously these calls only happen if t

Re: [DOTNET] STAThread and Clipboard/DnD/CommonDialog

2002-05-21 Thread Richard Blewett
The [STAThread] attribute ensures that the thread calls OleInitialize not CoInitialize. OleInitialize sets up the extra stuff required for OLE Drag and Drop, etc. Richard http://staff.develop.com/richardb -Original Message- From: dotnet discussion [mailto:[EMAIL PROTECTED]]On Behalf Of R

Re: [DOTNET] Console Application in C#

2002-05-21 Thread Shishir Choudhary
Thanks Thomas and Daniel... for the pointers. I understand the concept now.I am thinking of developing for windows. Shishir You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.

[DOTNET] STAThread and Clipboard/DnD/CommonDialog

2002-05-21 Thread Richard Birkby
Why does a thread have to be marked as an STAThread when it's calling operations on the clipboard? Why can't COM marshal the calls from the (default) MTA to the STA required by the clipboard? Richard You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other D

Re: [DOTNET] RewritePath and querystrings

2002-05-21 Thread Richard Birkby
It works perfectly for me. HttpContext.Current.RewritePath(zSubst); is the code I've used. Richard > -Original Message- > From: dotnet discussion [mailto:[EMAIL PROTECTED]]On Behalf Of > Mattias Konradsson > Sent: 21 May 2002 10:04 > To: [EMAIL PROTECTE

[DOTNET] RewritePath and querystrings

2002-05-21 Thread Mattias Konradsson
RewritePath seems to ignore any querystring you append to an url, anyone know why and how to work around it? best regards --- Mattias Konradsson You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.

Re: [DOTNET] Toolbar problem: Can't teach an old developer new tricks?

2002-05-21 Thread Dean Cleaver
Graeme, If we do, I would expect it to be a completely different control, rather than an upgrade to the existing one. Having said that, there are other options out there, and MS have done their best not to tread on the toes of component vendors in the past, so perhaps we won't see an MS one...

[DOTNET] More .Net/IIS tweaking.

2002-05-21 Thread Thomas Have
Hello. We have a client app that connects to an IIS-server (the client makes webrequests aswell as 'remotes' objects hosted by IIS. My problem seems the same in either case though). IIS is set up to use 'Integrated Windows authentication' for the VDir in question. But, according to the IIS-logfil

[DOTNET] AW: [DOTNET] Tweaking SSL remoting

2002-05-21 Thread Dominick Baier
Hi, in my opinion this should not be possible. What is a certificate? some kind of identification. The only way to identify a server is its dns name. SO the dns name and the server-name in the certificate have to match! Its just like showing your passport to a police officer and catch the "wro

[DOTNET] Tweaking SSL remoting

2002-05-21 Thread Thomas Have
Hello. We have a number of Server-side objects hosted in IIS. From the Client- side we access them by registering a HttpClientChannel and then use Activator.GetObject( ObjectType, uri ). 'uri' starts ordinarily with 'http'. To use SSL we install a servercertificate and basically let the uri start