Favorite Tags
View questions based on your favorite tags across the Stack Exchange network

0 answers

XAML Int to boolean converter

I need to create MultiDataTrigger with condition to check if my ObservableCollection Count property <> 0. So I want to convert Count value of my collection to boolean. How can I do that? ...

41 secs ago by Ksice on Stack Overflow stackoverflow.com
2 answers

How to programatically simulate a button press?

How can I simulate a button press in .NET? I can do it with AutoHotKey with ease: #Persistent SetTimer,PressTheKey,1000 Return PressTheKey: Send, {F5} Return Any application will know that the ...

2 answers | 1 min ago by Michal B. on Stack Overflow stackoverflow.com
0 answers

How to add assertion on column values of a grid containing more that one row in CodedUITest of Visual Studio?

I have to add assertion cases on values of a grid containing more than one row. I am trying to create CodedUI Test in Visual Studio 2010 Ultimate Edition Grid -: Param Spec Width A SA121 ...

0 answers

Create vsix package from a class library

I have a project that was created as a class library. This library contains numerous controls that can be used in windows forms applications. Right now I want to create an installation package ...

0 answers

Can't manage to deserialize XML with attributes correctlly

I have an XML: <?xml version="1.0" encoding="UTF-8"?> <RootDTO xmlns:json='http://james.newtonking.com/projects/json'> <destination> <name>XXX</name> ...

0 answers

Console thread hangs when command is finished

My application creates a Console in a separate thread sending commands and receiving output via StreamReader and StreamWriter Cmd Thread Start Method private void startcmd() { Process proc = ...

2 answers

is await TaskRun(() => PublicVoidNotAsycMethod) equivalent to PublicVoidNotAsycMethod()

I have an async method: public async void BillSubscriptions() { await Task.Run(() => ProcessSubscriptions(_subscriptionRepository)); await Task.Run(() => ...

2 answers

Responsive grid in Xamarin.forms

Referring to my previous question, I need some help making the listview items responsive on all the platform, all the sizes and also on landscape and portrait mode. The listview which I have now ...

0 answers

C# generic type containing a list of itself when the type parameter is a base class

I've been trying to do something which I hoped would be simple, but turned otherwise. I have a base class: public class EntityBase { } and two classes that inherit from it: public class EntityA : ...

1 answer

Service account Authentication in google analytics api

I use google analytics api .net . I use exactly these sample codes here. When i use Oauth 2.0 , i have no problem and every thing works good . But when i want to use Service account Authentication , i ...

0 answers

recieving broken JSON data in javascript

I have PageMethod in javascript which is receiving JSON data from C#. In C# its getting full xml data from database and converting into JSON and sending back to PageMethod. JSON Converted data is ...

1 answer

Getting the callee's name of an extension method

I've built up a simple ArgumentValidator class in order to simplify argument preconditions in any given method. Most of them are null or bounds checks and it gets pretty tedious after a couple of if ...

1 answers | 4 mins ago by InBetween on Stack Overflow stackoverflow.com
1 answer

Showing canvas children in listbox

I'm new here so please excuse my if I missed to add something needed to answer my question. So heres my question: I am trying to add shapes to a canvas while also wanting to show a list of them in a ...

0 answers

WPF Expander ScrollViewer throwing exception when window is closed

I'm showing an expander in a modal window. If I don't toggle the expander the window will close fine. Once I've toggled it and close the window it throws an exception on the invocation of ...

0 answers

Keep transaction between web service calls

I have a webservice (Service.svc.cs) in ASP.NET 4.5.1. I have one method called "public string UploadData(Guid id, string[] data)" The client calls this method with strings and the server stores the ...

0 answers

select all data from excel and insert data to new excel file using c# oledb

I would like to select all data from a sheet in excel and then create new excel file using c# code then insert that data into new excel file that created. I have code select data from excel below but ...

1 answer

Umbraco child elements not registering?

I have a page running fine locally but throwing an error when running on the server: Cannot perform runtime binding on a null reference The line in throwing the error is: var selection = ...

1 answers | 8 mins ago by Robert on Stack Overflow stackoverflow.com
1 answer

Set the width of scrollbars programmatically

I have an application, which uses WPF on windows as toolkit framework. Now I would like to set the width of scrollbars for my ScrollViewers programmatically. I found many examples to set the width via ...

1 answers | 9 mins ago by Martin on Stack Overflow stackoverflow.com
9 answers

ILMerge Best Practices

Do you use ILMerge? Do you use ILMerge to merge multiple assemblies to ease deployment of dll's? Have you found problems with deployment/versioning in production after ILMerging assemblies together? ...

1 answer

Re-size a rotated rectangle using mouse drag in c#

It will seems to most of the guys here that it's a repeated question but it isn't. I am having a very hard problem. I have a rectangle which can be re-sized when it's not rotated and all work fine. ...

1 answers | 9 mins ago by afridi on Stack Overflow stackoverflow.com
0 answers

Locate an ever changing element (IDs keep changing)

Lets say I have a website with elements where the IDs are regenerated every time a new release has been deployed. My web element locator (below) changes and no longer works. Id is the only unique ...

0 answers

How to check if pictures in different picBoxes are the same? c# windows form

I'm doing a quiz for Course Work and I have 15 PicBoxes of letter and 6 empty PicBoxes and I have the picBox letters(they're from the resources) to enter the empty ones in order as they are clicked ...

3 answers

EF difference in eager loading and lazy loading?

I'm new to EF and have read some articles. After reading I got confused in what is difference between lazy loading and eager loading? Can both type of queries be compiled? Can both type of queries ...

3 answers | 10 mins ago by haansi on Stack Overflow stackoverflow.com
0 answers

VS 2013 could not resolve COM reference (STG_E_PATHNOTFOUND)

Good Day. I have a COM dll which registered using regsvr32 utility. When I tried to add reference to a project, the library is visible in reference list but when I press OK button the error occurs ...

2 answers

Using Rx create a polling request for webservice call

Using Rx in C# I am trying to create a polling request to REST API. The problem which i am facing is that, Observable need to send responses in an order. Means If request A went at X Time and request ...

2 answers

c# Cut String at Capital Letter

I wanted to make a small program, where i essentially have a lot of doubles for the atom mass for each atom. I want to be able to write a molecule formula into a textbox, whereafter the program should ...

2 answers | 12 mins ago by iBoughtWinrar on Stack Overflow stackoverflow.com
0 answers

rdlc report multiple sources and dynamic binding

I have a report requirement where 1. On Top company details will be filled 2. In the middle a set tables like products divided in their general category and with sub totals What I wanted is a means ...

13 mins ago by Madew on Stack Overflow stackoverflow.com
5 answers

Drawing a path surrounding a given path

* Update * Found a solution using Clipper library. Solution added as answer. New / better / easier ideas are still welcome though! Given a path like this: I want to create a path surrounding ...

5 answers | 14 mins ago by stefan.at.wpf on Stack Overflow stackoverflow.com
0 answers

CPU Usage in Task Manager using Performance Counters

[My Attempts] Already went through How to get the CPU Usage in C#? But "_Total" Instance of Processor would give me total consumption of CPU as opposed to specifc application or 'process' In a C# ...

1 answer

Pass dynamic data type to function

I have the following function: private string ParseJson(dynamic q) { string returnJSON = "[{ \"type\" : \"pie\", \"name\" : \"Campaigns\", \"data\" : [ "; foreach (var grp in q) ...

1 answers | 15 mins ago by Elad Lachmi on Stack Overflow stackoverflow.com
15 30 50 per page
1 2 3