C# is a multi-paradigm programming language encompassing strong typing, imperative, declarative, functional, generic, object-oriented (class-based), and component-oriented programming disciplines.

learn more… | top users | synonyms (4) | c# jobs

0
votes
0answers
5 views

How do I remove gray/white BackColor of RichTextBox when Disabled?

I have a RichTextBox which I need to use as a Label for RichTextBox's have background selection which I need for my Windows Forms Application. I have encountered a problem when disabling the ...
0
votes
2answers
17 views

C# Windows forms application

hey i want a button in windows forms application(C#) to display a exactly 1 year past time date and hour("specially hour").... Example:-if the date time now is 20 Aug 2013 2:15 pm so when i click on ...
0
votes
1answer
12 views

HttpPostedFileBase returns Null MVC3

I'm developing a project in C# with MVC4. Here my question: I'm trying to convert a byte[] to HttpPostedFileBase, but it always returns Null (even if the byte[] contains data). Here the code I have: ...
2
votes
1answer
29 views

LINQ for a list of list

public class Employee { public string Name{get;set;} public List<Department> Department { get; set; } public string Company{get;set;} } public class ...
0
votes
0answers
14 views

Getting the queryable provider and expression from an EntitySet

Background: I'm trying to create a LINQ extension that modifies the SQL produced by LINQ to SQL. To do this i'm using the Integrated Query Toolkit to remove some common plumbing code. I've got this ...
0
votes
0answers
11 views

Display multiple user controls in one asp:placeholder with randomizing

I have a webform with three user controls loaded in three asp:placeholders containing questions that needs to be randomized from a set of total 20 questions(so, 20 user controls): const string ...
0
votes
1answer
11 views

Winforms derived combobox property two way binding

I created custom ComboBox control and want to bind custom property "ActiveValue" to a DataSet. I do it in the way: cboMyComboBox.DataBindings.Add(New System.Windows.Forms.Binding("ActiveValue", ...
0
votes
0answers
14 views

Drawing a line between two button components

so I'm trying to find a way to draw a straight line between two buttons that I have clicked on (There are multiple source->destination lines to draw). I am currently using this code. private void ...
0
votes
7answers
25 views

Oracle - not a valid month

I get a timestamp from Facebook in the below code cust_updated_time = obj["updated_time"].ToString();//2013-08-01T02:55:31+0000 abccusttime = cust_updated_time.Substring(0, ...
0
votes
2answers
11 views

how to find datakeys value while downloading from gridview

i am getting following error while clicking on download button in gridvioew Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index my aspx code ...
1
vote
0answers
28 views

XML Parsing Error: not well-formed (c# asp.net master pages)

I've been messing around with html for a while, but couldn't find a good way to have a "template" besides using iframes or ajax pages. So I'm trying out c# asp with a master page. my site is working ...
0
votes
0answers
12 views

InvalidCastException: EF fails when inserting an entity with multiple relationships

If an entity have more than one relationships and I try to insert simultaneously data on them, EF throws InvalidCastException. As an example, imagine these domain classes: public class Person : ...
2
votes
1answer
22 views

print current form using CreateGraphics, but the message box is also printed

I'm printing my actived form (formMain) using CreateGraphics function as code below Printing the Form (Visual C#) Environment: windows 7 professional, VisuaStudio 2008 ...
0
votes
0answers
6 views

How to use other language with tesseract on C# Tesseract 3.02 + Emgu 2.4.9

My 'tessdate' contain: eng.traineddata, eng.cube.bigrams, eng.cube.fold, eng.cube.lm, eng.cube.nn, eng.cube.params eng.cube.size, eng.cube.word-freq, eng.tesseract_cube.nn rus.traineddata, ...
0
votes
0answers
17 views

Validate ORA-01438: value larger than specified precision allowed for this column

I'm using C# with the Entity Framework Model and Oracle. When I want to add a value then it gives me this error. Of course I know what the problem is: When inserting or updating records, a numeric ...

1 2 3 4 5 33184
15 30 50 per page