Re: [DOTNET] Setting properties

2002-05-17 Thread Peter Stephens
Simon Robinson spake: > > Hi guys > > I have a class with two integer properties - call them A and B. > There is a condition that the value of B should always be greater than A, > otherwise the class won't function correctly. I'd like the error to be > detected and an exception thrown when client

Re: [DOTNET] Setting properties

2002-05-17 Thread Graeme Foster
Heh... Old habits die hard :) G. -Original Message- From: dotnet discussion [mailto:[EMAIL PROTECTED]] On Behalf Of Graeme Foster Sent: 17 May 2002 21:34 To: [EMAIL PROTECTED] Subject: Re: Setting properties Public property Minimum { ... } You can read messages from the DOTNET archive

Re: [DOTNET] Does anyone know how to trigger an event based on a timechange?

2002-05-17 Thread Mark Boulter
The best way to do this is to hook the SystemEvents.TimeChange event mark You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.

[DOTNET] OT:Article on Object-Oriented Remoting

2002-05-17 Thread Hun Boon Teo
Hi, Interesting article on Object-Oriented Remoting - A Pattern Language http://www.voelter.de/publications/remoting.html by Markus Völter (I saw the posting from www.theserverside.com ) This is a interesting article on remoting. The concept is relevant to remoting in .NET. The terms author used i

Re: [DOTNET] Setting properties

2002-05-17 Thread Graeme Foster
Oh, one other idea... Set *both* properties in each set, that way you can make sure they're a valid pair. E.g. Public property Minimum { get{...} set { min = value; if( max < min ) max = min; } } ...and vice

[DOTNET] TOOL: .NET XsdClassesGen

2002-05-17 Thread Chris Sells
XsdClassesGen [1] is a Custom Tool Add-In to VS.NET to generate type-safe wrapper classes for serializing to and from XML documents. It takes as input an XSD and produces the C# or VB.NET code to do the serialization using the XmlSerializer. This is really just the output of running xsd.exe /class

[DOTNET] ASP.NET form w/lots of controls, only some are visible (performance impact?)

2002-05-17 Thread Kyle Clarke
I've got a record with a lot of fields to edit. I'd like to edit it on a single .aspx page, so that state can be maintained entirely by the postback/viewstate model. One approach to do this is, if the form could be subdivided into 4 logical forms, for example, then we have 4 tabs on the form. We

Re: [DOTNET] OT: N-Tier Design

2002-05-17 Thread Peter Foreman
--- Ron Jacobs <[EMAIL PROTECTED]> wrote: > There are many benefits that you get in return for a small performance > cost. Do you (or anyone else) have any performance data on relative costs? 1) COM+ DTC transactions 2) ADO.Net transactions 3) Stored procedure transactions > What if you wanted t

Re: [DOTNET] Forcing Exception Handling

2002-05-17 Thread Brad Wilson
David B. Bitton wrote: > In Java, if something is defined as throwing an exception, the calling > function must catch it. Is there anything like this in C#? No. See the archives if you'd like to witness the entire lengthy debate on the subject. :) Brad -- Read my web log at http://www.qualit

[DOTNET] Form won't close

2002-05-17 Thread Dan Souk
When I try to close a WinForms form, I have to attempt to close it twice before it will close. I'm not calling Dispose() on any objects instantiated when the form loads. Should I be? Is this the cause? Something else? TIA, Dan Dan Souk Finna Technologies, Inc. 2410 Lind

[DOTNET] FW: Implementing Equals

2002-05-17 Thread Yong Xu
Never mind. I tried this out as Jeffrey Richter suggested and GetType always return the same type, no matter you call it in base or derived. Yong > -Original Message- > From: Yong Xu > Sent: Friday, May 17, 2002 10:28 AM > To: '[EMAIL PROTECTED]' > Subject: Implementing E

Re: [DOTNET] OT: N-Tier Design

2002-05-17 Thread Jon Stonecash
Switching the database engine is often cited as a reason for the data tier. I agree that this requirement is probably limited to application software suppliers that must be able to host the appplication on one of several popular database management systems. The project that I am just finishing up

Re: [DOTNET] Does anyone know how to trigger an event based on a timechange?

2002-05-17 Thread Ian Griffiths
Setting up a second thread doesn't actually help in any way that I can see... It also makes life a lot more complex in a Windows Forms app because you aren't actually allowed to do anything to the UI from a worker thread. But if you want to reduce the number of events to exactly one per second,

[DOTNET] HELP!! Problem w/ Code Behind

2002-05-17 Thread James Alexander
I'm in a real tight spot and would really appreciate some help. I've created a Custom Server control along w/ some other web forms that I'm I've deployed on a server. I then have another ASP.NET application that I've created a virtual directory which points to the other web forms files associated

Re: [DOTNET] OT: N-Tier Design

2002-05-17 Thread Ron Jacobs
There are many benefits that you get in return for a small performance cost. What if you decided later that you needed to update another database as part of the same transaction? What if you decided to use a transacted queue? What if you wanted to conditionally execute some logic depending up

Re: [DOTNET] Setting properties

2002-05-17 Thread Graeme Foster
How about providing a readonly IsValid property? At least then you could provide some feedback. You could even supply an error message in a readonly string property. Not ideal, though :( There's no way to validate the values whilst they're being editied, because there's no way of knowing when the

Re: [DOTNET] OT: N-Tier Design

2002-05-17 Thread Syed.Alam
i guess the discussion was the inevitable loss of performance in moving from one RM based transaction (without DTS) to 1-or-more RM based (distributed/2 way) transaction (under COM+ or whatever) -Original Message- From: Ron Jacobs [mailto:[EMAIL PROTECTED]] Sent: Friday, May 17, 2002 2:

Re: [DOTNET] OT: N-Tier Design

2002-05-17 Thread Ron Jacobs
I don't know why you think that COM+ is too slow. Extensive testing shows that COM+ library applications are just as fast as any other .NET class. Often people think that ServicedComponents must be in server apps which execute out of process and therefore are slower but any code that executes ou

Re: [DOTNET] OT: N-Tier Design

2002-05-17 Thread Knebels, Francis
But that's a problem I'm facing in Oracle. They don't have the concept of nested transactions so as soon as a COMMIT is issued, the transactions is commited and can leave the database in an inconsistent state. example: A registration needs to add a person and a location, I could write a re

Re: [DOTNET] OT: N-Tier Design

2002-05-17 Thread Francesco Sanfilippo
When everything is broken down to this low-level functionality is it better to: (a) create a master sproc for each function, like UpdateCustomer(), which then EXECs other low-level sprocs, like UpdateCustomerTable() and InsertLocation() as needed. Call this sproc ONCE to do all the work from you

Re: [DOTNET] OT: N-Tier Design

2002-05-17 Thread Francesco Sanfilippo
Yes, I know...but I rolled my own, and tested it a bit head to head against the MS DAB and mine was faster, plus the code is simpler, so I stick with my own. Francesco >From: Federico Mesplet <[EMAIL PROTECTED]> >Reply-To: dotnet discussion <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject:

Re: [DOTNET] OT: N-Tier Design

2002-05-17 Thread Francesco Sanfilippo
>That doesn't sound like business logic to me. Especially if there's a 1-1 >mapping between "business logic" classes and database tables. > True, my BLL (so far, since I'm working from the ground up, building this thing from SCRATCH in .NET) is actually more of a secondary data layer wrapped arou

Re: [DOTNET] Supporting manual loading of .NET Office COM Add-ins

2002-05-17 Thread David Brown
This is a great question. I did find this, don't know if it would be much help... http://discuss.develop.com/archives/wa.exe?A2=ind0111A&L=DOTNET&P=R12402 &m=28778 -Original Message- From: dotnet discussion [mailto:[EMAIL PROTECTED]] On Behalf Of Mike Timms Sent: Friday, May 17, 2002 6:5

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

2002-05-17 Thread Syed.Alam
I have IIS, but the ISAPI extentions r not installed for soap, etc. -Original Message- From: Chris Sells [mailto:[EMAIL PROTECTED]] Sent: Friday, May 17, 2002 12:56 PM To: [EMAIL PROTECTED] Subject: Re: [DOTNET] Development/deployment of Web services on Windows XP professional You nee

Re: [DOTNET] Setting properties

2002-05-17 Thread Sean Greer (SBI-Chico)
Of course, it seemed too easy! The setter method does seem to be the best solution. Seang -Original Message- From: Simon Robinson [mailto:[EMAIL PROTECTED]] Sent: Friday, May 17, 2002 11:49 AM To: [EMAIL PROTECTED] Subject: Re: [DOTNET] Setting properties Hi Sean Intriguing idea but t

Re: [DOTNET] Setting properties

2002-05-17 Thread Simon Robinson
Hi Sean Intriguing idea but trouble is that might fail if the properties had been previously set and the client code wanted to change both their values. eg. current values are 0 and 50. Client wants to change this to 100 and 200 -> will get an exception unless changes top value first. Looking a

Re: [DOTNET] Setting properties

2002-05-17 Thread Jacob Grass
Are you talking in the PropertyGrid? Or otherwise? Jacob A. Grass > -Original Message- > From: Chris Sells [mailto:[EMAIL PROTECTED]] > Sent: Friday, May 17, 2002 1:27 PM > To: [EMAIL PROTECTED] > Subject: Re: [DOTNET] Setting properties > > > I ran into this issue just the end day wi

Re: [DOTNET] Setting properties

2002-05-17 Thread Duncan Godwin
If there is a relationship between those properties, such as with x, y for a point. Would it be possible to extract a class and make it immutable? So the construtor is always used to validate the creation of the two values. Also when setting a property to the containing class it can be done by

Re: [DOTNET] Setting properties

2002-05-17 Thread Sean Greer (SBI-Chico)
I know it's cumbersome, but what about this: public class ALessThanB { private boolm_bASet = false, m_bBSet = false; private int m_nA = 0, m_nB = 0; public int A { set { if(m_bBSet && value >= m_nB)

Re: [DOTNET] Setting properties

2002-05-17 Thread Chris Sells
That doesn't work with components in the designer. Chris Sells http://www.sellsbrothers.com/ > -Original Message- > From: dotnet discussion [mailto:[EMAIL PROTECTED]] On Behalf Of > Sills, Adam > Sent: Friday, May 17, 2002 11:41 AM > To: [EMAIL PROTECTED] > Subject: Re: [DOTNET] Setting

Re: [DOTNET] OT: N-Tier Design

2002-05-17 Thread Sills, Adam
> The whole 'changing the data store' gets me. I hear it a lot from OR mapping people. > How often are you realistically going to do this? Is it really worth the effort? > Bearing in mind switching enterprise class databases is a costly and time-consuming > affair even when you don't take into a

Re: [DOTNET] Setting properties

2002-05-17 Thread Sills, Adam
Why not just make a setter method and leave your properties readonly. -Original Message- From: Chris Sells [mailto:[EMAIL PROTECTED]] Sent: Friday, May 17, 2002 2:27 PM To: [EMAIL PROTECTED] Subject: Re: [DOTNET] Setting properties I ran into this issue just the end day with a start dat

Re: [DOTNET] Setting properties

2002-05-17 Thread Patrick Steele
Maybe have a read-only property A and B. Then create a method to "SetABRange(A,B)". --- Patrick Steele ([EMAIL PROTECTED]) Lead Software Architect Image Process Design -Original Message- From: Simon Robinson [mailto:[EMAIL PROTECTED]] Sent: Friday, May 17, 2002 2:01 PM To: [EMAIL PROT

[DOTNET] Forcing Exception Handling

2002-05-17 Thread David B. Bitton
In Java, if something is defined as throwing an exception, the calling function must catch it. Is there anything like this in C#? -- David B. Bitton [EMAIL PROTECTED] www.codenoevil.com Code Made Fresh DailyT You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe

Re: [DOTNET] Setting properties

2002-05-17 Thread Chris Sells
I ran into this issue just the end day with a start date and an end date. I couldn't figure out how to check that the start was always before the end without requiring them to set the properties in a certain order. Chris Sells http://www.sellsbrothers.com/ > -Original Message- > From: do

Re: [DOTNET] OT: N-Tier Design

2002-05-17 Thread Murphy, James
> --- "Sills, Adam" <[EMAIL PROTECTED]> wrote: > > The goal of our abstracted data classes were to give us the > ability, if > > necessary (and I doubt it will ever be necessary), to > rewrite the data layer > > for any data source, and have the business layer not know > the difference, > > and to

Re: [DOTNET] Implementing Equals

2002-05-17 Thread Price, Derek
Check out the errata page at www.wintellect.com - I think I remember that section having an update. -Original Message- From: Yong Xu [mailto:[EMAIL PROTECTED]] Sent: Friday, May 17, 2002 1:22 PM To: [EMAIL PROTECTED] Subject: [DOTNET] Implementing Equals Hi there, In Jeffrey Richter's r

Re: [DOTNET] OT: N-Tier Design

2002-05-17 Thread Peter Foreman
--- "Sills, Adam" <[EMAIL PROTECTED]> wrote: > The goal of our abstracted data classes were to give us the ability, if > necessary (and I doubt it will ever be necessary), to rewrite the data layer > for any data source, and have the business layer not know the difference, > and to provide very si

Re: [DOTNET] Is this program conforming?

2002-05-17 Thread Jon Jagger
On Fri, 17 May 2002 09:24:48 -0700, Jim Arnold <[EMAIL PROTECTED]> wrote: >Ah, then how about Section 10.3, paragraph 3, items 18 and 19? > >18 The local variable declaration space of a block includes any nested >blocks. >19 Thus, within a nested block it is not possible to declare a local >varia

Re: [DOTNET] OT: N-Tier Design

2002-05-17 Thread Peter Foreman
--- "Knebels, Francis" <[EMAIL PROTECTED]> wrote: > How do you resolve transactions that span multiple table classes? Say a > registration need to insert a person and a location if one doesn't exist. > I've been reading the thread on "developing a middle tier" and from what I > got is that you ca

[DOTNET] Setting properties

2002-05-17 Thread Simon Robinson
Hi guys I have a class with two integer properties - call them A and B. There is a condition that the value of B should always be greater than A, otherwise the class won't function correctly. I'd like the error to be detected and an exception thrown when client code sets the properties, and I'm t

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

2002-05-17 Thread Chris Sells
You need to have IIS installed on your machine to deploy a web service using VS.NET. Chris Sells http://www.sellsbrothers.com/ > -Original Message- > From: dotnet discussion [mailto:[EMAIL PROTECTED]] On Behalf Of > Syed.Alam > Sent: Friday, May 17, 2002 10:46 AM > To: [EMAIL PROTECTED]

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

2002-05-17 Thread Syed.Alam
OK, slightly OT and probably dumb question: As I understand web service just requires some ISAPI extension dll to to host the .Net engine and the assembly. Why is it then not allowed to create a web service on Windows XP Professional? I remember installing VS.net on my machine, and it forewarned

[DOTNET] Oracle Beta1 Data Provider with .NET Beta2?

2002-05-17 Thread Raj Chanian
Hi All, We have an app written in .NET Beta2. I have got the Oracle Beta1 Data Provider http://www.microsoft.com/downloads/release.asp?ReleaseID=37805 working with .NET release V1, in my test prototype. But I want to kno

Re: [DOTNET] Implementing Equals

2002-05-17 Thread Sean Greer (SBI-Chico)
GetType() returns the runtime type of the object instance. In the case of a derived class it will be the Type for the subclass, not the superclass. Take this example: public class Animal { public virtual void WriteType() { Console.WriteLine(this.GetType()); } } p

[DOTNET] Implementing Equals

2002-05-17 Thread Yong Xu
Hi there, In Jeffrey Richter's recent book, Applied .NET Framework programming, Page 156, he demonstrated how to implement Equals for a reference type whose base class overrides Object's Equals. He wrote this, // let the base type compare its fields if (!base.Equals(obj)) return false; ... // If t

Re: [DOTNET] BUG: ASP.Net grid in the VS.net IDE?

2002-05-17 Thread Chris Anderson
Set the grids AutoGenerateFields property to False IMHO this should have been the default, but ho hum Merak > I'm trying to design a grid on an ASP.Net page in the VS.Net IDE. > > I dragged a grid to the page and edited the columns. Now I > have this: http://www.codewrights.com/aspgrid.gif > >

Re: [DOTNET] OT: N-Tier Design

2002-05-17 Thread Federico Mesplet
Microsoft already provides a DAL with methos that rrturn DataReader, DataSet, Escalar, and so on. They call it DataAcess Application Block (DAAB). --- MAXIDROM-2002 ÕÖÅ ÂÌÉÚËÏ ... ÷ÓÔÒÅÞÁÅÍÓÑ × "ïÌÉÍÐÉÊÓËÏÍ" 19 ÍÁÑ !!! http://r.mail.ru/cln1940/

Re: [DOTNET] BUG: ASP.Net grid in the VS.net IDE?

2002-05-17 Thread Sills, Adam
Turn AutoGenerateColumns (should be the prop name) to false. Adam.. -Original Message- From: Philo [mailto:[EMAIL PROTECTED]] Sent: Friday, May 17, 2002 12:30 PM To: [EMAIL PROTECTED] Subject: [DOTNET] BUG: ASP.Net grid in the VS.net IDE? I'm trying to design a grid on an ASP.Net page

[DOTNET] BUG: ASP.Net grid in the VS.net IDE?

2002-05-17 Thread Philo
I'm trying to design a grid on an ASP.Net page in the VS.Net IDE. I dragged a grid to the page and edited the columns. Now I have this: http://www.codewrights.com/aspgrid.gif (if you're using IE6 make sure to "blow up" the image to full size) Note the three columns at the right - "Column 0," "C

Re: [DOTNET] Is this program conforming?

2002-05-17 Thread Jim Arnold
Ah, then how about Section 10.3, paragraph 3, items 18 and 19? 18 The local variable declaration space of a block includes any nested blocks. 19 Thus, within a nested block it is not possible to declare a local variable with the same name as a local variable in an enclosing block. Jim > -Or

[ADVANCED-DOTNET] Copy a file while impersonating - what am I doing wrong

2002-05-17 Thread Dave Morgereth
I have a Windows form app. It switches identity by calling LogonUser, then calls WindowsIdentity.Impersonate. While I'm impersonating, I'd like to copy a file from my machine to another machine in the domain via system.IO.File.Copy. The impersonation works just fine, however, the copy fails with "

Re: [DOTNET] Is this program conforming?

2002-05-17 Thread Jon Jagger
On Fri, 17 May 2002 07:34:34 -0700, Jim Arnold <[EMAIL PROTECTED]> wrote: >[From the SDK docs] > >"A local variable named 'var' cannot be declared in this scope because it >would give a different meaning to 'var', which is already used in a 'parent >or current' scope to denote something else".

Re: [DOTNET] OT: N-Tier Design

2002-05-17 Thread Graeme Foster
I'm pondering having classes representing base tables at the moment. I'm coming to the conclusion that in a lot of cases it's cool to have a manager class. This has methods such as 'CustomerAdd', 'CustomerGet', 'CustomerUpdate'. For example, CustomerGet returns an Xml document (currently via. FOR

Re: [DOTNET] OT: N-Tier Design

2002-05-17 Thread Richard Birkby
That doesn't sound like business logic to me. Especially if there's a 1-1 mapping between "business logic" classes and database tables. I abstract the data access layer into routines called "AddCustomer", "DeleteCustomer" etc and then implement two versions of this interface. One is a mock object

Re: [DOTNET] OT: N-Tier Design

2002-05-17 Thread Sills, Adam
As some other type of abstraction. Basically we have some core data classes that wrap themselves around a DataSet, some DataAdapters, etc, with properties to retrieve the data from the underlying dataset (and do all of the updating/deleting/inserting automatically). Basically my own version of a s

Re: [ADVANCED-DOTNET] Suggestions for VB COM object /.net interop issues

2002-05-17 Thread Scott Densmore
You have just hit upon the VB makes things so easy it breaks everything else. If you were to examine the tlb for the VB COM dll you would notice that every time you change the compatibility mode then you get a new GUID. Also once you have set binary compatibility you should not change the class

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

2002-05-17 Thread Craig Andera
Allow me to interject this opinion: The mid-tier is not about business logic. It is about scalability. I think it's a common misperception that the reason we separate things into three tiers is because it gives us physical separation based on *application* functionality: UI on the client, busine

Re: [DOTNET] OT: N-Tier Design

2002-05-17 Thread Howard Pinsley
>>None of our business objects have any notion of using SQL. Our DAL has the >>methods to do execute and return the appropriate data. And how is that data represented that is returned from the DAL to the BLL? As a dataset or some other abstraction? You can read messages from the DOTNET archive,

Re: [DOTNET] ASP.NET: programmatically reading machine.config set tings

2002-05-17 Thread Sills, Adam
Okay, I take it back, you can't do what I just said, but what you can do: System.Web.ProcessModelInfo.GetCurrentProcessInfo() and use the class returned from that to get the info you need. Adam.. -Original Message- From: Sills, Adam [mailto:[EMAIL PROTECTED]] Sent: Friday, May 17, 2002

Re: [DOTNET] OT: N-Tier Design

2002-05-17 Thread Knebels, Francis
How do you resolve transactions that span multiple table classes? Say a registration need to insert a person and a location if one doesn't exist. I've been reading the thread on "developing a middle tier" and from what I got is that you can't use COM+ because it is too slow. I was looking at doi

[DOTNET] Domain Model vs. Table Module design

2002-05-17 Thread Greg Gates
Hello everyone: I am experimenting with the following design for collections of objects. I have a class that has a field containing a datatable. The class has a method that returns a copy of the datatable to the client. The class also has a method that takes an array of primary keys and instanti

Re: [DOTNET] ASP.NET: programmatically reading machine.config set tings

2002-05-17 Thread Sills, Adam
I might have missed if someone already answered this, but you can do using System.Configuration; NameValueCollection config = (NameValueCollection) = ConfigurationSettings.GetConfig("System.Web/processModel"); Then get the values you need. Adam.. -Original Message- From: John Daintree

[DOTNET] How to obtain HttpRequest on Server?

2002-05-17 Thread Ateek Bhardwaj
HI, I am using an EXE on the server to respod the Client Request instead of using ASP.NET. Problem I am facing is, How can I capture the Client Request in EXE so that I can have an object of HttpRequest or something like that. On the Client its someting like this: http://servername/respond.exe"

Re: [DOTNET] OT: N-Tier Design

2002-05-17 Thread Sills, Adam
None of our business objects have any notion of using SQL. Our DAL has the methods to do execute and return the appropriate data. >From: "Rolls, Robert" <[EMAIL PROTECTED]> >Reply-To: dotnet discussion <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: [DOTNET] OT: N-Tier Design >Date: Fri, 17

Re: [DOTNET] OT: N-Tier Design

2002-05-17 Thread Francesco Sanfilippo
I have built a DataAccess namespace which has the raw methods that touch SQL Server: ExecSPRetSC, ExecSPRetDT, ExecSPRetDS, ExecSPRetDR, etc. In my next level up, the BusinessLogic namespace, I have classes that are modeled after tables in my database: DBCountry, DBBanner, DBPerson, DBEmailProf

Re: [DOTNET] Rich client deployment over the web

2002-05-17 Thread Chris Sells
That will allow the config file to be downloaded from an ASP.NET web site, but it won't fix the problem that custom config settings are not available to the running application. Chris Sells http://www.sellsbrothers.com/ > -Original Message- > From: dotnet discussion [mailto:[EMAIL PROTEC

[DOTNET] Callback How to

2002-05-17 Thread Chris Lang
Hi to you all, we got a ServicedComponent .Net in COM+. The COM+ application is a server application (out of process calls). This component is a singleton object using the shared property manager to keep data in memory. What we want to be able to do is passing a function pointer (or an interfac

Re: [DOTNET] How to : WinForms Recently Used File List ?

2002-05-17 Thread Chris Sells
Actually, Genghis is about to get that. Mike has a demo if you'd like to contact him directly. Chris - Original Message - From: "Gudmundsson, Tómas" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, May 17, 2002 12:17 AM Subject: [DOTNET] How to : WinForms Recently Used File List

Re: [DOTNET] Is this program conforming?

2002-05-17 Thread Jim Arnold
[From the SDK docs] "A local variable named 'var' cannot be declared in this scope because it would give a different meaning to 'var', which is already used in a 'parent or current' scope to denote something else". although you can do this legally: void Method() { { int

Re: [DOTNET] Rich client deployment over the web

2002-05-17 Thread Saurabh Nandu
This solution was posted earlier by Mark(MS) And all you need to override this behavior is a simple web.config file in the vroot containing your exe: Make sure you don't put this in an ASP.NET app as anyone will be able to download the web.config file

Re: [DOTNET] Rich client deployment over the web

2002-05-17 Thread Chris Sells
Actually, the config file *has* been downloaded, but so far I haven't been able to get the custom config sections out of it either. I think it's a bug. The work-around is to do an HTTP GET manually to pull down the config file and pull out the appropriate XML sections manually. This will also wor

Re: [DOTNET] Easy TreeView ADD Method Question

2002-05-17 Thread Truan Hick
wouldnt it be easier to just use teh parent.Nodes collection? i.e. Private Sub AddNode(ByVal node As TreeNode, Optional ByVal parent As TreeNode = Nothing) If parent Is Nothing Then 'ADD AT BOTTOM OF LIST TreeView1.Nodes.Add(node) Else 'ADD AS CHILD TO REQUESTED PARE

[DOTNET] Is this program conforming?

2002-05-17 Thread Jon Jagger
I've been trying to track down why the Microsoft C# compiler fails to compile the following program: class T { int decl; // of a field void Method() { decl++; { int decl; // of a local variable } } } The closest I can get is 14.5.2.1 Invarian

Re: [DOTNET] Accessing and editing the web.config file

2002-05-17 Thread Kirk Allen Evans
-Original Message- From: dotnet discussion [mailto:[EMAIL PROTECTED]]On Behalf Of Kerry Whelan Sent: Friday, May 17, 2002 4:12 AM To: [EMAIL PROTECTED] Subject: Re: [DOTNET] Accessing and editing the web.config file > This worked well, thankyou. Do you know how I can access and edit the

[DOTNET] Easy TreeView ADD Method Question

2002-05-17 Thread Ted Osberg
Hello All, I am having problems adding a node were I want to. I made a routine which is passed a node (a node you want to add) and a parent node to specify what to add it under. This seems straightforward, but doesn't work in cases where you are trying to add a child node to a node that has no

[DOTNET] Supporting manual loading of .NET Office COM Add-ins

2002-05-17 Thread Mike Timms
I'm developing MS Office COM Add-ins using C# and VB.NET. These work fine when registered at installation time with REGASM. However, Office COM Add-ins can also be loaded manually by the user through a dialog box. However, when you attempt to manually load a .NET dll you get the message "xxx.dl

Re: [DOTNET] AW: [DOTNET] Quick survey - do you use an editor for config files ?

2002-05-17 Thread Barrie Green
this code doesn't seem to produce anything in my version of outlook (2000), i'm in the uk, and can't get anything no matter what country i put in the restrict clause. bg -Original Message- From: Schilgen, Tobias / AUT [mailto:[EMAIL PROTECTED]] Sent: 17 May 2002 10:56 To: [EMAIL PROTECTE

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

2002-05-17 Thread Rui Dias Quintino
Hi again, One note on Business Logic and Peter thoughts. Peter, you are absolutely right, in fact in all the projects I've participated that was the case. There's no workaround for that, unless we are willing (I am not) to round trip every time, as you said. I know that not all the business logi

[DOTNET] Bug In Socket.Select() (?)

2002-05-17 Thread Lidor Wyssocky
Hi All, Can someone please confirm that the following is a bug? I've searched both this list and the regular .NET list, and in Microsofts KB, and didn't find any reference to this behavior: When calling Socket.Select method with a timeout, and the *timeout expires*, an exception is thrown of typ

[DOTNET] Dynamic XmlAttributes once again

2002-05-17 Thread Łukasz Wielek
Now I have : public class Test { [XmlAttribute("id")] public int id; public Test(){} /*...*/ } public class Subclass : Test { public Subclass(){} /*..*/ } public class Subclass1: Test { public Subclass1(){} /*..*/ } Suppose I have a table of Test objects. I want s

Re: [DOTNET] AW: [DOTNET] Code from nowhere

2002-05-17 Thread Brady Kelly
Or just leave them there. Are they hurting anybody? -Original Message- From: Urs Eichmann [mailto:[EMAIL PROTECTED]] Sent: 15 May 2002 10:31 To: [EMAIL PROTECTED] Subject: [DOTNET] AW: [DOTNET] Code from nowhere Just delete them. If they are needed, the compiler will report it. Urs -

[DOTNET] AW: [DOTNET] Quick survey - do you use an editor for config files ?

2002-05-17 Thread Schilgen, Tobias / AUT
we use xmlspy for manipulating config files... (see www.xmlspy.com) Tobias. > How are you guys handling large config files? Do you use a > basic xml editor > or some other utility prog? > > Just a quick survey to see what's out there ('cause my searches didn't > reveal much). > > Thanks, > Aar

[DOTNET] Quick survey - do you use an editor for config files?

2002-05-17 Thread Aaron Fanetti
How are you guys handling large config files? Do you use a basic xml editor or some other utility prog? Just a quick survey to see what's out there ('cause my searches didn't reveal much). Thanks, Aaron You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to oth

Re: [DOTNET] get Holidays in an Year (Mike Thanks)

2002-05-17 Thread Fernando, Chaminda non Unisys
Thank you very much. It works perfectly mcdf -Original Message- From: Mike Timms [mailto:[EMAIL PROTECTED]] Sent: Donnerstag, 16. Mai 2002 22:33 To: [EMAIL PROTECTED] Subject: Re: [DOTNET] get Holidays in an Year On Tue, 14 May 2002 03:40:48 -0500, Fernando, Chaminda non Unisys <[EMAIL

[DOTNET] Rich client deployment over the web

2002-05-17 Thread Richard Case
Hi All, We are looking to deploy our rich client app over the web. The download of the assembly into the download cache and the showing of the form works fine. Along with the app we have got a configuration file (also contained in the virtual directory of the webserver) that holds configuration

[DOTNET] ASP.NET: programmatically reading machine.config settings

2002-05-17 Thread John Daintree
Hello All, How should I programmatically retrieve a value that may have been set in machine.config, or may have been set in my own application's web.config file? Specifically I want to be able to find the value for responseDeadlockInterval at runtime, but without the hassle of having to use XmlP

Re: [DOTNET] Web service problem: Server application not availabl e

2002-05-17 Thread Chris Anderson
The process model section it discusses is located in machine.config (\WINNT\Microsoft.NET\Framework\v1.0.3705\CONFIG) It defaults to "machine", which uses a low priviledge user "ASPNET" We had problems doing this in a domain controller as well, and as we were deploying to an intranet serving a co

Re: [DOTNET] Accessing and editing the web.config file

2002-05-17 Thread Kerry Whelan
This worked well, thankyou. Do you know how I can access and edit the settings in system.web section? Thanks, Kerry On Thu, 16 May 2002 09:32:10 -0400, Kirk Allen Evans <[EMAIL PROTECTED]> wrote: >Kerry, >The web.config (and exename.config) file is an XML file, so you can load >the X

Re: [DOTNET] Does anyone know how to trigger an event based on a timechange?

2002-05-17 Thread Peter Foreman
--- David Brown <[EMAIL PROTECTED]> wrote: > Designing a little clock .Net beastie. I'm unable to determine how, if even > possible, to have .Net tell me when the system clock updates (specifically, the > second). Currently I have a simple WinForm Timer object at 100ms and checking > the DateTime.

Re: [DOTNET] Attributes question

2002-05-17 Thread Ian Griffiths
"Kirk Jackson" <[EMAIL PROTECTED]> wrote: > I was looking at the "Attribute Based Validation" examples > on the newtelligence website > (http://www.newtelligence.com/news/AttributeBasedValidation.aspx), > which made me wonder about how attributes work... > > I know that you can declare attributes

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

2002-05-17 Thread Ian Griffiths
I'm guessing there is no property on the form to give you this because as the documentation says, the MdiClient class "supports the .NET infrastructure and is not intended to be used directly from your code." So it's not intended for public consumption. There's not even any guarantee that it wil

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

2002-05-17 Thread Sinnott, John
So then why have a business tier at all? If you are going to place all logic in a single stored procedure, or a single method call (that does not call other methods) you will have no modularity whatsoever. -Original Message- From: Craig Andera [mailto:[EMAIL PROTECTED]] Sent: Wednesday,

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

2002-05-17 Thread Peter Foreman
Inline: --- Rui Dias Quintino <[EMAIL PROTECTED]> wrote: > -Team A develops some SuperTransactional method, using ADO.Net and SQL > transactions, no COM+/DTC overhead. Team A is not aware if this method will > or will not be used by other classes/methods developed by Team B,C,E (in > Enterpri