[DOTNET] AW: [DOTNET] Events in Winforms

2002-04-17 Thread Urs Eichmann
I don't know if there are any events fired under these circumstances, but you could find out using my EventSpy tool: http://www.gotdotnet.com/userarea/filedetails.aspx?FileName=EventSpy.zip Regards, Urs -Ursprüngliche Nachricht- Von: Alex Lehmberg [mailto:[EMAIL PROTECTED]] Gesendet:

Re: [DOTNET] Prevent UserControl from inserting in ToolBox

2002-04-17 Thread Ralf Heitmann
Unfortunately this isn't working in my case. I told not the whole story, sorry. What I'm doing is implementing a base class derived from UserControl. This class is defining several attributes for using own Designers and RootDesigners. Additionally this class defines a custom ToolboxItemFilterAttr

Re: [DOTNET] Devexpress Grid!

2002-04-17 Thread Stephen Crabb
We bought it several months ago and although the initial order took a couple of days to be processed we did get it (XtraGrid and XtraBars) and have been very pleased with it so far. We only really use XtraGrid and on a very basic level so have no experience of the support. We get regular version

[DOTNET] Client Certificate Issue

2002-04-17 Thread Roman Musil
Hi, I have webservice on IIS and I require client certificate for this service. If I use free trial personal certificate from verisign it works ok. If I use my own client certificate created in openssl it doesn't work at all. What kind of certificate is ok for IIS? How to create it in openssl? Che

Re: [DOTNET] Waiting for multiple Threads

2002-04-17 Thread Nick Wienholt
Hi Diego, If you are waiting for the threads to terminate, use Thread.Join. Otherwise, WaitHandle.WaitAll is the System.Threading equivalent to WaitForMultipleObjects. Nick - Original Message - From: "Diego Gonzalez" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, April 18,

Re: [DOTNET] Devexpress Grid!

2002-04-17 Thread Scott Densmore
I guess I have had the opposite experience with them. I bought the suite (grid and bars) with source code and except for a few minor hicups... I have been very happy with it. Of course if I don't like there stuff I just change it until a fix comes along. I am sorry to hear that you are having so

Re: [DOTNET] Devexpress Grid!

2002-04-17 Thread Dan Souk
Sorry to hear about your disappointment. I've been giving DevEx (the entire suite on subscription) serious consideration. Care to chat OTL? -Original Message- From: dotnet discussion [mailto:[EMAIL PROTECTED]] On Behalf Of franklin gray Sent: Wednesday, April 17, 2002 6:53 PM To: [EMAIL P

Re: [DOTNET] ASP custom web control with Button

2002-04-17 Thread Erick Thompson
As always, a few minutes after I sent the message I figured it out. I needed to implement INamingContainer. I seem to be having a string of obvious answer type of questions this week :) Erick - Original Message - From: "Erick Thompson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: W

Re: [DOTNET] Architecture Question

2002-04-17 Thread Tom Archer
To follow onto Bill's provided links, there is very little that has changed in regards to how you partition your n-tier application. The majority of the benefits (and what you should especially pay attention to in the Bill links provided) are the issues of packaging, deployment, versioning securit

[DOTNET] ASP custom web control with Button

2002-04-17 Thread Erick Thompson
How can I use a Button object in my custom control and be able to handle the click event? I feel like I must be missing something obvious here. I can render a button directly in HTML, and I can capture that click event, but I need to embed WebControl objects and handle events from them. The code I

Re: [DOTNET] newbie question: How to read AssemblyTitle assembly attribute

2002-04-17 Thread Sean Greer (SBI-Chico)
That code was off the top of my head, so there may (is?) a better way. Regarding the compiler error, it wants a Type, therefore you need to pass typeof(AssemblyTitleAttribute) for the second parameter. I haven't tried the method that you're attempting, but that should appease the compiler. HTH,

Re: [DOTNET] Devexpress Grid!

2002-04-17 Thread franklin gray
Well, from all the recommendation I got about DevExpress's XtraGrid, we bought it. I am sad to say that I am not impressed with the company. The help files seem to be missing a lot and part the examples don't work. The only support they have is through an email, which if I get a response, it

Re: [DOTNET] newbie question: How to read AssemblyTitle assembly attribute

2002-04-17 Thread Ross Lambert
Sean, Thank you, your code worked nicely. It just seemed to me that something like this: Assembly asm = typeof(MyClass).Assembly; AssemblyTitleAttribute ata = Attribute.GetCustomAttribute(asm, AssemblyTitleAttribute); string

[DOTNET] Devexpress Grid!

2002-04-17 Thread Rolls, Robert
Hi all, Has anybody here had any difficulty dealing with devExpress - I attempted to make a Amex purchase of there XtraGrid Suite online didn't receive any notification of my order being actually accepted - I've even tried mailing with no response. Gee this is all I need now having to track the c

Re: [DOTNET] Sample Code

2002-04-17 Thread Federico Mesplet
You can find it under Enterprise Samples folder in your Microsoft = Visual Studio .NET directory. Duwarmish is a good sample. -Original Message- From: dotnet discussion [mailto:[EMAIL PROTECTED]]On Behalf Of Cameron Cameron Sent: Wednesday, April 17, 2002 12:26 AM To: [EMAIL PROTECTED] Su

Re: [DOTNET] Fileio Access to path denied

2002-04-17 Thread Shawn Wildermuth
Didn't see if anyone answered this yet, but this usually happens to me when I am running a webservice/page. I am running the security context of the spawned ASP.NET process (can't remember what it's called again). I suggest you impersonate a fully-trusted user to do this. Alternatively, you can c

Re: [DOTNET] Problem loading xslt

2002-04-17 Thread Weakliem, Gordon
Yipes. Guess I better turn off intellisense too... > -Original Message- > From: Vadim Melnik [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, April 17, 2002 1:49 PM > To: [EMAIL PROTECTED] > Subject: Re: [DOTNET] Problem loading xslt > > > Hello, > > One more correction - element doesn't >

Re: [DOTNET] Waiting for multiple Threads

2002-04-17 Thread Marsh, Drew
Diego Gonzalez [mailto:[EMAIL PROTECTED]] wrote: > Is there any way to wait for multiple running Threads? I will > call WaitForMultipleObjects, but there is no way to get the > thread handle. Check out System.Thread::Join and this thread[1] in the archives. HTH, Drew [1] http://discuss.develop

Re: [DOTNET] .NET testing tools

2002-04-17 Thread Brad Wilson
Brent E. Rector wrote: > Ahh, don't let anyone brow-beat you into not testing as you wish. Unit > testing is simply a mechanism to help improve the quality of the > software you write. It's but one tool. I'm not saying don't test private things, but definitely don't _only_ test private things. T

Re: [DOTNET] Problem loading xslt

2002-04-17 Thread Vadim Melnik
Hello, One more correction - element doesn't have "name" attribute, probably there should be "select" one, e.g.: ... ... Best regards, Vadim Melnik _ http://www.docsultant.com/ - Original Message - From: "Erick Thompson" <[EMAIL PROTECTED]> Sent: Wednesday, April

[DOTNET] Waiting for multiple Threads

2002-04-17 Thread Diego Gonzalez
Is there any way to wait for multiple running Threads? I will call WaitForMultipleObjects, but there is no way to get the thread handle. Diego You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.

Re: [DOTNET] .NET testing tools

2002-04-17 Thread Brent E. Rector
Ahh, don't let anyone brow-beat you into not testing as you wish. Unit testing is simply a mechanism to help improve the quality of the software you write. It's but one tool. Anytime I've a method that's reasonably complex, I like to test it thoroughly in isolation while my understanding of it is

Re: [DOTNET] .NET testing tools

2002-04-17 Thread Dean Cleaver
Yeah - fair point. I guess it was just the validate password function that got me wondering - I wanted to test my logic (given I am an ex-VB programmer, and wanted to ensure my string handling in C# was correct) but without creating these users and roles for the thread context etc such that the fu

Re: [DOTNET] .NET testing tools

2002-04-17 Thread Brad Wilson
Dean Cleaver wrote: > So to test the user create function, I have to create 3 such that on > creation of the last one I have someone with the right permissions to be > able to create it... Whereas being able to test the several component > functions of this would have been useful. Yes, but this

Re: [DOTNET] .NET testing tools

2002-04-17 Thread Dean Cleaver
Ah - ok. Is a shame - often I feel that testing the individual functions is a lot easier than testing the public interface. For example, the current project I have, I have to create a super-user, then use their user ID as authorisation to create a supervisor, and then use their ID to create a use

Re: [DOTNET] FW: Allocation Profiler

2002-04-17 Thread Mahesh Prakriya
Thanks to all for their comments. This is good to see :) cc line deserves most of the credit here as they wrote this.. Pls let us know if there are particular features that you'd think would be compelling. I also plan on giving the src to this down the road (just haven't gotten around to packagi

Re: [DOTNET] LinkButton

2002-04-17 Thread S. Putinelu
Hi, I think what you need is something like this: This way, you can make the connection between CategoryName and LinkName using the LinkButton. Hope this will help you! S.Putinelu On Mon, 15 Apr 2002 14:18:32 +0100, Ricardo Figueira <[EMAIL PROTECTED]> wrote: >Friends, > >Sorry, bu

Re: [DOTNET] How to determine if .NET framework is already installed?

2002-04-17 Thread David Brown
Microsoft no longer supports distributing .Net via a merge module (MSM). If you try to add the VS.Net FW MSM, you get an error when you try to run the resulting install package, stating that this MSM is not the correct way to distribute the framework...use dotnetfx.exe instead! They changed this w

Re: [DOTNET] com experts please help!

2002-04-17 Thread Adam Nathan
Without modifying the Interop assembly, you could cast the object exposing events to System.Runtime.InteropServices.UCOMIConnectionPointContainer and handle COM events the "raw way" instead of using delegates, but it's a non-trivial amount of work. Adam -Original Message- From: Barrie Gr

Re: [DOTNET] BinaryReader Question

2002-04-17 Thread Jeff Roberts
Do you know what happens when I try to read 100 bytes and there are only 50 bytes left to read ? Does an exception get thrown, or do I get a return code of 50 back ? You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discu

Re: [DOTNET] newbie question: How to read AssemblyTitle assembly attribute

2002-04-17 Thread Brent E. Rector
// Get the running assembly Assembly a = Assembly.GetExecutingAssembly(); AssemblyTitleAttribute titleAttr = a.GetCustomAttributes (typeof (System.Reflection.AssemblyTitleAttribute), false)[0] as AssemblyTitleAttribute; -- Brent Rector, .NET Wise Owl Demeanor for .NET - an obfu

Re: [DOTNET] String.Insert() not working!!

2002-04-17 Thread Wedinger, Keith
Look at the StringBuilder class. Anytime you are doing string manipulation/building, StringBuilder is the way to go. Remember...String is immutable so each time you change one, you are actually creating a new String object and forcing the GC of the old one. J. Keith Wedinger Senior Software Dev

Re: [DOTNET] XtraGrid - data entry

2002-04-17 Thread Scott Densmore
I have never used the XtraGrid with a DataSet (I am to much of a control freak) :) but if you email [EMAIL PROTECTED] with an example they will probably get back to you the same day (at least they always have me) also if you bought the source code you could load it up and figure it out?... Of cour

[DOTNET] MSNEWS: .NET Compact Framework Beta 1

2002-04-17 Thread Thomas Scheidegger
Microsoft .NET Compact Framework Beta 1: PR: http://www.microsoft.com/presspass/press/2002/Apr02/04-17XMLWebPR.asp http://www.microsoftmobilitypress.com/site/home/article.asp? PressReleasesID=111 Primary Sites: http://msdn.microsoft.com/vstudio/device/smartdev.asp READ BOX ON RIGHT => f

[DOTNET] MSNEWS: .NET Compact Framework Beta 1:

2002-04-17 Thread Thomas Scheidegger
Microsoft .NET Compact Framework Beta 1: PR: http://www.microsoft.com/presspass/press/2002/Apr02/04-17XMLWebPR.asp http://www.microsoftmobilitypress.com/site/home/article.asp?PressRelease sID=111 Primary Sites: http://msdn.microsoft.com/vstudio/device/smartdev.asp READ BOX ON RIGHT => fo

Re: [ADVANCED-DOTNET] Serialize XML to SOAP Message

2002-04-17 Thread Weakliem, Gordon
Craig, I'm guessing that what you were talking about here is the subject of your talk at DevCon. Are you going to post the code from your talk anywhere? I'm interested in playing with the idea of XSLT SOAP endpoints. > -Original Message- > From: Craig Andera [mailto:[EMAIL PROTECTED]] >

Re: [DOTNET] BinaryReader Question

2002-04-17 Thread Deepak Rao
BinaryReader.Read(byte[], int, int); - first parameter is the buffer to write into - second parameter is the starting offset - third parameter is the number of bytes to read > -Original Message- > From: dotnet discussion [mailto:[EMAIL PROTECTED]] On Behalf Of > Jeff Roberts > Sent: Wedn

[DOTNET] BinaryReader Question

2002-04-17 Thread Jeff Roberts
I want to read X bytes from a file with BinaryReader into an offset within a Byte array. Can this be done, or do I have to move the data after reading it ? Ex: private BinaryReader reader; private byte[] Buffer = new Byte[512]; I don't see any BinaryReader methods that allow me to read the dat

Re: [DOTNET] String.Insert() not working!!

2002-04-17 Thread Keith Wedinger
Look at the StringBuilder class. Anytime you are doing string manipulation/building, StringBuilder is the way to go. Remember...String is immutable so each time you change one, you are actually creating a new String object and forcing the GC of the old one. J. Keith Wedinger Senior Software Deve

Re: [DOTNET] FW: Allocation Profiler

2002-04-17 Thread Sean Greer
On Fri, 5 Apr 2002 19:01:07 -0800, Mahesh Prakriya <[EMAIL PROTECTED]> wrote: >Check this tool out and let us know if you have any comments! Do I have comments? You bet I do! This tool rocks! I love being able to see how the heap is behaving during the course of my application's execution and

Re: [DOTNET] String.Insert() not working!!

2002-04-17 Thread Marina Zlatkina
The Insert method returns a string that results from the insertion and does not modify the original. Thus you would need to do something like: strInsert = strInsert.Insert(6,"Insert This"); You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMento

[DOTNET] System.Net.WebProxy and machine.config

2002-04-17 Thread Victor Scott
Hi, I am using the release version of the .Net framework. I am attempting to invoke a Web Service through a Proxy by using System.Net.WebProxy. I modified the client code (generated by the wsdl executable) to use a WebProxy. However, the Proxy is not used and the Web Service is directly invoke

[DOTNET] String.Insert() not working!!

2002-04-17 Thread Nischal Chitta
Hi All Here is a very simple question. I have a string like the following: string strTest = "This is a test sentence for testing the string insert method"; I have predefined postions say like 6, 25,29 which are the starting positions of is,for,testing. I want to replace these words that start

[ADVANCED-DOTNET] Serial Ports & .NET

2002-04-17 Thread Jim Wilson
I'm working on an application where I need to interact with serial ports from within a .NET application. I have 2 distinct usage scenarios. In one case, I'm dealing with a GPS receiver so all I have to do is read the incoming stream from the port. In the second case, I have to fully interact

Re: [DOTNET] Can I expose a com interface from a running executab le?

2002-04-17 Thread Sievert, James A
> The downside is that you don't get autolaunch as with COM. > The exe has to be running. A service makes a good base for such work. Just to clarify: you don't get the autolauch "for free" like you did in something like ATL. You've got to do the registry munging yourself... You can read messa

[DOTNET] Remoting Security

2002-04-17 Thread Marina
Hi, I am just starting to experiment with remoting. I have a DLL with a class that inherits from MarshalByRefObject in the bin directory of a virtual directory. I then try to create an instance the following way: dim attributes(0) as Object attributes(0) = new urlattribute("http://ComputerNa

[DOTNET] ANN: Assembly Cache Viewer add-in

2002-04-17 Thread Mattias Sjögren
A tool window add-in for VS.NET that displays a list of assemblies in the Global Assembly Cache (GAC), Native Image cache and Download cache. Enjoy! http://www.msjogren.net/dotnet/eng/tools/asmcacheaddin.asp Mattias === Mattias Sjögren [EMAIL PROTECTED] You can read messages from the DOTNET

[DOTNET] Fileio Access to path denied

2002-04-17 Thread Jim Graf
Hi, We are trying to write a file to a folder on the server from a Web Service and are getting access to path denied. Can anyone help? TIA Jim You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.c

Re: [DOTNET] newbie question: How to read AssemblyTitle assembly attribute

2002-04-17 Thread Brian G. Vallelunga
Are you making sure that the attribute you're trying to read is an assembly level attribute? For example it should be in the form of: [assembly: MyAttribute("hello")] Brian -Original Message- From: Sean Greer (SBI-Chico) [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 17, 2002 1:10 P

Re: [DOTNET] GetShortPathName

2002-04-17 Thread Mattias Sjögren
Andy, Try this: [DllImport( "kernel32.dll", CharSet=CharSet.Auto )] private extern static int GetShortPathName(string lpszLongPath, StringBuilder lpszShortPath, int cchBuffer); private string GetShortPathName( string in_LongPath ) { StringBuilder a_ReturnVal = new StringBuilder( 256 ); in

Re: [DOTNET] newbie question: How to read AssemblyTitle assembly attribute

2002-04-17 Thread Sean Greer (SBI-Chico)
This work for me: Assembly asm = Assembly.GetExecutingAssembly(); object[] atts = asm.GetCustomAttributes(false); //find the AssemblyTitleAttribute for(int n = 0; n < atts.Length; n++) { if(atts[n] is AssemblyTitleAttribute) { AssemblyTitleAttribute ata = (Assembl

[DOTNET] XtraGrid - data entry

2002-04-17 Thread franklin gray
This may be a little OT but I can't seem to get timely help from the makers and I know some of you are using this grid. I have a dataset with two tables. A relation set to link the master with the child table (Groups and GroupDetails). I can add a Detail row to an existing Group row. I can

Re: [DOTNET] Draw Rectangle on a top of a control

2002-04-17 Thread Bill Schmidt
Alex, Try using a label control (with a border) instead of a rectangle. This will avoid the Z-order issues. Also, when I implemented the same thing, I used individual label controls for each grab handle (with ForeColor and BackColor set to Black), and controlled their movement and that of the b

[DOTNET] VC++ 6.0 project VSS info not converting properly

2002-04-17 Thread Wedinger, Keith
I have a VC++ 6.0 project which contains source files that do not reside in the project directory. They reside in a common directory shared by other projects. All of the projects and their associated common source files are checked into Source Safe. When I open this project in VC++ 6.0, the com

Re: [DOTNET] Can I expose a com interface from a running executab le?

2002-04-17 Thread Thomas Tomiczek
We do not work across a machine, but on the same server. Remoting would open an arbitrary port - people could just try to use it. Just keep the level of "publicicty" low - thn you dont have to many problems. For example, we have some COM objects in there, that we do NOT write into the registry,

Re: [DOTNET] Can I expose a com interface from a running executab le?

2002-04-17 Thread Sievert, James A
The downside is that you don't get autolaunch as with COM. The exe has to be running. A service makes a good base for such work. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.

[DOTNET] On Session_OnEnd how to determine if it is normal end of application or end due to timeout

2002-04-17 Thread Prashant Dikshit
HI All, How can I determine whether the session has ended because the user closed the application or the session has ended because of Session Timeout. I want to know this so that once the Session timeout has occurred, I redirect him to the login page but after that I want him to come to the page w

Re: [DOTNET] Build a Better Menu

2002-04-17 Thread Rory Becker
Do you know if there is a menu editor class that I could override and connect somehow to my new main menu? Rory Becker -Original Message- From: dotnet discussion [mailto:[EMAIL PROTECTED]] On Behalf Of Chris Kinsman Sent: 16 April 2002 16:19 To: [EMAIL PROTECTED] Subject: Re: [DOTNET] Bu

Re: [DOTNET] NIGHTMARE BUG!! Visual Studio fails to build debug, but release works fine..

2002-04-17 Thread Graeme Foster
We're working with 39 projects, compiling to just over 2MB. No problems so far - in fact I think we rather like it. Perhaps our time will come ;) James, are you sure you haven't got some code that is compiling differently depending on the configuration? Try searching for "debug" and "release" and

Re: [DOTNET] AW: [DOTNET] NIGHTMARE BUG!! Visual Studio fails to build debug, but release works fine..

2002-04-17 Thread James Berry
Hi Urs > I had a similar problem with Beta 2 (altough it was VB.NET, > not C#) > suddenly getting very weird compiler errors, couldn't compile > the project anymore. First I also thought it must be related to the > solution becoming too big or a corrupt solution file or something like that

Re: [DOTNET] NIGHTMARE BUG!! Visual Studio fails to build debug, but release works fine..

2002-04-17 Thread James Berry
> Been there, done that, ditched VS.NET as a build tool. > IMNSHO, this is a SHOW STOPPER bug in VS that should be fixed asap [1]. What we > ended up doing was just using VS.NET strictly for the code editor and > designers (which are pretty good), and use other tools (makefiles and NAnt) for th

Re: [DOTNET] com experts please help!

2002-04-17 Thread Thomas Tomiczek
Hi Brian, here we go. Call me an beginning interop expert by now (we pulls some fancy strings here), but I did not do any office work for years. Inline with *** Regards Thomas Tomiczek THONA Consulting Ltd. (Microsoft MVP C#/.NET) -Original Message- From: Barrie Green [mailto:[EMAI

[DOTNET] com experts please help!

2002-04-17 Thread Barrie Green
hi all, I'm trying to develop an office addin, I have got around problems with the wizard created setup program not working, but I have now hit a bigger problem. Events from office don't work correctly in dotNet land, something to do with sinks not implementing IDispatch, the ms bug report Q3093

[DOTNET] AW: [DOTNET] NIGHTMARE BUG!! Visual Studio fails to build debug, but release works fine..

2002-04-17 Thread Urs Eichmann
I had a similar problem with Beta 2 (altough it was VB.NET, not C#) suddenly getting very weird compiler errors, couldn't compile the project anymore. First I also thought it must be related to the solution becoming too big or a corrupt solution file or something like that. We tried everything

Re: [DOTNET] why no Session in Application_BeginRequest

2002-04-17 Thread Dumitru Sbenghe
Why you try to do this in the ASP style, when you have ASP.NET; Read about web.config/authentication/authorization; Here you have a sample from a web.config file, which protect all the pages from a ASP.NET application and use the Forms authentication mode;