Groupby and sum in Linq
Hello,I have a table payment: id | memberId | typePaymentId | amount | datei'm trying to do with linq groupby memberid and typePaymentId and sum amount. But it fails.How can i do that in linq?I whant...
View ArticleCreating combinations of string based on rules c#
Hi, I have a requirement where I need to generate the combinations of string based on some rules. For Eg: I have a string like: [x | y] z [A] Possible combinations are, z,ZA,xz,xyz,xzA,yzAThe rules...
View Article“DTD is prohibited” error when accessing sharepoint 2013/office365 list (but...
I've been getting a list of folders and files from Sharepoint (on Office 365) by using the following C# code...... var folders = ListFolders(libraryName, clientContext, web); ... public...
View ArticleDIFFERENCE BETWEEN ABSTRACTION AND ENCAPSULATION WITH EXAMPLES IN C# ??
can anyone please tell me the basic difference between abstraction and encapsulation with example.I have done lot of searches on the internet but didn't get anything which would prove the difference...
View ArticleScrolling background in plain C#
I have managed to make illusion of scrolling background by combining few bitmaps in one and moving its position depending of the way of player's walking. The problem is I have to add many bitmaps in...
View ArticleCertificate Store C# code works on some computers but not all
oh my code need to always fail the 1st i run it on a computer but the next time i run it it works. but on some computer it does not work at all.ok here is the code: public static void...
View ArticleIncorrect Syntax near ','
When i run this code it works fine, when i type in FilmID and FilmName and press Add to database it gives me an error Incorrect Syntax near ','using System; using System.Collections.Generic; using...
View Articleado.net object
Hi Can anybody send some link about ado.net objects ,.. I need to study how they work ..??Pls help
View ArticleDynamic SQL query using C# and
Hello , I'm new in C# programming. I tried to do a simple console C# application which can simplify a lot my daily work.I want to execute a dynamic SQL query after connecting to database. Till now i've...
View ArticleCombobox item index
Hello, I want to select an text from combobox by index. How should I to write it? I write in C#. Thanks in advance.
View ArticleReading Database Field Names as Variable Names
I'm working on a C# project which will read a single record from a MySQL database and do some work based on that information. I was thinking of building my SELECT statement with the names of about 30...
View ArticleSwitching between tables using Xml file
I am currently working on a .NET project using Xml project. The beginning of the project is pretty simple. I have to have the form caption, controls, form layout, stored procedures / queries used to...
View ArticleUndo / Redo problem
Hi,I've use this library. I think It's not complicate library. So can you look it for me, Please.This is my code.namespace ConsoleApplication8 { class Program { public class Globals { public static...
View ArticleTextbox, arrays - get information, display and put in array to use in other...
hello! I am trying to do the following:1. The user sets the numebr of the objects for which he/she wants to start an evaluation. Then he/she presses the ok button. The software keeps the number .2....
View ArticleMayday! C# Guru urgently required, for love and glory from all the community!
Mayday! Mayday! A distress signal is being sent out to all past, present and future Gurus!We need more of your awesomeness!The TechNet Guru Competitions have become BIG news within Microsoft circles,...
View ArticleCreation Tab control Programatically
Hi,I have a datatable which contains two coulmn x and y. x value can be same or different. Based on the x value I have to group by the y column and put those y values in tab control.where each tab...
View ArticleFilestream.Write or Save() shows waitcursor frequently
I posted this in another thread as well - basically a file.save operation shows a waitcursor briefly before going back to default. Like a filestream.write(memorystream) to a certain location in the...
View ArticleSync Asp.Net MVC4 website data with Outlook
Hello,I am confused, I am in the right forum section or not but please consider my scenario. I have a web site developed in MVC4 already running on live server. In the website I have a functionality of...
View ArticleWindows service is not able to start
Hi,I have created sample windows service using C# and have installed on my development machine(windows 7 enterprise ,64 bit)But i got the error A timeout was reached (30000 milliseconds) while waiting...
View ArticleSimulate Key press in C# Console
Hi, I am using a simulator software and while the simulation is running I need to provide some keyboard input. These are the steps:1) I need to run the simulator first. 2) Wait for 60s. 3) Simulate the...
View Article