4,588 Topics
| |
[CODE]using System; using System.Collections.Generic; using System.Text; class BaseClass { public virtual void method() { Console.WriteLine("BaseClass method"); } } class SubClass : BaseClass { public override void method() { Console.WriteLine("SubClass method"); } public void someMethod() { Console.WriteLine(); } static void Main(string[] args) { BaseClass var = new SubClass(); var.method(); var.someMethod(); } … | |
Hi.. Following is my code:- public static void Sync(string sourcePath, string destinationPath) { bool dirExisted = DirExists(destinationPath); //get the source files string[] srcFiles = Directory.GetFiles(sourcePath); foreach (string sourceFile in srcFiles) { FileInfo sourceInfo = new FileInfo(sourceFile); string destFile = Path.Combine(destinationPath, sourceInfo.Name); if (!dirExisted && File.Exists(destFile)) { FileInfo destInfo = new … | |
I have a combobox I need to display some data in from a Database, but there are duplicates and I don't know how to select the distinct ones. Any help? | |
Can anyone tell me how to do this? | |
I have a form with a number of controls on it, and I had thought that the "Controls" property of the form instance contained all of the controls on the form as per the documentation. Actually it does, but now iterating over all of my controls becomes similar to iterating … | |
Hello there. I'm making a simple Pacman game because I'm practicing C# (I've never programmed in C# before), but I ran into a problem. Here is my code: [CODE]void addGhost(object sender, EventArgs ea) { Random random = new Random(); int ghostNum = random.Next(5); // Here I use and enum I've … | |
Hello all , i am sarah , and i am a beginner in programming now i am making my first small programm but i am stuck with something the problem is : i have an array and i have to make calculations on it sum the values in the array … | |
helloo, I want to make a C# application that reads barcode from a scanner and then I want to know how to translate this barcode to the price of the item. Does any body know? Best regards. | |
hello can anyone help me in learning c#...i really want to learn it and start development using it regards anum zaeii beginner | |
hi guyz. I want to implement a search functionality in my c# project. I'm using mysql db and I would like the results of my search to display one row in my database based on a unique id field in my database. e.g for a hospital system you can search … | |
Hi all, Anyone know how to create a dynamic gridview with the following specs: 1. Fixed datasouce (sqldatasource) with a fixed string connection (and database name) 2. Fixed select statement: "SELECT * FROM " + <table name> 3. <table name> came from textbox input and there is a button available … | |
Hey everyone, I have a bit of an issue....I have a link: [CODE]<span class='deleteimg ui-icon ui-icon-search' style='cursor:pointer;margin-left:24px;' onclick=DownloadAssetPath();></span>[/CODE] I have a jquery function: [CODE]function DownloadAssetPath() { var link = "/Controls/Advertiser/Ads.ashx?Download"; window.open(link); }[/CODE] and I have a private void in C#: [CODE] private void Download() { String FileName = "webSitePlan.txt"; String … | |
Hi Experts, I am working on mixed language web project. In App_Code folder, Created 2 folders with names "VBCode", "CSCode". I added one class in VBCode folder with name "Class1.vb" and implemented 2 methods. And, I added one Class in CSCode folder with the name "Class2.cs". My Requirements is, I … | |
Hi, I am a new learner in c#programing and I am having difficulty solving this problems. Could you PLEASE PLEASE help solving this tasks?? I would be very grateful. cheers. Marcus Write a C program that will read in a set of numbers for the elements for a geometric shape … | |
I have a project to make a Phone Book Program using Hash Table, but I have to use two different type Hash Table, Hash Table .Net Framework and our own Hash Table. Does anyone know how to add, edit, search and delete the Hash Table? thanks a lot for your … | |
Hi Friends . How to create the sub group in datagridview in asp.net with using c# coding Thanks in advance Balas.... | |
Hi everyone: I am building a dictionary(translator) . My dictionary is completed, now I want to add some feature to it. I want to add a feature that once the user highlight a word in any application, afte 2 seconds which the mouse is IDLE my dictionary automatically COPY and … | |
Objective: User enters a score then clicks Add button. Everytime Add button is clicked a Score is added to previous score to display total, averaged,counter. Issue: I enter first scores then click add. The first score displays but the second score overwrites the first. It is not accumulating. I believe … | |
I recently published DesktopBootstrap, which is my attempt to factor out the common elements that go into a medium sized C# project, like auto updates, installer, and logging. I'd love any feedback or contributions! It's at [url]https://github.com/adamsmith/DesktopBootstrap[/url] Thanks!, Adam | |
i want to make a pharmacy control system, please help me to do this, this system is for small pharmacy, help me with samples. | |
Dear Experts, New to C# , My page is in ASP.Net with C# coding, I am getting this error, while debuging. Your help would be appriciated. ---------- System.NullReferenceException was unhandled by user code Message="Object reference not set to an instance of an object." Source="App_Web_print.aspx.c0a41cfd.e1sjotnx" StackTrace: at ASP.soft_reports_print_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) … | |
Hi to all I would like to ask for help with my C# project. It is a Memory game involving pictures. First the user clicks a picture box and the image shows and remains displayed, then the user clicks another picture box to find the first's pair. I'm having problem … | |
Hello everyone I am trying to code an address book in C#, the program should be a console application and should stores names address etc in a string. The menu should loop and continue wish I have done using a do loop, at the moment I am stuck on the … | |
Hi All, I am trying to understand shift operator which is used in my project. What I came to know from google is that Bit shifting allows for compact storage of similar data as a single integral value. But how does that work. and what is the advantage. Can you … | |
Hi, I'm new to asp.net and C# and I want to ask how to implement a session login using asp.net and C#. where i will connect it to my database. Please advise. Thanks. | |
hi.. i'm newbie in C# and i want to learn How To ConnecT RFID into C#.. can you help me? | |
hi..i am newbie in C# in Starting making a Program C# form with RFID,what are the components and installer i need before can i Start? | |
I ve a mask text box. mask is 00 00 00 00 format. my requiement is ,the box should accepts hexa decimal value too... my expect format look like 0A 0C 0a 0f...pls help me..thanks in advance.. | |
Dear Experts, Thanks in advance for helping me out. I am new to C# as well asp.net. I have already running appllication asp.net , needs to change in asp file with C# code. Scenario: My application is using third party software "activepdf server,webgrabber" to convert and print to pdf. BUT … | |
I have an UltraGrid Where Each cells Contains UltraControlContainerEditor inside that we have a UltraPanel and UltraPanel Contains UltraCheckEditor.All these Controls m creating Dynamically and are added as EditingControl. In short I have controls inside cell of the ultragrid. Now I want to knw Whether my checkbox is checked or … |
The End.