Re: [DOTNET] What do I need to implement to support DataBinding

2002-05-30 Thread Mark Boulter
I'll get my sample posted this weekend on GotDotNet - mark -Original Message- From: Sean Greer (SBI-Chico) [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 30, 2002 12:07 PM To: [EMAIL PROTECTED] Subject: Re: [DOTNET] What do I need to implement to support DataBinding For simple binding,

Re: [DOTNET] Code behind error in ASP.NET

2002-05-30 Thread Shai Bar-Lev
Does the codebehind is compiled into dll and it's under directory bin under H:\AspNetUnleashed\Chapter05\ ? -Original Message- From: dotnet discussion [mailto:[EMAIL PROTECTED]] On Behalf Of Kevin Burton Sent: Thursday, May 30, 2002 7:41 PM To: [EMAIL PROTECTED] Subject: Re: [DOTNET] Co

Re: [DOTNET] What do I need to implement to support DataBinding

2002-05-30 Thread Keith Franklin
I can post a real complex binding example...Uses binding to show all sorts of stuff...But I don't believe the list takes attachments... -Original Message- From: Wayne Lee [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 30, 2002 1:42 PM To: [EMAIL PROTECTED] Subject: Re: [DOTNET] What do

[DOTNET] I am not out of the office. I swear! :)

2002-05-30 Thread Brad Wilson
Zane Thomas wrote: > Dunno about the rest of you, but I get much more tired of getting a couple > of "I will be out of the office until Tuesday, June 4." replies everytime > I post to this mailing list than I do of the occassional > advertisement/annoucement. heh. No problem here, since they get

Re: [DOTNET] AD: DbCombo V1.1 released

2002-05-30 Thread Zane Thomas
Shawn, > Please prepend the subject with AD or Advertisment or > soemthing...otherwise this ends up just feeling like spam... Dunno about the rest of you, but I get much more tired of getting a couple of "I will be out of the office until Tuesday, June 4." replies everytime I post to this maili

Re: [DOTNET] AD: DbCombo V1.1 released

2002-05-30 Thread Zane Thomas
I think ANN: or ADV: are more frequently seen. - Original Message - From: "Shawn Wildermuth" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, May 30, 2002 7:56 PM Subject: Re: [DOTNET] AD: DbCombo V1.1 released > Please prepend the subject with AD or Advertisment or > soemt

Re: [DOTNET] AD: DbCombo V1.1 released

2002-05-30 Thread Shawn Wildermuth
Please prepend the subject with AD or Advertisment or soemthing...otherwise this ends up just feeling like spam... Thanks, Shawn Wildermuth [EMAIL PROTECTED] > -Original Message- > From: dotnet discussion [mailto:[EMAIL PROTECTED]] > On Behalf Of David Campbell > Sent: Thursday, May 30,

Re: [DOTNET] Windows Software Restriction Policies and CAS

2002-05-30 Thread John Lam
I'm fairly certain of this; if the XP loader understood the format what would it do without the runtime installed? In .NET Server the runtime comes baked in, so the loader can do the handoff there. -John http://www.iunknown.com -Original Message- From: Brad Wilson [mailto:[EMAIL PROTECT

[DOTNET] serialization on extended class

2002-05-30 Thread Patrick Tang
Hi, in C#, for a class X that extends a class Y that is not serializable, how can I serialize the class X without serialize the extended class Y ? And also when i deserizable the class X, how can I make class X extends Y again ? code as below, [Serializable] public class X:Y { . } Tha

Re: [DOTNET] Windows Software Restriction Policies and CAS

2002-05-30 Thread Brad Wilson
John Lam wrote: > My question is: how is this handoff managed? I know that under > Windows.Net Server that the Windows loader understands the managed PE > file format, so presumably this is how they did it under Windows.Net > Server. However, the Windows XP doesn't understand managed PE files > n

[DOTNET] Windows Software Restriction Policies and CAS

2002-05-30 Thread John Lam
My bedtime reading these days is the most excellent .NET Framework Security by LaMacchia, Lange, Lyons, Martin & Price.[1] While reading through Chapter 17 on administration topics, I discovered the Windows Software Restriction Policies, which act as a simplified unmanaged variant of CAS. WSRP is

Re: [DOTNET] Http Request

2002-05-30 Thread Greg Reinacker
Off the top of my head, my guess would be the target .aspx page is not sending the script due to having no User-agent header in the request. It would have no indication that the client can process the script. This of course depends on how the script code is being generated, which would require mor

[DOTNET] Connection timeout problem

2002-05-30 Thread Greg Gates
Hello everyone: I have the following SqlServer connection string (using ADO.NET): "server=SOMESERVER;uid=someuser;pwd=somepassword;database=Payroll_Test;Conne ct Timeout=90" The server will timeout after approx 48 seconds regardless of what value I use for Connect Timeout. The same connection

[DOTNET] embedding resources

2002-05-30 Thread Peter Zaborski
I know it's possible to embed resources in an assembly during the compile process. Which works fine if you know all the resources you need at that time. However, I have a situation where I need a resource in my EXE assembly, but I don't know about the resource until run time. In case you are wonde

Re: [DOTNET] Fonts

2002-05-30 Thread Dustin Wish with NCA Communications
Try doing a search through the harddrive on the client to see if the file exists? - Original Message - From: Ian Griffiths <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, May 30, 2002 8:16 AM Subject: Re: [DOTNET] Fonts > The FontFamily class provides a GetFamilies method a

Re: [DOTNET] Guidance on CLS Compliance

2002-05-30 Thread Dean Cleaver
Ok - as always I find the problem after sending. This solution has both SDE and Wintel projects in it sharing the same source files - when it finds an error in the SDE version, it tends to open the file from the Wintel project which is where I got confused. It seems that CLS compliance does not ap

Re: [DOTNET] Has official support for ContextAttributes been removed from .Net?

2002-05-30 Thread Mike Woodring
Yes, it was officially removed, but we were all warned. They pulled it from the RC candidate after beta 2 but before the official first release. You can find some discussion about this fact in the archive for this list at [1]. -Mike http://staff.develop.com/woodring http://www.develop.com/devre

[DOTNET] Guidance on CLS Compliance

2002-05-30 Thread Dean Cleaver
I'm trying to find out more about CLS compliance, but am having trouble. Does anyone have some good resources on CLS compliance? Basically, I marked an assembly as compliant, and now it's saying it's not compliant because "System.EventArgs" and "System.ComponentModel.Component" are not compliant

[DOTNET] Has official support for ContextAttributes been removed from .Net?

2002-05-30 Thread Loc Nguyen
This was a feature I really looked forward to using in .Net. However, now that .Net has finally been released, I haven't found a single book that talks about it. All the posting about this on this discussion group were dated before the final release of .Net. MSDN help also states "The ContextAt

[DOTNET] ShortPath to LongPath how?

2002-05-30 Thread Michael Anderson (Compliance Technology)
I've looked at the System.IO.Path, System.IO.FileInfo, and various other System.IO classes and cannot find any way to convert a short path into a long path. Is there a method somewhere in C# to do this? You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other

Re: [DOTNET] xmlTextReader

2002-05-30 Thread franklin gray
I think your right. I got in a bad habit of using GetXML and GetXmlSchema. I will give this a try. Thanks. -Original Message- From: Marsh, Drew [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 30, 2002 4:58 PM To: [EMAIL PROTECTED] Subject: Re: [DOTNET] xmlTextReader franklin gray [ma

Re: [DOTNET] xmlTextReader

2002-05-30 Thread franklin gray
YeahI was hoping to avoid that for performace reasons. -Original Message- From: Christoph [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 30, 2002 4:47 PM To: [EMAIL PROTECTED] Subject: Re: [DOTNET] xmlTextReader Franklin, it looks like your xml string is invalid because it has no r

Re: [DOTNET] xmlTextReader

2002-05-30 Thread Marsh, Drew
franklin gray [mailto:[EMAIL PROTECTED]] wrote: > > > > > 12 > Billy Smith > Available > false > > How did you generate this XML? It's invalid because it has no root element. If you use DataSet::WriteXml with the XmlWriteMode.WriteSchema enum, it should generate an XML

Re: [DOTNET] xmlTextReader

2002-05-30 Thread Christoph
Franklin, it looks like your xml string is invalid because it has no root element. Can you load the Xml schema and the data into a document that provides the root node so you get something like: 12 Billy Smith Available false HTH, Christoph Schittko Software Ar

Re: [DOTNET] What do I need to implement to support DataBinding

2002-05-30 Thread Wayne Lee
Um, What are you hoping to bind to? Your declarations hold no values to bind to? -Original Message- From: dotnet discussion [mailto:[EMAIL PROTECTED]] On Behalf Of Curtis Koppang Sent: 30 May 2002 19:31 To: [EMAIL PROTECTED] Subject: [DOTNET] What do I need to implement to support Data

[DOTNET] xmlTextReader

2002-05-30 Thread franklin gray
I am returning the schema and the data of a dataset in a function and lets say it looks something like below. I would like to load the whole thing into an XMLTextReader, but the first line is causing me problems. I would like to stay away from editing the string because of problems that might

Re: [DOTNET] C# and Multiline TextBox

2002-05-30 Thread Radomir Klima
Try Environment.NewLine. textBox1.Text = "s"+Environment.NewLine+"s"; RK - Original Message - From: "Tom Archer" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, May 30, 2002 5:40 PM Subject: Re: [DOTNET] C# and Multiline TextBox > Have you tried "\r\n" for carriage return +

Re: [DOTNET] Rendering Xml doc with a good UI in WinApp

2002-05-30 Thread Shawn Wildermuth
I think the Lotus Notes UI is the look we should be aspiring to : ) What about putting your XML into a DataSet and databinding the elements to window forms controls? I am not sure how you want to transform it into a good looking UI. Another option is to use XSLT files to transform it and show i

Re: [DOTNET] C# and Multiline TextBox

2002-05-30 Thread Tom Archer
Have you tried "\r\n" for carriage return + line feed? I think that will work. -Original Message- From: dotnet discussion [mailto:[EMAIL PROTECTED]]On Behalf Of Patrick Burrows Sent: Thursday, May 30, 2002 11:39 AM To: [EMAIL PROTECTED] Subject: [DOTNET] C# and Multiline TextBox Got me

Re: [DOTNET] Checked casting between DataSet and its children

2002-05-30 Thread Loc Nguyen
I thought about this, but after reading some of the past posting on this board about this subject, I think it may be more trouble. It sounds like the code generation is very troublesome. Someone was asking how to insert logic into the generated code without it being overwritten, and he never got

Re: [DOTNET] Trying to programatically register Assemblies throug h CCW for COM?

2002-05-30 Thread Sam Gentile
Ok, we'll try this. Thanks! >From: Rama Krishna <[EMAIL PROTECTED]> >Reply-To: dotnet discussion <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: Re: [DOTNET] Trying to programatically register Assemblies throug > h CCW for COM? >Date: Thu, 30 May 2002 15:00:47 -0400

Re: [DOTNET] What do I need to implement to support DataBinding

2002-05-30 Thread Curtis Koppang
Thanks! I did not remember the exact syntax and I don't have a .NET machine handy (on the road). Thanks, curt On Thu, 30 May 2002 12:07:20 -0700, Sean Greer (SBI-Chico) wrote: >For simple binding, the answer is no, you do not need to implement an >interface. All you need to do to bind the cl

Re: [DOTNET] How do we programatically determine if GAC contains particular assembly?

2002-05-30 Thread Mattias Sjögren
Sam, >Wow, how did you figure out how to use the Fusion APIs? Originally by looking at Mscorcfg.dll in ILDASM. But nowadays it's a lot easier to look at the bits included with SSCLI. Mattias === Mattias Sjögren [EMAIL PROTECTED] You can read messages from the DOTNET archive, unsubscribe fro

Re: [DOTNET] What do I need to implement to support DataBinding

2002-05-30 Thread Sean Greer (SBI-Chico)
For simple binding, the answer is no, you do not need to implement an interface. All you need to do to bind the class below to a TextBox is ensure that FirstName, LastName and Dedication are properties (you can't bind to instance member variables). For example, assuming that FirstName is a strin

Re: [DOTNET] Trying to programatically register Assemblies throug h CCW for COM?

2002-05-30 Thread Rama Krishna
Actually the following VB6 code works fine for me, Dim ch As New CorRuntimeHost Dim defDomain As AppDomain Private Sub Command1_Click() Dim asm As Assembly Set asm = defDomain.Load_2("mscorlib") Dim objHandle As ObjectHandle Set objHandle = defDomain.CreateInstance("mscorlib", "

Re: [DOTNET] What do I need to implement to support DataBinding

2002-05-30 Thread Curtis Koppang
I would like to facilitate binding to a WinForm or ASP.net user control. curt You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.

Re: [ADVANCED-DOTNET] singleton server problem

2002-05-30 Thread Pablo Castro
That's correct behavior, you don't need to change it. I mean, if you have 100% CPU usage, your other clients should wait. Letting them run would just cause more contention for the CPU, making the whole thing slower. As soon as previous calls finish, new clients will be serviced. This happens auto

Re: [ADVANCED-DOTNET] singleton server problem

2002-05-30 Thread Mike Woodring
There isn't really a good software-only solution for this. If the remoting method uses Delegate.BeginInvoke or any other thread-pool based approach to pass the long request off to someone else, the problem is still the same since they're all being managed roughly the same way. You'd have to pass

Re: [DOTNET] What do I need to implement to support DataBinding

2002-05-30 Thread franklin gray
binding to what? -Original Message- From: Curtis Koppang [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 30, 2002 1:31 PM To: [EMAIL PROTECTED] Subject: [DOTNET] What do I need to implement to support DataBinding Say I have a simple class which represents a single data entity, like the f

Re: [DOTNET] Trying to programatically register Assemblies throug h CCW for COM?

2002-05-30 Thread Sievert, James A
I think you're stuck loading them from managed code as all assembly loading is done directly or indirectly via managed static methods. :-( Of course, you could always spawn regasm... You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor list

[DOTNET] What do I need to implement to support DataBinding

2002-05-30 Thread Curtis Koppang
Say I have a simple class which represents a single data entity, like the following: class Author { public FirstName; public LastName; public Dedication; } Do I need to implment any specific interfaces to support data binding? I checked the archives and most of the information has

Re: [DOTNET] Trying to programatically register Assemblies through CCW for COM?

2002-05-30 Thread Sam Gentile
This class is not cocreatable, and we see no method available via COM that would give us one back. To further amplify, this is with the default CCWs and tlbs that ship with the runtime for System and mscorlib in the directory \winnt\Microsoft.NET\..3705\ >From: Sam Gentile <[EMAIL PROTECTED]> >

Re: [DOTNET] C# Equivs of VB Functions

2002-05-30 Thread Patrick Burrows
uh-huh Patrick Burrows I'm diggin all the way to China With a silver spoon Now Playing: 05 johnny b goode (unnamed server) - [ > -Original Message- > From: Bill Schmidt [mailto:[EMAIL PROTECTED]] > Sent: Thursday, May 30, 2002 11:23 AM > To: [

[DOTNET] Trying to programatically register Assemblies through CCW for COM?

2002-05-30 Thread Sam Gentile
We are trying to register assemblies from unmanaged C++ COM code. This means using the System.Runtime.InteropServices.RegistrationServices class (ie the IRegistrationServices interface); in particular, we need to use the methods RegisterAssembly and UnregisterAssembly. Both of these methods tak

Re: [DOTNET] C# Equivs of VB Functions

2002-05-30 Thread Jeremy Hopkin
>> Well I did say I hated to mention it (mostly for the >> reasons you oulined)... > > Sorry Jeremy. I hope I didn't come across as bashing > you personally, because I certainly didn't mean it > that way. No worries, I didn't take it that way, I thought you were bashing VB programmers in general

[ADVANCED-DOTNET] soapsuds generated code and "Invalid Return Type" Exception

2002-05-30 Thread Leon Finker
Hi, Could anyone explain why I get exception with soapsuds generated code. For example on the server side, [Serializable] public class Data { public int i=-1; } public class ServerType : MarshalByRefObject { public Data GetData() { return new Data(); } } I exposed Server

Re: [DOTNET] Code behind error in ASP.NET

2002-05-30 Thread Kevin Burton
No it is not in a namespace. The source for the code behind is fairly simple. Imports System Imports System.Web.UI Imports System.Web.UI.WebControls Public Class FeaturedProduct Inherits UserControl Public BackColor As String = "lightgreen" End Class Then it is used in the user control as: <

Re: [ADVANCED-DOTNET] Starting Remoting and Events

2002-05-30 Thread David Williams
I have not gotten that far yet. Yes, I want to be able to receive them just as I would if the class exposing them was in the same assembly. I just do not fully understand how to do this. My first run attempt to accomplish this was to create a TCPChannel class in both assemblies and handle them

Re: [DOTNET] Are there any FTP classes in .NET ?

2002-05-30 Thread Jeff Roberts
Bryan, Did you get this ftp source to compile ? I unzipped both the assembly project and the demo into the same folder, Opened up the assembly project and tried to build it. I got the following errors: Any Ideas ? E:\JEFF\NET\ftp2\Documents and Settings\alexkwok\My Documents\Visual Studio

Re: [DOTNET] Difference between .Net Framework and the .Net Compact Framework

2002-05-30 Thread Chesnut, Casey
The integrated help documentation in the CF beta has the generic info, i'll tell you my specific observations from writing this article: http://www.brains-N-brawn.com/noMadMap Alot of the namespaces are there, as well as the commonly used classes. Methods and method overloads is what you miss the

Re: [DOTNET] Http Request

2002-05-30 Thread Jon Finley
I am using a HTTPWebRequest object to pull the html from another aspx page on my site. I then write this HTML to a file for use by another page (I know sounds a little goofy but I'm dealing with a legacy system). My problem is that the html returned by the Request object does not include the cli

[DOTNET] WINVER resolves to WinXP on Win2k

2002-05-30 Thread Aleksey Nudelman
Hi Nick, I do not like hardcoding the structure size. As you correctly point out,on Win2k, a default project maps to WINVER=0x400 on VC6 and to WINVER=0x501 (XP!) on VC7. This accounts for different sizes of RASCONN. I think this is something Microsoft needs to fix. Best, Aleksey On Thu, 30 May 2

Re: [ADVANCED-DOTNET] remoting with http/soap and http/binary channels within the same client app instance

2002-05-30 Thread Ming Chen
Hi, Chris. The solution itself is far easier than it sounds. :) I just did a simply test on it. The code is only about 30 lines. I listed my code here. Hope it helpful. //The Generic FilterProvider code: using System; using System.Collections; using System.Runtime.Remoting.Channels; namesp

Re: [ADVANCED-DOTNET] Starting Remoting and Events

2002-05-30 Thread Browning, Don
David, You're correct about the EventArgs, they must be serializable, but I'm kind of unclear about the rest of your question. Are you not receiving the events in the other classes? Don -Original Message- From: David Williams [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 30, 2002 1

Re: [DOTNET] Code behind error in ASP.NET

2002-05-30 Thread Brad Wilson
Kevin Burton wrote: > When I try to run it I get the following error. Any idea what is wrong? I > have recompiled the FeaturedProduct.vb code behind and made sure that it is > in the bin directory but I still get the error. Is the FeaturedProduct class in a namespace? You may need to qualify the

[DOTNET] Code behind error in ASP.NET

2002-05-30 Thread Kevin Burton
I guess I should be directing these questions to Stephen Walther directly but I am not sure how to contact him. In ASP.NET Unleashed (pp. 274-275) There is a sample Sub Page_Load Dim strFeatured As String Dim RanNum As New Random Dim ctlControl As Control strFeatured = "Featured" & Ra

[DOTNET] Dataset encapsulation.

2002-05-30 Thread Greg Gates
Hello everyone: What is the best way to encapsulate a dataset in a domain object that is being used by a rich client windows application? An extra twist is that it is often necessary to provide immediate feedback to the client after a property change. For example, client changes PayRate propert

Re: [DOTNET] C# Equivs of VB Functions

2002-05-30 Thread Marsh, Drew
Jeremy Hopkin [mailto:[EMAIL PROTECTED]] wrote: > Well I did say I hated to mention it (mostly for the > reasons you oulined)... Sorry Jeremy. I hope I didn't come across as bashing you personally, because I certainly didn't mean it that way. > But I thought it was worth pointing out that VB.NE

Re: [DOTNET] Rendering Xml doc with a good UI in WinApp

2002-05-30 Thread Chris Sells
What's your definition of a "good UI?" Chris Sells http://www.sellsbrothers.com/ > -Original Message- > From: dotnet discussion [mailto:[EMAIL PROTECTED]] On Behalf Of > PrashanthG > Sent: Thursday, May 30, 2002 6:46 AM > To: [EMAIL PROTECTED] > Subject: [DOTNET] Rendering Xml doc with a

Re: [DOTNET] C# Equivs of VB Functions

2002-05-30 Thread Brad Wilson
Jeremy Hopkin wrote: > But I thought it was worth pointing out that VB.NET doesn't have any > libraries that you cannot use from C# (Least not that I am aware of) and > they are all there available to use from C#. > Whether it is sensible to use them or whether you want to use them is a > differ

Re: [DOTNET] Problem with Visual Studio Designer

2002-05-30 Thread Chris Sells
You can add your own application's assembly to the Toolbox and your controls and components will show up. Chris Sells http://www.sellsbrothers.com/ > -Original Message- > From: dotnet discussion [mailto:[EMAIL PROTECTED]] On Behalf Of > Jan Dropczynski > Sent: Thursday, May 30, 2002 2:35

Re: [DOTNET] C# Equivs of VB Functions

2002-05-30 Thread Jeremy Hopkin
>> I hate to say it but, I feel it must be said: >> >> You can use the VB.NET libraries from with C# >> > ...but why you would go to such great lengths to do this is > beyond me. Especially when if you look at the IL for StrDup > all it's doing is what you should be anyway: calling new > String('-

Re: [DOTNET] Accessor on an accessor not allowed. Why?

2002-05-30 Thread Henk de Koning
> Clearly Petzold did not do a good enough job explaining what he meant. > The operation you describe works perfectly on non-value property gets > and behaves as you have outlined on value types. Actually, System.Int32 and friends work fine as well. It's just the structural types. Of course that'

Re: [DOTNET] C# and Multiline TextBox

2002-05-30 Thread Chris Anderson
I think the textbox needs a CR-LF pair rather than just the newline character Try "s\r\ns" instead Merak > -Original Message- > From: Patrick Burrows [mailto:[EMAIL PROTECTED]] > Sent: 30 May 2002 16:39 > To: [EMAIL PROTECTED] > Subject: [DOTNET] C# and Multiline TextBox > > > Got me a

[ADVANCED-DOTNET] Starting Remoting and Events

2002-05-30 Thread David Williams
I am trying to get started using remoting.  The application design that we came up with uses events to pass messages from one application to the other (in theory).  I have spent the last day reading up on remoting (as I have to implement a (1-5) server(s) to (10-500) clients environment. (Numbers

Re: [DOTNET] C# Equivs of VB Functions

2002-05-30 Thread Marsh, Drew
Jeremy Hopkin [mailto:[EMAIL PROTECTED]] wrote: > I hate to say it but, I feel it must be said: > > You can use the VB.NET libraries from with C# > ( although: String has been renamed StrDup ) > > MyVar = Microsoft.VisualBasic.StrDup(65, "-"); It's actually Microsoft.VisualBasic.Strings.StrDup,

Re: [DOTNET] C# and Multiline TextBox

2002-05-30 Thread Walt Ritscher
textBox1.Text = "s\r\ns"; // works Walt Ritscher -Original Message- From: dotnet discussion [mailto:[EMAIL PROTECTED]] On Behalf Of Patrick Burrows Sent: Thursday, May 30, 2002 8:39 AM To: [EMAIL PROTECTED] Subject: [DOTNET] C# and Multiline TextBox Got me a textbox set to multiline.

Re: [DOTNET] Accessor on an accessor not allowed. Why?

2002-05-30 Thread Reggie Burnett
Clearly Petzold did not do a good enough job explaining what he meant. The operation you describe works perfectly on non-value property gets and behaves as you have outlined on value types. You are correct that it would have been possible to include a reference to the appropriate objects but that

Re: [DOTNET] C# Equivs of VB Functions

2002-05-30 Thread Jeremy Hopkin
I hate to say it but, I feel it must be said: You can use the VB.NET libraries from with C# ( although: String has been renamed StrDup ) MyVar = Microsoft.VisualBasic.StrDup(65, "-"); Jeremy :) >> >> Is there an equivalent in C# of the VB String() function? I want to >> create a line of 65 "-"

Re: [DOTNET] C# and Multiline TextBox

2002-05-30 Thread Rune Christensen 8397
Or this one: Environment.NewLine Rune C -Original Message- From: Rama Krishna [mailto:[EMAIL PROTECTED]] Sent: 30. mai 2002 17:42 To: [EMAIL PROTECTED] Subject: Re: [DOTNET] C# and Multiline TextBox I had the same problem but I fixed using \r\n instead of only \n. -Original Messag

Re: [DOTNET] C# and Multiline TextBox

2002-05-30 Thread Rama Krishna
I had the same problem but I fixed using \r\n instead of only \n. -Original Message- From: Patrick Burrows [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 30, 2002 11:39 AM To: [EMAIL PROTECTED] Subject: [DOTNET] C# and Multiline TextBox Got me a textbox set to multiline. I do this: text

[DOTNET] C# and Multiline TextBox

2002-05-30 Thread Patrick Burrows
Got me a textbox set to multiline. I do this: textBox1.Text = "s\ns"; And it shows: "s[]s" (where [] is the black line thing that says "I have a carriage return, but I'm not going to actually act on it"). Why doesn't it show: s s ? Patrick Burrows Stores are open but I Ain't got no money

Re: [DOTNET] ListBox error in ASP.NET

2002-05-30 Thread Kevin Burton
Thank you. Your suggested fix works. I was just using the example from ASP.NET Unleashed and ran into this bug that I could not seem to resolve. Thanks again. Kevin -Original Message- From: Matt Milner [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 30, 2002 9:52 AM To: [EMAIL PROTECTED]

[DOTNET] DbCombo V1.1 released

2002-05-30 Thread David Campbell
Cambro have just released V1.1 of the DbCombo component - our ASP.NET combo-box that autocompletes values from the server as you type. An evaluation version of DbCombo is also now available, so you can try DbCombo on your own server. New features include: * Your server method can now be in the

Re: [DOTNET] C# Equivs of VB Functions

2002-05-30 Thread Bill Schmidt
Perhaps, but not for your original question... string MyVar = new string('-', 65); will do what you asked. Bill On Thu, 30 May 2002 11:12:23 -0400, Patrick Burrows <[EMAIL PROTECTED]> wrote: >Good point. Though, I still needed the padd functionality. > > > > >Patrick Burrows >Well I woke up

Re: [DOTNET] C# Equivs of VB Functions

2002-05-30 Thread Walt Ritscher
Hmmm. You might want to look at the String constructor methods. In VB.Net Dim myVar As New String("-"c, 65) Dim otherVar As New String(CType("-", Char), 65) Dim yetAnotherVar As New String(Convert.ToChar("-"), 65) In C# String myVar = new string(Convert.ToChar("-"),65); Walt Ritsch

Re: [DOTNET] C# Equivs of VB Functions

2002-05-30 Thread Patrick Burrows
Good point. Though, I still needed the padd functionality. Patrick Burrows Well I woke up this morning With the cold water Now Playing: phish - billy breathes - 03 - waste (unnamed server) > -Original Message- > From: Bill Schmidt [mailto:[

Re: [DOTNET] ListBox error in ASP.NET

2002-05-30 Thread Matt Milner
Two things: First, the issue is probably with the shopping cart list because each item you are passing to it is selected. Given that this is probably only a reference to a control, changing it to be not selected might affect both lists. To get around this, I would try the following: dim newItem

[DOTNET] Static exception checking

2002-05-30 Thread Richard Birkby
Is there a tool like FxCop which will check an assembly, statically, for unhandled ApplicationException subclasses? Thanks, Richard 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# Equivs of VB Functions

2002-05-30 Thread Bill Schmidt
Patrick, Its just as well that you did hit send, because PadRight, PadLeft are not the 'correct' answer (even if they might work). The correct answer is to use one of the overloads of the string constructor. That is, type string MyVar = New string( and pick the appropriate constructor (i.e,

[DOTNET] Difference between .Net Framework and the .Net Compact Framework

2002-05-30 Thread PrashanthG
Hi, Can somebody highlight the differences or give pointers for the above regarding developing rich Win Client Apps, XML Support in Compact Framework? Any help in this regard will be appreciated - Thanks PrashanthG You can read messages from the DOTNET archive, unsubscribe from DOTNET, or sub

[DOTNET] Rendering Xml doc with a good UI in WinApp

2002-05-30 Thread PrashanthG
Hi, Just like we show XML Documents with a good UI (by combining it with xsl)in a browser is there any way to rendering an XML Document with a good UI in Windows App. If yes is this feature also supported in .Net Compact Framework?. Any help or pointers in this regard will be appreciated. Than

Re: [DOTNET] C# Equivs of VB Functions

2002-05-30 Thread Patrick Burrows
Nevermind. Looks like PadRight or PadLeft will do what I want. (you always find the answer as soon as you hit send... it is an unwritten rule of listservers). Patrick Burrows Found an old dog And he seems to like me Now Playing: phish - billy breathes - 03 - waste (unnamed

[DOTNET] C# Equivs of VB Functions

2002-05-30 Thread Patrick Burrows
Is there an equivalent in C# of the VB String() function? I want to create a line of 65 "-" characters (am formatting some text). In VB, I just do: MyVar = String(65,"-") Am looking through the members of the String class and don't see anything. I mean, obviously, I can accomplish the s

Re: [DOTNET] Problem with Visual Studio Designer

2002-05-30 Thread Bill Schmidt
Jan, Two things: (1) The client WinForm must be in a separate project from the components. The client project and the component project may both be part of the same solution, and the same assembly. (2) When adding the reference to the component project, look under the Projects tab (not the .NET t

Re: [DOTNET] ListBox error in ASP.NET

2002-05-30 Thread Kevin Burton
I would like to simply deselect this but I am unsure as to where to do it. Here is there complete source. If I deselect the selected item on the 'SelectedIndexChanged' event then isn't it too late? Kevin Sub lstProducts_SelectedIndexChanged( s As Object, e As EventArgs ) lstCart.Items.Add( l

[DOTNET] XML and Digital Signing

2002-05-30 Thread Farhan
I am very new to this concept and need some good pointers. any samples? articles? I need to digital sign XML to make sure it is access by right person/session. Thanks, Farhan You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at htt

Re: [DOTNET] Aspects as diagnostic probes, WAS: RE: Re: [DOT NET] AOP to police thread affinity?

2002-05-30 Thread John Lam
Yes! I spent some time talking about this, and this was one of the "far out" scenarios that I presented at the AOSD conference. There are some limitations that need to be enforced, of course: 1) That the local var was never passed as a parameter to another method. 2) That the local var was neve

Re: [DOTNET] Aspects as diagnostic probes, WAS: RE: Re: [DOTNET] AOP to police thread affinity?

2002-05-30 Thread John Lam
Thanks Ed, I'll add that one too. I've also seen a third scenario, which is a developer accidentally serializes a giant object into something (MSMQ, ViewState, SessionState), and there's nothing to warn them about their mistake. I think that putting hard limits on the size of these things will le

Re: [DOTNET] ASP.NET and HTTP request routing in a web farm

2002-05-30 Thread Peter Foreman
--- Bryan Batchelder <[EMAIL PROTECTED]> wrote: > http://www.microsoft.com/windows2000/docs/NLBtech2.doc Thanks Bryan. I realized that I've actually skimmed this document before - I'll take the trouble to read it fully this time! "When inspecting an arriving packet, all hosts simultaneously pe

Re: [ADVANCED-DOTNET] singleton server problem

2002-05-30 Thread Marco Russo
Manuel, It's an old problem I discovered one year ago. You can partially solve it having more than one CPU, but when you have N simultaneous calls where N is the same number of CPUs you have, the problem is the same. A workaround is to place calls like Sleep() or PeekMessage() inside your functio

Re: [ADVANCED-DOTNET] Versioning and Explicit Exception declaration

2002-05-30 Thread Richard Birkby
For a discussion on Java checked exceptions and C# see: http://www.thecoadletter.com/issues/modeling/coadletter-modeling-090%20excep tional%20strategies.htm > -Original Message- > From: Moderated discussion of advanced .NET topics. > [mailto:[EMAIL PROTECTED]]On Behalf Of Inge Stubdal

Re: [DOTNET] Fonts

2002-05-30 Thread Ian Griffiths
The FontFamily class provides a GetFamilies method and a Families property. These both provide you with a complete list of available fonts. You can then look for the font you require. Or you can use the InstalledFontCollection class. Normally this will return the same information. (Unless your

[DOTNET] Fonts

2002-05-30 Thread Jeff Roberts
Is there a simple way to determine if a specific Font is installed from C# ? thank you You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.

Re: [DOTNET] ASP.NET and HTTP request routing in a web farm

2002-05-30 Thread Bryan Batchelder
> Seriously, has anyone got a link to something describing how > this works? I couldn't find anything on MSDN. http://www.microsoft.com/windows2000/docs/NLBtech2.doc Bryan Batchelder eBusiness Consultant ConnectWise, Inc. 813-935-7100 x 425 You can read messages from the DOTNET archive, u

Re: [DOTNET] why does DataSet have to be static meber

2002-05-30 Thread Karen Healey
OK... that explains it. Thank you everyone, Karen - Original Message - From: "Ian Griffiths" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, May 30, 2002 03:03 Subject: Re: [DOTNET] why does DataSet have to be static meber > Of course what hadn't occurred to me was that y

Re: [DOTNET] Are there any FTP classes in .NET ?

2002-05-30 Thread Jeff Roberts
Where do I find Xceedsoft's Ultimate Suite ? You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.

Re: [DOTNET] Accessor on an accessor not allowed. Why?

2002-05-30 Thread Jon Jagger
On Thu, 30 May 2002 10:30:07 +0100, Ian Griffiths <[EMAIL PROTECTED]> wrote: >> >> > someControl.Size.Width * 2; >> > >> >> But the whole statement might _not_ be pointless. >> >> One of the main points of a property is that a write >> >> context you don't get an assignment you get a set >> >> ac

[DOTNET] gcroot template with warning C4244?

2002-05-30 Thread Thomas Tomiczek
Hello, When using the gcroot template to hold a managed object reference in an unmanaged C++ class, I get the following template error: C:\<...>gcroot.h(91) : warning C4244: 'argument' : conversion from 'intptr_t' to 'int', possible loss of data Now, what is THIS? The line in the template reads

Re: [DOTNET] System.Drawing.dll Exception??

2002-05-30 Thread Paul Jefferies
This is the call that generates the error (in the designer generated InitializeComponent()) : this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); The stack calls shown when the exception is

  1   2   >