Re: [DOTNET] ANNC: C# Book Free For Download

2002-05-07 Thread Ben Kloosterman
Looks good , though I will persist in using my global static Clientconfig class :-) I know you are talking about C# but it is pretty hard to do this without some .NET features ( Maybe a C# in .NET chapter) . Though you do mention the Forms and controls. I did not see anything on Remoting ? I thn

[DOTNET] Visual Studio Bug?, Assembly loaded more than once in AppDomain

2002-05-07 Thread Ralf Heitmann
When I drop my own UserControl (implemented in Assembly A) onto my Form (Assembly B) Assembly A will be loaded two times into the Visual Studio AppDomain. Further Infos: The UserControl has custom Root Designers, custom designers and editors which are also implemented in Assembly A. Nothing speci

Re: [DOTNET] Visual Studio Bug?, Assembly loaded more than once in AppDomain

2002-05-07 Thread Ben Kloosterman
I sometimes get weird things like this most of it is due to versioning problems as the original assembly wants an older version ( it does notupdate until you read add the object to the control) . If you write a batch file to compile things I doubt you will have any trouble, Speaking of which has

[DOTNET] Todd Gray/HO/Farmers/USA/Zurich is out of the office.

2002-05-07 Thread Todd Gray
I will be out of the office starting 05/06/2002 and will not return until 05/20/2002. If you have any questions, please contact Leland Courtney ([EMAIL PROTECTED]). **Disclaimer** This Memo and any attachments, may be confidential and legally privileged. If you are not the intended r

[DOTNET] Positioning calendar controls dynamically

2002-05-07 Thread george antony
Hi all I want to place a calendar control next to a image button in a panel dynamically. I am not able to get the image button's left and top postion. Even If I place the calendar control some how it is not overlapping other controls. pls tell me a way to do it thanks george ___

Re: [DOTNET] CSharp and optional parameters

2002-05-07 Thread Richard Birkby
If the parameter expects a By Reference System.Object, is it possible to pass a variant of Type.Missing? For example: Is it possible to use Type.Missing with ShDocVw's Navigate method? axWebBrowser1.Navigate("http://www.google.com/";,

Re: [DOTNET] ASP.NET's Application object: does it scale?

2002-05-07 Thread Ian Griffiths
According to Microsoft, the www.microsoft.com web site gets 20 million page views per day[1]. That's some 4 million short of your definition of large. (Remember that they have an international audience, so their usage patterns are not compressed into an 8 hour space.) So you're saying that www.m

Re: [DOTNET] ASP.NET's Application object: does it scale?

2002-05-07 Thread Thomas Tomiczek
Ian, Inline... -Original Message- From: Ian Griffiths [mailto:[EMAIL PROTECTED]] Sent: Dienstag, 7. Mai 2002 11:18 To: [EMAIL PROTECTED] Subject: Re: [DOTNET] ASP.NET's Application object: does it scale? According to Microsoft, the www.microsoft.com web site gets 20 million page views

Re: [DOTNET] ASP.NET's Application object: does it scale?

2002-05-07 Thread Richard Birkby
Ian Griffiths wrote: > > (5). A million an hour is definitely (6), but how many of those > are there? > Not even Microsoft get a million page views an hour on average. The BBC 'only' gets 0.5 million page impressions per hour, averaged out across a year. http://support.bbc.co.uk/support/mrtg/a

Re: [DOTNET] ASP.NET's Application object: does it scale?

2002-05-07 Thread Ian Griffiths
...although according to Nielsen/netratings (the very authority Yahoo! quote to back up their figures) Yahoo!'s are making inflated claims... That page on Yahoo!'s web site reports 237 million unique users worldwide, but netratings say it was under 60 million. Yahoo! claim that netratings say th

Re: [DOTNET] ASP.NET's Application object: does it scale?

2002-05-07 Thread Thomas Tomiczek
Well, Ian, a last rundown :-) -Original Message- From: Ian Griffiths [mailto:[EMAIL PROTECTED]] Sent: Dienstag, 7. Mai 2002 12:09 To: [EMAIL PROTECTED] Subject: Re: [DOTNET] ASP.NET's Application object: does it scale? <...> What's your measure of 'traffic' by the way? You seem to be

Re: [DOTNET] Visual Studio Bug?, Assembly loaded more than once in AppDomain

2002-05-07 Thread Ralf Heitmann
This is definitly no versioning problem, because the version numbers are not incremented. Assembly A has one static version number and exists only one time on my hard disk. The loaded assemblies in AppDomain show identical Version numbers, Names, Cultures, PublicKeyTokens and CodeBase. I cannot un

[DOTNET] load an aspx on right side

2002-05-07 Thread Ricardo Figueira
Friends, See this webpage layout: 1- Top (webcontrol .ascx) 2- Menu (webcontrol .ascx ) 3- Rigth Side - principal (webform .aspx) ___ (1) | -- | | | |

[DOTNET] Convert Hex to Decimal

2002-05-07 Thread Powell, Simon
Hi, I have a text box that excepts a hex value. How do I then convert to uint32 to pass to an API? Below is a code snippet: private void button1_Click(object sender, System.EventArgs e) { if(this.textBox1.Text == "") {

Re: [DOTNET] load an aspx on right side

2002-05-07 Thread Richard Birkby
Use an IFRAME for area (3). > -Original Message- > From: dotnet discussion [mailto:[EMAIL PROTECTED]]On Behalf Of > Ricardo Figueira > Sent: 07 May 2002 11:49 > To: [EMAIL PROTECTED] > Subject: [DOTNET] load an aspx on right side > > > Friends, > > See this webpage layout: > > 1- Top (web

Re: [DOTNET] Convert Hex to Decimal

2002-05-07 Thread Richard Birkby
UInt32 MyInt=System.UInt32.Parse(textBox1.Text, NumberStyles.HexNumber); Richard > -Original Message- > From: dotnet discussion [mailto:[EMAIL PROTECTED]]On Behalf Of > Powell, Simon > Sent: 07 May 2002 11:07 > To: [EMAIL PROTECTED] > Subject: [DOTNET] Convert Hex to Decimal > > > Hi, >

Re: [DOTNET] load an aspx on right side

2002-05-07 Thread Ricardo Figueira
Hi Richard, Can you explain that, with more details ? Have you got any example or do you know any article that explain that ? Thanks ;P Best regards, Ricardo Figueira -Original Message- From: Richard Birkby [mailto:[EMAIL PROTECTED]] Sent: terça-feira, 7 de Maio de 2002 12:05 To: [EMAI

Re: [DOTNET] load an aspx on right side

2002-05-07 Thread Richard Birkby
Sure. Save the following HTML to a .html file, then load it into Internet Explorer Area 1 Area 2Area 3http://www.google.com/";> You'll see that I've directed the right hand side of the page to another web site. Instead of Google, this could be another one of your aspx pages. Richard >

Re: [DOTNET] load an aspx on right side

2002-05-07 Thread Ricardo Figueira
humm, There is any possibility to do that in an template page. -Original Message- From: Richard Birkby [mailto:[EMAIL PROTECTED]] Sent: terça-feira, 7 de Maio de 2002 12:15 To: [EMAIL PROTECTED] Subject: Re: [DOTNET] load an aspx on right side Sure. Save the following HTML to a .html f

Re: [DOTNET] Convert Hex to Decimal

2002-05-07 Thread Simon Robinson
You need to call uint.Parse(): uint i = uint.Parse(textBox1.Text, System.Globalization.NumberStyles.AllowHexSpecifier); Note that this method expects the plain number - eg. "20" will convert to 32, while "0x20" will throw an exception so you will want to check and strip off any leading "0x" f

[DOTNET] write Excel file from VB.NET

2002-05-07 Thread Fernando, Chaminda non Unisys
Hi all, I want to write Excel file from VB.NET In there, I want to write data into cells from VB.NET at run time. pls tell me how can I do that ? Thank you, mcdf. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor li

Re: [DOTNET] write Excel file from VB.NET

2002-05-07 Thread Pierre Greborio
May here you can find something usefull: http://www.c-sharpcorner.com/Code/2002/Jan/CreateExcelSheetGAG.asp Pierre --- Pierre Greborio [EMAIL PROTECTED] http://www.pierregreborio.it --- -Original Messa

[DOTNET] prohibit window from moving by mouse

2002-05-07 Thread Alois Reisinger
Hi everyone, I have a form that is programmatically attached to my glue i a way like you can see below. This works fine. The glued window moves along with the "parent" one. But what i try to move the glued window itself with the mouse, it produces some awful flicker, although it stayes at its

Re: [DOTNET] Convert Hex to Decimal

2002-05-07 Thread Powell, Simon
Thanks for your help. Simon -Original Message- From: Richard Birkby [mailto:[EMAIL PROTECTED]] Sent: 07 May 2002 12:09 To: [EMAIL PROTECTED] Subject: Re: [DOTNET] Convert Hex to Decimal UInt32 MyInt=System.UInt32.Parse(textBox1.Text, NumberStyles.HexNumber); Richard > -Original

Re: [DOTNET] prohibit window from moving by mouse

2002-05-07 Thread John St. Clair
Alois, Search in the list archive[1] for "double buffering" -- in particular, Chris Anderson has a post linking to a nice sample at www.gotdotnet.com John [1] Search at: http://discuss.develop.com/archives/wa.exe?S1=DOTNET -Original Message- From: dotnet discussion [mailto:[EMAIL PR

Re: [ADVANCED-DOTNET] Java / .Net interfaces via XML serialization?

2002-05-07 Thread Philip Nelson
--- Peter Golde <[EMAIL PROTECTED]> wrote: > Isn't SOAP such an effort? ;-) The downside is that even though there has been talk about the independence of the transport, wsdl and particularly uddi have a very web centric view. While soap is in thoery more transport agnostic, pretty much all the

Re: [DOTNET] Csc problems with using statements

2002-05-07 Thread Adam Senn
Adam In all of our C# source files, the using statements are outside of the namespace. We use primarily makefiles [which call csc] along with a few instances of nant to build our projects and I've never needed to move the using statements into the namespaces. Perhaps some needed references were m

Re: [DOTNET] Why does Substring() throw?

2002-05-07 Thread David Ferguson
I would never hard code a call like this. string x = s.Substring(0, 999); // should return "test", not throw string x = s.Substring(0, -1 ); // should return Empty , not throw That would be silly. However, these calls occur due to inline computation. string x = s.Substring(FindSt

Re: [DOTNET] Why does Substring() throw?

2002-05-07 Thread Duncan Godwin
In situations such as you are suggestiong below wouldn't regular expressions just be simpler and cleaner? Duncan - Original Message - From: "David Ferguson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, May 07, 2002 1:57 PM Subject: Re: [DOTNET] Why does Substring() throw?

[ADVANCED-DOTNET] Help Architecting A Middle Tier

2002-05-07 Thread Jerry Abbott
Our company is a ecommerce company. We currently have no middle tier. We are looking into moving most all of our business logic into a middle tier. The middle tier will need to communicate with both our internet and our intranet (which consists of a 300 person call center and more ). We were pl

Re: [DOTNET] CSharp and optional parameters

2002-05-07 Thread David Ferguson
You can use overloading to simulate default/optional parameters. void foo() { foo("defaulted"); } // calls the one argument version void foo(string s) { foo(s, 10); } // calls the main function void foo(string, int i) {} David - Original Message - From: "Kirk Jac

Re: [DOTNET] Why does Substring() throw?

2002-05-07 Thread Paul Gunn
David, Why don't you simply write your own Substring function (call it SubstringNothrow or SafeSubstring, whatever) that encapsulates the behavior your are looking for. Then you would only have to write your little 'if' block once. Paul Gunn - Original Message - From: "David Ferguson"

Re: [DOTNET] Why does Substring() throw?

2002-05-07 Thread Richard Birkby
David Ferguson wrote: > > Consider > StreamReader.ReadLine() for example. It returns null if you are at > the end of the stream. It would not be as convenient to use 'in its > typical application' if it threw an exception. Reading the EOL value is not an exceptional situation. It is an unexcept

Re: [DOTNET] prohibit window from moving by mouse

2002-05-07 Thread Alois Reisinger
-Original Message- From: John St. Clair [mailto:[EMAIL PROTECTED]] >Search in the list archive[1] for "double buffering" -- in particular, Hi John, Well, maybe this is what I mean, but i´m not sure if this is what I need. All I want to do is set the form to a mode, where no user can do c

[DOTNET] HOWTO: Create object from type?

2002-05-07 Thread Henrik Enemark Rasmussen
Hello all, In C#, how can I create an object whoose type is not known until run-time? I need something similar to MFC's "RUNTIME_CLASS(CXxx).CreateObject()". I expect it to look something like this, where the method will then create an instance of the class and work with it. public void ShowDia

Re: [DOTNET] HOWTO: Create object from type?

2002-05-07 Thread Greg Reinacker
You can use Activator.CreateInstance(Type) Or one of the other overloads if you need to pass in constructor parameters. Greg Reinacker Reinacker & Associates, Inc. http://www.rassoc.com -Original Message- From: dotnet discussion [mailto:[EMAIL PROTECTED]] On Behalf Of Henrik E

Re: [DOTNET] prohibit window from moving by mouse

2002-05-07 Thread Rama Krishna
Try handling WM_NCHITTEST in WndProc of the GluedWindow like this protected override void WndProc(ref System.Windows.Forms.Message m) { if (m.Msg == 0x0084) //WM_NCHITTEST { base.WndPro

Re: [DOTNET] HOWTO: Create object from type?

2002-05-07 Thread Pierre Greborio
You can use Activator.CreateInstance Pierre --- Pierre Greborio [EMAIL PROTECTED] http://www.pierregreborio.it --- -Original Message- From: dotnet discussion [mailto:[EMAIL PROTECTED]] On Behalf Of

Re: [DOTNET] HOWTO: Create object from type?

2002-05-07 Thread Ethan Smith
You can use the System.Activator class, or reflection to get the particular constructor you want, then invoke that constructor. -Original Message- From: dotnet discussion [mailto:[EMAIL PROTECTED]] On Behalf Of Henrik Enemark Rasmussen Sent: Tuesday, May 07, 2002 9:21 AM To: [EMAIL PROTEC

Re: [DOTNET] prohibit window from moving by mouse

2002-05-07 Thread Ian Griffiths
Is removing the title bar an option? You could set the FormBorderStyle to none. Users will then have difficulty moving your window. The problem then of course is that your window will not have a normal title bar... Unfortunately, if you leave the title bar present, it looks like Windows Forms

[DOTNET] How to specify parameters to an executable in a hyperlink?

2002-05-07 Thread Andy Elmhorst
I have an executable that runs from the web server as an executable like this: Run the app How would I specify command line parameters to the application? Thanks Andy You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://dis

Re: [DOTNET] ASP.NET's Application object: does it scale?

2002-05-07 Thread Murphy, James
This is an interesting example of performance measurement being relative and subjective...but to help drag this back to the question at hand... I think the Application/Session caching mechanisms are stigmatized by their legacy. I remember that in classic ASP the Application and Session objects w

Re: [DOTNET] prohibit window from moving by mouse

2002-05-07 Thread Henrik Enemark Rasmussen
Just a little comment. The WM_NCHITTEST solution is ok, but I don't think it prevents the user from using other means of moving the window, i.e. by cascading or tiling windows. Regards Henrik > -Original Message- > From: Ian Griffiths [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, May 07,

Re: [DOTNET] prohibit window from moving by mouse

2002-05-07 Thread Alois Reisinger
-Original Message- From: Henrik Enemark Rasmussen [mailto:[EMAIL PROTECTED]] Sent: Dienstag, 07. Mai 2002 16:03 Subject: Re: [DOTNET] prohibit window from moving by mouse >Just a little comment. >The WM_NCHITTEST solution is ok, but I don't think it >prevents the user from using other me

[DOTNET] Finding out User's Home Dir

2002-05-07 Thread Jan Dropczynski
Hi all, how can I find out the user's home directory in C#? I have a win application that stores a config file that should be placed in user's home directory. Is there a static method or so that delivers me the directory path? Thanks and Regards, Jan Dropczynski Software-Engineer THONA Consultin

[DOTNET] Different acees for set and get property accessors

2002-05-07 Thread Rama Krishna
I want to have different access for set and get property accessors. Is there anyway to do that in C#. Ideally I want to do something like Property int MyProp { public get { } protected set { } } But the above code doesnot work, So I have to resort

Re: [DOTNET] Csc problems with using statements

2002-05-07 Thread Sills, Adam
Yeah, everything builds perfectly in VS.NET, and Nant is happy after I move the using statements (the references are all there, it just doesn't like where the using statements are). I've tracked down exactly which using statements this does happen on...It only ever happens on classes that are "us

Re: [DOTNET] Why does Substring() throw?

2002-05-07 Thread Simon Robinson
Actually it's debatable whether your preferred behavior of SubString() is reasonable. If SubString() didn't throw an exception, then your quoted C# code: string x = s.Substring(0, s.IndexOf('=') ).Trim().ToUpper(); would fail to distinguish between '=' being the first character and '=' not being

Re: [DOTNET] Different acees for set and get property accessors

2002-05-07 Thread Thomas Tomiczek
Not in C#. Not defined as valid in the language specs - get and set need the same protection level. Actually not possible in any CLS compliant class. Regards Thomas Tomiczek THONA Consulting Ltd. (Microsoft MVP C#/.NET) -Original Message- From: Rama Krishna [mailto:[EMAIL PROTECTED]]

Re: [DOTNET] Finding out User's Home Dir

2002-05-07 Thread Rama Krishna
System.Windows.Forms.Application.LocalUserAppDataPath is one I know of. But it gives a very weird path, the path is appended with the application version. So different versions of the application would have different paths -Original Message- From: Jan Dropczynski [mailto:[EMAIL PROTECTED]

Re: [DOTNET] Finding out User's Home Dir

2002-05-07 Thread Rama Krishna
There is also Environment.GetSpecialFolderPath(System.Environment.SpecialFolder.LocalA pplicationData) Which you could use. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.

[DOTNET] Confusion about the Type system...

2002-05-07 Thread Shawn Wildermuth
Please help me understand this stuff. I am missing something important... If anyone knows of a good reference/description of the type system, I'd really appreciate a link. Here is my problem: I have a system where I have a base class (called Profile) that knows how to store itself in the datab

Re: [DOTNET] prohibit window from moving by mouse

2002-05-07 Thread Alois Reisinger
>Just a little comment. >The WM_NCHITTEST solution is ok, but I don't think it >prevents the user from using other means of moving the >window, i.e. by cascading or tiling windows. >(take this for the above sentences also: *grin*) >not possible? I have to try this out) Well, unfortunatly, I

Re: [DOTNET] prohibit window from moving by mouse

2002-05-07 Thread Jacob Grass
> So I tried Ian´s out solution. This one doesn´t even allow a > code-driven change of location and size. > So, well, it´s up to me to try out a combination of this all... > You should be able to add a boolean to Ian's solution that tracks if your function was called to change the location or

Re: [DOTNET] Multithreaded v. Singlethreaded

2002-05-07 Thread franklin gray
[STAThread] is required if your app is run from IE, correct? If so, is MS putting out a browser that doesn't require this? -Original Message- From: Ian Griffiths [mailto:[EMAIL PROTECTED]] Sent: Monday, May 06, 2002 7:06 PM To: [EMAIL PROTECTED] Subject: Re: [DOTNET] Multithreaded v. Si

Re: [DOTNET] prohibit window from moving by mouse

2002-05-07 Thread Rama Krishna
In order to fix resize flicker handle other WM_NCHITTEST cases like HTBORDER, HTSIZE. This would not allow the resize. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.

Re: [DOTNET] Confusion about the Type system...

2002-05-07 Thread Murphy, James
Would a custom interface get you out of the weeds? Then just require a parameterless ctor that initializes fields to benign values and call the interface .Init/Create etc. BTW, this wouldn't be an Object/Relational mapping layer would it? Jim > -Original Message- > From: Shawn Wildermu

Re: [DOTNET] RFC: COM "Smart Pointer" for .NET

2002-05-07 Thread Brad Wilson
Peter Stephens wrote: > So I made a wrapper object that implements IDisposable and then calls > Marshal.ReleaseComObject(...) on Dispose(). I think it's nearly criminal () that the .NET team didn't add Dispose() support automatically on generated COM wrappers! > // Properties >

Re: [DOTNET] prohibit window from moving by mouse

2002-05-07 Thread John Daintree
You might want to look at WM_SYSCOMMAND with a SC_MOVE or SC_SIZE in wParam. Also take a look at WM_WINDOWPOSCHANGING. - Original Message - From: "Rama Krishna" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, May 07, 2002 3:38 PM Subject: Re: [DOTNET] prohibit window from movi

[DOTNET] Handling Browser-Disabled Client Script (Was: ViewState uses control hierarchy?)

2002-05-07 Thread Constance J. Petersen
At 03:35 PM 5/5/2002 -0700, Zane Thomas wrote: >> I'm aware that such techniques exist, but that's about it. They're on my >> list to look into. I don't know anything about their complexity or >> reliability. Have any pointers for me? > >Nope - but I'll bet someone here knows all about it. :-) I

Re: [DOTNET] Finding out User's Home Dir

2002-05-07 Thread Jan Dropczynski
Hi Rama, many thanks for your help! That's what I have looked for. Regards, Jan You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.

Re: [DOTNET] write Excel file from VB.NET

2002-05-07 Thread McClellan, Jay
If you just want an easy way to get data into Excel, you can write your data to a tab-separated text file and Excel will happily open it as a spreadsheet. It's not at all elegant but it's very simple. Jay -Original Message- From: Fernando, Chaminda non Unisys [mailto:[EMAIL PROTECTED]]

[DOTNET] IBM and MS: "Security in a Web Services World"

2002-05-07 Thread Duncan Smart
Just posted to MSDN: "A Joint White Paper from IBM Corporation and Microsoft Corporation" http://msdn.microsoft.com/library/en- us/dnwssecur/html/securitywhitepaper.asp Might be an interesting read... once you get past all of the legalese, such as: ...THERE IS NO WARRANTY OR CONDITION OF TITLE,

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

2002-05-07 Thread Peter Foreman
--- Jerry Abbott <[EMAIL PROTECTED]> wrote: > Our company is a ecommerce company. We currently have no middle tier. We > are looking into moving most all of our business logic into a middle tier. > The middle tier will need to communicate with both our internet and our > intranet (which consists

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

2002-05-07 Thread Steve Miller
You might want to take a looke at the book, .NET e-Business Architecture (ISBN: 0672322196). It has an end-to-end sample e-commerce application included with it. The book is a text on n-tier architectures using .NET. Steve Miller You can read messages from the Advanced DOTNET archive, unsubscr

Re: [DOTNET] Confusion about the Type system...

2002-05-07 Thread Brad Wilson
Shawn Wildermuth wrote: > 1. Specify in my base class that a constructor style is required (like > marking it abstract, but C# doesn't support this of course) > .or. > 2. Create objects of the Type of my base class and at runtime, up-cast > them to the new type. As ugly as it sounds, I would say

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

2002-05-07 Thread Craig Andera
> Inline :-) And do yourself a favor and get some serious consulting. +1. I would go so far as to say that your chances of failure exceed 50% if you plan to have this done in the next two years *unless* you get some serious help. And not a body shop like whatever Anderson is calling itself these

Re: [ADVANCED-DOTNET] Java / .Net interfaces via XML serialization?

2002-05-07 Thread Duncan Godwin
This product provides bridge between the .NET and Java world using Remoting. http://www.intrinsyc.com/products/bridging/janet.asp Duncan - Original Message - From: "Watkins, Bill" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, May 07, 2002 12:27 AM Subject: [ADVANCED-DOTNET]

Re: [DOTNET] Csc problems with using statements

2002-05-07 Thread Brad Wilson
Sills, Adam wrote: > class GreatLand.Core.DataManager {} [...] > using GreatLand.Core.Data; If this isn't a typo, then what you really wanted was: using GreatLand.Core; There doesn't seem to be a GreatLand.Core.Data namespace anywhere. Brad -- Read my web log at http://www.quality.nu/dotn

Re: [DOTNET] Csc problems with using statements

2002-05-07 Thread Sills, Adam
It was a Typo. That should be: class GreatLand.Core.Data.DataManager And like I said, it compiles perfectly in VS.NET, but not with CSC (until I move the using statements). The point is relatively moot, I have NAnt retrieving all the new files from sourcesafe, then I have a script task that move

[DOTNET] Namespace issues with Web Reference

2002-05-07 Thread Don McNamara
I've hit a strange issue (bug?) and couldn't find anything on it in the archives. If I have a DLL and a Web Reference that share a root namespace, like this: DLL Namespace: MyCompany.MyDivision.MyClass Web Reference Name: MyCompany.MyDivision.WebReferenceName The DLL Namespace gets clobbered an

[DOTNET] Session Management in Web Services

2002-05-07 Thread Tewari, Vijay
In the case of Web Services what is the support for session state management. I read about the support for session state management in ASP.NET web apps but was not sure how or if that is applicable to web services. What I wan to be able to do is to be able to call a web method multiple times with

Re: [DOTNET] prohibit window from moving by mouse

2002-05-07 Thread Alois Reisinger
-Original Message- From: Rama Krishna [mailto:[EMAIL PROTECTED]] Sent: Dienstag, 07. Mai 2002 15:32 To: [EMAIL PROTECTED] Subject: Re: [DOTNET] prohibit window from moving by mouse >Try handling WM_NCHITTEST in WndProc of the GluedWindow like this Hi there! Well, looks odd, but works wel

Re: [DOTNET] Session Management in Web Services

2002-05-07 Thread Rama Krishna
If you apply the attribute like this, [WebMethod(EnableSession=true)] void MyWebMethod(); MyMethod would have session information. Looks at docs for WebMethodAttribute and EnableSession property -Original Message- From: Tewari, Vijay [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 07, 200

Re: [DOTNET] Session Management in Web Services

2002-05-07 Thread Jeremy Hopkin
You want to implement either (in your webservice class): System.Web.SessionState.IReadOnlySessionState or System.Web.SessionState.IRequiresSessionState For readonly or readwrite session state respectively. Jeremy > I read about the support for session state management in ASP.NET >web ap

Re: [DOTNET] Session Management in Web Services

2002-05-07 Thread Bryan Batchelder
I believe you will need to roll your own session state... Perhaps your webservice could provide a method for starting a session/transaction? Client calls "SessionStart()" webmethod and the web service creates a GUID, stores it in a database that will be used for session state storage, and will r

[DOTNET] Shift-Tab in custom control derived from Control

2002-05-07 Thread Chris Kinsman
I have created a control that is a composite control. It derives from Control and not ContainerControl. What I have found is that if I place it on a form with several other controls I can press TAB and move the focus to it and away from it just fine. If I however press Shift-TAB the focus gets

Re: [DOTNET] Session Management in Web Services

2002-05-07 Thread Tewari, Vijay
Thanks Jeremy. I get the idea of how to maintain session on the server. Is their intrinsic support for session state on the client side, or do we have to explicitly pass the cookies around? Regards Vijay -Original Message- From: Jeremy Hopkin [mailto:[EMAIL PROTECTED]] Sent: Tuesday, Ma

Re: [DOTNET] Session Management in Web Services

2002-05-07 Thread Jeremy Hopkin
>If you apply the attribute like this, > >[WebMethod(EnableSession=true)] >void MyWebMethod(); > >MyMethod would have session information. Looks at docs for >WebMethodAttribute and EnableSession property I think Rama is right on that. IReadOnlySessionState and IRequiresSessionState are for web ha

Re: [DOTNET] Session Management in Web Services

2002-05-07 Thread Tewari, Vijay
Yes Rama is right, but my question still stands about client side support. Thanks Rama. Regards Vijay -Original Message- From: Jeremy Hopkin [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 07, 2002 8:50 AM To: [EMAIL PROTECTED] Subject: Re: [DOTNET] Session Management in Web Services >I

Re: [DOTNET] Session Management in Web Services

2002-05-07 Thread Jeremy Hopkin
>I get the idea of how to maintain session on the server. Is >their intrinsic support for session state on the client side, or do we have >to explicitly pass the cookies around? > Its automagic, and you don't have to do anything, although I admit I haven't tried it with cookies disabled, so I am a

[DOTNET] inheriting from Windows forms

2002-05-07 Thread Reggie Burnett
Can objects like Panel be visually inherited with designer support? When I am using the wizard to create a inherited user control, I browse to c:\winnt\microsoft.net\framework\vx\System.Windows.Forms.dll and choose it but no controls come up that can be visually derived from. What am I missi

Re: [ADVANCED-DOTNET] XmlSchema.Compile and XSD.exe inconsistencies

2002-05-07 Thread Justin Rudd
> AFAIK, XSD.exe doesn't use XmlSchema.Read or > XmlSchema.Compile. It uses DataSet.ReadXmlSchema > or the XmlSerializer, using only the target > namespace. I believe it would use DataSet.ReadXmlSchema if I were generating DataSets. But I would suspect that it uses XmlSchema when I pass in the

Re: [DOTNET] BUG:

2002-05-07 Thread Peter Vertes
Instead of a space try putting "%20" -Pete -Original Message- From: dotnet discussion [mailto:[EMAIL PROTECTED]]On Behalf Of Mathieu Rachlin Sent: Monday, May 06, 2002 4:19 PM To: [EMAIL PROTECTED] Subject: Re: [DOTNET] BUG: Try using a + ? -Original Message- From: Andy Elmhor

Re: [DOTNET] prohibit window from moving by mouse

2002-05-07 Thread Alois Reisinger
-Original Message- From: Ian Griffiths [mailto:[EMAIL PROTECTED]] Sent: Dienstag, 07. Mai 2002 15:49 Subject: Re: [DOTNET] prohibit window from moving by mouse >Is removing the title bar an option? You could set the FormBorderStyle to >none. Users will then have difficulty moving your

Re: [DOTNET] prohibit window from moving by mouse

2002-05-07 Thread Ian Griffiths
WM_SYSCOMMAND seems to work, and this doesn't require unsafe code. (Although it still requires overriding of WndProc, which I don't like... But I don't see how you can avoid that here.) protected override void WndProc(ref System.Windows.Forms.Message m) { // WM_SYSCOMMAND if (

Re: [DOTNET] Multithreaded v. Singlethreaded

2002-05-07 Thread Duncan Smart
No, you might be confusing it with your having to have [STAThread] specified on Main when you are *hosting* IE in your app On Tue, 7 May 2002 09:38:08 -0500, franklin gray <[EMAIL PROTECTED]> wrote: >[STAThread] is required if your app is run from IE, correct? If so, is MS putting out a browse

Re: [DOTNET] inheriting from Windows forms

2002-05-07 Thread Ian Griffiths
These classes are not marked as sealed (C#'s equivalent to final), and can be derived from. But they do not support visual inheritance. You can only use visual inheritance on Forms and UserControls. This should come as no great surprise because these are the only kinds of control you can edit v

Re: [DOTNET] Session Management in Web Services

2002-05-07 Thread Christian Weyer
For a proxy based client side approach to Web Services you will need to create a cookie container for the proxy instance. The client application' proxy uses the HttpClientProtocol classes which by default do not know about sessions. Therefore you have to enable cookie management in the client prox

Re: [DOTNET] Displaying .tif files

2002-05-07 Thread David Glauser
Assuming that converting the files all at once is not an option, you can convert them on the fly. I wrote a little HttpHandler class that converts requests for .tif to .png format on the fly. Works for any browser that supports .png. You could use .jpg or whatever. Look up the IHttpHandler inte

Re: [ADVANCED-DOTNET] XmlSchema.Compile and XSD.exe inconsistencies

2002-05-07 Thread Justin Rudd
> Did you sepcify all the schema files on the > command line: No I did not. And yes that works. Thanks Christoph! Of course, I'm still annoyed that it didn't obey the schemaLocation of the import element. But I'm happy because I can move on! Justin You can read messages from the Advanced D

Re: [DOTNET] Multithreaded v. Singlethreaded

2002-05-07 Thread franklin gray
nope. Check the archives from Feb. -Original Message- From: Duncan Smart [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 07, 2002 11:19 AM To: [EMAIL PROTECTED] Subject: Re: [DOTNET] Multithreaded v. Singlethreaded No, you might be confusing it with your having to have [STAThread] specif

Re: [DOTNET] write Excel file from VB.NET

2002-05-07 Thread Fernando, Chaminda non Unisys
Hi All, At the moment I got some codes to write data into Excel sheet using vb.net but It give me error in code line 5 (see below) Error detail as below ::: 1. Private app As New Excel.Application() 2. Dim Workbooks1 As Workbooks 3. Workbooks1 = app.Workbooks() 4. Dim Workbook1 As O

Re: [DOTNET] Confusion about the Type system...

2002-05-07 Thread Shawn Wildermuth
Again, how do I require a parameterless ctor? This isn't legal is C#: class Foo { abstract Foo(); } That is essentially what I want. Unfortunatley, ctor's are not part of the interface of a class so I cannot require that inherited classes create ctors in a particular way. Thanks, Shawn Wild

Re: [DOTNET] Confusion about the Type system...

2002-05-07 Thread Shawn Wildermuth
No, it's not a object/relational mapping layer. The problem I have is how to require a parameterless ctor. I don't mind a two phase init, but I can't get the compiler to complain if I don't have a ctor of a specific signature. Thanks, Shawn Wildermuth [EMAIL PROTECTED] > -Original Message

[DOTNET] custom URL protocol handler

2002-05-07 Thread David B. Bitton
Java 2 allows for the definition of custom URL protocol handlers. By this, any entity that takes a URL as location for data, you can create a custom protocol (like cvs://), and your custom protocol handler would fetch the data. Can I do this in .NET? -- David B. Bitton [EMAIL PROTECTED] www.co

Re: [DOTNET] custom URL protocol handler

2002-05-07 Thread Thomas Tomiczek
Yes, this is actually a Windows functionality :-) Regards Thomas Tomiczek THONA Consulting Ltd. (Microsoft MVP C#/.NET) -Original Message- From: David B. Bitton [mailto:[EMAIL PROTECTED]] Sent: Dienstag, 7. Mai 2002 19:40 To: [EMAIL PROTECTED] Subject: [DOTNET] custom URL protocol hand

Re: [DOTNET] custom URL protocol handler

2002-05-07 Thread Marsh, Drew
David B. Bitton [mailto:[EMAIL PROTECTED]] wrote: > Java 2 allows for the definition of custom URL protocol > handlers. By this, any entity that takes a URL as location > for data, you can create a custom protocol (like cvs://), and > your custom protocol handler would fetch the data. > > Can I

Re: [DOTNET] Displaying .tif files

2002-05-07 Thread Marsh, Drew
David Glauser [mailto:[EMAIL PROTECTED]] wrote: > public void ProcessRequest(HttpContext context) > { > context.Response.Clear(); > > // Get the complete path and file > name of the image file >

Re: [DOTNET] Confusion about the Type system...

2002-05-07 Thread Marsh, Drew
Shawn Wildermuth [mailto:[EMAIL PROTECTED]] wrote: > That is essentially what I want. Unfortunatley, ctor's are > not part of the interface of a class so I cannot require that > inherited classes create ctors in a particular way. Right, you can't. This type of requirement would only be able to

  1   2   >