2 answers

set value of listItem in DropDownList

if (currentMap.EditMap != null) { ddlEditMapGroupName.SelectedIndex = ddlEditMapGroupName.Items.IndexOf(ddlEditMapGroupName.Items.FindByText(currentMap.EditMap)); } sets the value of the drop down ...

2 answers | 58 secs ago by John on Stack Overflow stackoverflow.com
0 answers

Refresh the Office Ribbon UI while the window is inactive

I am working on a Office Ribbon project. (PowerPoint) A label on it is being periodically updated from a timer. (It is displaying the current number of connections to our server) When the PowerPoint ...

0 answers

“Unexpected character encountered while parsing value: <. Path '', line 0, position 0.” couchbase

I was trying get data from view. The code must return one element, but instead, is returning this error: "Unexpected character encountered while parsing value: <. Path '', line 0, position 0." ...

1 answer

Epson ESC/POS command DLE EOT n does not return a response

I am making a program that talks to an Epson TM-T88IV printer using ESC/POS commands through a socket in C#. When I send an DLE EOT n command with the cover closed and the paper full it returns the ...

2 answers

Change the ZIndex from two element

I have a simple WPF application with two button. This is the code in my xaml file: <Grid x:Name="grigliaPulsantiBody" Visibility="Visible" Grid.Column="1" Grid.Row="0" Panel.ZIndex="2" ...

2 answers | 5 mins ago by bircastri on Stack Overflow stackoverflow.com
3 answers

Sort text file data into an array

I'm working on a homework problem for my computer science class. A cities census data is on a text file holding records for its citizens. Each line will have four fields(age, gender, marital status, ...

3 answers | 5 mins ago by redcell98 on Stack Overflow stackoverflow.com
1 answer

configure oracle db to Quartz.net scheduler

I am new to the forum and also learning to build Quartz.Net for one of the business needs. The requirement is to have Quartz running as a windows service and the scheduling happens via a WCF service ...

0 answers

NHibernate does not clear SQL Server error text in consecutive exception messages

I'm using this code (simplified) to test some Exception and Error Handling: // All the objects in the collection already exist in the database // so NHibernate should throw an Exception because of a ...

0 answers

Values are not showing when accessing listBox from other project but in the same solution?

I am trying to show lisBox values of one project in listBox of another project. I have added DLL as well. I can access that listBox in the 2nd project. But when I run the project I get empty listBox ...

3 answers

exclude project from solution when running sonar-runner

I have installed and configured SonarQube 3.7.1 and sonar-runner 2.3. While trying to run sonar-runner on a c# solution I got the error: ERROR: Error during Sonar runner execution ERROR: Unable to ...

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

How to proportionally resize a control with the mouse within WinForm's control designer?

I was trying to resize a control with the mouse, holding down Left-button + Shift, hoping that both width and height would be adjusted proportionally (like in Photoshop). Didn't work. I Googled to ...

0 answers

Don`t able to save token from RestSharp OAuth request Windows Phone 8.1

I trying to get Request Token from Trello with RestSharp. I got token only in request thread, but dont able to save it in variable of my app. There some code: private async void GetToken() { ...

0 answers

Binding between controls in WPF ContextMenu MenuItem

Why can't I bind between two elements which are in a MenuItem? This works fine when the same controls are hosted elsewhere. But in a MenuItem I get binding errors "Cannot find source for binding ...

1 answer

Updating a DB (SQL Server) using Ids from a dataTable in C# without For loop

its my first question on S.O, also I'm kinda new in c# and SqlServer. so pretty please be nice. I have a dataTable with 4 columns: id1, id2, id3, id4 (and several rows) also I have a SQL Server DB ...

1 answer

Executing function based on pointer location

I am working with ArcGIS SDK for dot net. I am programming using vc#. I want to execute a piece of code as soon as the mouse pointer enters a particular longitude/latitude on map or if mouse is ...

1 answers | 11 mins ago by Salman Farooq on Stack Overflow stackoverflow.com
0 answers

c# sql reader to get pictureboxname from database and change the picturebox brightnes

![my program][1] private void mELEEToolStripMenuItem_Click(object sender, EventArgs e) { SqlConnection cn = new ...

1 answer

Disable IE pop up blocker through Options class or DesiredCapabilities

I know this can be done manually once by going to Tools>Internet Options>Privacy and unchecking Turn on Pop-up Blocker. The problem is if I run these tests on a different machine the tests related to ...

0 answers

C# dll in F# script not working

I have a C# dll that I need to reference in F#. I can do this fine in a .fs file, but I can't seem to get it to work in an F# script (.fsx) It is strange because in my script, I have no problem ...

3 answers

C# Binary Serialization

I am trying to serialize and deserialize objects to/from a Byte array for network communication, I currently have an interface 'ISerialize'. However I got thinking there should be a more robust way to ...

3 answers | 15 mins ago by Courtney D on Stack Overflow stackoverflow.com
1 answer

Visual C# 2013 - Element disappearing when adding a new one in WPF form editor

When I try adding more than one element to my WPF form in the editor in VC#2013, the previous element disappears. In the end, I can't have more than one item in the form. I've already written some ...

2 answers

How to get the amount of string fitted in a rectangle layout by text renderer

I am trying to draw a string on a bitmap, but if the text is too long, part of text may be clipped by the text renderer. If I can find which part of text was written I can write the rest of it on ...

2 answers | 17 mins ago by Ahmad on Stack Overflow stackoverflow.com
0 answers

Linked Table Shows As read only

I am using C# to create a SQL Server view, then open an access database and link the table into access. The create view statement, open database statement and link statement work great BUT the catch ...

0 answers

DataTable Boolean column to DataGridCheckBoxColumn two way binding

After researching a lot, I still can't find the solution to what I need. It would be great if someone can point me in right direction. I have a DataTable which essentially is an outcome of the MySQL ...

2 answers

Interactive c# System.Process not Echoing input

Given the following code running in Mono on Linux, I can successfully run ssh from C# and get a shell prompt on a remote box. I can type commands and get output. However I can't figure out how to get ...

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

Displaying multiple FrameworkElement items in WPF

I have custom FrameworkElement (displays 3D model, and allows to control camera), and i need to display multiple items of this type simultaneously (they should be overlapping). Items are stored in ...

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

Unit test threw an exception: assembly built by a newer runtime

My solution wouldn't build with the dreaded "Could not load file or assembly xxxx or one of its dependencies", so after lots of searching, I ended up removing all the references and adding them back ...

0 answers

Creating a find dialog in C# winforms rtxtbox

So for this assignment in class I'm making a richtextbox editor in C# winforms, in this assignment I have to include a find function, but I can't seem to get the hang of it Here's my code up until ...

10 answers

See if user is part of Active Directory group in C# + Asp.net

I need a way to see if a user is part of an active directory group from my .Net 3.5 asp.net c# application. I am using the standard ldap authentication example off of msdn but I don't really see how ...

1 answer

Linq2Sql : always perform LEFT JOIN even if single record is returned

I'm using Linq2Sql (my customer is stuck on 3.5 so I can't migrate to entity framework) to access a SQL Server DB. To improve performances in some cases, i've appended LoadOptions to my context. As ...

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

on Startup of Excel file collapse all the drilldowns on an Excel Pivot Table

I am fairly new to the Pivot Table concept and I am having some issues with getting an Excel Pivot Table to be collapsed on start up. I am developing this in .NET 4.5 and C# The first image is when ...

15 30 50 per page
1 2 3