C# is a multiparadigm, managed, garbage-collected object-oriented programming language created by Microsoft in parallel with the .NET platform
0
votes
0answers
2 views
C# painter program
I m developing a paint program in c#.But i m using a form to draw, if i want to create a menu with new tab, what should i do?
using System;
using System.Collections.Generic;
using ...
0
votes
3answers
59 views
Least Change Problem with Thousands of Denominations
In a hypothetical economy there are currency units that can represent thousands of different values. So, for example there might be coins worth 1c, 3c, 5c, 7c, 7.5c, 80c, 8001.5c etc.
Given a list of ...
0
votes
0answers
21 views
Inputs and outputs to a method mixed in the UI
I am designing the front end of an WPF application using MVVM where basically all we are doing (for now) is calling a method with some inputs and displaying the outputs.
There are two types of ...
-2
votes
0answers
40 views
Desktop application tools or languages [on hold]
I got a requirement to run my application when the network is offline. Therefore looking at it web application is a wrong move. Beside C# and Java is there any other platform I can use to develop ...
0
votes
1answer
50 views
Online and offline point of sales application
I am going to develop a web based point of sales system. It is going to be based on linux and php. Users will access it via internet and using browser as the tool.
Problem is if the web server is ...
-2
votes
0answers
25 views
Is there any method to recognize the static gestures made by human palm (finger detection) in kinect? [on hold]
basically we are trying to do a computer vision project , a simple calculator using hand gesture detection. So we got Microsoft kinect with us. We are thinking to consider the number of fingers in the ...
-3
votes
0answers
39 views
What language should I learn for my project? [on hold]
So, I want to create a program in which you can simply create a website, as in, you wont need internet to see what youve made, and it isnt in browser. It is a stand-alone program that you can use ...
0
votes
0answers
58 views
Graphical capabilities of Panda3D compared to Unity3D [on hold]
I'm aiming to write a small 3D RPG. It doesn't have to contain AAA-graphics but I would like it to be at least close to the somewhat dated graphics of HL2, Oblivion (with no HDR and other gimmicks).
...
0
votes
0answers
20 views
Check Connectivity to TAPI Server (C#) [migrated]
I'm developing a small CTI (Computer Telephony Integration) App for my company in C#. I use The Microsoft Tapi3 DLL to connect to our Microsoft TAPI Server. Everything is working fine. If I make a ...
-3
votes
0answers
32 views
i want to print a pattern like this HELLO gives 08,05,12,12,15 to the respective word and viceversa up to z in c# [on hold]
I m require a pattern like A gives 01 value ,B gives 02 values up to z same manner & vice -versa .if i gives a string value like HOW then my output will be 081523 required.when i gives input ...
-1
votes
0answers
29 views
how to store data in wav files and transmit over cell phone [on hold]
Is it possible to store text data in wav files? That way I can just play the sound over a cell phone and transmit it on long distances with microphone recording the sound at the other end and ...
1
vote
1answer
143 views
Suggest a best practice to create Constants class
There is a debate in between my team members about declaration of Constants class. We are moving the constant variables into separate class as like below
public class Contants
{
public const ...
-1
votes
0answers
22 views
How can i switch to Sql Server Compact Edition from LocalDB
I have a simple C# Application, uses a small database contains 2-3 tables. I've been developing on Visual Studio 2012 and using LocalDB, but due to deployment issues, and what i've been reading ...
-2
votes
0answers
6 views
Address Suggestion List With Coordinate [on hold]
So, I want to make location searching app and I want my user to type into my autocomplete textbox that will show address name based on what my user type... how to achieve that?
I tried google ...
-2
votes
1answer
117 views
How long should I put into Programming and learning programming languages [on hold]
I really want to know how much time a week, a day or a year I have to put in to progress at a fast, steady rate, I really want to learn C# and other languages, but I end up doing some then I end up ...
1
vote
1answer
105 views
How to create a WinForms project that is “WPF-ready”
I'm a C# developer who hasn't had the privilege of learning WPF yet. However, I recently initiated the architecture phase of a new project which I expect will eventually employ WPF (probably; although ...
1
vote
3answers
194 views
How does one regrade a development team appropriately?
We have a team of 20+ developers, of mixed skills and varying levels of ability in each.
Some are C#/MVC4/.Net 4.5 developers cutting new code, some are VB6-ers maintaining our critical legacy apps.
...
-2
votes
0answers
21 views
Is it possible to add controls in windows form like windows xp style navigation [on hold]
sir/madam... i want to make a windows form application and i want to add windows xp like navigation in visual studio .. Is it possible to add this types of navigation control in windows form visual ...
-1
votes
0answers
23 views
Kinect Programming with C# [duplicate]
I am completely new to programming for Kinect, my plan is to learn C# to create an application for students with a disability, perhaps a game. I have no knowledge of C# so I will have to learn it, ...
0
votes
3answers
129 views
2D movement of an object based on speed and new vector
I am writing a small game where a sea vessel (like a battleship) can be moved in a 2D place based on orders that it receives. I wanted to know if someone can help direct me to a post or example code ...
0
votes
1answer
122 views
Migrating old Asp.net 1.1 project to mvc 3 or 4
we have to migrate a very old project that are having more than 500 web forms and 400 tables and it is hugely depends on stored procedures, the current specification is:
Asp.Net : .NET version 1.1
...
3
votes
2answers
253 views
Help With Dependency Injection
I am still very confused as to why and when to use Dependency Injection. If anyone could explain maybe using the below example that would be great, any other explanations would be appreciated.
Lets ...
-2
votes
0answers
8 views
Column Styles not working on TableLayoutPanel [migrated]
I have a TableLayoutPanel that has a dynamic amount of columns and rows determined by the user. I want the buttons inside to be square and the same size, but whenever I use a loop to set the ...
0
votes
4answers
263 views
Which statement performs best?
I was faced with this question by my team leader.
Statement 1 (written by me):
lnkbtn1.visible = lnkbtn2.visible = lnkbtn.visible = false;
Statement 2 (written by my team leader):
...
0
votes
0answers
9 views
Please critique my naive implementation of attached properties for WinForms [migrated]
I need to implement something like "attached properties" from WPF that targets WinForms.
What I came up with seems to work. Can you find any issues with it? The helper class and example are shown ...
0
votes
2answers
127 views
C# Internal Class - what is most common convention for applying access modifiers to members? [closed]
Suppose I have this Internal Class in C#:
internal static class DataProxy
{
internal static Data GetData() {..}
public static Data GetData2() {..}
}
It doesn't make a difference if I use ...
0
votes
1answer
91 views
How can I layout this class to make it easier to use for API developers?
I have an application that allows the user to place a string of text into a PDF document. I have three different ways that they can do this:
Use a Form Field. Then they have four properties to ...
0
votes
1answer
105 views
What does the implementation of .NET string.Split(char[], StringSplitOptions) look like from inside?
That is if we were to see how Microsoft wrote this method what would it look like?
I'm mainly interested in the use of the StringSplitOptions enumeration with the other parameter and how they probably ...
0
votes
0answers
138 views
32 bit program on 64 bit computer doesn't crash on NullReferenceException [migrated]
I have a piece of code that throws a NullReferenceException:
dataSource.DataSource = GetView();
It throws because dataSource is null. GetView returns a DataTable.
However, when run on the one ...
-7
votes
0answers
31 views
how to add advertisements through javascript code in c# form [closed]
how to add advertisements in c# Windows form apps.
0
votes
2answers
179 views
Where to put comments, class declaration or constructor?
For a given class, where should the comments about the purpose of the class go?
/// <summary>
/// <----------------- describe the class here (1)?
/// </summary>
public class ...
-4
votes
1answer
51 views
what is the main utility of Interface in real world programming (OOPS) [duplicate]
what is the main utility of Interface. we know that we can implement dynamic behavior using interface but i guess it is not only the utility. so i like to know when we have to write interface and when ...
1
vote
1answer
89 views
When to use Interface variable = new class variable OOP
I saw often people use this code like
interface IAnimal
{
void die();
}
class Cat : IAnimal
{
void die() { ... }
void meow() { ... }
}
IAnimal anAnimal = new Cat();
Cat aCat= new ...
0
votes
2answers
162 views
Parallel programming or multi threading for my windows service in c#? [closed]
I have one Windows service which does following tasks
Get the types of files from database and for each type do as below
Depending on the type it either writes bunch of that type specific files ...
2
votes
4answers
198 views
What are some good ways to represent relationship among three numbers
I'm trying to find a clean, intuitive way to implement this problem. Basically, I have three numbers, and based on relationship (less than, greater than, and equal to) among these numbers would change ...
-4
votes
0answers
22 views
How to set the Maximal Iterations for solver foundation [closed]
I tried to use Microsoft Solver Foundation to optimize a portfolio consisting of 100 stocks. I got an error which suggested me to check the maximum iterations or whether in an infinite loop.
Does ...
4
votes
1answer
141 views
How are atomic operations are a dynamic language feature?
I was told that atomic operations are a dynamic language feature. I was too afraid to ask in that context what this actually means because I didn't want my coworkers to think I'm stupid. But I ...
-3
votes
2answers
229 views
Does 'int' ensure 4 bytes of memory even if the value is small? [closed]
int myVariable = 2;
Does the memory in this case allocate 32 bits for the value '2'?
and is it the same 4 bytes if we change the value?
myVariable= 2222;
1
vote
1answer
176 views
HTML DOM in .NET: following specification vs. following language standards [closed]
Let's say we're implementing HTML DOM in C#.
Naming conventions are different: HTMLCollection interface/class vs. IHtmlCollection/HtmlCollection, body attribute vs. Body property etc.
Behavior is ...
0
votes
1answer
100 views
modelling a restaurant availability search
I am looking into finding an efficient way which can scale up to thousands of restaurants, for doing a reservation search. Ideally, it would be efficient to answer queries like find a restaurant ...
5
votes
3answers
306 views
What are my options for using a C++11 library in a C# WPF application?
I am writing a cross-platform (OS X and Windows) desktop application in C++11. I intend to use the same C++11 core on both platforms, utilizing native frameworks for the UI (Cocoa and Objective-C on ...
-1
votes
1answer
82 views
Live share prices for a side project [closed]
Me and some of my friends would want to start a side project which we will work at our spare time. Here is our criteria
1) A challenging project which will teach us skills which has business value in ...
1
vote
1answer
94 views
service depends on other service - IoC [closed]
I have a simple question. Can a service depend on other services in IoC, like here?
public class AccountService : IAccountService
{
private readonly IAttachmentService _attachmentService;
...
-1
votes
0answers
53 views
Cellular/Network SMS integration for Quiz application [closed]
As a layman , I tried with google but no success, what i want to do is to make sms poll/quiz type of thing where user can send sms to "7766" and get response like "Welcome to ABC. reply with 1 to get ...
0
votes
4answers
492 views
What is this design pattern called? [closed]
I have some code:
/// <summary>
/// Represents Record Locator class
/// </summary>
public class RecordLocator : IRecordLocator
{
/// <summary>
/// The Record Locator string, ...
4
votes
3answers
431 views
Extension method naming convention [closed]
We are using some utility methods in our company to simplify programming.
So we have following string extension:
public static bool IsNoE(this string s)
{
return string.IsNullOrEmpty(s);
}
...
0
votes
3answers
181 views
Multiple remote views of a C# application
I have a C# application (Desktop based application for Windows OS), which I wanted to use from Web browser.
The application is a kind of analyzing tool, which takes some input values and performs set ...
0
votes
3answers
239 views
Interfaces vs Base class [duplicate]
I'm strugging to know when to use a base class with Polymorphism or an interface.
Providing my object exposes DoThis() then I can't see why it matters if it's an interface of a base class.
Please ...
-1
votes
0answers
60 views
MVVM : populate listview when textbox text changed
I am new to MVVM .I have a requirement .I have one textbox and one listview .When the user enter text on textbox the listview got populated with data by filtering through the text.
And the user can ...
0
votes
4answers
146 views
What is the industry norm for naming standard for gui object event handlers in C# [closed]
Lets say you have a button objects on a form with a click event (c#/.Net). How is the event handler normally named throughout the industry?
fooButton_Click
fooButtonClick
(or if you like ...