|
RichardInToronto wrote: I don't know what class I would use to produce the XML and serialize it to disk.
Look in the System.Xml namespace. Also look for articles on CodeProject and msdn.microsoft.com that might be tutorial type articles.
YOu can use a DOM object System.Xml.XmlDocument or perhaps a XmlWriter would work better for your solution.
led mike
|
|
|
|
|
Thanks for the help Mike.
|
|
|
|
|
use regular expression object in C#
1. Use Regex
2. Do Grouping in Regex
3. Use MatchEvaluator if needed
4. Add the grouping result values to the dataset.
5. Save Datset to Xml.
You are done!
Sreenath
|
|
|
|
|
Thanks for your help Sreenath.
|
|
|
|
|
Hi All,
I Have created a windows service in C# and I want to run an exe which was created by me earlier from this service when the service starts.
I can see the exe running in the task manager but I am unable to see the UI of the exe
Please help me as this is urgent.
Thanks.
Kalyan
|
|
|
|
|
If you go into the services control panel and double click your service, you will see a tab in the ensuing dialog labelled "Log On". Click on that and then select the checkbox under the "Local System account" radio button marked "Allow service to interact with the desktop". I'm not sure if this will work for you, but give it a try.
The preferrable way to manage your own services is to create a service with no UI and then build a second Windows Forms application (possibly even one that runs in the tray) that can connect to the service and control it. You can also use remoting if you want to communicate with your service in some other way than just telling it to start, stop, and restart.
Hope that helps.
-Matt
------------------------------------------
The 3 great virtues of a programmer:
Laziness, Impatience, and Hubris.
--Larry Wall
|
|
|
|
|
I am working on an application that has hundreds of try/catch blocks that output to Console.Writeline() on error. This is great for debug mode as it gets picked up in Visual Studio. I am curious where the output goes when I am in release mode. Is there an app that can pick this up? Are there serious performance implications for leaving them in for Release mode?
Thanks!
Hogan
|
|
|
|
|
If there is no Window open that catches stdout (like a Console or the VS output window), then imho it goes nowhere. Use Trace.WriteLine to print debug output.
You can capture it with DebugView in Debug and Release mode
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Didn't work. Put my app in release mode. Launched it in Visual Studio .NET and stand alone and nothing got logged. Guess I'll have to do something else.
Thanks
Hogan
|
|
|
|
|
Works fine for me, DebugView captures my Trace.WriteLine .
You might also try this:
DefaultTraceListener listener = new DefaultTraceListener();
listener.WriteLine("TEST");
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Greeg,
Sorry about my quick response. I missed using the Trace part. I was just using my Console.Writeline... I think I am going to convert them all to using NLog in Release mode so I can turn them off if I don't need them. Thanks for your help!
Hogan
|
|
|
|
|
I want to access only hidden files from a specific folder. Is there any property that fullfills my need....
Thanks
Syed Shahid Hussain
|
|
|
|
|
see FileInfo.Attributes
|
|
|
|
|
Hi there.
Apologies in advance if i'm posting this question in the wrong section.
i'm wondering if it's possible to change the layout of the rdlc report at runtime (preferably without having to generate the .rdlc file from code). For instance, i want the user to be able to select which columns to display in a matrix. Based on those choices, the matrix must adjust to hide those non-selected columns.
Using the "expression to determine visiblity" feature hides the data, but there's a blank gap left in its place (makes the report look really... dodgy ). I was thinking of putting in a function that said if the parameter passed through was false, set the matrix column width to 0 - except that it won't let me do that.
So, is there another way? Short of programmatically creating the report, or having awful-looking gaps.
Thanks
|
|
|
|
|
The way I have done things like this in the past is have a dynamic XML generator. The XML will be used as the Code behind the report.
|
|
|
|
|
hi
i want to play stream video from my hdd, How to do ??
thanks .
|
|
|
|
|
I have a ListView and a custom IComparer for sorting. Which was working fine. I added a couple groups to the ListView , and now the sorting does nothing. The IComparer is processing each ListViewItem , the ListView just seems to ignore it.
Has anybody dealt with this? What am I missing?
|
|
|
|
|
Hi!
Moved my project from school to my home PC using a USB. Done that many times and it have worked.
Now I get this message:
Parameter is not valid. C:\Documents and Settings\Peter\Mina dokument\Visual Studio 2005\Projects\Bamse\Bamse\Form2.Designer.cs 111 0
And it points to this line:
this.picBoxPase.BackgroundImage = global::Bamse.Properties.Resources.påse;
The resource "påse" is in my project folder.
Any ideas?
Newbie untill I die!
|
|
|
|
|
It won't compile ? This line is in your auto generated code, so delete it and set the property again in the IDE and see how you go.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Hi hristo1977,
Well it happened with me once too.
When you specify a resource in your project, VS does not copy that resource to your project. It just takes a reference of that resource which is actually present on your hard drive.
If you have chose the option to embed that resource in your build, then that resource is embedded during compile time. Meaning, at no time, it is actually included into your project.
So, you need to check if the resource it points to is actually present on your drive. Click the resource and check out its path in the properties window and make sure it points to the right thing.
Hopefully it was helpful.
*** Who said nothing is impossible? I have been doing it for a long time ***
|
|
|
|
|
Hi!
The resource is there! But I still get that damn message.
Newbie untill I die!
|
|
|
|
|
Try deleting that reference from the project and include it afresh.
That might work.
*** Who said nothing is impossible? I have been doing it for a long time ***
|
|
|
|
|
|
It's the webbrowsercontrol. It's built in to the IDE. If you can't see it, right click on the contols list and you can list all the ones that can be added. It should be there by default tho.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Hi Christian,
Thanks for the reply. I managed to find the control. It is called the Microsoft Web Browser.
Thanks for the same.
I went through some articles here to help me with disabling context menu in this browser, but could not get it to work.
can you please tell me how exactly am i supposed to do it.
Or can you point me to any good article where this has been given.
Thanks in advance.
*** Who said nothing is impossible? I have been doing it for a long time ***
|
|
|
|