Re: [DOTNET] AW: [DOTNET] Load Form by Name

2002-04-22 Thread Dan Souk
Like I said, just had the impression that there were performance issues. Wasn't saying it was or wasn't a problem. I found the Activator class a little while ago and played around with it, but no luck. Seems that the type info is available, but Activator.CreateInstance doesn't create an instance

Re: [DOTNET] Retrieving user properties from a WinNT provider using .Net

2002-04-22 Thread george antony
We are trying to authenticate the way u had said but we are not successful. we are able to enumerate groups using a vb 6.0 program but this code in .Net fails .. I wonder why ? We are in a different domain and the domain controller itself is managing a different domain . Is there is any problem in

[DOTNET] AW: [DOTNET] Load Form by Name

2002-04-22 Thread Urs Eichmann
I can't quite see your point not to use reflection. Reflection is VERY fast, especially compared to the time needed to actually show a form. The framework uses it all the time, probably without you even noticing. Also, if you're using Reflection on your own assemblies, there shouldn't be a problem

[ADVANCED-DOTNET] Attaching to a windows service..

2002-04-22 Thread Alex Henderson
If I have a class instantiated in a window service, can another program on the same machine get a reference to the class instance in the windows service's thread and call its methods ... I don't really want to use remoting/web services if possible. Additionally are there any good on-line resource

[ADVANCED-DOTNET] Remoting / Threading Question

2002-04-22 Thread Matthew
Hi, I've been puzzling over a .NET Remoting question With a Singleton object over .NET Remoting, I assume that every client gets a chance to access the same instance of the object, using a thread from the runtime's pool. Thus, if the Singleton object holds any state, lock statements and the

[DOTNET] UPX Utility

2002-04-22 Thread Yogesh Shetty
Hi, I was zapped to find out the compression ratio after applying UPX, my application which was used to get shipped with CD now after applying UPX it has reduced to less than 1 MB. I am sure UPX must be pruning some info.But there are few doubts raised in my mind. 1. What UPX does exactly which

Re: [DOTNET] Storing ADO.NET Connection String Parameters

2002-04-22 Thread Keith A Franklin
If you create an ASP.NET application VS.NET automatically creates one. You will find a Web.Config file in the root of the Web. If you are building a Windows Forms application create a file in the directory of the EXE called the same name as the application .config Example: MyApplication.Exe - Ap

Re: [DOTNET] Problems creating a basic extended usercontrol

2002-04-22 Thread Jeff Smith
I thought I would throw out for the archvies what the solution to my problem was. You guys will love this one. Don't put your project in a directory tree containing the # sign. (ie C#) and you can add a control no problem in the same project and it works great. Jeff - Original Message -

Re: [DOTNET] Storing ADO.NET Connection String Parameters

2002-04-22 Thread Dan Souk
They're just XML docs, persisted to a disk file. -Original Message- From: dotnet discussion [mailto:[EMAIL PROTECTED]] On Behalf Of Daniel Morgan Sent: Monday, April 22, 2002 9:53 PM To: [EMAIL PROTECTED] Subject: Re: [DOTNET] Storing ADO.NET Connection String Parameters Can you tell me

[DOTNET] problems with CheckedListBox

2002-04-22 Thread James Gibson
Hi, I'm wondering if anyone has had success using the CheckedListBox. I am experiencing two problems. First, the SetItemChecked method doesn't seem to work. Second, if I place the control on a tab page, and if I check one or more of the items, then switch to another tab page, and then return, t

Re: [DOTNET] Load Form by Name

2002-04-22 Thread Dan Souk
Been under the impression that you incur some extra overhead that can slow things down. Probably inconsequential in this circumstance I know. Reflection would be convenient, but I don't want to get lazy and start reflecting everything. Also, I will eventually need to implement some restrictions on

Re: [DOTNET] Storing ADO.NET Connection String Parameters

2002-04-22 Thread Daniel Morgan
Can you tell me more about these Config files? -Original Message- From: dotnet discussion [mailto:[EMAIL PROTECTED]] On Behalf Of Keith A Franklin Sent: Monday, April 22, 2002 10:01 PM To: [EMAIL PROTECTED] Subject: Re: [DOTNET] Storing ADO.NET Connection String Parameters Config files a

Re: [DOTNET] Advanced WinForms class

2002-04-22 Thread Reggie Burnett
Advanced in what ways? -Original Message- From: dotnet discussion [mailto:[EMAIL PROTECTED]]On Behalf Of Adam Senn Sent: Monday, April 22, 2002 8:22 PM To: [EMAIL PROTECTED] Subject: [DOTNET] Advanced WinForms class I've spent some time searching the Internet for an advanced Windows For

Re: [DOTNET] Attaching to a window

2002-04-22 Thread Justin Harrell
Its not so much multi-threading as inter-process communication (IPC) that you need info on. The .Net way to do IPC either on the same machine or across the network on different machines is Remoting plain and simple. Remoting is relatively simple and gives you transparent access to object running i

Re: [DOTNET] Storing ADO.NET Connection String Parameters

2002-04-22 Thread Keith A Franklin
Config files are the standard way to store things like connection strings. -Original Message- From: Daniel Morgan [mailto:[EMAIL PROTECTED]] Sent: Monday, April 22, 2002 8:14 PM To: [EMAIL PROTECTED] Subject: [DOTNET] Storing ADO.NET Connection String Parameters Is there an official Micr

[DOTNET] Storing ADO.NET Connection String Parameters

2002-04-22 Thread Daniel Morgan
Is there an official Microsoft .NET way to store ADO.NET Connection String parameters? If not, what do you recommend for storing connection data for an ADO.NET data source? I would assume storing it in some XML format. Let's say I have multiple databases on different servers using different dat

[DOTNET] Attaching to a window

2002-04-22 Thread Alex Henderson
If I have a class instantiated in a window service, can another program on the same machine get a reference to the class instance in the windows service's thread and call its methods ... I don't really want to use remoting/web services if possible so I see this as being an ?easy? alternative. Add

[DOTNET] Advanced WinForms class

2002-04-22 Thread Adam Senn
I've spent some time searching the Internet for an advanced Windows Forms class but have come up empty handed. Does anyone know of any being offered? Thanks.. - Adam You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://di

Re: [DOTNET] Load Form by Name

2002-04-22 Thread Shawn Wildermuth
I am not sure if this is available, but I wondered why you want to avoid reflection? That seems like the natural case for solving this. Thanks, Shawn Wildermuth [EMAIL PROTECTED] > -Original Message- > From: dotnet discussion [mailto:[EMAIL PROTECTED]] > On Behalf Of Dan Souk > Sent: M

[DOTNET] Load Form by Name

2002-04-22 Thread Dan Souk
I really need to be able to load a form based on the name of a string variable and don't want to have to create a kludge of a select case. The archives only discuss a way to do this via Reflection, which I want to avoid. Is this possible: Dim strFormName as string Dim frm as Form strFormName = "

Re: [DOTNET] How do you bind a DataGrid HyperLinkColumn to more than one field ?

2002-04-22 Thread Linda Wienholt
Hi Marshall, I have previously had the same problem. I searched the documentation and could not find a way of linking multiple fields using the DataNavigateUrlFormatString property. In the end I actually created the composite field in the database and then used the DataNavigateUrlFormatString p

Re: [DOTNET] Problem with imported source interfaces - TlbImp bug?

2002-04-22 Thread Adam Nathan
Yes, this is a known bug. The easiest workaround, unfortunately, is to change the input type libraries so the source interface is defined in the same type library as the coclass. For instance, you could duplicate the interface definition in typelib B, then optionally hack the produced Interop as

Re: [DOTNET] How do you bind a DataGrid HyperLinkColumn to more than one field ?

2002-04-22 Thread Linda Wienholt
Hi Marshall, I have previously had the same problem. I searched the documentation and could not find a way of linking multiple fields using the DataNavigateUrlFormatString property. In the end I actually created the composite field in the database and then used the DataNavigateUrlFormatString p

Re: [DOTNET] Problem with imported source interfaces - TlbImp bug?

2002-04-22 Thread McClellan, Jay
> I'm having trouble importing a type library containing coclasses that > implement a source interface defined in another type library, and it > appears to be a bug in TlbImp. For example, if I have type library A that > defines a dispinterface IEvents and type library B imports this definition >

Re: [DOTNET] HttpWebResponse.StatusCode

2002-04-22 Thread Serdar Kilic
Sweet, thanks for the clarification Jim. Regards, Serdar Kilic | skilic.com - Original Message - From: "Jim Arnold" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, April 23, 2002 12:49 AM Subject: Re: [DOTNET] HttpWebResponse.StatusCode > According to the HTTP1.1 specs, the St

Re: [DOTNET] DataSet to .csv file

2002-04-22 Thread Alex Henderson
That said the code to export to CSV by hand is all of about 15 lines and will probably win performance wise. Bit the bullet and write it :) - Alex Henderson - Real Developments - [EMAIL PROTECTED] -Original Message- From: Matt Milner [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 23, 20

Re: [DOTNET] DataSet to .csv file

2002-04-22 Thread Matt Milner
You could use an XSL stylesheet and run a transform on the xml of the dataset. I've done this with recordsets and it worked pretty well. HTH, Matt -Original Message- From: Nischal Chitta To: [EMAIL PROTECTED] Sent: 4/22/02 2:02 PM Subject: [DOTNET] DataSet to .csv file Hi All Can some

[DOTNET] Managed code dll called from the legacy code throws remoting exce ption

2002-04-22 Thread George Hendel
Greetings everybody, I have a dll written in C# (managed code). This dll executes calls to the remote server (hosted in aspnet_wp process). When the dll is hosted in the managed exe (ex: C# console application), everything works fine. When activating the dll inproc as a COM server in the legacy

Re: [DOTNET] Registry reading/writing question

2002-04-22 Thread Scott Densmore
Actually, OpenSubKey only opens. If the value is not there, you have to do a CreateSubKey. Open only opens, Create creates and lets your write to read from... Go figure. scott -Original Message- From: dotnet discussion [mailto:[EMAIL PROTECTED]] On Behalf Of Mattias Sjögren Sent: Monday,

Re: [DOTNET] Registry reading/writing question

2002-04-22 Thread Peter Vertes
Thank you ! That's exactly what the problem was. I think I either need to take a break or open up another can of Red Bull. Thanks Mattias ! :) -Pete -Original Message- From: dotnet discussion [mailto:[EMAIL PROTECTED]]On Behalf Of Mattias Sjögren Sent: Monday, April 22, 2002 5:35 PM T

Re: [DOTNET] Shell links / shortcut files (*.lnk)

2002-04-22 Thread Mattias Sjögren
Henrik, >I have noticed that the IPersistFile.Load method throws a >COM exception (E_FAIL) if the file is not a shell link, I >wonder if that is an acceptable test for shell link or not!?! I suppose there could be other reasons it could fail, so I wouldn't rely only on that. But combine it with

Re: [DOTNET] Registry reading/writing question

2002-04-22 Thread Mattias Sjögren
Peter, > Every time I run this code I get an Unhindered Exception Error (the >exact type is: System.NullReferenceException). After doing some digging I >found out that for some weird reason after the call to OpenSubKey() myKey is >still null. Why is that ? What am I doing wrong ? I don't

[DOTNET] Registry reading/writing question

2002-04-22 Thread Peter Vertes
Hello All, I'm in the middle of a project that reads/writes to/from the registry but I've encountered a very weird problem. Consider the following code: - RegistryKey rootKey = Registry.CurrentUser; RegistryKey myKey = rootKey.OpenSubKey("\\Software\\MyApp", true); myKey.SetValue("Na

Re: [DOTNET] Howto secure class libraries

2002-04-22 Thread Brian G. Vallelunga
Thanks for the information, this looks interesting... >>It's hackable via the Reflection libraries. See [1] for an example of this. To prevent callers from being able to modify your privates, you need to add the following: [assembly: ReflectionPermission(SecurityAction.RequestRefuse, Flags = R

Re: [DOTNET] Authorize users based on IP Address

2002-04-22 Thread Kevin Burton
If you are not that attached to the .config file you could use the SocketPermissionAttribute or the SocketPermission class to specify the IP addresses that you are willing to accept. If you wanted to still have the flexibility of a configuration file you could add use entries in the config file an

Re: [DOTNET] Howto secure class libraries

2002-04-22 Thread Jason Bock
On Mon, 22 Apr 2002 15:11:07 -0400, Brian G. Vallelunga <[EMAIL PROTECTED]> wrote: >Curious say that each method checked a class-wide global variable to >see if it could run. Now, this global variable would be set to true, if >the user had successfully authenticated himself. > >Even with ILDa

Re: [DOTNET] Extending Active Directory Schema with .NET

2002-04-22 Thread Ray Heath
Corection: // add “Sky Color = green” should throw an exception with // ex.message = green is not a valid color value for the // Sky Color attribute. deUserColorNode.Properties[“Sky Color”].Add(“blue”); The last line should read: deUserColorNode.Properties[“Sky Color”].Add(“green”); - Ray O

Re: [DOTNET] Active Directory Problem

2002-04-22 Thread Jim Graf
Hi thanks for the response. We are currently running as a system account with impersonation = true Thanks Jim You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.

Re: [DOTNET] DataColumn.Expression Syntax and Child.XXX

2002-04-22 Thread Shawn Wildermuth
Bit of a hack, but it does work...thx! I wonder whether we can add our own syntax? I'd love to create, FIRSTOF() to make this a little clearer (and less hacky). Thanks, Shawn Wildermuth [EMAIL PROTECTED] > -Original Message- > From: dotnet discussion [mailto:[EMAIL PROTECTED]] > On Be

[DOTNET] Extending Active Directory Schema with .NET

2002-04-22 Thread Ray Heath
I would like to modify the Active Directory schema. Does anyone know of effective sample code or instruction to accomplish this with .NET? Basically, I need to do two things: 1. Create custom properties (or modify the existing custom properties already defined) on the ‘user’ schema and elsewhere

Re: [DOTNET] Active Directory Problem

2002-04-22 Thread Willy Denoyette
Do you run this under the aspnet identity? Remember 'aspnet' has no privilege to access the AD, you'll have to impersonate a more powerful user or use explicit binding credentials. Willy. - Original Message - From: "Jim Graf" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, Apr

Re: [DOTNET] Authorize users based on IP Address

2002-04-22 Thread Peter Dampier
Considering IP's can be spoofed I would advise against using this as the ONLY security mechanism. -Original Message- From: Bryan Batchelder [mailto:[EMAIL PROTECTED]] Sent: Monday, April 22, 2002 11:52 AM To: [EMAIL PROTECTED] Subject: Re: [DOTNET] Authorize users based on IP Address Y

[DOTNET] AW: [DOTNET] Authorize users based on IP Address

2002-04-22 Thread Dominick Baier
Hi, IIS has this feature. Look in Internet Service Manager/Security. Also scriptable via the Metabase. greets dominick -Ursprüngliche Nachricht- Von: dotnet discussion [mailto:[EMAIL PROTECTED]]Im Auftrag von Nischal Chitta Gesendet: Montag, 22. April 2002 20:46 An: [EMAIL PROTECTED] Be

Re: [DOTNET] Howto secure class libraries

2002-04-22 Thread Sievert, James A
> Curious say that each method checked a class-wide global > variable to see if it could run. Now, this global variable > would be set to true, if the user had successfully > authenticated himself. > > Even with ILDasm, there wouldn't be anyway to change the > value of the variable at all, as

Re: [DOTNET] Try Ctrl-M Ctrl-O, it rocks!

2002-04-22 Thread Shawn Wildermuth
Ctrl-K, Ctrl-C (comment out) Ctrl-K, Ctrl-U (uncomment out) Ctrl-K, Ctrl-F (Format Section) (try changing the format, and select-all, then this!) Thanks, Shawn Wildermuth [EMAIL PROTECTED] > -Original Message- > From: dotnet discussion [mailto:[EMAIL PROTECTED]] > On Behalf Of Diego Go

Re: [DOTNET] Howto secure class libraries

2002-04-22 Thread Marsh, Drew
I wrote: > Mark your assemblies with the > StrongNameIdentityPermissionAttribute using > SecurityAction.LinkDemand and your public key. Ooops! SecurityAction.LinkDemand is at the method level. Use SecurityAction.RequestMinimum instead if you're going to mark the whole assembly with the attribute

[DOTNET] Active Directory Problem

2002-04-22 Thread Jim Graf
Hi, Playing around with active directory trying to get Windows group based on userid. When run locally the code that follows works and prints out the information. DirectoryEntry root = new DirectoryEntry("LDAP://somerootl";); // Create Directory Searcher DirectorySearcher searcher=new Dir

Re: [DOTNET] Howto secure class libraries

2002-04-22 Thread Brian G. Vallelunga
Curious say that each method checked a class-wide global variable to see if it could run. Now, this global variable would be set to true, if the user had successfully authenticated himself. Even with ILDasm, there wouldn't be anyway to change the value of the variable at all, as long as the a

Re: [DOTNET] DataColumn.Expression Syntax and Child.XXX

2002-04-22 Thread Marcelinus Gozali
Try this one: invoiceItemTable.Columns.Add("Desc", typeof(string),"MAX(Child.Description)"); > -Original Message- > From: dotnet discussion [mailto:[EMAIL PROTECTED]] > On Behalf Of Shawn Wildermuth > Sent: Monday, April 22, 2002 1:08 PM > To: [EMAIL PROTECTED] > Subject: Re: [DOTNET] Da

Re: [DOTNET] Try Ctrl-M Ctrl-O, it rocks!

2002-04-22 Thread Diego Gonzalez
The best shortcut is Ctrl-I (Incremental search). Diego - Original Message - From: "Peter Laan" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, April 22, 2002 2:16 PM Subject: [DOTNET] Try Ctrl-M Ctrl-O, it rocks! > Just in case someone hasn't noticed. Try pressing Ctrl-M, Ct

Re: [DOTNET] Howto secure class libraries

2002-04-22 Thread Joe Reich
That's why I said keep honest people honest. I maintain that 99% of users don't even bother, and 90% of that last 01% will give up when they see they cannot immediately use it 'out of the box'. Of course that leaves that .01% of people that will find a way. How important is it to protect the s

Re: [DOTNET] Authorize users based on IP Address

2002-04-22 Thread Bryan Batchelder
You can do this in the IIS security configuration. --b Bryan Batchelder eBusiness Consultant ConnectWise, Inc. 813-935-7100 x 425 > -Original Message- > From: Nischal Chitta [mailto:[EMAIL PROTECTED]] > Sent: Monday, April 22, 2002 2:46 PM > To: [EMAIL PROTECTED] > Subject: [DOTN

[DOTNET] DataSet to .csv file

2002-04-22 Thread Nischal Chitta
Hi All Can someone point me to a resource and guide me in getting me my ADO.NET dataset into a .csv file. Is there any direct method where I could get my data in my dataset into a .csv file or should I loop thru the dataset's and post the data into the .csv file. Any help appreciated. Thanks Ni

[DOTNET] Licensing of Components

2002-04-22 Thread Mario Fulan
I have a need to use licensed COM components in my C# .NET application. It appears that the .NET components correctly call the IClassFactory2 interface in that running the COM components from .NET with the .lic file available works fine. However, I can't seem to figure out how to store the approp

Re: [DOTNET] Authorize users based on IP Address

2002-04-22 Thread Marsh, Drew
Nischal Chitta [mailto:[EMAIL PROTECTED]] wrote: > Now my question, Is there a way I can specify in the *.config > file that gives access to my site from only particular IP > Addresses or should I be implementing as my own. This is usually handled at the web server level (i.e. IIS). You *could*

Re: [DOTNET] Howto secure class libraries

2002-04-22 Thread Marsh, Drew
Peter Meinl [mailto:[EMAIL PROTECTED]] wrote: > We want to ensure that our DLLs on client PCs can only be > called by our EXE. Mark your assemblies with the StrongNameIdentityPermissionAttribute using SecurityAction.LinkDemand and your public key. Then just sign your EXE(s) with the same key. As

[DOTNET] Authorize users based on IP Address

2002-04-22 Thread Nischal Chitta
Hi All I have a ASP.NET Web Application. I want this to be available only to requests that come from particular IP address which I know early. Now my question, Is there a way I can specify in the *.config file that gives access to my site from only particular IP Addresses or should I be implemen

[DOTNET] ASP.Net Server Control w/Dynamic Datagrid

2002-04-22 Thread Rachael Ross
ASP.NET stuff I'm interested in creating a server control that creates some container controls, one of them being a datagrid. I want to add all columns to the datagrid at runtime(dynamically), which is no problem until I want to add another control, like a checkbox or datalist to a column.

Re: [DOTNET] Howto secure class libraries

2002-04-22 Thread Sullivan, Dan
Check out the StrongNameIdentityPermission sample at http://www.develop.com/devresources/default.aspx Dan -Original Message- From: Peter Meinl [mailto:[EMAIL PROTECTED]] Sent: Monday, April 22, 2002 2:21 PM To: [EMAIL PROTECTED] Subject: [DOTNET] Howto secure class libraries We want t

Re: [DOTNET] Howto secure class libraries

2002-04-22 Thread Jason Bock
On Mon, 22 Apr 2002 14:26:15 -0400, Joe Reich <[EMAIL PROTECTED]> wrote: >Create each class with a password as part of the constructor? > >Really you're only trying to keep the honest people honest here right? >How super effective does this have to be..? That's too easy to break via ILDasm (assu

[DOTNET] How do you bind a DataGrid HyperLinkColumn to more than one field ?

2002-04-22 Thread Marshall Harrison
I have a HyperLinkColumn defined as : In reality the hyperlink needs two fields to make it work (i.e SqlLoadsDetails.aspx?Company=ABC&LoadNo=1 ) with each parameter coming from a different database field. I can't seem to find a way to get both fields into the DataNavigateUrlFormatStri

Re: [DOTNET] Howto secure class libraries

2002-04-22 Thread Joe Reich
Create each class with a password as part of the constructor? Really you're only trying to keep the honest people honest here right? How super effective does this have to be..? > -Original Message- > From: Peter Meinl [mailto:[EMAIL PROTECTED]] > Sent: Monday, April 22, 2002 2:21 PM >

[DOTNET] Howto secure class libraries

2002-04-22 Thread Peter Meinl
We want to ensure that our DLLs on client PCs can only be called by our EXE. We must protect these DLLs because they access WebServices (we plan to use certificate mapping and create the certificate using X509Certificate.CreateFromSignedFile("MyDll.dll")) and an SQL Server (we hardcode uer/pwd or

[DOTNET] Windows Services - .NET and NT

2002-04-22 Thread Farhan
I am using (completely against my will) NT 4.0 workstation and am attempting to install a Windows service I wrote in VB.NET. support.microsoft.com has an article on how to install a .NET service, and it shows under the requirements that you have to have win2k. I can't find any other documentation

Re: [DOTNET] Generating XML Log Files

2002-04-22 Thread Smiley, Shawn
Thanks all for the suggestions. I'll take a look at LogKit and also the XmlTextWriter class. Shawn S. Smiley, MCDBA Sr Software Developer/Software Architect Integrated Business & e-Commerce Solutions xwave New England www.xwave.com Augusta * Portland * Lewiston * Portsmouth 193 Middle Street ,

[DOTNET] Copy and pasting a WinForm as Metafile

2002-04-22 Thread Andrew Coats
Has anyone managed to copy and paste the contents of WinForm as MetaFile? I can copy and paste a 'screen dump' of the Winform. My WinForm has several ActiveX controls on it - so just Calling OnPaint() with my own Graphics does not work. The code to copy and paste a 'screen dump': [System.Runtime

Re: [DOTNET] Persistent Remote Objects

2002-04-22 Thread Browning, Don
Sure, Mark the remote object (and any other objects it references) as serializable using either the [serializable] attribute or by implementing ISerializable. Once the class has that, you can serialize it using the following code: System.Runtime.Serialization.Formatters.Soap.SoapFormatter sf =

Re: [DOTNET] Suggestions: How to generate static html pages via .NET

2002-04-22 Thread John Mandia
Yeah have used this before. But unfortunately I'm on a shared server. Actually just realised something I should point out. A while back I posted to this list asking if anyone was from Denmark because I was interested in heading over there. I am actually in Denmark now, studying .Net and working

Re: [DOTNET] Finding out the IP-Address of a PC

2002-04-22 Thread Miguel Ángel Chacón
Note: The WMI Core download is only valid for Windows 98 Gold and SE and Windows NT 4.0 with service pack 4 or higher. (Millennium and Windows 2000 come with it preinstalled.) -Mensaje original- De: dotnet discussion [mailto:[EMAIL PROTECTED]] En nombre de Nick Wienholt Enviado el: lunes,

[DOTNET] Try Ctrl-M Ctrl-O, it rocks!

2002-04-22 Thread Peter Laan
Just in case someone hasn't noticed. Try pressing Ctrl-M, Ctrl-O in a sourcefile. This will collapse most of the regions. Then move the cursor to an interesting method, press Ctrl-M twice, and when your done press Ctrl-M twice again. I just love this! Although it would be even better if the method

Re: [DOTNET] Finding out the IP-Address of a PC

2002-04-22 Thread Willy Denoyette
Ok, the Platform SDK documentation, correctly specifies what API's are supported on what Platforms. Windows 2000 and higher, are fully supported, W98 and NT4 have limited support. Willy. - Original Message - From: "Willy Denoyette" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monda

Re: [DOTNET] Suggestions: How to generate static html pages via .NET

2002-04-22 Thread John Mandia
Wish I could do the ISAPI trick but I haven't got my own server...I have my site on a shared server. I know you can do it within .net so that for example www.site.com/customers/industry/01/index.aspx actually translates to www.site.com/customers.index.aspx?customerid=01 but that still involves as

[DOTNET] Persistent Remote Objects

2002-04-22 Thread El Khiyari, Hachim
I would like to create a Remoting object that would persist its data to a file so that the object state is not lost after I restart the service. Does the framework provide any way to do this automatically, or do I have to write code to load and save the state? I appreciate any suggestion. Thank

[DOTNET] ANN: Dev. Article on how to use CodeDom to create more strongly Typed DataSets

2002-04-22 Thread Chesnut, Casey
Had a need to carry enumeration info in XSD along with Typed DataSets: so this parses the project file looking for Xml Schemas, parses the XSD looking for enums facets, compiles the Typed DataSet to reflect against with CodeDom, and creates a subclass adding the enums using CodeDom. http://www.bra

Re: [DOTNET] ASP.NET BUG

2002-04-22 Thread Chris Anderson
> From: Marsh, Drew [mailto:[EMAIL PROTECTED]] > Chris Anderson [mailto:[EMAIL PROTECTED]] wrote: > > > > Server.HTMLEncode does not affect this character, so you > > have to mung > > > it manually :-( > > You don't want to use Server.HtmlEncode, you want to use > Server.UrlEncode. Doh! Thanks,

Re: [DOTNET] Suggestions: How to generate static html pages via .NET

2002-04-22 Thread Brian G. Vallelunga
I haven't used it before, but here is a link to a URL rewriting ISAPI filter. http://www.pstruh.cz/help/urlrepl/library.htm This may be the best solution, rather than writing your own. I wish IIS came with this feature out of the box, but this should do. Question, do you have to write ISAPI fil

[DOTNET] Anyone used COM/.NET cross component licensing?

2002-04-22 Thread Mario Fulan
I have a need to use licensed COM components in my C# .NET application. It appears that the .NET components correctly call the IClassFactory2 interface in that running the COM components from .NET with the .lic file available works fine. However, I can't seem to figure out how to store the ap

Re: [DOTNET] Finding out the IP-Address of a PC

2002-04-22 Thread Casey Schmit
The IP helper library will get laid down as part of an IE 5.0 install. I was under the same impression(that you didn't have it under 9x) and was pleasantly surprised to discover that after upgrading my IE, it was there an available. As someone else said, the 9x version doesn't contain all the fun

Re: [DOTNET] HttpWebResponse.StatusCode

2002-04-22 Thread Jim Arnold
According to the HTTP1.1 specs, the Status-Code and Reason-Phrase are related, but the former is intended for "use by automata", the latter for "the human user". I'd say that HttpWebResponse.StatusCode, an enumeration, maps to the Status-Code integer, while HttpWebResponse.StatusDescription is si

Re: [DOTNET] ASP.NET BUG

2002-04-22 Thread Marsh, Drew
Chris Anderson [mailto:[EMAIL PROTECTED]] wrote: > > Server.HTMLEncode does not affect this character, so you > have to mung > > it manually :-( You don't want to use Server.HtmlEncode, you want to use Server.UrlEncode. HTH, Drew You can read messages from the DOTNET archive, unsubscribe from

Re: [DOTNET] Finding out the IP-Address of a PC

2002-04-22 Thread Willy Denoyette
The information in some KB articles is rather confusing. Q238668 lists the iphlpapi.dll being included with W98 SE, which is the case, but nowhere they say it's an update of an existing component on W98. Q194507 states: SP4 updates the API with a new .dll so that applications can communicate t

[DOTNET] HttpWebResponse.StatusCode

2002-04-22 Thread Serdar Kilic
Hi, Should not the HttpWebResponse.StatusCode return the code (e.g. 200) and leave the description (e.g. OK) to HttpWebResponse.StatusDescription ? -- Regards, Serdar | skilic.com You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor list

Re: [DOTNET] Suggestions: How to generate static html pages via .NET

2002-04-22 Thread Ethan Smith
I've never used it before, but I think that is what ASP.NET output caching is for. -Original Message- From: dotnet discussion [mailto:[EMAIL PROTECTED]] On Behalf Of Jo

Re: [DOTNET] Getting the Properties window to show up again (Re: [DOTNET] WinForms UI editing.... actually VS editing questions... BUGS?)

2002-04-22 Thread Michael Bealer
Thanks everyone for the answers... I'm happy to see that there are workarounds for everything. Although, Barry, in VB.NET you don't have to type the CommandType. it just comes up automagically. I've been using the method you mentioned, but sometimes the enum name isn't what I expected so I have

Re: [DOTNET] Finding out the IP-Address of a PC

2002-04-22 Thread Thomas Tomiczek
Really? Well, then we move up to in98 SE Regards Thomas Tomiczek THONA Consulting Ltd. (Microsoft MVP C#/.NET) -Original Message- From: Willy Denoyette [mailto:[EMAIL PROTECTED]] Sent: Montag, 22. April 2002 15:45 To: [EMAIL PROTECTED] Subject: Re: [DOTNET] Finding out the IP-Addre

Re: [DOTNET] Finding out the IP-Address of a PC

2002-04-22 Thread Willy Denoyette
Right, I was looking on an old W98 system, and didn't find the IP helper DLL , but it's there on a Win98 Second Edition. Willy. - Original Message - From: "Justin Rudd" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, April 22, 2002 3:21 PM Subject: Re: [DOTNET] Finding out the

Re: [DOTNET] Retrieving user properties from a WinNT provider using .Net

2002-04-22 Thread Willy Denoyette
If "Administrator" is a local account on the remote machine NTTestDomain, you have to specify the user name as authority\username like: DirectoryEntry("WinNT/NTTestDomain/Co5049/Users,group", "NTTestDomain\Administrator", " If the program runs in the "Administrator" logon session, and both m

Re: [DOTNET] Shell links / shortcut files (*.lnk)

2002-04-22 Thread Henrik Enemark Rasmussen
Thanks, that was just what I was looking for. I have noticed that the IPersistFile.Load method throws a COM exception (E_FAIL) if the file is not a shell link, I wonder if that is an acceptable test for shell link or not!?! - Henrik -Original Message- From: Mattias Sjögren [mailto:[EMAI

Re: [DOTNET] Finding out the IP-Address of a PC

2002-04-22 Thread Justin Rudd
> No, he is right :-) > > According to my docu: Which is good. Because the NetSamples.Common.Net classes I mentioned use the IP Helper library. Justin You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.co

Re: [DOTNET] Finding out the IP-Address of a PC

2002-04-22 Thread Justin Rudd
> But they do :-) No they don't. The sample code does come with a class that uses WMI. But the one I was talking about is in the NetSamples.Common.Net namespace. The one you are thinking about is in the NetSamples.Common.Management namespace. Justin You can read messages from the DOTNET ar

Re: [DOTNET] Tooltip on a combobox

2002-04-22 Thread Ken Vincent
You would think that Control.BringToFront() would work, actually it causes the list portion of the combobox to be dismissed. k On Fri, 19 Apr 2002 14:12:22 -0500, franklin gray <[EMAIL PROTECTED]> wrote: >.bringtofront? > >-Original Message- >From: Ken Vincent [mailto:[EMAIL PROTECTED]

Re: [DOTNET] ASP.NET BUG

2002-04-22 Thread Chris Anderson
I should add that this is for Admin pages..of course there's no need to pass the user name via the QueryString normally ;-) Merak > -Original Message- > From: Chris Anderson [mailto:[EMAIL PROTECTED]] > Sent: 22 April 2002 13:39 > To: [EMAIL PROTECTED] > Subject: [DOTNET] ASP.NET BUG > >

[DOTNET] Cache coherency in a web cluster

2002-04-22 Thread Bryan Batchelder
We have a product called webbuilder that allows customers to manage their website from within internet explorer. We keep all the content stored in a database - which is unfortunate because its really static data - its only changed every once in a while. I modified the page rendering code to use

[DOTNET] ASP.NET BUG

2002-04-22 Thread Chris Anderson
Also reported at http://support.microsoft.com/support/feedback/ Posted here FYI (because it wasted an hour or so of my time) When executing : Response.Redirect("~/default.aspx?user=" & userID) when userID is a Windows Authenticated user (ie is in the form "domain\user"), the "\" is changed to

Re: [DOTNET] Suggestions: How to generate static html pages via .NET

2002-04-22 Thread Duncan Smart
Going slightly offtopic, but regarding URL Rewriting check out the C++ "Friendly ISAPI" in the docs, that does URL Rewriting: "ISAPIFilter Sample: Maps URLs to Parameterized Queries" ms-help://MS.VSCC/MS.MSDNVS/vcsample/html/vcsamISAPIFilterSampleMaps.htm So you can map http://myserver/Pro

Re: [DOTNET] RegexCompilationInfo questions

2002-04-22 Thread Richard Birkby
Michael Weinhardt wrote: > > The Compiled RegexOption causes a regular expression to be compiled to IL, > then JITed, with the resulting code remaining in memory for the > lifetime of > the AppDomain. When I first heard this, I thought 'potential denial of service attack'. A naive ASP.Net develo

Re: [DOTNET] RegexCompilationInfo questions

2002-04-22 Thread Michael Weinhardt
Shawn, It's been a while since your original post, but I'll have a stab, and maybe ask a question >2) Do I actually have to specify the 'RegexOptions.Compiled' flag, or is >that implied by the fact that I'm calling CompileToAssebly()? Or is it >simply irrelevent in this context? Compiling to

Re: [DOTNET] It's the Runtime Stupid

2002-04-22 Thread Marshall Harrison
Great article Sam! I especially liked the last paragraph. This .NET thing is huge. The languages are small and easy to learn but the CLR is another story. I've been coding professionally for 15 years and I cut my teeth on C. Gone are the days when I would sit and read the library reference while

Re: [DOTNET] Finding out the IP-Address of a PC

2002-04-22 Thread Thomas Tomiczek
No, he is right :-) According to my docu: Windows NT/2000/XP: Included in Windows NT 4.0 SP4; Windows 2000; Windows XP Pro; and Windows .NET Server. Windows 95/98/Me: Included in Windows 98 and later. Header: Declared in Iphlpapi.h. Library: Use Iphlpapi.lib. Regards Thomas Tomiczek TH

Re: [DOTNET] Finding out the IP-Address of a PC

2002-04-22 Thread Willy Denoyette
Are you sure this works on W98, I could be wrong, but I don't thing the IP helper library is available on anything less than W2K. Willy. - Original Message - From: "Axel Heitland" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, April 22, 2002 1:29 PM Subject: Re: [DOTNET] Find

  1   2   >