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

.NET fundamental question

Hi All, I have searched everywhere, but possibly not asking the right way. Hence I am asking here. I am learning C sharp and ASP.net and am going through a lot of codes.  I am seeing this type of...

View Article


Solution Build Problem - Warning CS0436

*sigh*  I'm running VS2005/SP1 Team Suite on Vista Ultimate RTM.For the last year I've been working on a solution with four componenets. Some are newer than others of course. The Build process has been...

View Article


Real time view and transfer file to remote computer in C#

Any idea how to remotely access to other computer in real time and at the same time transfer files using C# ?

View Article

Value cannot be null

Dear Team,    I try to learn window phone using VS2013RC. I have a problem with this error "Error    1    Value cannot be null. Parameter name: key 0    0". I just create new project and select window...

View Article

Get Active Control Reference in Form.KeyDown

Hi Experts,How can i get the Activecontrol  in Form.Keydown when keypress for form level is true.For Example if on datagridview i press F2 KEY  how can i find right now the current activecontrol is...

View Article


Image may be NSFW.
Clik here to view.

How to calculate bearing in c#?

If I have two points (x1, y1) and (x2, y2) how do I calculate their bearing relative to the Y axis (0 degrees)?For example, in the graphic below:I would want the answer to be 50 degrees (I'm just...

View Article

Why string overloads == operator ?

Hi All,I knew that strings are reference type and overloads == operator.string s1 = "xyz";string s2 = "xyz";if (s1 == s2) ======> gives the TRUEif (String.ReferenceEquls(s1,s2)) =========> gives...

View Article

Creating some PowerShell cmdlets for managing windows updates via WUApiLib

Ok, I have written a pure windows powershell module that allows me to manage updates from the command-line. You can find it here...

View Article


Want to make a random Barometer reading code.

Hey again. (:I was wondering if anyone could help me with this. Basically I want to write a Code in Console Application that acts like a Barometer and when you play the code, it generates a random...

View Article


Save multiple entry in Settings file in C#

How do I save multiple entry in one settings file in C#. e.g. i have one setting file call Remote.Settings with the attribute name and password. So example when user A saves his data and save in a...

View Article

LINQ to SQL returns null object?

I'm trying to get users data from the database, and populate it, through the constructor. This query returns null, and the user object is null, however, if I log the output of: user.UserName, I get the...

View Article

Task.Factory - ending a task

I have a fairly simple {I hope} question - I use Task.Factory.StartNew(() to start a task that runs in a loop indefinitely. However, I want to set up an event handler that ends/stops that method when a...

View Article

Composition Example C#

Hi,I need to find pratical explaination of Composition in C#.Composition is again specialize form of Aggregation. It is a strong type of Aggregation. Child object does not have their lifecycle and if...

View Article


Image may be NSFW.
Clik here to view.

Which Object Oriented Design we used

Hi, We have a one class Student, four (04) class inherit this studnet class name Full Time Student Part Time Student Scholarships Student Non Scholarships Student Now we need to get the studnet which...

View Article

passing parameters to stored procedure and retrieving the result on crystal...

I have a stored procedure named "deliveryparam" that takes 3 parameters -deliverystatus,fromdate,todate.I want to pass these parameters from a windows form(to stored procedure) having 4 radio buttons...

View Article


Prevent Remote Desktop Brute Force Attacks

The remote desktop on Windows XP does not seem to have a feature to automaticly lock out ip addresses after a set number of failed login attempts.Could I write a small C# program to do this and how...

View Article

Join multiple where clauses in LINQ as OR instead of AND

I'm developing an Entity Framework Code First library with C#, E.F. v. 4.4.0.0 and .NET Framework 4.0. I have this dynamic query:    string[] keywords = null;    if (query_string != null)...

View Article


Extension Methods on base types, How much does this weigh down the system?

I have heard this going back and forth and wanted a semi-definitive answer.   I have been told that extension methods are only valuable on classes you create, since adding it to a base adds it to EVERY...

View Article

Download csv files from ftp to c drive

How to download csv files from ftp server to local drive folder? Please any suggestions?

View Article

Regarding the usage of SemaphoreSlim with Async/Await

i am not advance developer. just trying to have hold on task library just googling.i never use this class SemaphoreSlim so i like to know what it does. here i go through a code where SemaphoreSlim is...

View Article
Browsing all 31927 articles
Browse latest View live


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