Wednesday, 12 September 2007
|
| Simple Text Parser Matthew Bell 19:55:01 |
| | I am looking at developing a simple text parser. Is there an easy way to format '<b>hello</b> world' and place it in a textbox or label.
I'm looking at implementing hyperlinks and maybe a picture from a text document like the example above and I might as well add in the normal b/u/i. Basically I'm looking for speed and a reduction in the size of the file that needs to be stored as doing this using word documents would be very sloppy.
Are there any useful controls out there or am I going to have to craft something myself. And if I'm crafting it myself is there an easy way to go about it or do I have to start hovering link-labels over textboxes etc.
Cheers Matt ___________________________ Disclaimer Notice ____________________ This message and any attachments are confidential and should only be read by those to whom they are addressed. If you are not the intended recipient, please contact us, delete the message from your computer and destroy any copies. Any distribution or copying without our prior permission is prohibited.
Internet communications are not always secure and therefore the E.ON Group does not accept legal responsibility for this message. The recipient is responsible for verifying its authenticity before acting on the contents. Any views or opinions presented are solely those of the author and do not necessarily represent those of the E.ON Group.
E.ON UK plc, Westwood Way, Westwood Business Park, Coventry, CV4 8LG. Registered in England & Wales No. 2366970
E.ON UK Trading Ltd, Westwood Way, Westwood Business Park, Coventry, CV4 8LG Registered in England & Wales No. 4178314
E.ON UK Trading Ltd is authorised and regulated by the Financial Services Authority to carry out energy investment activities.
Telephone +44 (0) 2476 42 4000 Fax +44 (0) 2476 42 5432
|
| | 2 answer | Add comment |
|
| Re: DOTNET-CLR Digest - 10 Sep 2007 to 11 Sep 2007 (#2007-123) Mike Cohen 08:13:44 |
| | Because of the Jewish High Holidays we will be closed until Monday Sept 17th, but we will check in for urgent messages
Mike Cohen Network-Companions Xerox Sales Agency Document Solutions Networks, Architecting, Wi-Fi, Hotspots Operating Systems, Exchange Server SQL Server, Ecommerce, Web Sites, Enterprise Application Integration, Cardiovascular Research Solutions, GLP, CFR 21 Part 11 Compliance Solutions Phone 800-921-NET0 (6380) Vociemail or Fax 800-859-6529 <http://netcomp.d2g.com> http://netcomp.d2g.com <mailto:mpcmanch@network-companions.d2g.com> mpcmanch@network-companions.d2g.com
=================================== This list is hosted by DevelopMentor http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
|
| | Add comment |
Tuesday, 11 September 2007
|
| Enumerating Dictionaries Brady Kelly 23:31:48 |
| | I find it a tad irritating that when I want to iterate all the ColumnDefintion objects in my RecordDefinition, I always have to use '.in recDef.Columns.Values'.
Is there a nice way I can expose an enumerator over the values property as my 'Columns' property? Then I have problems adding etc.
=================================== This list is hosted by DevelopMentor http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
|
| | 1 answer | Add comment |
|
| Evaluation of post-increment Brady Kelly 21:49:34 |
| | Suppose I use the following to compare column names in my test columns array with columns parsed by a parser under test. The parsed columns should be the same as those used to create the string that is parsed.
RecordDefinition def = parser.ParseLineAsHeader(headerLine);
int i = 0;
foreach (ColumnDefinition col in def.Columns.Values)
{
Assert.AreEqual(testHeader[i], col.ColumnName, "Incorrect name on column {0}.", i++);
}
Am I correct in assuming that 'i' will always be incremented?
=================================== This list is hosted by DevelopMentor http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
|
| | 3 answer | Add comment |
Monday, 10 September 2007
|
| Guessing field delimiters Brady Kelly 21:28:42 |
| | I'm busy developing a tool to convert my existing base of template based record layouts to record layouts defined by an XML schema. Maintaining a record layout definition as one long string full of empty quotes and empty field double delimiters is looking for trouble. I'm now working on a tool where the user selects a single line in the existing template, or in an example file, and my code infers a collection of columns that define the record layout.
So far, just today, I have come across three different column delimiters, v.i.z TAB, comma, and something that renders a right angled corner graphics character. I would like to be able to guess the delimiter, if there is some sort of pattern I can look for, but it's not easy finding one.
Maybe the best I can do is allow the user to guess, and give a visual representation of the result of using the guessed delimiter. Another option is to allow the user to select two field contents and find the non-printable character in between the two field contents.
=================================== This list is hosted by DevelopMentor http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
|
| | 1 answer | Add comment |
Sunday, 9 September 2007
|
| ItemDataBound not Firing on Repeater Brady Kelly 18:04:51 |
| | I have a user control that comprises a Repeater that builds a vertical table of buttons. In the Page_Load event of the user control I bind an event handler, but the event never fires. My code is like this:
protected void Page_Load(object sender, EventArgs e)
{
rptPageButtons.ItemDataBound += new RepeaterItemEventHandler(rptPageButtons_ItemDataBound);
}
void rptPageButtons_ItemDataBound(object sender, RepeaterItemEventArgs e)
{
throw new Exception("The method or operation is not implemented.");
}
However, if I use the OnItemDataBound attribute, the event fires. Why could this be?
=================================== This list is hosted by DevelopMentor http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
|
| | 5 answers | Add comment |
|
| web page and masterpage base classes Mark Aurit 18:03:49 |
| | I use a base page (which inherits from System.Web.UI.Page) behind my .aspx, and I have a similar one behind my masterpage (inheriting from System.Web.UI.MasterPage). Im seeing the need by both to use many of the same functions, but Im assuming I cant use the same for both. Ive played the cut-and-paste inheritance in the paste, and am not a fan. Does anyone have any advice for a good strategy to do this? (share the same functions between different base pages) Thanks very much Mark
=================================== This list is hosted by DevelopMentor® http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
|
| | 3 answer | Add comment |
Friday, 7 September 2007
|
| Custom Paging Brady Kelly 11:37:01 |
| | I'm trying to devise a custom paging control for use with our in house grid (HTML table with lots of JavaScript). The paging should be alphabetic, so what I've thought of doing is calculating a page set, with each page displaying pagelen number of records between 'Aaron - Cook', e.g. where the records from Aaron to Cook comprise one page. I favour this over just using a single page button for each letter of the alphabet as the B page may have more than pagelen records.
This approach will however potentially produce more page buttons than can be display at once, and it's here I'm looking to enhance the user experience, to avoid them having to scroll through the page buttons. Any ideas on how I can present the page buttons to the user in more than just a scrolling list?
=================================== This list is hosted by DevelopMentor http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
|
| | 1 answer | Add comment |
Wednesday, 5 September 2007
|
| Re: Hide the "X" on a Windows Form Mike Andrews 18:44:15 |
| | I don't believe there is a way to do that unless you want to create your own owner-drawn form. You can prevent the form from closing when the x is clicked by using the Form_Closing event and setting the Cancel property of the CancelEventArgs argument to true.
On 9/4/07, Greg Robinson <greg@cds-am.net> wrote:
How does one hide the "X" (Close) on a Windows From? I need to hide the X but leave the Maximize and Minimize. Thanks, Greg Robinson Custom Data Systems, Inc.
|
| | 6 answers | Add comment |
Friday, 31 August 2007
|
| Coding Standards Ajay Thakur 15:50:05 |
| | Hi all,
Does Microsoft have any kind of coding standard being defined for .NET languages? . This is especially due to the large amount of change in the languages, especially VB.NET.
Any quick pointers to the above would be highly appreciated.
Thanks & Regards,
Ajay Thakur *HCL Perot Systems Ltd., 'Shivalaya',Plot No. 123 EP-IP, IInd Phase, Whitefield Industrial Area Bangalore 560066. * 8413000/09. Xtn. - 2139 Fax: +91- 80- 841 2855 ********************* "Truth is Stranger than fiction" ********************* WARNING: The information in this message is confidential and may be legally privileged. It is intended solely for the addressee. Access to this message by anyone else is unauthorised. If you are not the intended recipient, any disclosure, copying, or distribution of the message, or any action or omission taken by you in reliance on it, is prohibited and may be unlawful. Please immediately contact the sender if you have received this message in error. Thank you.----------------- HCL Perot Systems
You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.
|
| | 24 answer | Add comment |
Tuesday, 28 August 2007
|
GPRS communications Indy 06:39:55 |
| | I am developing a network of client Kiosk applications that sell virtual products and accept cash as payment. They need to communicate with a central server to find out if the product type is available and communicate with the Kiosk for offer to the customer. Since these client Kiosks will be in remote locations I prefer communication via GPRS modems. The client app is written in VB. How can I design the GPRS communications? |
| | Add comment |
|
RS233 communication Indy 06:35:34 |
| | I would like to add a Bill Validator to my Kiosk application that will communicate via the RS232 port using HEX codes, how can I do this in VB? |
| | Add comment |
Monday, 27 August 2007
|
| enum ToString(); R. Rogers 22:51:22 |
| | Hi everyone,
I have the following declarations: enum UploadTypes { utRPlus, utRdf, ut3000Extra, utBridge, utDealing }; UploadTypes UserSelectedUploadType;
Later on I have the following: UploadTypeCell.Value = UserSelectedUploadType.ToString();
Questions: Is an enum an object? Is there a way for me to override the ToString() method? If not, what would be ways for me to provide a description for each enumerated value?
Richard
|
| | 4 answer | Add comment |
Thursday, 23 August 2007
|
| XML Serialization and Formatting Steve Johnson 21:55:29 |
| | How can I specify a format string for a property serialized by XmlSerializer? Say I have a property of type decimal, whose value is 2. I want the serialized text to be "2.00", so I need to specify a format string of "0.00". Given the sample property, Amt, below, how could I fix this up to format correctly? Thanks.
[System.Xml.Serialization.XmlElementAttribute(Order=0, ElementName="Amt")] public decimal Amt{...}
-- Steve Johnson
=================================== This list is hosted by DevelopMentor® http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
|
| | 7 answers | Add comment |
Wednesday, 22 August 2007
|
| Flat File Generator (OT) Brady Kelly 17:48:51 |
| | Sorry for the OT, but I'm running short of places to ask.
I'm to develop, or integrate, a flat file generator into my integration application. Using SSIS is proscribed by many client sites running SQL Server Express, and while I have toyed with the idea of using existing RDL and report designers to define delimited and fixed width layouts, unless someone can recommend a tool particularly suited to this, I shall be developing one.
I have two questions: Is there any way I can use existing ADO.NET functionality for this, and, what would be a good XML schema to use for the layout definitions? I see BizTalk has a schema, which I will look at now. It would be advantageous for me to use a schema, maybe still RDL, that will allow other tools to consume my file definitions.
=================================== This list is hosted by DevelopMentor http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
|
| | 2 answer | Add comment |
|
| List Owner/Moderator? Peter Osucha 17:11:07 |
| | Who is the list owner/moderator (would I find this at Discuss.Develop.Com somewhere)? I have a question about list postings...
Peter
=================================== This list is hosted by DevelopMentor http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
|
| | 1 answer | Add comment |
Monday, 20 August 2007
|
| gridview javascript confirmation popup Alex Smotritsky 18:49:16 |
| | In a gridview I'd like to pop up a javascript confirmation dialog to allow the user to confirm that they want a server side action taken after they click on a control in the gridview like a button or linkbutton. Anyone know how to do this?
=================================== This list is hosted by DevelopMentor http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
|
| | 2 answer | Add comment |
Saturday, 18 August 2007
|
| OT: RE: [DOTNET-CLR] Interesting issue Daniel Petersson 14:30:50 |
| | FransB: of course you are right tcp and queueing frameworks are nothing new and your suggestions are perfectly valid within a global scope. Gregs problem scope wasn't global but rather special; don't you agree?
I'm very sorry if I have upset you but i was trying to pass you a note on problem solving; which I thought that this list was all about; suggesting tcp will not solve the problem. I tried to pass this note with a little humor; but hey I'm a SW-engineer and not a comedian and as they say: "I shouldn't quit my day job" ;)
The reason for the note is simple I don't have infinate amounts of time; and I like to help-out on this list and educate my self on this list. Your mail was; as this one also is; off-topic since they wont solve THIS problem.
You previously stated that I shouldn't read your notes if I didn't find them interesting; but that is the problem: I DO find them interesting; (and I also read your blog posts) but when you post of topic you waste my time ... get my point?
Best Regards, Daniel ________________________________________ From: Discussion of development on the .NET platform using any managed language [DOTNET-CLR@DISCUSS.DEVELOP.COM] On Behalf Of Frans Bouma [perseus3@XS4ALL.NL] Sent: Friday, August 17, 2007 10:26 AM To: DOTNET-CLR@DISCUSS.DEVELOP.COM Subject: Re: [DOTNET-CLR] Interesting issue
FransB: Go read a book on problem solving! If you don't understand the domain-
issues at hand either Shut-The-f*-up or be humble enough to ask someone who understands them; in this case Greg. I don't need your freaking permission to post on this list, Daniel so don't act like you can tell me what to post here and what not. I also now expect you to bash the people who suggested a queuing framework, because that's out of the question as well?
So pretty pleaze; with sugar on top; could you please get of your high-tcp- horse and realize that the problem described by Greg can't be solved with tcp. (cleary explained early in the mailings; hence my comment that you need to read the backlog of messages; or atleast state that you haven't) btw: tcp won't solve the problem since we can't change from udp to tcp and therefore it is just a un-informed suggestion (at best) or idotic suggestion (at worst). Ok, you can't change the transportation protocol, but the solutions provided by that transportation protocol-that-shall-not-be-named are still the ones you have to implement as well, as it solves the same problems.
I missed the early mails indeed, so it might look as if I'm stupid, so for that: sorry.
But that doesn't mean this problem is unique and hasn't been solved before. It has, many times over. Or do you disagree with that too?
FB
=================================== This list is hosted by DevelopMentor? http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
=================================== This list is hosted by DevelopMentor http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
|
| | 1 answer | Add comment |
Friday, 17 August 2007
|
Problem with XmlSchema....Urgent!!!!! hemendra vyas 10:42:59 |
| | Please help out in following code snippet, please reply me at hvyas@irevna.com:
For the first time it gives prompt while XmlSchema.Read(). Second time schema_collection_object is not null and so does not enter into this block of code.
Please help............
private static XmlSchemaCollection schema_collection_object; private static XmlSchema m_ifschema; ------- ------- -------
if (schema_collection_object==null) { schema_collection_object=new XmlSchemaCollection();
XmlTextReader xmlFile=new XmlTextReader(path); //path contains the path of the .xsd file
m_ifschema=XmlSchema.Read(xmlFile,new ValidationEventHandler(ValidationCallBack));
//*******error is genarated in the above statement
m_ifSchema.Compile(newValidationEventHandler(Valid ationCallBack));
schema_collection_object.Add(m_ifSchema); }
|
| | Add comment |
Thursday, 16 August 2007
|
| Off topic WCF question Chris Bordeman 00:03:44 |
| | Hi all. I apologize for the off-topic post but I'm having trouble getting a response on this issue elsewhere.
I created a custom ServiceHost object and did a bunch of initialization there. Now I need to access an object in it from the actual WCF service class. How can this be done?
Thanks!!!
-----Original Message----- From: Discussion forum for developers using Windows Forms to build apps and controls [mailto OTNET-WINFORMS@DISCUSS.DEVELOP.COM] On Behalf Of Bhatnagar, Amit Sent: Tuesday, August 14, 2007 5:25 PM To: DOTNET-WINFORMS@DISCUSS.DEVELOP.COM Subject: [DOTNET-WINFORMS] Minimize application - Form and their Owners...
Hi All.
I have 3 forms: - MainForm (my top level form) (MF) - SecondaryForm (SF) - TertiaryForm (TF)
MF is the Owner of SF. SF is the Owner of TF.
MF can display SF non-modally, and subsequently SF can display TF non-modally.
If SF is closed, then TF has no meaning and should be closed, and it does because TF's Owner is SF. I want to maintain this relationship.
My problem is when I minimize MF. I want both SF and TF to be minimized, but only SF gets minimized and not TF. I assume this because SF is directly owned by MF, but TF is directly owned by SF.
How can I make it so that the relationship between SF and TF is maintained, but when I minimize my MF, all of the forms minimize?
I would have thought that since SF owns TF, that when SF is minimized (because MF got minimized), it would also minimize those forms that it owns - but it doesn't!
I hope this makes sence..
The information contained in this e-mail message is PRIVATE. It may contain confidential information and may be legally privileged. It is intended for the exclusive use of the addressee(s). If you are not the intended recipient, you are hereby notified that any dissemination, distribution or reproduction of this communication is strictly prohibited. If the intended recipient(s) cannot be reached or if a transmission problem has occurred, please notify the sender immediately by return e-mail and destroy all copies of this message. Thank you.
|
| | 1 answer | Add comment |
Wednesday, 15 August 2007
|
| Deriving new Exception Class Brady Kelly 17:04:31 |
| | I needed to set the exception message to a string looked up using an error code. The error code is passed to my only constructor for my derived exception. I needed to include a decision on whether the error code was null or unknown, or a valid key into my message dictionary.
I then found that the only way I could set the Message property was through the base class constructor, as the property is read only. This meant I had to implement a static function to determine the error text and use that in accessing the base constructor. Is there any other way I could have done this?
public SdkException(int? errorCode): base(GetErrorDesc(errorCode))
{
}
private static string GetErrorDesc(int? errorCode)
{
if ((!errorCode.HasValue) || (!sdkErrors.ContainsKey(errorCode.Value)))
{
return "Null or unknown error code.";
}
else
{
return sdkErrors[errorCode.Value];
}
}
=================================== This list is hosted by DevelopMentor http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
|
| | 2 answer | Add comment |
|
| Minimize application - Form and their Owners... Amit Bhatnagar 00:05:28 |
| | Hi All.
I have 3 forms: - MainForm (my top level form) (MF) - SecondaryForm (SF) - TertiaryForm (TF)
MF is the Owner of SF. SF is the Owner of TF.
MF can display SF non-modally, and subsequently SF can display TF non-modally.
If SF is closed, then TF has no meaning and should be closed, and it does because TF's Owner is SF. I want to maintain this relationship.
My problem is when I minimize MF. I want both SF and TF to be minimized, but only SF gets minimized and not TF. I assume this because SF is directly owned by MF, but TF is directly owned by SF.
How can I make it so that the relationship between SF and TF is maintained, but when I minimize my MF, all of the forms minimize?
I would have thought that since SF owns TF, that when SF is minimized (because MF got minimized), it would also minimize those forms that it owns - but it doesn't!
I hope this makes sence..
The information contained in this e-mail message is PRIVATE. It may contain confidential information and may be legally privileged. It is intended for the exclusive use of the addressee(s). If you are not the intended recipient, you are hereby notified that any dissemination, distribution or reproduction of this communication is strictly prohibited. If the intended recipient(s) cannot be reached or if a transmission problem has occurred, please notify the sender immediately by return e-mail and destroy all copies of this message. Thank you.
|
| | Add comment |
Tuesday, 14 August 2007
|
| Properly terminating an application. Amit Bhatnagar 22:01:07 |
| | Application.Exit() or this.Close() on your main (top level) form?
The information contained in this e-mail message is PRIVATE. It may contain confidential information and may be legally privileged. It is intended for the exclusive use of the addressee(s). If you are not the intended recipient, you are hereby notified that any dissemination, distribution or reproduction of this communication is strictly prohibited. If the intended recipient(s) cannot be reached or if a transmission problem has occurred, please notify the sender immediately by return e-mail and destroy all copies of this message. Thank you.
|
| | 1 answer | Add comment |
|
| unit test Andrew Dunn 00:02:54 |
| | Hi,
I want to develop unit tests in a separate project to my main project.
I want to be able to develop unit tests on internal or private members of the main project.
I have read that it may be possible to do this by using Reflection to load the private members of an assembly.
Does anyone experience in this and can offer some pointers?
Regards,
Andrew
=================================== This list is hosted by DevelopMentor http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
|
| | 7 answers | Add comment |
Monday, 13 August 2007
|
| Website timeouts Dean Cleaver 16:44:14 |
| | Hi, I've got users complaining about the website timing out too quickly - I've set every timeout I can find to be 30 minutes but they're still complaining. I've set the Forms Authentication timeout to be 30 minutes sliding - website timeout is 30 minutes - but they seem to get booted in about 5 or 10 minutes - is there another timeout I have missed? TIA Dino
=================================== This list is hosted by DevelopMentor® http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
|
| | 11 answers | Add comment |
|