1 answer

WPF Metro Style

I wanted to learn how to achieve Metro look for WPF. I've seen Elysium, Mahapps, and others... But I wanted to learn how they were able to do integrate the look and style for Windows and controls...

1 answers | 21 secs ago by JPKI on Stack Overflow stackoverflow.com
0 answers

Settings.Default returns null after windows 10 upgrade

At my job we want to upgrade all our devices to windows 10. I am in charge of checking some applications we made in c#. The code now throws the following exception when executing this line: int ...

1 answer

Replacing ODBC MySQL string to SQL Server String in C#

I have an ODBC Connection string in MySQL in C#: conn.ConnectionString = "DSN=TrAudit_SQL;Uid=opendocman;Pwd=opendocman;"; I have changed my database from My SQL to SQL Server and now I only want ...

1 answers | 2 mins ago by Marium Malik on Stack Overflow stackoverflow.com
3 answers

MemberExpression as object of its type

I'm building Linq Extension methods. Shortly, I've built an extension method in order to create a MemberExpression looks like: public static Expression Field<T>(this object entity, string ...

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

SQL Server 2008 connection is slow when not working with appliction few minutes

My application is in C# 2008 and I did not have any problem when using SQL Server 2005. When I upgraded to SQL Server 2008, I found than first function using SQL takes more than 10 seconds. And every ...

0 answers

Saving the selected radio button value into database

I have two radio buttons yes and no. When user selects yes - 1 should be saved in database and when user selects no - 0 should be saved in database. <asp:RadioButtonList id="RadioButtonList1" ...

1 answer

Unity3D : I am not able to find the solution to NullReferenceException

NullReferenceException: Object reference not set to an instance of an object TouchHandler.TouchControl () (at Assets/Script/TouchHandler.cs:78) TouchHandler.Update () (at ...

1 answers | 7 mins ago by psrag anvesh on Stack Overflow stackoverflow.com
0 answers

Algorithm for filling space between points with color

I have points from arrays which looks like this after printing: Now I need an algorith to fill space between those points. Important thing is I don't want to fill space between separate shapes. Is ...

0 answers

How to fix operand type clash : image is incomplate with varchar(max) in sql server

I have created a user defined type (with script to CREATE) given below: CREATE TABLE [dbo].[EmployeeMasters]( [ID] [int] IDENTITY(1,1) NOT NULL, [EmployeeID] [varchar](max) NOT NULL, [EmployeeFName] ...

0 answers

Trx file full path test

I used Mstest.exe tool to execute tests, and it created automticlly trx file which contains all details about the tests results. I want to get accsess from my .Net application to full path of every ...

9 mins ago by tomerd on Stack Overflow stackoverflow.com
0 answers

Using the same SqlConnection for EntityFramework and “normal” SQL calls

I have code with mixed EF and normal SQL calls. The whole thing runs on Azure, so we use ReliableSqlConnection. We are using TransactionScope and we don't have the Distributed Transaction Manager ...

0 answers

nav tab is not working only in IE browser… other tab's content is always displaying below to 1st tab

<ul class="nav panel-tabs-border panel-tabs panel-tabs-left" id="myTab"> <li class="active"> <a href="#tab2_1" data-toggle="tab">Customer Info</a> </li> ...

0 answers

Redis client in C#: saturating the pipe?

I have several components in my C# code reading and setting key/value pairs in Redis in a multi-threaded context. The following minimal example using System; using System.Threading; //Uncomment one ...

2 answers

Retrieve or Read Existing SQL File - C#

How do I retrieve or open data from existing sqlite file? I have a sqlite file with the name kamus.sqlite in asset folder. The database has columns id, word, translation. I want to show the word and ...

1 answer

What is wrong with my insert query in linq c#?

i have a table with a name logtbl(logid int, emplid int, logdate date, description varchar(50), logtime time(7), logdatetime datetime) Here is my code: public void savelogs(int idemp, ...

1 answers | 13 mins ago by redbull on Stack Overflow stackoverflow.com
1 answer

How to send push notification to more then 1000 user through GCM

I'm using asp.net c# to send push notifications to users through GCM. This is my code to send notification. string RegArr = string.Empty; RegArr = string.Join("\",\"", RegistrationID); // ...

2 answers

Using C# to create a “monthly timetable/schedule calender” in a SQL table

For context I am creating a database for a vet clinic. I have a SQL table in Microsoft SQL Server Management studio 2014 with relational model (schema) as follows:ScheduleSlot(s̲l̲o̲t̲I̲D̲, room, ...

2 answers | 16 mins ago by Bill Smyth on Stack Overflow stackoverflow.com
0 answers

How do I change connectionstring at runtime in EF7 Core?

I am building system where each customer will have it's own database. When a customer loggs in, I will use the domain name of the users email adress to decide what connectionstring it should use. ...

3 answers

Subtract the list DateTime item with each other in c#

I have a list contain 100 DateTime variable, I want to subtract the list item with each other to see if they differ by 5minutes. Can this be achieved using LINQ. I want to subtract "i" with i+1,i+2.. ...

3 answers | 17 mins ago by Kumaran Raj K on Stack Overflow stackoverflow.com
5 answers

Empty string if null

I have this in my code: SelectList(blah, "blah", "blah", cu.Customer.CustomerID.ToString()) It gives a error when it returns null, how can I make it CustomerID is an empty string if it is null? ...

5 answers | 19 mins ago by Lasse Edsvik on Stack Overflow stackoverflow.com
2 answers

Why can't I assign (1<<31) to an ulong var? (Error 25 Constant value … cannot be converted …)

Why does this assigning produce a comile error: Constant value '-2147483648' cannot be converted to a 'ulong' and I have to use unchecked (...) for this case? ulong xDummy30 = (1 << 30); // ...

2 answers | 20 mins ago by boboes on Stack Overflow stackoverflow.com
1 answer

ASP.NET C# how to handle the page postback on menu click

I am using Obout menu I don't want to refresh the page after click on menu but when I am selecting the menu, it refreshes the whole page. Can anyone suggest the best way to fix that? I am using the ...

1 answers | 20 mins ago by A T on Stack Overflow stackoverflow.com
0 answers

How to use Epplus with cells containing few rows

I want to import some excel file using epplus the problem is that some cells contains more than one row (and that cause a problem My excel look like this (in realite their is more tests ...

2 answers

Getting DbEntityValidationException when I'm trying to update a row in a table using entity framework

I'm trying to update a row in my table bu.LastReviewCreationDate = LastReviewCreationDate;, but this action generate a DbEntityValidationException. public void ...

1 answer

How to set a breakpoint in the source code window of WinDBG for a managed application?

There's something that's driving me insane in WinDbg. I have the exact same problem of this question asked 4 years ago, which is basically: I tried to set a breakpoint using WinDbg at a source ...

1 answers | 21 mins ago by Lennox on Stack Overflow stackoverflow.com
0 answers

How to use WCF service in swift?

I have a SOAP service on the web that needs to exchange data with my application. Now we've added a certificate to secure the connection. We have handled to do the job with C# but how to use the ...

0 answers

Custom object generation for parallelization - pattern or best practice available?

I'm currently writing part of an application that generates multiple reports on a given source of imported data. The GUI spawns a loading interface and then launches one of 12-13 async Tasks ...

0 answers

The ViewData item that has the key 'myproductid' is of type 'System.Int32' but must be of type 'IEnumerable<SelectListItem>'

I have seen many solutions for this error it seems that mydropdownlist is null but trying to repopulate it isnt working so what i'm doing wrong?! the get method is working fine but in the post it is ...

2 answers

Executing some code after form closed in a Windows Form Application C#

I'm creating a C# Windows Form Application with a single form, which creates some files. But i want these to be temporary. So what i intend to do is this. All the files which are created during the ...

2 answers | 24 mins ago by Yamin Nather on Stack Overflow stackoverflow.com
2 answers

OutOfMemoryException while working with Images in WPF

I have to make some thumbnail from specific parts of a large image and save them as png/jpeg images. Here is what I'm doing: public static void Save(BitmapImage srcBitmap, Int32Rect srcRegion, Rect ...

15 30 50 per page
1 2 3