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

Image may be NSFW.
Clik here to view.

C# Regex Issue

Hi AllI' ve been agonising over this for hours so I thought I better throw it out there for another set of eyes to reviewIve got regex expression the works in the expression builder (see the code...

View Article


How to output complex number

after this equation, it return NaNis it possible to output into a variable to get real and imaginary partComplex aa =Math.Exp(-(1/4)* a *(b / a +Math.Sqrt(-7*Math.Pow(b,2)/Math.Pow(a,2)))/ b +(1/4)* b...

View Article


CreateFileAsync(fileName, CreationCollisionOption.ReplaceExisting);

I am serializing a file in Windows 8.1 preview and I believe the behavior of the storage file class has changed.Before when I used CreationCollisionOption.ReplaceExisting the serialization would...

View Article

Passing a user control to function or method

Hello AllUsing panels and user control to construct a continuous form functionality. so i can reuse the same code,would like to pass user control for function/method.Any pointer would be appreciated....

View Article

Bulk Copy from CSV to SQL Server Table

I'm trying to bulk insert data from a CSV file into a SQL Server Table.  This is what I have now.using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using...

View Article


Removing items from a nested ICollection

Hi,Given the following classespublic class A { string Id { get; set;} ICollection<B> MyColB { get; set; } } public class B { string Id { get; set } }List<A> MyColA;Assuming that MyColA has...

View Article

C#: Trap Consecutive Spaces

Hi,Hope someone can help me with this. I need to trap or not allow a user from inputting consecutive spaces but I dont know how to do it. Im using C# in Windows Application Form. I have a description...

View Article

How to prevent negative angles?

Hi ...May I know how to prevent negative angles to be detected ?Is there something wrong with my formula that is causing the negative angle to show up?I only want to show all positive angles.   int...

View Article


How to Pass a Number from a TextBox to a Function?

Here's my code:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms;...

View Article


combobox SelectionChanged in wpf

Hi,   i have 2 combo box  and one text box...namely cmbxemployername,cmbxlocation and tbdepartment i loaded cmbxemployername from sql..now i want load cmbxlocation based on cmbxemployername current...

View Article

Which directive to add?

Hi, How to resolve this? Error    6    The type or namespace name 'DateDiff' could not be found (are you missing a using directive or an assembly reference?)    C:\App16\App16\Default.aspx.cs    634...

View Article

concurrent access in my e-commerce web application

Hello! show all stocks in my application .... user see the stock item via web site and at the same time we need to modify price this item in back end section ... how can i handle it ... pls help me!...

View Article

IIS 7.5 Releasing Uploaded File

Hello all:We have a WS2008 box with a C# app that is waiting for files to be uploaded from mobile devices via httprequest PUT. It looks like the C# server app can see the file (Small text file approx...

View Article


Converting an Object Value to a datetime?

I have a column in a datagridview that stores datetime values ("MM/dd/yyyy hh:mm:ss") is the format.  I am trying to use the following code to convert the value to a DateTime format.  I get the...

View Article

Trying to read a gridview value in a for each row event

I have an SQL database table with an datatype bit for the Active field.  I populate a gridview with the results of a stored procedure and am trying to hide the row where the Active (data type bit) = 0,...

View Article


Line Graph with Color Spectrum Fill

Dear Friends, I am trying to make like a control, the chart is changing with control bars and fill with color spectrum colors , this company made it with XMAL , but I want to do it with c# ,waiting...

View Article

Linq XML parsing confusion

I'm desperately trying to parse, using Linq, the following. There are many nodes under the PlanningScheduleHeader node whose values I wish to retrieve and store. Here, I'm just trying to get hold of...

View Article


cant find hoshimi project

Hi sorry to bother I want to ask if there is a living link (the ones I found are dead) to download the Project Hoshimi  SDK, it was a framework for the image cup competition where you could learn to...

View Article

LdapException.ServerErrorMessage and...

LdapException.ServerErrorMessageWhat setting / condition "decides" weather or not the  LdapException.ServerErrorMessage  is populated with the correct value when an account is set to...

View Article

My data isn't displaying in the crystal report pls help.

string querya = "SELECT * FROM projects WHERE project_Id = " + P_ID + " and Estimation_Date = '" + C_DATE + "'";            string queryb = "SELECT t.project_Id, t.Type, t.Name, t.Description,...

View Article
Browsing all 31927 articles
Browse latest View live


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