Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Search Forums
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Showing results 1 to 25 of 29
Search took 0.01 seconds.
Search: Posts Made By: codehelp
Forum: C# 4.0 aka C# 2010 General Discussion March 6th, 2012, 02:51 AM
Replies: 4
Views: 1,773
Posted By codehelp
Solution

Hi,
I have solved this problem by using a Mutex and limiting the number to 1.
Regards.
Forum: C# 4.0 aka C# 2010 General Discussion January 12th, 2012, 09:18 AM
Replies: 0
Views: 487
Posted By codehelp
Maintaining a global list for a service.

Hello everyone,

i am in the process of developing a Windows service that will monitor a hot folder for .xml file(s). Once a file is dropped, the service will call another application passing this...
Forum: C# 4.0 aka C# 2010 General Discussion January 9th, 2012, 06:42 AM
Replies: 4
Views: 1,773
Posted By codehelp
How to limit the number of instances of an application.

I am writing a simple folder watch service using C#.
This will monitor a folder for a .xml file and launch another application with that file as input parameter. Currently, in its vanilla flavour,...
Forum: C# 4.0 aka C# 2010 General Discussion November 18th, 2011, 06:00 AM
Replies: 1
Views: 690
Posted By codehelp
Novice logic question.

I am writing an application which performs a series of steps in the order specified:
1. Read a file (xml)
2. Create Directory
3. Create files in that directory
4. Some other step
5. Some more...
Forum: .NET 4 and Visual Studio 2010 General Discussions November 18th, 2011, 03:01 AM
Replies: 0
Views: 1,346
Posted By codehelp
How to Debug a Console Application which starts with an Argument.

Hello everyone,
I have a Console Application which is started with an argument (it accepts an XML file and processes it).

I check the args.Lenght to find out if an argument was supplied or not...
Forum: .NET Framework 2.0 November 10th, 2011, 06:15 AM
Replies: 0
Views: 6,422
Posted By codehelp
XML to .CS files using XSD

Hi,
I have used XSD.exe to create a schema and then use that schema to create .cs file for my project.
Here is the list of steps performed at VS command prompt:

>xsd <myfile.xml>
this generated...
Forum: ASP.NET 3.5 Basics October 21st, 2011, 12:38 AM
Replies: 3
Views: 671
Posted By codehelp
Can you please give the code you already have?

Hi,
is it possible for you to post the code you already have?
That may help to understand what is not working properly.

Since the WS method returns a XmlNode, the OuterXml method should be able...
Forum: ASP.NET 3.5 Basics October 20th, 2011, 07:10 AM
Replies: 3
Views: 671
Posted By codehelp
See if this helps. Not exactly what you asked for...

See if this helps. Not exactly what you asked for but should be enough to get started.
http://www.codeproject.com/Answers/266604/read-a-xml-node-in-asp-net.aspx#answer2

If that is taking too...
Forum: .NET 4 and Visual Studio 2010 General Discussions October 20th, 2011, 06:36 AM
Replies: 0
Views: 754
Posted By codehelp
Best .NET XML library

Hello everyone,
this post might not be in the correct section but since it's related to .NET 4 and VS 2010 it's here.

I am developing a polling service application in C# using VS 2010. This...
Forum: Visual Studio 2008 May 19th, 2010, 01:57 AM
Replies: 0
Views: 720
Posted By codehelp
Formatting DataGridView

Hello everyone,
is there a way to have the column names to show vertically using the DGV?
The default behavior of DGV is to have the column names shown horizontally at the top.
Can this be changed...
Forum: LINQ March 18th, 2010, 05:59 AM
Replies: 1
Views: 1,857
Posted By codehelp
Hello everyone, this is very trivial when I...

Hello everyone,
this is very trivial when I found it, should have done some lookup before posting.
Using the Skip method will allow to skip the nodes and start from the next node.

Any thanks for...
Forum: C# 2008 aka C# 3.0 March 11th, 2010, 02:23 AM
Replies: 5
Views: 5,185
Posted By codehelp
Hi Peter, thanks again for you time and...

Hi Peter,
thanks again for you time and guidance.

I was looking at the regular experssion way and found this expression to give me the value of the tag. One catch here, this expression fails when...
Forum: C# 2008 aka C# 3.0 March 10th, 2010, 11:57 PM
Replies: 5
Views: 5,185
Posted By codehelp
Hi Peter, String.Replace would work fine for...

Hi Peter,
String.Replace would work fine for all the special characters, except the '<' and '>' characters. Since these are part of the tag names themselves, String.Replace would replace these also....
Forum: C# 2008 aka C# 3.0 March 10th, 2010, 07:55 AM
Replies: 5
Views: 5,185
Posted By codehelp
Using Regular expressions to get xml tag values

Hello everyone,
I am trying to write a utility in C# to cleanup xml tag values for any special characters like
'&',',",< and >.

The creation of the xml file is not controlled by me, hence this...
Forum: LINQ February 26th, 2010, 02:31 AM
Replies: 1
Views: 1,857
Posted By codehelp
Start processing a xml document from a particular node number.

Hello everyone,
there is a xml file in the following format:

<Employees>
<Employee>
<Name>Abc</Name>
<Designation>D1</Designation>
</Employee>
<Employee>
<Name>Def</Name>
Forum: Visual Studio 2008 October 21st, 2009, 08:15 AM
Replies: 0
Views: 1,135
Posted By codehelp
Installing an application on user machine.

Hi,
I am trying to create a installer for my application.
When this installer is run, it is suppose to install this application at Visual Studio installation directory on the machine where it's...
Forum: C# 2008 aka C# 3.0 October 12th, 2009, 07:41 AM
Replies: 2
Views: 17,788
Posted By codehelp
Thanks

Thank you Sam.
It works.
Forum: C# 2008 aka C# 3.0 October 7th, 2009, 09:25 AM
Replies: 2
Views: 17,788
Posted By codehelp
Adding a node to an existing xml node list.

Hi,
I am reading an xml document which has companies information like this:

<?xml version="1.0" encoding="utf-8"?>
<Companies>
<Company>
<CustomerNo><![CDATA[67]]></CustomerNo>
...
Forum: C# 2008 aka C# 3.0 September 7th, 2009, 08:27 AM
Replies: 0
Views: 1,360
Posted By codehelp
Data table column issue.

Hi,
I have a CSV file with two columns in it.
Below is some data from the file:
0000,AllAllowed
0002,SomeAllowed
000A,AlphaAllowed
...., ....

This CSV is read into a table like this:
Forum: C# 2008 aka C# 3.0 September 3rd, 2009, 08:09 AM
Replies: 1
Views: 1,595
Posted By codehelp
Reading XML data with CDATA in it.

Hi,
I have an xml file in the following format

<Company>
<CompanyCode><![CDATA[A00000]]></CompanyCode>
<CompanyName><![CDATA[A.B. CCCCCC, Inc.]]></CompanyName>
...
Forum: C# 2008 aka C# 3.0 August 27th, 2009, 07:46 AM
Replies: 4
Views: 1,415
Posted By codehelp
Thank you samjudson.

Thank you samjudson.
Forum: C# 2008 aka C# 3.0 August 27th, 2009, 07:00 AM
Replies: 4
Views: 1,415
Posted By codehelp
I would like to show the exception that is being...

I would like to show the exception that is being caught and assigned to methodMessage variable.
That way the use is informed of what has happened.

Thanks and Regards.
Forum: C# 2008 aka C# 3.0 August 27th, 2009, 02:54 AM
Replies: 4
Views: 1,415
Posted By codehelp
Exception handling

Hi,
I have a method which returns a data table.
The data access code is in a try catch block.


public DataTable GetData(string fileName)
{
string methodmessage;

...
Forum: Visual Studio 2008 August 13th, 2009, 08:43 AM
Replies: 1
Views: 2,654
Posted By codehelp
Thumbs up Solved.

Hi,
I just solved the problem by setting the current cell to null.


foreach (DataGridViewCell cell in dataGridView1.SelectedCells)
{
cell.Selected = false;
...
Forum: Visual Studio 2008 August 13th, 2009, 07:49 AM
Replies: 1
Views: 2,654
Posted By codehelp
DataGridView default selection.

Hi,
I have a datagrid view whose datasource is a datatable.
When the DGV is first loaded, it selects the first cell of first row by defaut.
This does not change even if I call the ClearSelection...
Showing results 1 to 25 of 29

 


All times are GMT -4. The time now is 04:47 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.