Category: C#
First day in Web development
Write to excel file using c#
Adding intellisense to a textbox
So i was assigned to do this task so i though i should write about it for my future refernece as well. So to start with i created a simple form where you need to …
Continue reading »Different key events in C# Textbox
So i was working with different key event so thought that i should write about it. KeyDown: This event is fired when the key is pressed. That is when you press the key on the …
Continue reading »How to compare objects that is in a collection
So here is something that i encountered alot and i found it quite difficult and -not in my memory- all the time so i thought, OK lets write about it for my future reference and …
Continue reading »x86 Platform is missing from ‘Platform’ in Visual studio
So if you have this problem do this right click on solution and click ‘Configuration Manager’ you will have this dialog Under Platform click ‘New’ and add a configuration for x86. It will solve your …
Continue reading »Reading HTML from a URL
This code will get the HTML of a url using C# public static string ExtractInputString(string url) { var request = WebRequest.Create(url); var response = request.GetResponse(); var reader = new StreamReader(response.GetResponseStream()); return reader.ReadToEnd(); }
Continue reading »Web development using .Net – An introduction
OK so i decided that now is the time that i should start learning web development using .NET. So i start reading different resources to get the idea. As ambitious as i was to pull …
Continue reading »Test Driven Development – A hello world approach
[TestFixture] public class CalculatorClassTest { private CalculatorClass _target; [SetUp] public void Setup() { _target = new CalculatorClass(); } [Test] public void TestAdd() { Assert.AreEqual(6,_target.DoAdd(4,2)); } [Test] public void TestSubtract() { Assert.AreEqual(-2, _target.DoSubtract(2, 4)); } } public …
Continue reading »