Access DataSet From Seperate Class
I have a dataset that is being filled in one class and I want to access the data from a separate class. How would I do such?For example, let's take this snippet below that should better explain what I...
View ArticleDelete SharePoint List
I have a C# windows form. I would like to delete the SharePoint list using below code. Not sure why I am getting error message.private void deleteListToolStripMenuItem_Click(object sender, EventArgs e)...
View Articlehow to get the client port number in C#
I am using visual studio 2012 C# to write a windows application which will send and receive data package from a device board(client).I am using UDP. however, when I send to data to the client using...
View ArticleHow to make IDE for a programming language?
Hello,I want to develop an IDE like Visual Studio for a programming languages like perl, python using C#.So How can I do this. Where to start. Please suggest your thoughts.Thanking you.
View ArticleHow to control TCP retry process in .NET/C#?
I am using .NET/C#. I do not see how to modify retry time and number of retries for TCP connection? I want to control that because I am using VHF radio IP link. Can you point me where to look?
View ArticleWhy the Hashtable variable contain the same keys and values twice ?
I want to check in the constructor if a text file on my hard disk contain keys and values if it is then read it and add it to a Hashtable variable. If the text file is empty or not exist do nothing: In...
View ArticleSoftware build target .net4 won't launch on win 7 with .net4.5 updates.
I have asked the question in a wrong forum, here it is again, hope someone can help. ============================== we have a software that is pretty stable for the past few years, and lately has a...
View ArticleCreating an installer file to extract the project files
I need to create an installer through which I can extract my files. I tried IExpress but it doesn't support changing the icon or adding the version number. In Windows Installer XML I couldn't add the...
View ArticleHow to Store XML Results from a RESTful HTTPWebRequest?
I'm writing a C# console application that calls an HTTP RESTful web service which requires user name, password and token. It returns either XML or JSON as it's response. Thus far, I've written the...
View Articlecolumn with a space in datatable
Hi everyone,I have a datatable column that has a space (when I view it in the dataset designer), and when I run the below code I get an exception. Do I need to alter my syntax?...
View ArticleHow to increase the performance to a Crop method?
Hello fellows, I am trying to make a crop method for a specific image with a specific coordinates. While searching around the Internet I found some examples. The fastest I found was this one and I made...
View ArticleHow to create a database, table, fields and populate the db with some data...
I just downloaded Visual studio 2013 Express for the desktop. I will be using C#. Eventually I will connect it to a MS Sql Compact server but first I want to create the DB so I have something to...
View ArticleConverting Java code to C#
Hi guys, I need some help converting a java app to C#. I'm new to C# and am having some trouble getting this done. Could someone please help me port this java class to C#?import...
View ArticleC# ,WPF, and being thrown under the bus....
C# is ranked 5th of top 10 languages. But as a percentage of those used, it's miniscule. The good news is that Java; it's 1st cousin, is much larger than C# so the transition is easy. Even C++ and C...
View Articlemake sure that the maximum index on a list is less than the list size
hello,I have this code, which is a Harmony Search Algorithm code, and I integrated it with a data base, but I'm having this error (attached picture) and the full code are below.using System; using...
View ArticleBuilding SQL Query from xml file
Hi,I am building a web app with MS SQL Database. I need to build SQL queries dynamically based on the parameters passed in the C# method.My XML will look something like...
View ArticleSorting List from reference
Let me re ask this question Say I have two tables in a database one being tasks and the other being Dependencies The task table has one column (taskName) with all the tasks that needs to be run The...
View ArticleWindow Form APP as a Services hosted by Window Services
can you make a window form application in to a Service and have it hosted in Window Services?So I want my program to start up when the Computer turns on, and to kept running and the only way to turn...
View ArticleDataGridView re-sort when a new row is added
I'm making a program that receive SMS and display to the user, and I'm having a problem with the sort of the data. For example, if the user sort the table by ids, from the higher id to the lower so...
View ArticleHow to get Class Names of given files?
Hi I have diffrent files like C# and C++ file in diffrent directories(Diffrent file path),1) How to get the number of classes present inside a file in given path ?2) How to get Function names in each...
View Article