Re: [ADVANCED-DOTNET] Flicker problem in richtextbox

2005-03-26 Thread Jamin Guy
You could inherit from RichTextBox and use the Control.SetStyle()[1] function in the ctor. Google on it and you will find examples. [1] http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwindowsformscontrolclasssuspendlayouttopic.asp ===

Re: [ADVANCED-DOTNET] Flicker problem in richtextbox

2005-03-26 Thread Jamin Guy
Have you checked out double-buffering? http://www.codeproject.com/cs/media/flickerFreeDrawing.asp === This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com

Re: [ADVANCED-DOTNET] Flicker problem in richtextbox

2005-03-26 Thread Tony Hal
Hi Peter, I did try using SuspendLayout and ResumeLayout in my ChangedText event handler, but this does not help. I believe these methods are only for suspending/resuming the layout logic (?), it does not necessarily suspend the painting. Basically I am looking for ways to disable the painting temp

Re: [ADVANCED-DOTNET] Most appropriate design pattern to use for ...

2005-03-26 Thread Chad Osgood
I would use something analogous to a factory method. You're trying to defer the instantiation of an object to another class that holds the most appropriate knowledge on which to create. Your code might then look liked this: string source = enrollmentDoc.SelectSingleNod("/EnrollForm/Source").Inne

Re: [ADVANCED-DOTNET] Bulk data transfer of xml-based data: Best methods

2005-03-26 Thread saad rehmani
anything over http (including webservices) might / should support http compression. i.e., it be able to uncompress streams with a 'Content-Encoding: gzip' before passing it onto the web service. its worth a test :) -saad --- Philip Nelson <[EMAIL PROTECTED]> wrote: > --- Julia Lerman <[EMAIL PR

Re: [ADVANCED-DOTNET] Most appropriate design pattern to use for ...

2005-03-26 Thread saad rehmani
yes. you can use the state pattern to manage what state (distinct xml document) you're in. further, each state could have an intercepting filter (if you're using multiple handlers to process a request) or a chain of responsibility (if a handler will always be responsible for complete processing)

Re: [ADVANCED-DOTNET] List of computers connected over network

2005-03-26 Thread Ashes Mukherjee
Actually, you have to use P/Invoke as there is no .NET equivalent published yet. From: Ankit Bhurat [mailto:[EMAIL PROTECTED] Sent: Tue 3/22/2005 2:54 PM To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM; Ashes Mukherjee Subject: Re: List of computers connected over network

Re: [ADVANCED-DOTNET] Bulk data transfer of xml-based data: Best methods

2005-03-26 Thread Philip Nelson
--- Julia Lerman <[EMAIL PROTECTED]> wrote: > Beware that the webclient class, which has fileupload and filedownload > methods currently does not support FTP, though it will in Whidbey. Good point. I'll just add a couple of points I thought of while skimming the posts. FTP is almost always a poo

Re: [ADVANCED-DOTNET] Flicker problem in richtextbox

2005-03-26 Thread Peter Ritchie
Tony: Check out Control.SuspendLayout and Control.ResumeLayout (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwindowsformscontrolclasssuspendlayouttopic.asp) -- Peter On Sat, 26 Mar 2005 12:49:36 +, Tony Hal <[EMAIL PROTECTED]> wrote: >Hi, >I am impl

Re: [ADVANCED-DOTNET] Bulk data transfer of xml-based data: Best methods

2005-03-26 Thread Julia Lerman
Beware that the webclient class, which has fileupload and filedownload methods currently does not support FTP, though it will in Whidbey. -Original Message- From: Unmoderated discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Alex Smotritsky Sent: Saturday, March 26

Re: [ADVANCED-DOTNET] Bulk data transfer of xml-based data: Best methods

2005-03-26 Thread Alex Smotritsky
I think there are some classes in .net which wrap wininet which is a windows api which supports ftp and a few other things. -Original Message- From: Unmoderated discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Chad Osgood Sent: Friday, March 25, 2005 6:17 AM To: A

[ADVANCED-DOTNET] Flicker problem in richtextbox

2005-03-26 Thread Tony Hal
Hi, I am implementing syntax coloring for C# language using the richtextbox control. I handle the TextChanged event in which I need to calculate the affected or changed text, tokenize the text and redraw the coloring of each token. I got the tokenizer logic works fine. The updated text gets re-colo