IEnumerables and my project
Here's my exercise I am following. Exercise 5 Now modify the Animals projectso that the details of the animals are stored in a collection object called NamedAnimals (this should inherit from...
View ArticleValidating XML File using c#
Hi all ,I am new to Visual C# ,i am tasked to create code in C# to validate XML file using XSD file .It is worth noting that when XML does not have error then there are no issues but when XML fails...
View ArticleProblem to upgrade my vs2008 project to vs2010 : CAS policy error!
HiI have a big project in vs2008. today I've decided to upgrade it to vs2010 and upgraded correctly (I think), but I'm facing this error during compilation :Invalid Resx file. Type in the data at line...
View ArticleGet Subfolder Paths
I'm wanting to get the subfolders of a path, and I'm using the Directory.GetDirectories(C:\\Testfolder", "*", Search.AllDirectories); call. it almost works but I just want the actually paths to each...
View ArticleHow i can pass a single line betwen two tables of a database from c#?
Hi,im working with access 2010 & visual studio 2010.Laguaje: C#that's my question.If i have two tables in the DB and i want move one line of the first table to the second table, how i can pass a...
View ArticleWhy bother with this format {0}, varName?
New to Visual Studio and it's been 7 years since I've done any C#.So the question I have is why bother with this format for a string output, what is going on with it and whats the benefit of it?string...
View ArticleIssue While Extract the Embedded Object present inside excel 2010 file.
Dear Friends,In Excel forum, Visual Studio Tools for Office forum and Windows form forum already i asked the following question but everyone pointing that this question is not releated to them so ask...
View ArticleProblem occurs when I try to fetch date information from database
Hello my dear programmer friends,I recently need to fetch date information from database (yyyy-mm-dd). I have saved my date information like this, for example 01 April 2014 <2014-04-01>I have a...
View Articlehow to send bit to digital power meter by use cable
hello ,i want to use the c# code to test whether my digital power and my simple program is working or not, can anyone help me, teach me how to write the code.?
View ArticleHow do I plot a function in a chart?
For my assignment I have to make a regression analyse of a quadratic function (a*x^2 + b*x + c) and find the a, b, c from a list of points. I know how to find a, b and c. But i don't how to plot the...
View ArticleProcess.Start(): process execution path same of root process?
Hello,I'm starting processes (SubApps) from WPF application (RootApp). This would be the folder hierarchy:X:\Path\RootApp.exe X:\Path\SubApps\SubApp1.exe X:\Path\SubApps\SubApp2.exe...
View ArticleStructuring of program/variables
I have been struggling for some days without making progress no matter what I have read.I need to declare some variables that will be inserted/typed from the user through textboxes and with...
View ArticleHow do I call a batch file from C# and how t stop and start services through it?
I need to write a batch file for starting and stopping a service. How do I do that? And how do I call that batch file from the C# project? Please advicemayooran99
View ArticleSystem Wake Up Events. Logging.
I am using a C# wrapper for System Wake Up Events. Is it possible to see what wake up events are pending in the system I am developing on which is Windows 8.1 for the desktop? Is anything logged in the...
View ArticleBest Way for authenticate your windows application
Hi ...i have created a a c# windows application and i want to create user authentication (username and password for each user ) to prevent users to do works that isn't in his privileges , my plan is to...
View ArticleWhat is the difference between convert.double and float.parse
In a C# application,Two text boxes have same floating point value.But when compare float.parse(text1.text)>convert.double(text2.text) results difference in the values.What is the difference between...
View Articleadding a certifiicate to a webRequest from a windows service
Hi,Apologies if this is the wrong forum I have been given a security certificate to include in a webRequest call to an external restful web service. The file I have been given is a zip file with two...
View ArticleLooking to replace all occurances of different strings in a file with empty...
Hello,I have a powershell script that will go through a file and replace all occurances of many string with the empty string:foreach($file in $files){ $foldername = get-childItem "$file" -include *.txt...
View ArticleA set of 2 or more letters repeating regular expression
Hi ,Could any body help me a regular expression for below scenario: input: ABABTest -> here AB and AB repeating two times .ABCTESTABC-> here ABC and ABC repeating 2 times .I need regular...
View ArticleEventLog reading from EventLog Class and saving some files in a ".txt" file...
Hi,I am working on a project. I am reading event logs from security logs and I want to append them into a file(event name, ID and timestamp). that would be a continuous process with infinite loop, to...
View Article