Quantcast
Channel: Visual C# forum
Browsing all 31927 articles
Browse latest View live

C# Subracting Inputted Textbox Value to the Label value

I'm building these POS Desktop application in Windows form and it's almost done but i'm having problem in processing the customer bills. To be specific:   SIMSProduct Usercontrol   -...

View Article


when page is scrolled drop down is moved, detaching from combobox

In visual studio 2015,when page is scrolled drop down is moved, detaching from combobox. Open drop down on bottom left combobox. Use mouse wheel to scroll the page down. Drop drop down is moving down...

View Article


Saving a triangle in an object list and draw another one

I am trying to save the triangle I drew and draw again while the previous triangle is still there. I did this in rectangle, square, circle and ellipse and it worked. I don't know why it won't in...

View Article

IMAGE REPETITION IN RDLC

i have a idcard image.i am selecting data from datagridview and try to print selected data over the image.the issue is how to repeat image according to selected dataif i select single data from grid...

View Article

[UWP] How do I get a ListView with active sorting and filtering

I need a view into an ObservableCollection that permits sorting and filtering in a dynamic/live way.What I see is simple filtering and sorting where a LINQ query is re-run and a new collection is...

View Article


How to use NetFwTypeLib in .NET core 2.1

Hello:I had a C# project using C# Version 7.3; and I setup a firewall rule using PowerShell with a name like "My_Firewall_Rule".I added Reference to Interop.NetFwTypeLib.dll, and the following code...

View Article

css issue in string builder

i am creating string builder table and apply css on it.i set table background image like this sb.Append("<table style = 'background-image:url(C:\\Users\\Archit\\Downloads\\itbp.jpg)>") but when...

View Article

Is there any way to convert PSObject to string in C# while working with...

I need to convert PSObject to String(). Is there any standard way available to do this task? Somehow powershell also does ToString() or spits out a readable stream on ISE console. I used...

View Article


Merge multiple rows using C#

Hi,I have a csv file with data as follows:id C1 C2 C3 C4 R1 12    R1  13   R1   14  R1    15 R2  13   R3 12    R4   13  R2 12   15I would like the data to be merged based on the 'id' in column 1 so...

View Article


How to Open a .file extension file and read data into dataset in C#

I have a file with extension "File". The data in it is row column format with space. I wanted this file open in excel and bulk insert in Sql Server records. I am facing "External table is not in the...

View Article

Using Signal R with dotnet core and IIS

Hi everyone,I've been learning the signal r library for dotnet core, I've set up a basic app for testing it before we use it in one of our applications, and I used following...

View Article

Calling a web service, trying to pass JSON but getting a 403 error

Hi I am trying to use the HttpClient class but getting a 403 error.My code lokks like this********private async static Task post(stepPayload payload, string logicalStatus, DateTime? dt, string...

View Article

How to open the wss website in browser?

Hi,I created a digital signature demo.I can't connect to this website when I use HTTPS protocol in IE11/edge.the console says: SCRIPT12038: WebSocket Error: Network Error 12038, The host name in the...

View Article


Cannot see the value of httpcontent when debugging

I have some code as followsstring Payload ="{\"case_id\":\"FS-Case-88062659\",\"stage_name\":\"Back...

View Article

Unable to write data to the transport connection: An existing connection was...

Hi,We are sending bulk mails through windows service using third party(PMT).I am getting bellow exception regularly in our windows service.The logic we have written in this method is ,we are reading...

View Article


Linq searching ignoring accents.

I have a collection with objects. Each object has a variable of type String. I wanna make some searchs on this collection ignoring accents that could have on variable of t ype String. Cheers.

View Article

Merging values in list

I have created a list as below:List<string> templist = newList<string>string.Add(newstring() {Name="crank arm", PartId=1234,Address =" ",city =" "});string.Add(newstring() {Name="crank...

View Article


video in c#

hi every onecan any one help me please?i need to learn how show video and convert it to gray color in c#

View Article

Application crashes on Windows Server 2012 R2 - w3wp.exe crashes

Hi,I am working on a MVC application that works locally absolutely fine. But when i host it on IIS on Windows Server 2012 R2, I get below error.this is really critical for me to fix it ASAP. Appreciate...

View Article

download a file from sharepoint online using caml and by filename

Hi,Here is my code and i am getting exception "The property or field has not been initialized. It has not been requested or the request has not been executed. It may need to be explicitly requested. -...

View Article
Browsing all 31927 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>