Groups | Blog | Home


Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
March 2008
April 2008
all groups > c# > october 2004 > threads for monday october 11

Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31

Writing TreeView Contents To XML
Posted by robgale NO[at]SPAM gmail.com at 10/11/2004 11:40:07 PM
I am writing an RSS reader in C# and I'm trying to write the contents of a TreeView to an XML file. I have tried using XmlWriter and have managed to write simple tree structures but I get confused when it comes to dealing with complex tree structures such as those that have multiple folders and ...more >>


Xml Question?
Posted by Raed Sawalha at 10/11/2004 10:27:34 PM
Dear :=20 I have XML with following structure: saved with name report.xml <Report>=20 <!-- Part (1) --> <Client ID=3D"1" IP=3D""> <!-- Part (2) --> <Date></Date> <Statistics> <Pearsons></Pearsons> <ComfortValue></ComfortValue> <RequestedURLs> <URL> <Number></Number> <Path></Path> </URL...more >>

asp.net chinese encoding
Posted by pablo.venegas NO[at]SPAM gmail.com at 10/11/2004 10:08:43 PM
Hello all, I am having a few issues with encoding to chinese characters and perhaps someone might be able to assist. At the moment I am only able to see chinese characters when displayed as part of a datagrid. When an input textbox is displayed it does not display chinese characters, but r...more >>

Where to put the SQLDataAdapter.Update() method?
Posted by Fernando at 10/11/2004 8:35:16 PM
I am having problems with updating the changes done over a DataSet to a Database. All the changes being done using the Form are stored in the Dataset, but when i decide to close the Form and open the form again, the changes are lost. Also, the modification process works great, but adding or de...more >>

Use csc.exe to compile "Embedded Resource"
Posted by Happy Li at 10/11/2004 8:13:12 PM
Need help! I have a project with one crystal report. How can I compile it with csc.exe. I have tried the following command line .it compile successfully..but when I run, it display error 'Unable to find the report in the manifest resources'. csc.exe /target:exe /resource:source\abc.rpt,ab...more >>

Conditional Code at Runtime
Posted by Alan Roberts at 10/11/2004 7:32:57 PM
Is it possible to have conditional references and code execution in csharp? I have an app that plays Windows Media asx streams. It requires WMP 9+ to be installed for this to work and so this is a pre-requisite for my app. The app is also capable of playing real audio streams, for which it re...more >>

Datagrid: highlight row based on contents
Posted by Ben Bloom at 10/11/2004 7:15:31 PM
I've got a datagrid with a column named "Type". If cells in this column contain "Error" I would like to highlight them (say - turn the text red, or the background red.) How do I do this? Is there an example out there somewhere? Thanks! -- to reply, remove .s.p.a.m. from email...more >>

modifying standart textbox
Posted by David at 10/11/2004 6:57:56 PM
hello... i coded these: public class TextBoxBrowse : TextBox { public TextBoxImgBrowse () : base () { Button b = new Button(); b.Size = new System.Drawing.Size(24, 21); b.Dock = DockStyle.Left; b.Text = "..."; b.Click += new EventHandler(b_Click); this.Controls.Add (b); ...more >>



Printing HTML file
Posted by news.microsoft.com at 10/11/2004 6:23:33 PM
Hello! I would like to print an HTML file in C#. I can open the file as a stream and send it to the printer.... but obviously, the source code is printed. What I need is to print the document content itself, not the HTML source code. Thanks. Arcadius...more >>

updating datagrid after returning
Posted by Pam Ammond at 10/11/2004 5:55:32 PM
After clicking btnDeleteSize_Click in frmSize, I move to frmSizeDelete, allow deleting a Size using a datagrid, and then return to frmSize and want to update the datagrid in frmSize to reflect the deletion. I can't figure out how to get the datagrid in frmSize updated, although the datagrid i...more >>

Temporary disabling compiler warning
Posted by Marco Singer at 10/11/2004 5:21:33 PM
Hi all, how can I disable a special compiler warning (for example CS0162) within a region of code? In C++ there is the "#pragma warning" compiler directive. But I did not found any matching in C#. Thanks Marco ...more >>

block certain IP addresses
Posted by rosty at 10/11/2004 4:03:10 PM
Hi, is it possible to block all traffic with an IP address using .NET Framework? I wont to write a small program, that runs under win2000/XP and blocks all traffic with the IP addresses that are in the black list. But looks like the ..NET Framework is the wrong place to look for solution, or am ...more >>

Activity Bar
Posted by google NO[at]SPAM valleyboy.net at 10/11/2004 4:01:07 PM
I have found an Activity Bar control which looks to be exactly what I need for my splash screen, but I can't seem to get it working. When I initialise the Start method, the application bar works great until I do any other processing, which is when it freezes! There is no documentation with the c...more >>

Get the selected Text from other Process
Posted by Marcus Peters at 10/11/2004 3:59:38 PM
Hi folks, I need to copy the selected text in any other application to the clipborad. I played around with several ways which did not work: Win API: Send a Message with WM_COPY --> Worked only with TextBoxes, ComboBoxes and so on, There are several posts for doing so. But way to copy from...more >>

A Scalable TCP Server
Posted by SRLoka at 10/11/2004 3:58:13 PM
After reading the newsgroups and various .Net web sites, I have come to a conclusion that BeginReceive and BeginSend are the way to go as they use IOCompletion Ports(I have no clue what they mean but most C++ programmers seem to prefer them, based on my readings). I have decided to use this ...more >>

DateTime populaing based on regional settings In ASP.NET Application
Posted by Karunakararao at 10/11/2004 3:43:48 PM
Hi All DateTime populaing based on regional settings In ASP.NET Application Iam using this Code: Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture(HttpContext.Current.Request.UserLanguages[0]); Thread.CurrentThread.CurrentUICulture = new CultureInfo(HttpCont...more >>

running XSL on XML generated by object serialization
Posted by Julia at 10/11/2004 3:40:31 PM
I am getting some obsolete warning when using XslTransform has any one have an example of loading XSL from memory and run it on an XML generated by object serialization? Thanks in advance ...more >>

Wait Issue
Posted by Susan at 10/11/2004 3:05:03 PM
I am trying to amend someone else's code. He had a user control pop up as modal so that the user can not access the main app till he is done with the user control. I have had to change the form from being modal so that the user can access help and the user control, while not accessing the ma...more >>

Parsing XML within XML
Posted by Dinçer at 10/11/2004 2:54:56 PM
I need to parse an XML file and print the contents of it on an aspx page. My XML file structure is like this: <QueryResult> <messageNo>1</messageNo> <messageText /> <HERE> <ExternalIntegrator><Entities> <name>John</name> <surname>Carpe...more >>

Overrides and intellisense
Posted by Simon at 10/11/2004 2:54:10 PM
Hi, I'm slowly moving from VB.Net to C#. When using VB.Net in Visual Studio (for Windows and Web Forms) the code window identifies a set of '(Overrides)'. I am unable to locate and such IDE/Intellisense help for this in C#. Is it there? Thanks, Simon ...more >>

Expert Input for Asynchronous Socket
Posted by hifchan NO[at]SPAM yahoo.com at 10/11/2004 2:26:35 PM
Building an Asyc Socket DLL using C#, I followed MS .NET FRAMEWORK library sample (see "Asynchronous Client Socket Example") and created a DLL called MSSock. I then reference MSSock in a .exe c# program to test it. This .exe has a form which has a button and a text field to invoke the DLL asy...more >>

making a button the default?
Posted by Derrick at 10/11/2004 1:50:53 PM
Didn't there used to be some property where you could set a button to be the "default" so that if a user pressed enter with any control in focus, the button would still get the click event? Some way you could set it as the "cancel" button too, wasn't there? Anyway, can you do this with window...more >>

Instantiating a form's dataset
Posted by Esteban404 at 10/11/2004 1:49:13 PM
I'm trying to create a preview shot of a record being edited, so I want to take the current state and pass it to a instance of a form I have. I've tried to create a dataView and pass that, but it has been failing. System.Data.DataRowView drvCurrent; System.Data.DataView dvNew; dvNew = new S...more >>

use of exceptions or compolex classes instead of parameters by ref
Posted by Sankar Nemani at 10/11/2004 1:33:51 PM
When I am designing a method that returns a value of a certain type (say = Type1) and then occassionally has to return value of certian other type = (say Type2), I can design the method in the following ways (I am not = sure if there are more ways).=20 1.. Type1 foo(ref Type2 x){ //populate x ...more >>

How do i get the namespace at compile time?
Posted by Julia at 10/11/2004 1:22:09 PM
How do i get the namespace of a class at compile time? Thanks ...more >>

Stronged key Interop for "User Control"
Posted by Tamir Khason at 10/11/2004 1:02:14 PM
I have unmanaged COM wich is ActiveX I want to use it as signed interop user control so doing aximp MyComActiveX.dll /keyfile:MyKey.snk it builds MyComActiveLibX.dll wich is signed and AxMyComActiveXLib.dll wich is interoped ActiveX control. This one Ax... DOES NOT SIGNED !!! and when using ...more >>

documenting projects
Posted by Nikhil Patel at 10/11/2004 12:51:54 PM
Hi all, Is there any tutorial on how to document C# Asp.Net application? Thanks. -Nikhil ...more >>

XmlDocument.Load
Posted by Nikhil Patel at 10/11/2004 12:36:05 PM
Hi all, I use a Word Xml Template in ASP.Net application. Basically when a user clicks on a certain button on a web form, I open the template using XmlDocument.Load method; replace some strings in the document with user selected values; and save the document with a unique name generated a...more >>

get filename from filepath
Posted by Nikhil Patel at 10/11/2004 12:11:06 PM
Hi all, What is the best way to get the file name from the filepath. For example: I want to get "MyDoc001.xml" from "C:\MyDocs\MyDoc001.xml". Thanks. -Nikhil ...more >>

TransactionOption.Required and SOAP
Posted by John Wood at 10/11/2004 12:06:21 PM
Can someone confirm that TransactionOption.Required isn't supported for webservices... I thought all webservices can only act as the root of a transaction and not join an existing transaction, because of the stateless nature of HTTP? If that's true, then what is this article going on about: h...more >>

GDI+ problem with multiple layers
Posted by pei_world at 10/11/2004 11:50:26 AM
hi there, I am trying to create a image frame with multiple layers, and I will draw different objects on each layer in order to get an effect of deleting some part of object easily. At last, I will merge all layers into a JPEG or GIF image and save it. my question is how to do it, is ther...more >>

Specified cast is not valid - copy object
Posted by Mike Spass at 10/11/2004 11:19:02 AM
Hello, i have a problem to cast an object - hope somebody can help me. thx namespace CopyTest { public class A { public int a; } public class B:A { public int b; } class TestClass { [STAThread] static void Main(string[] args) { A a = new A(); ...more >>

ADO.NET question
Posted by JuLiE Dxer at 10/11/2004 11:12:11 AM
I can't seem to figure out which newsgroup I used to follow that pertained to ADO.NET... anyways, Is there a best method to programmatically update large DataTables into an Access DB file for efficiency? Larger DataTables seem to take quite some time to write to db file. MsJuLiE...more >>

AppDomain.Unload
Posted by John Wood at 10/11/2004 10:36:15 AM
Does anyone know if an AppDomain.Unload is guaranteed to free all memory /resources associated with the AppDomain before the method call returns? ...more >>

DataSet and Dispose
Posted by Hans Kesting at 10/11/2004 10:32:34 AM
Hi, What are the performance benefits of calling Dispose on a DataSet? We have a (web) application that we tried to run on a shared server. It crashed due to memory constraints. The helpdesk of the hoster said "you need to call Dispose on every object". Now I know that not every object impl...more >>

about mail?
Posted by cfyam at 10/11/2004 9:41:02 AM
How can I send a mail from my C# app but not via Outlook or OutlookExpress? ...more >>

UserControl events
Posted by David at 10/11/2004 9:35:12 AM
Hello... I've created User Control with several Controls on it... now, every time wheb user of this "User Control" double clicks anywhere on it, ia want "Double Click" event to be fired... even if user double clicked on a control wich belongs to "User Control", how do i do this... (the last p...more >>

Adding new line character to string using TextBox contol (CF)
Posted by charliewest at 10/11/2004 8:23:08 AM
Hi. I've a rather newbie question: I'm concatenating several strings, adding "\n" where necessary, and setting the final string to the text property of a multi-line textBox control. However, instead of generating new lines, wierd symbols appear in the textBox. I'm developing using .NET CF ...more >>

connection pooling with SQL Server
Posted by Mark at 10/11/2004 8:04:05 AM
Where is the connection pooling done when using ADO.NET and SQL Server? On the SQL Server or where the .NET run-time is being executed? I'm assuming on SQL Server as this would minimize the number of connections needed in the pool. Thanks in advance. Mark ...more >>

Printing question
Posted by Adrian at 10/11/2004 7:49:05 AM
How do you text-wrap when printing? Many thanks. ...more >>

GroupBox Flicker
Posted by Barguast at 10/11/2004 6:55:02 AM
Does anyone know how to stop or reduce the flicker caused by resizing an XP-style GroupBox control? (By which I mean FlatStyle set to System and visual styles enabled) Thanks....more >>

#defines
Posted by Philip at 10/11/2004 6:37:03 AM
sorry.... hit the enter key prematurely on the other post. From other postings I am assuming that C# #defines can not be used for bit mask definitions as follows... #define Value 1 0x00000001 #define Value2 0x00000002 #define Value3 0x00000004 I am assuming that I need to define such d...more >>

#defines
Posted by Philip at 10/11/2004 6:31:06 AM
From other postings I am of the impression that C# does not support #define directives for the purposes of defining bit mask definitions such as the following... #define val10x00000001 #define PermPSSUser 0x00000002 #define PermBackupUser 0x00000004 -- Philip...more >>

Remove BOF and EOF from byte[]
Posted by TJO at 10/11/2004 6:24:47 AM
Can someone recomend a good technique for removing BOF and EOF markers from a byte[]? I am passing a byte[] thru an FTP socket. I am serializing an object into a byte[] and then adding an EOF marker and a BOF marker to the byte[]. On the receiving end I need to remove the markers and then ...more >>

Print page range - regular expression
Posted by Christian H at 10/11/2004 4:06:23 AM
Hello! I'm trying to create and extract the values of a Print-Range , "Print page" dialog. I have a textfield where the user can enter the pages they whish to print. The format can be: "number,number,number" , "number-number" or "number". I'm trying to use Regular expressions to check if t...more >>

remoting deserilization
Posted by Tom at 10/11/2004 1:39:23 AM
Hi guys, I am puzzeled.. I am writing a simple remoting app.. where there's a client, a server and a service class which will work between client and server so i mark this service class as Serializable.. but strangely on the client side it complains that it does not see this class whilst compl...more >>

BroadcastEventWindow error
Posted by Michael C at 10/11/2004 1:06:53 AM
I'm writing an app that generates a ".NET-BroadcastEventWindow.1.0.5000.0.4" application error every time I shut the app down. Other than this error being generated when the app shuts down, the app runs normally and is fully functional. Has anyone run into this problem, and are there any work-...more >>


DevelopmentNow Blog