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

2002-04-23 Thread george antony
Willy, We were trying your sample in ASP .Net which didn't work .Whereas the same code works as a console application. I guess even if we give our username and password explicitly it takes the ASP Net Identity for authentication.We had set the mode of authentication as Windows in the Webconfig fil

Re: [DOTNET] KeyPress

2002-04-23 Thread Dan Souk
D'uh! Wasn't thinking about looping through them at run time. Seems that would work just fine. Thanks to you both:) -Original Message- From: dotnet discussion [mailto:[EMAIL PROTECTED]] On Behalf Of Bill Schmidt Sent: Wednesday, April 24, 2002 12:09 AM To: [EMAIL PROTECTED] Subject: Re:

Re: [DOTNET] KeyPress

2002-04-23 Thread Bill Schmidt
Dan, Keep in mind that in VB.NET, all controls are dynamically created. Therefore there is nothing unusual or inefficient about looping through the Form's Controls collection at run-time. For each textbox, you may either apply Shawn's solution (best) or dynamically attach your KeyPress event han

Re: [DOTNET] Reporting .NET framework bugs

2002-04-23 Thread Morten Abrahamsen
> Caught one... :) Well, don't share it with anyone!? Morty -Original Message- From: Kirill 'Big K' Katsnelson [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 24, 2002 6:46 AM To: [EMAIL PROTECTED] Subject: [DOTNET] Reporting .NET framework bugs What is the best way to report bugs

Re: [DOTNET] Changing cursor in Drag And drop operations

2002-04-23 Thread Jason Sellers
Terribly sorry... look at Control.DoDragDrop. You need to set the effects as Ethan suggests. Something like: private void MyDraggableButton_MouseDown(object sender, MouseEventArgs e) { this.DoDragDrop(myInfoObj, DragDropEffects.Move); } or priva

Re: [DOTNET] KeyPress

2002-04-23 Thread Dan Souk
Because that would require touching and maintaining multiple controls on every data entry form. I suppose I could create my own control to do this and inherit it, but I'd rather do code KeyPress in the base form and get it for free in every form control. Hard to make a case for .NET increasing de

Re: [DOTNET] KeyPress

2002-04-23 Thread Shawn Wildermuth
Why not just set the CharacterCasing property of your TextBox's? You can set it in the Property window or with code: textBox1.CharacterCasing = CharacterCasing.Upper Thanks, Shawn Wildermuth [EMAIL PROTECTED] > -Original Message- > From: dotnet discussion [mailto:[EMAIL PROTECTED]] >

[DOTNET] Reporting .NET framework bugs

2002-04-23 Thread Kirill 'Big K' Katsnelson
What is the best way to report bugs in .NET framework? Caught one... :) -kkm You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.

[DOTNET] Exception/debug problem on one computer

2002-04-23 Thread Kirill 'Big K' Katsnelson
I have one computer where .NET exceptions cannot be caught in the debugger, and not constructed correctly. All system exceptions are reported as "System.Interop.SEHException - an external component has thrown an exception". Have not tried throwing exceptions derived from ApplicatinoException yet

[DOTNET] KeyPress

2002-04-23 Thread Dan Souk
I need to ensure that all characters are forced to upper case for nearly all data entry forms in a VB.NET app. Thought I'd try to do it via the KeyPress event, but since arguments are passed by value, not reference, I'm stuck. In VB6, the ASCII keycode is passed by ref as an integer, and it was e

Re: [DOTNET] Unable to debug ASP.NET

2002-04-23 Thread joe hummel
I had this problem... Did you run IISLockdown by chance? In particular, have you installed URLScan to make IIS more secure? That was my problem, which I fixed by uninstalling URLScan via the control panel >> add/remove. Then I could debug ASP.NET once again. Cheers, - joe =-=-=-=-=-=-=-=-

[DOTNET] Enumerating encodings

2002-04-23 Thread Kirill 'Big K' Katsnelson
System.Text.Encoding.GetEncoding () returns an encoding given its name or code page. Is there a way to enumerate available encodings, to display them in the UI? This works, but way too slow :) for (int i = -100; i < 65535; i++) { try { System.Text.Encoding e = System.Text.Enc

Re: [DOTNET] Changing cursor in Drag And drop operations

2002-04-23 Thread Ethan Smith
Are you trying to set the cursor in the source or the target? I can't tell from your original question. If it's the source, I believe the event you want to handle is GiveFeedback. In the dragEnter event, the target should set the Effect property of the DragEventArgs to indicate which operations ar

Re: [DOTNET] Changing cursor in Drag And drop operations

2002-04-23 Thread Rolls, Robert
You wouldn't care showing us how you got it to work. On the dragenter/dragmove and draleave I'm setting the cursor to no avail. -Original Message- From: Jason Sellers [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 24 April 2002 2:25 To: [EMAIL PROTECTED] Subject: Re: [DOTNET] Changing cursor

Re: [DOTNET] Build Error - Cannot copy assembly

2002-04-23 Thread Greg Gates
Hi Sean: As it turns out, the strategy of deleting the bin directory of the offending project was the only thing that worked for me. Thanks for the tip. thanks, Greg On Tue, 23 Apr 2002 11:49:07 -0700, Sean Greer (SBI-Chico) wrote: >You can search the archives, this was discussed not too long

[DOTNET] Keyboard Class for pen computing

2002-04-23 Thread Cameron Cameron
Does anyone know of any keyboard class to be used to enter data with pen/mouse? Thanks a lot, Cameron _ Chat with friends online, try MSN Messenger: http://messenger.msn.com You can read messages from the DOTNET archive, unsubscri

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

2002-04-23 Thread Dan Souk
Nope I wasn't. That did it. Many thanks Sean and Urs. For the archives, here's the working code: Dim strNS as string Dim strFormName as string strFormName = "YourFormName" strNS = "YourNamespaceName" 'Need the fully qualified class name in the form 'NamespaceName.ClassName' Dim typ As Type = S

Re: [DOTNET] Unable to debug ASP.NET

2002-04-23 Thread Dunne, Joe
Make sure Internet Explorer isn't Offline in the file menu. joe -Original Message- From: Joseph J. Sarna Jr. [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 23, 2002 3:39 PM To: [EMAIL PROTECTED] Subject: [DOTNET] Unable to debug ASP.NET I have just recently become unable to debug A

Re: [DOTNET] Callback? Possibble from C#?

2002-04-23 Thread Axel Heitland
Huahh! Don't do that (No offense Mattias;-) - I strongly recommend the use of interfaces for COM callbacks. That's quite easy to do with .NET's [ComVisible] attribute and friends. Passing plain function pointers looks like a good idea, but I can tell you: It isn't! I've been the one to debug such

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

2002-04-23 Thread Sean Greer (SBI-Chico)
You are using the namespace-qualified name, correct? If you have code like this (sorry, don't sprechen sie VB) namespace Accounts { public class AccountForm : Form { // } } Then this code will create an instance of it: string sFormName = "Accounts.A

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

2002-04-23 Thread Dan Souk
It's your code:) 01 Dim ty As Type = System.Reflection.Assembly.GetExecutingAssembly.GetType(strFormName) 02 Dim frm As System.Windows.Forms.Form = Activator.CreateInstance(ty) The exception raised is System.ArgumentNullException, raised on line 02 above. The variable ty is Nothing. Other notes

Re: [DOTNET] Cryptographic Exception

2002-04-23 Thread Matt Milner
Try changing this: Dim decryptedBytes(Convert.ToInt32(reader.Length)) As Byte to this: Dim decryptedBytes(Convert.ToInt32(reader.Length)-1) As Byte I've seen this happen in VB.Net because when you create the byte array, the value you pass is the upper bound, not the capacity. So, you get a by

Re: [DOTNET] OleDbConnection Question

2002-04-23 Thread Beauchemin, Bob
I think, in data stores that support this, the transactions are usually multiplexed (each transaction is separate and associated with different commands, same "connection"). I'm not sure which databases support this now, certainly "middle tier providers, JDBC type 3" (providers that are servers

[DOTNET] Unable to debug ASP.NET

2002-04-23 Thread Joseph J. Sarna Jr.
I have just recently become unable to debug ASP.NET application (just noticed it today). I get the: --- Microsoft Development Environment --- Error while trying to run project: Unable to start debugging on the web server. The project is not configu

Re: [DOTNET] Build Error - Cannot copy assembly

2002-04-23 Thread Greg Gates
Hi Casey: I changed the Active Solution Configuration to Release in the Configuration Manager. Solution builds fine this way! However, if I flip the configuration back to debug for all but TypedDataSet classLib I still get build errors. Could you please tell me exactly what you are doing to fix

[DOTNET] Official Windows Forms portal site at http://windowsforms.net

2002-04-23 Thread Mike Harsh
The Windows Forms team has created a community portal to help developers create great client applications & controls. The site provides a central place to consolidate and link to the many great Windows Forms resources available on the internet. It is available at http://windowsforms.net. We have m

Re: [DOTNET] Problems creating a basic extended usercontrol

2002-04-23 Thread Graeme Foster
You think *that's* bad... A while back there was a code sample I needed to download from MSDN, and the URL had a folder "C#" in it. Needless to say the link didn't work... Glad you solved your problem, anyway :) G. -- Graeme Foster ([EMAIL PROTECTED]) Principal Software Engineer Aston Broadcast

Re: [DOTNET] InterOp and Safearrays

2002-04-23 Thread Rick Morningstar
From: Richard A Morningstar Thanks! Got it working! Adam Nathan <[EMAIL PROTECTED]>@DISCUSS.DEVELOP.COM> on 04/23/2002 03:44:30 PM Please respond to dotnet discussion <[EMAIL PROTECTED]> Sent by: dotnet discussion <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] cc: Subject: Re: [DOTNET] I

Re: [DOTNET] VB.NET, Private Types, and Case Sensitivity

2002-04-23 Thread Mattias Sjögren
Patrick, >I know VB.NET has at least one other case-sensitive bug (something about >the naming of "sub Main"). FWIW, the bug is in the Windows Forms Application class, it's not really related to VB.NET. Mattias === Mattias Sjögren [EMAIL PROTECTED] You can read messages from the DOTNET arc

Re: [DOTNET] InterOp and Safearrays

2002-04-23 Thread Adam Nathan
No, if the input type library says: HRESULT MethodA([in] VARIANT saUnks); then the output assembly should contain (in IL Assembler syntax): instance void MethodA([in] object marshal(struct) saUnks) runtime managed internalcall Adam -Original Message- From: Rick Morning

Re: [DOTNET] Build Error - Cannot copy assembly

2002-04-23 Thread Chesnut, Casey
So i went and revisited this problem, and read the article about the assembly being over 64K :) Which makes perfect sense that I always get the error with TypedDataSet classLibs since they gen so much code. Flipped all project to Release and it built fine! Then went back to Debug mode for all pro

[DOTNET] Cryptographic Exception

2002-04-23 Thread Marina
Hi all, Here is the scenario. I have an asp.net page, that uses remoting to invoke a COM+ object elsewhere. The remote object it invokes, is actually a wrapper for the COM+ object, and is hosted in IIS. Here is some code that it executes: Dim reader As System.IO.FileStream Dim decryptorStream

Re: [DOTNET] inheriting an object

2002-04-23 Thread franklin gray
okI thought that. Thanks Mattias and Ray. -Original Message- From: Mattias Sjögren [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 23, 2002 2:15 PM To: [EMAIL PROTECTED] Subject: Re: [DOTNET] inheriting an object Franklin, >If I inherit an object that has a new sub and I don't cre

Re: [DOTNET] Callback? Possibble from C#?

2002-04-23 Thread Mattias Sjögren
Tomas, Try something like this typedef int (__stdcall *TheCallbackType) (int); DECLARE_INTERFACE_(umIDataSink, IUnknown) { STDMETHOD(SetCallback) (THIS_ TheCallbackType Callback) PURE; }; and on the managed side delegate int TheCallBackType(int i); But why are you using a function

Re: [DOTNET] inheriting an object

2002-04-23 Thread Ray Heath
Sorry it's C# (not VB), but is this what you mean? Both constructors are called. - Ray using System; namespace ConsoleApplication { class Application { public class baseClass { public baseClass() { Console.WriteLine("base class constructor called"); } } public class derive

Re: [DOTNET] inheriting an object

2002-04-23 Thread Mattias Sjögren
Franklin, >If I inherit an object that has a new sub and I don't create a new sub to >call mybase.new, does it get called anyway? Yes. Unless there's no parameterless constructor in the base class, then you get a compile error. Mattias === Mattias Sjögren [EMAIL PROTECTED] You can read mes

[DOTNET] inheriting an object

2002-04-23 Thread franklin gray
If I inherit an object that has a new sub and I don't create a new sub to call mybase.new, does it get called anyway? You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.

Re: [DOTNET] simple question

2002-04-23 Thread Pradeep Tapadiya
Use WMI (namespace System.Management). Win32_DiskDrive has the information (I think) that you are looking for. Pradeep http://www.tapadiya.net/pradeep - Original Message - From: "Shishir Kumar Mishra" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, April 23, 2002 8:48 AM Subje

Re: [DOTNET] Build Error - Cannot copy assembly

2002-04-23 Thread Chesnut, Casey
Right, somehow VS.NET locks it :( You dont have to close VS.NET, just close the solution, and then you can delete the TypedDataSet.dll. Then open the solution, rebuild just that assembly, and set that project not build anymore; because if you try to build immediately after, it will be locked again

Re: [DOTNET] Build Error - Cannot copy assembly

2002-04-23 Thread Sean Greer (SBI-Chico)
You can search the archives, this was discussed not too long ago. The method that I've used is to close Visual Studio and delete the bin directories of all projects. Seang -Original Message- From: Greg Gates [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 23, 2002 11:43 AM To: [EMAIL PR

Re: [DOTNET] OleDbConnection Question

2002-04-23 Thread Sean Greer (SBI-Chico)
Bob, Thanks for the response (Jim Arnold, as well). I hadn't considered multiple transactions per connection. Would the transaction be nested and would an inner need to be committed/rolled back prior to an outer? Are there any data stores that currently support multiple transactions? I'd like

[DOTNET] Build Error - Cannot copy assembly

2002-04-23 Thread Greg Gates
Hello everyone: All of a sudden I am unable to build my project. I receive the following error message: Cannot copy assembly 'PayLive.Faculty.TypedDataSet' to file 'D:\PayLive\PayLive.Faculty\PayLive.Faculty.BLL\bin\Debug\ PayLive.Faculty.TypedDataSet.dll'. The process cannot access the file b

Re: [DOTNET] OleDbConnection Question

2002-04-23 Thread Beauchemin, Bob
Having the transaction be associated with a Connection class rather than having a separate Transaction class enforces the semantic that each Connection can only have a single associated Transaction. Although this is the way most relational databases (including SQL Server) work today, that is no

Re: [DOTNET] Wrox

2002-04-23 Thread Brian G. Vallelunga
I also have the first edition of Professional C#. While it definitely has its share of typos, I still use the book frequently as a reference. It certainly is not the best technical book I've read, but it has been useful. It certainly helped me learn some of the nuances of OOP, as I had only a basi

Re: [DOTNET] Advanced WinForms class

2002-04-23 Thread Chris Sells
I hate to advertise, but in answer to your direct question, Adam, DevelopMentor will be offering it's inaugural run of Essential Windows Forms [1] on 6/26 in Torrance, CA. Chris Sells http://www.sellsbrothers.com/ [1] http://www.develop.com/dm/course.asp?id=131 > -Original Message- > Fr

Re: [DOTNET] OleDbConnection Question

2002-04-23 Thread Jim Arnold
AFAIK, this is because multiple transactions-per-connection may be possible in the future. This is also why the Transaction and Connection properties have to be set separately on a Command object. Jim > -Original Message- > From: Sean Greer (SBI-Chico) [mailto:[EMAIL PROTECTED]] > Sent:

[DOTNET] OleDbConnection Question

2002-04-23 Thread Sean Greer (SBI-Chico)
Why did they not make the current transaction available through the OleDbConnection class? It is truly a pain in the a%# to be forced to pass the transaction to every object that is going to do a database operation when they could of made it available via a public property on the connection objec

Re: [DOTNET] Wrox

2002-04-23 Thread Potter, Mark
I had the same reaction after I bought "Profession C#". Of course the 2nd edition is now out. Mark Potter -Original Message- From: Paul Janssen [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 23, 2002 11:38 AM To: [EMAIL PROTECTED] Subject: Re: [DOTNET] Wrox A few typos here or there

[DOTNET] ASP.NET HttpUploads

2002-04-23 Thread Bryan Batchelder
I am trying to get a web form to accept large files via http uploading. It currently works for 30MB+ files, but only if the file can be uploaded in less than 8 minutes. I am able to upload any size file (tried up to 100MB) if it is done on the same LAN as the webserver. Howvere, if done from a s

Re: [DOTNET] InterOp and Safearrays

2002-04-23 Thread Rick Morningstar
From: Richard A Morningstar The imported interop code was: MethodA([in] Object marshal(SafeArray Variant) saUnks) ...; This is correct? Adam Nathan <[EMAIL PROTECTED]>@DISCUSS.DEVELOP.COM> on 04/23/2002 01:28:57 PM Please respond to dotnet discussion <[EMAIL PROTECTED]> Sent by: dotne

Re: [DOTNET] InterOp and Safearrays

2002-04-23 Thread Adam Nathan
You shouldn't be modifying the signature in this case because you're treating a single VARIANT (that should contain an array of VARIANTs) as an array of VARIANTs. You should be able to leave the imported Interop assembly alone and still use the C# code you have below. -Original Message-

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

2002-04-23 Thread Steve Loughran
Thomas Tomiczek says >Well, the original question was getting all the IP addresses a computer >posesses. >IMHO I am back to reading the registry information for the TCP Stack :-( no no no. I was just scaring you with the details of determining whether an an IP addr was valid or not, which is

Re: [DOTNET] Advanced WinForms class

2002-04-23 Thread Keith Franklin
Also you may want to try www.develop.com I know Developmentor is working on a Windows Forms class -Original Message- From: Duncan Smart [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 23, 2002 11:15 AM To: [EMAIL PROTECTED] Subject: Re: [DOTNET] Advanced WinForms class Adam, Not necessa

[DOTNET] InterOp and Safearrays

2002-04-23 Thread Rick Morningstar
From: Richard A Morningstar I have a legacy COM Object with a signature like te following: HRESULT MethodA([in] VARIANT saUnks); Where this variant is a SafeArray of Variants (where each variant in the SafeArray is of type VT_IUNKOWN). I have modified the generated Interop assemblyas follows

Re: [DOTNET] Wrox

2002-04-23 Thread Jesse Liberty
I won't speak to the specifics of the Wrox book, but I will give you this insight into how hard it is to avoid typos. I wrote my book, Programming C# over the course of eight months. We then edited for five months. We edited it again and again, with multiple editors reviewing it. I know that at l

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

2002-04-23 Thread Brian G. Vallelunga
Try something like this: Type myType = myAssembly.GetType("MyForm"); Form myForm = (Form) Activator.CreateInstance(myType); You have to cast the object to a form when using CreateInstance. Brian -Original Message- From: Dan Souk [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 23, 200

Re: [DOTNET] Named Pipes for Remoting - thanks you (and a question about named pipes)....

2002-04-23 Thread Axel Heitland
Just antoher pipe is IPipeByte - the SDk documentation says "not supported on Win98", but a proxy could work. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.

Re: [DOTNET] C# Ascii, Asc, Char, Chr functions?

2002-04-23 Thread Duncan Smart
Er, not really... ;-) * Char.GetNumericValue(char) is more like VB's Val() (and I'd use int.Parse or similar instead) and * Char.Parse() doesn't much other than convert string to a char Edward -- be careful of ASCII stuff anyway because ASCII is limited to English characters. You should con

Re: [DOTNET] VB.NET, Private Types, and Case Sensitivity

2002-04-23 Thread Patrick Steele
Hmm... Looks like a bug. VB.NET is not case-sensitive so I don't know why it let you define a private THISTYPE. I know VB.NET has at least one other case-sensitive bug (something about the naming of "sub Main"). --- Patrick Steele ([EMAIL PROTECTED]) Lead Software Architect Image Process Desig

Re: [DOTNET] Changing cursor in Drag And drop operations

2002-04-23 Thread Jason Sellers
Cursor.Current = Cursors.WhicheverYoudLike; jason -Original Message- From: Alex Lehmberg [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 23, 2002 7:40 AM To: [EMAIL PROTECTED] Subject: [DOTNET] Changing cursor in Drag And drop operations When writing a Windows Forms app I want to do a

Re: [DOTNET] Advanced WinForms class

2002-04-23 Thread Duncan Smart
Adam, Not necessarily advanced (although quite how you define this is a personl thing I guess) -- but the official 3-day MS courses should be available in June/July apparently: "2555—Developing Microsoft .NET Applications for Windows (C#)" http://www.microsoft.com/TRAINCERT/SYLLABI/2555APREL

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

2002-04-23 Thread Willy Denoyette
The reason is obvious; user "NTTestdomain\Administrator" with password "intelligroup" is - or invalid or unknown or has no privileges. I'm afraid there is something wrong with you domain structure and/or your trust relationships between doamins. Can you access a Fileshare using the same credenti

[DOTNET] Help with versioning ServicedComponent

2002-04-23 Thread Pete B
I am trying to run two different versions of an assembly that contain servicedComponents. I built two different versions, registered then in the gac ( with two DIFFERENT keyfiles ), and registered them in COM+. At this point I can compile my DOTNET app, referencing the correct version of my assem

[DOTNET] simple question

2002-04-23 Thread Shishir Kumar Mishra
Hi gurus! How can i get the Hard disk number from my C# program. TIA Shishir Kumar Mishra Agni Software (P) Ltd., Bangalore-560055, India www.agnisoft.com You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.

Re: [DOTNET] Super stupid version question...

2002-04-23 Thread Stefan Finch
This takes the form of major/minor/build/revision The build number based on the number of days since Feb 2000, so this will increment daily. The revision number is the number of seconds since midnight. Hence, by default .NET guarantees you a unique build number (1.0.*), but you can of c

Re: [DOTNET] Wrox

2002-04-23 Thread Paul Janssen
A few typos here or there is no big deal. But the first edition of "Profession C#" didn't seem like it was even looked at by an editor. I stopped reading after a few chapters because the typos and grammatical errors were so irrating. Makes me wonder about the validity of the code samples. I've

Re: [DOTNET] Super stupid version question...

2002-04-23 Thread Blain Timberlake
Hehehe Okay now the default it was set to was: ("1.0.*") which gave me version #'s of something like 1.0.843.18662 So now my question to you iswhere is the 843.18662 derived from? Does .Net no longer have the ability to do versioning by incrementation? Or do you have to manually chang

[DOTNET] ANN: Unit Test generation macro

2002-04-23 Thread Gordon Weakliem
I've created a VS.Net macro for automating generation of unit test shells[1]. Basically, this macro takes some of the drudge work out of creating unit tests for a class. You open up the file you want to create tests for, run this macro, and you'll end up with a file containing the boilerplate

Re: [DOTNET] Problem in Forms Based Authentication

2002-04-23 Thread Matt Milner
I belive the following call: FormsAuthentication.RedirectFromLoginPage(txtUserId.Text,false,"/"); Is resetting the cookie after you ahve set it. You might want to use some other means to redirect them to the page you want. HTH, Matt -Original Message- From: PrashanthG To: [EMAIL PROTE

Re: [DOTNET] Named Pipes for Remoting - thanks you (and a question about named pipes)....

2002-04-23 Thread Mike Woodring
Ditto the lament that named pipes still aren't supported on non-NT systems. Unfortunately, anonymous pipes can't easily be substituted for named pipes in something like the remoting channel sample. The API for named pipes supports a traditional client/server approach ("server" creates a named pi

[DOTNET] Managed code dll called from the legacy code throws remo ting exception (2nd try)

2002-04-23 Thread George Hendel
Greetings everybody, (I apologize for the 2nd try, but first time it was 5h28 p.m. CST so maybe I'll have more success now) I have a dll written in C# (managed code). This dll executes calls to the remote server (hosted in aspnet_wp process). When the dll is hosted in the managed exe (ex: C# con

Re: [DOTNET] c# to vb.net translation

2002-04-23 Thread Serra, Manel
This is the link http://www.aspalliance.com/aldotnet/examples/translate.aspx -Original Message- From: Bob Edwards [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 23, 2002 4:53 PM To: [EMAIL PROTECTED] Subject: [DOTNET] c# to vb.net translation Did i read somewhere that there is a C# to

[DOTNET] c# to vb.net translation

2002-04-23 Thread Bob Edwards
Did i read somewhere that there is a C# to vbnet translator web site? Thanks. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.

Re: [DOTNET] Callback? Possibble from C#?

2002-04-23 Thread Chris M. Szurgot
I wish I could help. My COM knowledge is non-existent. Good luck! Chris -Original Message- From: Thomas Tomiczek [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 23, 2002 9:33 AM To: [EMAIL PROTECTED] Subject: Re: [DOTNET] Callback? Possibble from C#? Chris, Thanks for the help - works

[DOTNET] Enumerating Windows

2002-04-23 Thread Beaulieu, Paul
Hi All, Is there a way to enumerate the windows of a particular process or of an AppDomain? I have looked in the documentation and the only functions I can find are those that given a control already you can walk the parents and children. My question is there a way to enumerate the windows with

[DOTNET] Changing cursor in Drag And drop operations

2002-04-23 Thread Alex Lehmberg
When writing a Windows Forms app I want to do a drag and drop operation. Is there any way I can change the cursor to one of my own choice while dragging the mouse? You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.d

Re: [DOTNET] Super stupid version question...

2002-04-23 Thread Blain Timberlake
As an addendum so I don't look like I complete dolt I know it is getting A versionit gets the assembly, File and Product version if you check the file properties but where is that all controlled from and how do you manually do it? =Blain -Original Message- From: dotnet discu

Re: [DOTNET] Super stupid version question...

2002-04-23 Thread Mitch Walker
(gotta love OWA) Let's try this again... Look for the attribute in the AssemblyInfo.vb source file. -Mitch -Original Message- From: Mitch Walker Sent: Tue 4/23/2002 10:29 AM To: [EMAIL PROTECTED] Cc: Subject: Re:

Re: [DOTNET] Super stupid version question...

2002-04-23 Thread Mitch Walker
-Original Message- From: Blain Timberlake [mailto:[EMAIL PROTECTED]] Sent: Tue 4/23/2002 10:26 AM To: [EMAIL PROTECTED] Cc: Subject: [DOTNET] Super stupid version question... Okay, now I feel like

[DOTNET] Super stupid version question...

2002-04-23 Thread Blain Timberlake
Okay, now I feel like an idiot, but I simply cannot find where you set the version # for a project in VB.Net. I'm looking for the graphical way to set it in the IDE, as per VB6. What am I missing here? Can you still set a version? Can you still set auto-increment? I might just be blind here,

Re: [DOTNET] Can someone recommend an ADO.NET book

2002-04-23 Thread Beauchemin, Bob
Hi Peter Sorry I haven't been more responsive to the list lately, I've been doing a lot of traveling and teaching (ADO.NET ;-). I did write to my editor and received the following reply: If (when) I hear more I'll let you know. The book is due out May 27, last I heard, won't be long now

Re: [DOTNET] Multi-File Assemblies and Builds

2002-04-23 Thread Don McNamara
Tim, There is a good document on MSDN that I think covers what you are looking for. You can find it at: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnbda/html/tdlg_rm.asp There are some complications with compiling web services, but other than that its not bad. To hopeful

Re: [DOTNET] Marshalling HANDLE - how?

2002-04-23 Thread Murphy, James
Sorry Tomas, I'm not sure if I follow you're requirements, but have you looked at the IntPtr class? Jim > -Original Message- > From: Thomas Tomiczek [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, April 23, 2002 7:45 AM > To: [EMAIL PROTECTED] > Subject: [DOTNET] Marshalling HANDLE - how? >

Re: [DOTNET] Callback? Possibble from C#?

2002-04-23 Thread Thomas Tomiczek
Chris, Thanks for the help - works on a simple sample. NOW I need to get oit more complicated. I need to register the callbackthrough a com object. Can you help there, too? DECLARE_INTERFACE_(umIDataSink, IUnknown) { STDMETHOD(SetCallback) (THIS ??? Callback) PURE; }; I basically need

Re: [DOTNET] C# Ascii, Asc, Char, Chr functions?

2002-04-23 Thread Duncan Smart
You could reference Microsoft.VisualBasic.DLL and look in the Microsoft.VisualBasic namespace for the functions. e.g. look at the static methods on the Microsoft.VisualBasic.Strings class... ...or you could do things the .NET way: look at System.Text.Encoding classes e.g. Asc equivalent: byte

Re: [DOTNET] C# Ascii, Asc, Char, Chr functions?

2002-04-23 Thread Weakliem, Gordon
Chr -> System.Char.GetNumericValue(char) Asc -> System.Char.Parse(String) -Original Message- From: Edward Ferron [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 23, 2002 7:01 AM To: [EMAIL PROTECTED] Subject: [DOTNET] C# Ascii, Asc, Char, Chr functions? How do I get Asc, Ascii, Char C

Re: [DOTNET] Green thread support

2002-04-23 Thread Hood, Gavan
Thought you might be interested in the approach I had come through from the Java guy on the Green threads. It us quite interesting, he considers AppDomains as the equivalent. Interesting concept, I personally am concerned without running any tests at the side effects of running lots of App Domai

[DOTNET] C# Ascii, Asc, Char, Chr functions?

2002-04-23 Thread Edward Ferron
How do I get Asc, Ascii, Char Chr functions in C#? Is there another class for them? They are available in VB.NET but I can not find the namespace from which they come from? Thanks, Ed You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor l

Re: [DOTNET] Callback? Possibble from C#?

2002-04-23 Thread Thomas Tomiczek
Cool. Now, how would you turn this delegate over to a COM object? How would you actually make the interface in a COM object to turn over a delegate? Regards Thomas Tomiczek THONA Consulting Ltd. (Microsoft MVP C#/.NET) -Original Message- From: Chris M. Szurgot [mailto:[EMAIL PROTECT

Re: [DOTNET] Callback? Possibble from C#?

2002-04-23 Thread Chris M. Szurgot
Yes, it is possible (and quite easy too...) Create the delegate callback to be as close to the expected function, and then put that delegate into the [DllImport] for the unmanaged code. Then, when you call it, it should work fine. Below is the pertinent code for using CopyFileEx, since that's the

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

2002-04-23 Thread george antony
It throws a COMException which says "Access is denied" Exception is raised when we try to get the members collection. The code below: ** DirectoryEntry groupEntry = new DirectoryEntry("WinNT://nttest/Administrators,group",@"NTTestdomain\Administrato

Re: [DOTNET] Advanced WinForms class

2002-04-23 Thread Reggie Burnett
After rereading, it sounds like you could be right. Sorry, Adam, but I don't know of any? Sorry for the misread. -Original Message- From: dotnet discussion [mailto:[EMAIL PROTECTED]]On Behalf Of Graeme Foster Sent: Tuesday, April 23, 2002 3:35 AM To: [EMAIL PROTECTED] Subject: Re: [DO

[DOTNET] Callback? Possibble from C#?

2002-04-23 Thread Thomas Tomiczek
Hello, I have an API (C style, DLL based) that requires me to register a callback. The DLL has a function where as one parameter it either gets a pointer to the function to call or NULL. Can I somehow pass a delegate in there? Any samples around? Regards Thomas Tomiczek THONA Consulting Ltd.

[DOTNET] Problem in Forms Based Authentication

2002-04-23 Thread PrashanthG
Hi, I have a small problem in Form based authentication. I have custom roles defined in the database. I get the roles from DB and then store in the Cookie as shown in the code below for assigning it later to the current context user. private void Submit_Click(object sender, System.EventArgs

[DOTNET] WM_COPYDATA

2002-04-23 Thread Jan Dropczynski
Hi all, does anybody know what's the correctly use of the WM_COPYDATA message? And does also anybody how can I use this in C#?? Regards Jan Dropczynski Software-Engineer THONA Consulting Ltd. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other Develop

Re: [DOTNET] Named Pipes for Remoting - thanks you (and a question about named pipes)....

2002-04-23 Thread Thomas Tomiczek
Still exists in 98 and ME according to my documentation. CreateNamedPipe is only available on NT. Shame on them. Regards Thomas Tomiczek THONA Consulting Ltd. (Microsoft MVP C#/.NET) -Original Message- From: Brad Wilson [mailto:[EMAIL PROTECTED]] Sent: Dienstag, 23. April 2002 14:

Re: [DOTNET] Named Pipes for Remoting - thanks you (and a questio n about named pipes)....

2002-04-23 Thread Chris Anderson
Sorry, that's about all I know about pipes :-) Merak > -Original Message- > From: Thomas Tomiczek [mailto:[EMAIL PROTECTED]] > Sent: 23 April 2002 12:31 > To: [EMAIL PROTECTED] > Subject: Re: [DOTNET] Named Pipes for Remoting - thanks you > (and a questio n about named pipes) > > > I

Re: [DOTNET] Named Pipes for Remoting - thanks you (and a question about named pipes)....

2002-04-23 Thread Brad Wilson
Tom Archer wrote: > Yep. I came from OS/2 years ago and with NP being the IPC of choice on OS/2 > hated those early versions of Windows. I think you can use anon pipes though IIRC, you can access a named pipe that already exists if you're on 9x, but you can't create a new one. It's a ludicrous l

Re: [DOTNET] Windows Services - .NET and NT

2002-04-23 Thread Farhan Sh
Yes - it is installed You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.

[DOTNET] Marshalling HANDLE - how?

2002-04-23 Thread Thomas Tomiczek
Hello, How do I "cover up" a handle in C# for interop through COM? I basically have to come up with a way to return a handle from a COM object to C# in order then to use it in another managed C++ object. Anyone ever done this? Regards Thomas Tomiczek THONA Consulting Ltd. (Microsoft MVP C#/.N

  1   2   >