Timer.stop();
I made a button in visual studio that once pressed, start a timer and set the interval between the tick event, in this wayprivate void button1_Click(object sender, EventArgs e) { timer1.Start();...
View ArticleConvert string to formula
Hi All, I developing layered architecture project in asp.net using C Sharp. I am storing the formula in database as string. After selecting the string I need to change it as formula....
View ArticleA Book of All/Most of the BCL
I am trying to learn C#. All of the books about programming C# have examples of C# code with classes, members, etc. that are particular to the example in the book. Does anyone know of a book that has...
View Articleremoving a row of table
lets say i have a small DB and im trying to fill a dropdownlist in asp.net with C# from a small table like thisSqlConnection con =newSqlConnection("Data Source=.;Initial Catalog=IrELearnDB;Integrated...
View ArticleWhat does IDisposable mean in this declaration?
Hello.What does the IDisposable mean/do in the following class declaration?public class MyClass<TKey, TValue> where TValue : class, IDisposableThanks in advance,Mike
View ArticleSignificant digits after Convert.ToDecimal
HiI am using Convert.ToDecimal on columns of string representations of decimal values with one digit after the decimal point, the convertion goes well apart from the fact that when the values appear in...
View Articlec# classes abstract
hi i am having problem with abstract classes how to create its object in order to access its method?
View ArticleString
Hi,I want to know how I can access to each character of a string in C#.for example if I have "111000" and want to use it in a conditional sub routine (if first char = 1 then ...)Tnx...
View ArticleApplication hangs while setting splitter.splitPosition
The hung is occurring while maximizing the size of PanelAnnotationControl (PanelAnnotationControl.AdjustSize() – See StackTrace). I don’t see any problem in this call but setting the SplitPosition...
View ArticleI need take a screenshot with Windows service C#
I knew what mean seasion 0, and Code take screenshot! Please answer if you know!Thanks before,
View ArticleCreate Sub dateMonthCalendar_DateChanged
Hi,I'm looking to code a dateMonthCalendar to display any events for the specified date in a ComboBox.I have my combo box added to the form but not sure how to display an event for a selected date.Can...
View ArticleUploading and downloading files to FTP server
Hello everyone!I am trying to read and write files from my own website using C#. I manage to upload a file the site using http://msdn.microsoft.com/en-us/library/ms229715%28v=vs.110%29.aspx and get the...
View ArticleFinding decent SqlHelper class?
For our projects, we've been using a SqlHelper class that has been used forever. It does its job, but I know there are better out there (ie. this one uses SqlParameter arrays which I find a bit...
View Articleblackjack
This is what i have so far.I'm trying to write a GetRank code in my deck that I will get string readout of the rank of the new card?Thank youusing System; using System.Collections.Generic; using...
View ArticleI am having issues in including two objects in an if statement with C# in...
using UnityEngine; using System.Collections; public class player : MonoBehaviour {enum State{Playing, //player is capable of all movement and activityExplosion, //player...
View ArticleC# LINQ OrderBy extension does not appear to evaluate all possible...
I am attempting to use the LINQ "OrderBy" extension method with a custom comparer class to sort a list of values where there is a dependence between the values. From what I can tell, the OrderBy...
View ArticleInit RSACryptoserviceprovider and RSAParameters from files
Hi,I'm trying to initialize RSACryptoServiceProvider/RSAParameters with private and public keys that I'm getting from a third party (in file). Environment is Windows Mobile 6.1 and .Net CF 3.5.I was...
View ArticleCovariance with interfaces
Hi,I have defined an interface as follows:public interface IMyInterface<out T> { }I have marked the generic parameter T as 'out' to indicate it should be covariant (that is, may also accept...
View ArticleProblem with the creation of a Snake-game
I'd like to please ask if it's possible to solve this without changing completely what i've done so far, so please try to stick with this idea of the code, and if possible, to solve it without having...
View Article