Tagged Questions
C# is a multi-paradigm programming language encompassing strong typing, imperative, declarative, functional, generic, object-oriented (class-based), and component-oriented programming disciplines.
0
votes
0answers
8 views
Linq Exception 'System.ArgumentNullException'
I'm getting this error:
A first chance exception of type 'System.ArgumentNullException'
occurred in System.Data.Linq.dll
In the following code on the foreach line:
// Retrieve all qualifying ...
0
votes
0answers
6 views
Methods of spawning a file on the native user's computer from a wpf application?
I created a wpf application that can create, write to, and read from a .txt document to store and persist data. Currently the application creates the text file within the solution folder, but what I ...
0
votes
0answers
8 views
Save From Gridview using a WCF
so I am using Gridview with a WCF. I have managed to insert from textboxes to gridiview but now I am struggling to save the gridview via the WCF service. I have giving it an attempt and getting this ...
0
votes
0answers
9 views
What's the proper way to pass an array to a WMI Method?
I'm writing a function in C# that queries WMI, uses the objects returned from WMI as parameters to a method in a different WMI class.
private void InstallUpdates()
{
ManagementScope sc = new ...
0
votes
0answers
12 views
Prism store app example Xaml errors
I'm building a win 8 store app using microsoft prism. I'm following the guide here.
When I'm looking at the store app sample I get a lot of errors in the views.
Error 3 Application is not ...
3
votes
2answers
24 views
C# KeyDown Event multible Keys plus ControlKey
i want to recognize keystrokes to my Control. For this i use the KeyDown Event. The Kind of keystrokes I want to detect are something like CTRL + A or CTRL + C and so on.
(So combinations of multible ...
1
vote
0answers
12 views
Best way to merge multiple Windows Phone apps
The problem I face is the following: I've been tasked with creating a sort of "launcher page" for a Windows Phone application whose components have been developed as separate WP apps.
After some ...
1
vote
1answer
38 views
Transfor List to Nested Dictionary using linq C#
I have a list that contains data like this
ID | START_DATE | END_DATE | Chapter | ID_OWNER
1 01/03/2013 05:15:14 01/03/2013 06:20:14 1 ...
2
votes
3answers
23 views
JQuery .html() function seems to cache unecessarily in IE
I have this small problem with my MVC program, when run with IE:
I have a JQuery function which goes to a controller to get a partial view, which is loaded into a destination <div> element.
...
1
vote
2answers
29 views
Change text color of existing text
I've written an application that has a richtextbox in it with a black background. Therefore I have to write in it using white text. That all works fine by setting the fore color to white. If I however ...
0
votes
3answers
76 views
Dictionary<int, List<string>>
I have something like this:
Dictionary<int, List<string>> fileList = new Dictionary<int, List<string>>();
and then, in program, I fill it with some variables, for example:
...
0
votes
2answers
25 views
return more than one data with soap webservice
I am trying to create a webservice which will return more than 1 string. it will return 4 strings. I didt webservices before and I used to return only true or false values. but now I need more data.
...
0
votes
0answers
10 views
Create thumbnail image
In Windows Store App (c#) I have GridView (100+ items).
Each Item - Image. All images size = 1024*1024.
How to create thumbnail images for GridView?
I need something like this:
public BitmapImage ...
0
votes
0answers
6 views
PetaPoco doesn't return results when ordering by NEWID()
I'm using the brilliant PetaPoco as my ORM for a small WCF service. I have a small method that gets 5 random records from SQL:
public IEnumerable<Stock> GetRandomStock(int number)
{
...
0
votes
2answers
20 views
Display ASP.NET generated pdf byte[] to web page without saving the file
I'm using iTextSharp for generating a pdf. I can save the PDF file from the PDF byte[].
byte[] outputPDF = cnt.CreateBreakPDF();
File.WriteAllBytes(pdfOutPutPath, outputPDF);
What is the best way ...