127 Answered Questions for the topic C#
C#
05/27/19
Visual Studio Simulink connection?
Is it possible to connect Visual Studio code (say C#) with Simulink model in order to dynamically change input to the model.
I have done some googling but no results.
I'd apprecite any links or...
more
C#
05/22/19
How to tell whether a point is to the right or left side of a line?
I have a set of points. I want to separate them into 2 distinct sets. To do this, I choose two points (*a* and *b*) and draw an imaginary line between them. Now I want to have all points that are...
more
End of month calculations?
Just wondering if any know of an elegant solution for the following.
If I have 30 June 2009 and I add a month I want it to go to 31 July 2009, not the 30 July 2009.
This logic is based on the...
more
C#
05/15/19
Math.Pow() vs Math.Exp() C# .Net?
Can anyone provide an explanation of the difference between using `Math.Pow()` and `Math.Exp()` in .NET ?
Is `Exp() `just taking a number to the Power using itself as the Exponent?
C# & operator clarification?
I saw a couple of questions here about the diference between && and & operators in C#, but I am still confused how it is used, and what outcome results in different situations. For...
more
C#
05/01/19
Given 3 pts, how do I calculate the normal vector?
Given three 3D points (A,B, & C) how do I calculate the normal vector? The three points define a plane and I want the vector perpendicular to this plane.
Can I get sample C# code that...
more
C#
04/27/19
Can you help me with C#?
Write an application that creates a two-dimensional array. Allow the user to input the size of the array (number of rows and number of columns). Fill the array with random numbers between 0 and...
more
04/24/19
Is there a way to properly end a session with QuickBooks/QBW32.exe so it does not stay running in the background?
I perform tech support and some development on a number of programs that uses the QuickBooks SDK to perform a variety of functions. Lately I have been noticing that when the user does the...
more
04/19/19
Creating a usb time lapse for Cannon EOS Rebel XS using a c# program?
I am wondering if this is even possible. I want to make my own software to control the release of the shutter via the remote shutter release. From the diagrams I have seen it has a 3.3 v (no load)...
more
04/19/19
how to integrate quickbook desktop application with website?
I am new at Quick Book, now I am preparing one Admin panel ( Online website) in which I have to integrate with Quick Book Desktop version.
* I am making this website with .NET ( C#)...
more
04/12/19
Insert Geography data into SQL Server 2008?
Can someone guide me to or give me an example on how would one go about insert/query Geography data in Sql Server 2008 ( Polygon with 4 points and Point in specific) using C# EF or Linq2Sql.
I've...
more
04/12/19
Multi-variable switch statement in c#?
I would like use a switch statement which takes several variables and looks like this:
switch (intVal1, strVal2, boolVal3)
{
case 1, "hello", false:
break;
case 2, "world", false:
break;
...
more
&& operator behaves like || operator?
I am a beginner and I've been trying to run a program that prints all the numbers from 1 to N (user input) except for those that are divisible by 3 and 7 at the same time. What my code does...
more
03/27/19
How can I check out the picture quality in program using c#?
I want to check out whether the photograph is suitable for print or not using my application.How can I do that?I don't know much about photo quality?Is the resolution of every photograph is same or...
more
03/27/19
How to load & extract text content from Adobe Indesign file , C#?
I want to load Adobe Indesign file, then I want read all text content of file(extract text data). How can I it in C#?
03/19/19
Where to start with QuickBooks development?
Does QuickBooks allow people to develop custom modules for their software? If so, are there any good resources out there for getting started with QuickBooks development?
I would prefer something...
more
C# Logic
03/18/19
Why doesn't the C# compiler throw for logical comparisons of null?
I was eating lunch with a friend yesterday and they were complaining about `null` in C#. He stated that `null` was illogical. I decided to test his claims, so I tested some simple logical...
more
03/18/19
How to: C# source with syntax highlighting on PowerPoint slides?
I would like to show some C# source code in a PowerPoint presentation. But how can I copy the code ***including the syntax highlighting*** onto the slides? I could make screenshots, but that has...
more
C# Drawing Oracle Spatial Geometries?
I need to create a simple app which can display geometries from Oracle Spatial in C#.
These geometries are exported from AutoCAD Map 3D 2010 to Oracle Spatial.
I need to pan, zoom, manage layers...
more
03/18/19
Draw arc with angles ranging from -360 to 360 degrees?
I am having some trouble trying to implement drawing an arc. Basically it's supposed to be drawn exactly like how you can draw a 3 point arc in AutoCAD. I can get the arc to draw with start and end...
more
03/18/19
Importing AutoCAD/Solidworks drawings/objects into winforms?
Has anybody done anything like that?
I need to import 3d objects, done in either AutoCAD or Solidworks, and draw them into a windows form. I only need the object to be viewed in 3D and moved...
more
03/14/19
How to create a method to return 1 or 0 without using conditions?
I was asked a question in an interview to return 1 if provided 0 and return 0 if provided 1 without using conditions i.e if, ternary etc
Just to give you and idea below code without if's:
public...
more
03/13/19
Generate identical Hashcodes for approximately-similar numbers?
I'm creating an application in C# 3.5 that uses the AutoCAD API to read a 2D AutoCAD drawing, make changes to the drawing using defined business logic, then adjust it back in AutoCAD. Due to the...
more
03/06/19
What do I need to do to get this C# code to work in Unity?
Help me!! i've just started a cert IV in Digital and Interactive Games and i'm really stumped on something. The video I've been given to watch is using an older version of Unity which included...
more
C#
06/11/18
c# generic class
Choose from the options below to define a generic class, which has a member method that returns the value of x.____ Temp ____{ T x; Public____ Func() { ___ x; }}Options:1. Class2. <x>3....
more
Still looking for help? Get the right answer, fast.
Ask a question for free
Get a free answer to a quick problem.
Most questions answered within 4 hours.
OR
Find an Online Tutor Now
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.