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 (5) | c# jobs

-3
votes
0answers
17 views

Regular expressions : how to find

@"^\s*set\s+"+tmprect+@"\s*=\s*Rect\s*(\s*(.+)\s*,\s*(.+)\s*,\s*(.+)\s*,\s*(.+)\s*).*$"; tmprect = string "gg_rct_MyReg1" does not work for set gg_rct_MyReg1 = Rect (-704.0, -352.0, 224.0, ...
0
votes
1answer
25 views

passing html string to stringbuilder does not work

I am writing html tags in a an html file by following code in C#: StringBuilder sbMarquee = new StringBuilder(); sbMarquee.Append("<a href= # onclick = ...
-3
votes
0answers
17 views

Draw Text along a path

I need to draw text along a curved path/bezier. Does somebody happen to have a tutorial ready or even some sample code to digest? Thx Fortis
0
votes
3answers
30 views

Caching function result on c#

Let us have this kind of code: Function<int,int> someFunc=(x)=>{ //SomeCalc return y; } than I want to use my function that way: int result; if(someFunc(k)!=0) { ...
0
votes
0answers
9 views

How to add siteMapNode to current node at runtime

i want to use a SiteMapPath and i have a Web.sitemap <?xml version="1.0" encoding="utf-8" ?> <siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" > <siteMapNode ...
-6
votes
3answers
33 views

Getting the type of an object when passing the object to a method

If you have an object Foo and you pass it to a method void Bar(object obj) and inside you test the type of the object using typeof(obj) will it return the typeof to be Foo or object? Many Thanks, ...
-5
votes
0answers
28 views

How to do calculations in a datagridview? [closed]

I need to calculate Net Price in a datagridview in c#. It has 4 columns Item unit price qty net price unit price is obtained from the database when item is entered. net price=unit ...
0
votes
0answers
28 views

WCF Web service isn't reading web.Config correctly…Why?

I am trying to make a web service that helps us interact with data in a third-party database. The web service works, but it seems it isn't taking the configuration I tell it to in the web.config ...
0
votes
1answer
47 views

Thread conflict in c#

I writed the following code in C#: private void myEnqThread() { Bitmap temp = null; temp = getScreen(); if(temp!=null) ...
0
votes
0answers
13 views

Formatting a data bound control according to bound data

I am displaing some data in a repeater using the following - BindingSource bindingSource5 = new BindingSource(); bindingSource5.DataSource = ...
0
votes
0answers
28 views

ProgressBar inside ListView

I have ListView which has ProgressBar inside ItemTemplate: <GridViewColumn x:Name="ProgressBarColumn" Width="140" Header="Progress"> <GridViewColumn.CellTemplate> ...
2
votes
0answers
12 views

Writing test results back to the TestContext with an Excel WorkSheet as DataSource

We have a lot of tests where the test data is stored in Excel. I created testmethods where the Excel sheets are connected as a DataSource to the TestContext. For convenience reasons, I want to update ...
-5
votes
1answer
41 views

How to convert image to text [closed]

Say if you have a jpeg file which is a screen shot of a text from notepad or something. Is there a way, we can convert it to plain text of some sort?
0
votes
1answer
21 views

C# getting a selected date from calendar and displaying it in a message box

C# getting a selected date from calendar and displaying it in a message box, the data will later be used to in an email that will be automatically generated. I'm using a standard Month calendar in ...
0
votes
0answers
4 views

LitJSON conver JsonData to Dictionary

I'm have to conver recieved JSON response to Dictionary, with all primitive values saved as key, value pair and all contained objects as key, Dictionary pair. I don't know exactly what is data ...

1 2 3 4 5 31704
15 30 50 per page