C#

Forum discussion tagged with C#.
  1. S

    Is this processor good for programming on a laptop?

    The Processor is Intel Core i3-5005U 4th Gen 2.0Ghz. i'd mainly be using C# and java
  2. 2

    Strange Visual Studio error

    This error is occurring and preventing a project from being built I cannot figure out what to do here and it is very frustrating. Here is the pastebin: https://pastebin.com/8VeEEYem Edit:fixed link
  3. ExtreamChaozZ

    C++ Coding Help

    Hiya, I have been having trouble trying to work this error out, im not very good at programming so any advice would be great. The error occurred due to me merging scripts for the witcher 3 as im modding it. I fixed all other errors that popped up with a script merger but this last error has...
  4. A

    Why does C not have run time errors?

    Disclaimer: I am a total noob in C, and don't have all too much experience in computer science in general (about 1 year). I come from a background in Java and Python, and when I started learning C, I noticed something I found odd. Why does C not give run time errors, even if I intentionally add...
  5. T

    What is the best daily routine to learn C#?

    besides that i want to know: -what is a good book for a beginner -the time it will take me i also have some more questions: -what kind of programs can i make in c#? -can i make remote controlled stuff in c#? i thought about this: downloading a max 140 lines of code program and messing with...
  6. V

    Functions to retrieve data from DEVMODE in C#

    I wrote a C# class that holds some structures copied from PInvoke site. In this class I have: Printer_Info_2 structure, Job_Info_2 structure, SystemTime, Printer_Defaults and DevMode structures too. So I have the base to work on getting printer info and job info. All I need is too get...
  7. J

    C# coding error- Learning

    I have highlighted the error. I can't see the issue with it. Please help! :) ___________________code____________________________ using System.Text; using System.Threading.Tasks; namespace FirstConsoleProject { class Program { static void Main(string[] args) //this is a...
  8. C

    C language help

    Hello everybody, Is there anybody how can help to solve my assignment? I need to write c code that finds 100 most repeated words in to .txt file. I also need to use hash table or binary tree structures. 1. My first step was to figure out how to read file : #include <stdio.h> #include...
  9. D

    how do i set my windows' regional settings to use Greek for non-unicode strings?

    strings like "Ôï ðåäßï 'ÁÖÌ' ðñÝðåé íá ðåñéÝ÷åé ìüíï áñéèìïýò." in an old win forms app that came into visual studio 2015
  10. G

    Coding and Compiling C++ in MS-DOS

    I'm working on an Operating System in C++ in Microsoft Visual Basic 6.0, but when I test it for the first time, it doesn't run on MS-DOS, it only runs on CMD. Is there any program that lets me code C++ then compile it for DOS?
  11. W

    Avira blocking C# programs from running

    I am learning C# programming using Visual Studio and when I create and run some very simple programs Avira blocks them from running and puts them into quarantine. It seems to be this HEUR/APC(Cloud). Then programs don't even go outside of the program. How can I stop Avira from stopping the...
  12. J

    What is Wrong with my Code?

    I am fairly new to c++ and I am in my second quarter in college. On my assignment, I have this code here that is not working when I try to run it. It gives me the errors of "cannot convert parameter 1 from 'const char [17]' to 'int'... There is no context in which this conversion is possible"...
  13. S

    How to take user input of one form and assign it to a variable in another form in java?

    i have a textfield to get user input in my form 1.i want to get the text user inputs into that textfield from that form and assign it to a variable in form2. is this possible?
  14. S

    How to center align all elements inside a jframe to center in java?

    Im making a ATM enter PIN screen using java.i have written the code to make it appear full screen when i run it but all the other elements such as the jtextfield,labels and buttons are still at the top left corner of the screen.How can i get them all to the center of my screen? .
  15. M

    Background Copying Software

    Hi guys I am a 14 years old Student and i was looking for a software to copy thing from my teachers pen drives (flash memory) to mine The problem is that when i ask them for doing so the refuse because of the short classes time So is there is a software for this task maybe programming a power...
  16. syssoft

    Programming Beginner - Just starting to learn fundamental of programming with C#

    I have just started to learning about programming and new technology that's why want to connect with some popular forum sites to start discussion on some problems related hardware and software. Hope, this community will help me what I expect.
  17. M

    Playing a MP3 audio file in C# Console App

    Hi guys I am making a program where I wan to play a MP3 file as soon as the program executes can anybody explain me how to do so ???
  18. M

    How to make a C# console app terminate on the press of the "Esc" Button

    hi Guys I was watching a video on YouTube from a channel called Barnacules Nerdgasm about how to make a Prank software the problem is that there is a piece of code the tells the app to close when ever a key then enter is pressed which is "Console.Read();" please correct me if I am wrong so after...
  19. J

    Can you program in just C#?

    I was wondering can you program in just c# or does it have to be c# wpf, C# consol, etc.
  20. A

    3. Write a C# application that asks the user to input ‘A’ and ‘B’ and prints the sum of squares of all even numbers be

    3. Write a C# application that asks the user to input ‘A’ and ‘B’ and prints the sum of squares of all even numbers between ‘A’ and ‘B
  21. B

    Stacks: How to remain progress even the compiler is close

    BEFORE ANYTHING ELSE THIS IS THE MAIN CODE SO WHAT IM POINTING AT . IF I PUSH EXAMPLE 3 ELEMENTS THEN I POP 1 THEN I CLOSE MY COMPILER. MY TEACHER WANTS ME TO NOT LOSE THE PROGRESS. AND WHEN SHE COMPILE IT AGAIN SHES GONNA SEE THE 2 LEFT , NOT START FROM THE 0. CODEBLOCKS I HOPE YOU GOT MY...
  22. R

    C# Game Code

    Hello! me and my friend are learning to make a basic game in c# ,so before I ask what I want to ask I'll tell what's the situation,we have like a little map which we get in the code from a notepad file and we have our character moving around and all and we would want know how can we get the char...
  23. B

    Turbo C++ -nan problem

    Heres what need to happen. Enter two consecutive number , add them and show their average. So The code is Quite correct I can say It worked before but if you try and try again . and try to break it and it will It'll show -NAN -NAN and -NAN #include<stdio.h> #include<conio.h> float...
  24. A

    calculate amount of salary received based on position level using C++

    Here the question. A company owned by First Avenue has a salary system based on position level. Employee salary is being paid on a weekly basis. The company has 30 employees, which comprises of a manager (fixed salary), cooks (salary on hourly basis), salesperson (fixed salary and sales...
  25. P

    How To Make A Sign In Page in C#

    So I am very knew to the whole coding scene. Well I have an idea for a sort of Social Network sort of thing. And I didn't want to hire developers, so I decided to learn my self. I have started a project and selected Windows Form Application. I have to buttons and text box set up. But I would...
  26. P

    Do I Need A Server

    So in a few weeks, I am gonna start coding my game. I am using c# and am very new to the whole programming thing. I would like to make an online game and have severs. My only problem is how would i set that up. Would I need like a server rack, if so what code do I need to set that up and how do...
  27. A

    What does this error mean - "cannot access c:\ for reading" in commview for wifi?

    I installed Commview for Wifi and after i start capturing packets i get an error of "cannot access c:\ for reading" Anyone who can explain this to me would be great. Thanks
  28. S

    accept the name of the customer as well as the items being purchased and the quantity of items being purchased in c#

    can i please get someone to assist me im having some troubles.Head lamps (pair) – $50,000 ? Fenders (pair) - $75,000 ? Bonnet (front) - $46,500 ? Indicators (pair) – 37,500 ? Front doors (pair) – $88,000
  29. C

    c# console aplication help

    Hello! First sorry for bad english. Second i need help about c# console aplication. I should write in console lets say "BJ 2453 O" and i need program to detect only frst part of word in this case "BJ" and assing that to "BJELOVAR" and write that on screen, and then program should ask if i wanna...
  30. I

    Question when creating an OS

    I am starting to dabble in Operating System creating, and I am wondering whether or not I would need to start with a clean "Blank Slate" PC or if I can keep my computer as is and code and test on the side. Any help would be nice. Thank you in advance.
  31. C

    Asus X55V Problem Help fast

    So , i have a Asus X55V with windows 7. The Unit keept bluescreening so i reinstalled window 7 ultimate from a USB stick.All went fine ,i got to the part where it prepared for the first boot,then the unit stopped and it won't turn on,no lights, no power . Can you help please.Thanks
  32. E

    C# 1-1= 8.88178419700125E-16? (new to coding, help needed)

    I would first like to state that I'm new to coding, so there's probably a better way to do this.So I'm working on a quick program to count the number of digits after the decimal in a number. The lines of code that is causing issues are: this code repeats until it's left with 0 when run with...
  33. A

    Cannot get my Code in C to work

    My code is supposed to be pretty simple I've searched around the web but can't find much that helps so I was wondering if my code should be a switch statement rather than an if one... Here's my code... #include <stdio.h> int main(void) { int num; scanf("%d",&num); if (num...
  34. W

    Which Programming Language for OS

    Hello guys i wanna know which programming language is the best for creating OS like C, C++ or c# or any other.
  35. Z_GAB_X

    Where to learn C# online for free?

    I want to learn C#, but i don't know where
  36. C

    Help With C# Programming!

    I want to make a Windows 8 App, I want people to be able to add stuff and other people to be able to see it? Like, They enter a form: Name: Server address: description: Then people can see it? etc! Could you help me do this please or point me to a tutorial that could help me thanks!
  37. B

    Avast false checks?

    I have avast and mess around in codeblocks and it was working fine, but now everytime I try to compile the program avast deletes it for being malwaregen? Anyone else have the problem? edit: Bet every single time I try to compile something as simple as subtraction?
  38. G

    c# DirectX version

    hello, i making a system information program and one of the things that the user will see is the directx version thats installed. but my porblem is: i dont know how to get that in c#. thank you
  39. manicmike

    Homework Help (C# GUI, Random Number Guessing Game)

    As the title states, this is for homework. I'm tasked with creating a program that allows a user to input a number into a GUI, and then compares their answer to the random number. Most of the remaining code is cake but when I tested what I have so far, EVERY time the Guess button is clicked, it...
  40. B

    c# code modification

    i hav an application written in c# that can send sms to other mobile phone via a gsm modem. but i have a CDMA modem.how can i change the code so that i can use the CDMA modem. or can i insert the gsm sim in cdma modem and will it work? pls suggest an alternative.thanking u , bluesea :)
  41. arpitsri

    Why there are different output for the following two same program in C++

    I mean that the following codes should have the same output, but a change of line is giving a whole different output. I'm using Turbo C++ compiler, I know that these codes are outdated but in my exams only these are going to come. Code 1 #include<iostream.h> #include<conio.h> void main()...
  42. W

    Learning Computer Sciences

    Hello, I am a High School student who is interested in learning about computer programming. I was wondering if there was a good way to begin learning, and also what language to learn. Also, how could I begin to make my own programs? I would like to learn how to make small games or possibly other...
  43. DonnyTechMaster

    Good Way to learn C# and Unity

    Hi, I'm looking for a way to learn C# for the purpose of making games in Unity. I get bored/distracted pretty easily and I was wondering if there is any software/guide out there to to make it more fun to learn. BTW I generally don't do very well with video tutorials because I get distracted...
  44. skyline4727

    C++, C#, Java, and Python

    I'm a computer science major and I'm currently learning C++. I would like to get into video game design and mobile app development so I want to learn Python since I heard a lot of games use python and Java is used in mobile devices. I also want to learn C# for Windows development. Since both C++...
  45. Scott_D_Bowen

    Mini C# 2010 GUI crash course

    Mini C# 2010 Graphical User Interface Crash Course
  46. L

    Regex in c#

    Hey all, Not sure how to write the regex for just showing the usernames in this format: lastname,firstname. My searches are showing like user1, user2 ect and I dont want those, only want searches that are in that format.
  47. J

    C# help with program.

    Hi everyone. I've read the post, "before posting", and I apologize for not submitting any code. I'm a student at ECPI and just enrolled in my first C# programming class. Our first day, we received this assignment, however I am having difficulties with implementing the correct syntax for C#. Any...
  48. L

    Active Directory C# help

    Hello All, Writting a new C# program to replace a very old VBS file. Pretty much the program will go through our AD and get all the users and their emails and put it in a CSV file. I found some basic code and ran it and I think it worked because I saw a huge list in the console but when it was...
  49. F

    Tools needed for C#

    So I've decided that i want to be a programmer. I would like to learn c# but i don't no where to start so could could someone tell me what i need to program c# i.e notepad or visual studio and could someone direct me to a site which can teach me?
  50. A

    C# How to do a math operation with one button and one text box?

    This is for school. I want to be able to able to type a number into a text box click a button, then type another number into the same text box click a button and apply a math operation to those two numbers(In visual studio 2010 C#). Now, I don't have any trouble with the math operations, but I...
  51. C

    Learing another language just by reading code

    So basicly I am a young developer and I have written code with c++ c# pytyhon java and javascript Making many things. But could you learn a whole language based on what you know already to understand a whole language just by reading code examples?? --Cavan
  52. R

    How to solve the file or directory is corrupted and unreadable error i

    how to solve the file or directory is corrupted and unreadable error in c# windowsapplications
  53. G

    Run Windows Applications Directly From The Web

    Hello, I Have windows application that is writen by c# and janus framework, Can I explore it via internet explorer.
  54. jefe323

    Writing a simple IRC bot in C#, won't connect to a channel

    I've written an IRCBot class in C# and it connects fine to the server, but it fails to join a channel. Can anyone spot whats wrong (i've edited out the channel and the password for the user) using System; using System.Collections.Generic; using System.Linq; using System.Text; using...
  55. I

    SUGGESTION

    Hello, HOW MUCH C# KNOWLEDGE IS REQUIRED FOR LEARNING ASP.NET 2.0?
  56. bsnowman17

    C# string help

    I need to make a string that has the tab command, but without tabbing. IE: string Text = "\t is the tab command"; Console.WriteLine(Text); Output would be: \t is the tab command
  57. S

    Performance counters

    Hello,how do i start and stop performance counters in c# application
  58. jefe323

    C# - Checking Output against english dictionary

    As the title states, I am writing a program that takes a bunch of random letters and turns them into english words. I have gotten the program to output every variation of the inputted letters, but its hard searching through them all for actual english words. How would I go about checking the...
  59. jefe323

    (WPF and C#) Using a For Loop to draw multiple Rectangles

    I'm working on a project for school and I'm kind of stumped. I have a grid (10 columns and 5 rows) and I want to fill each cell with a rectangle. The user will be able to specify how many cells are filled at runtime... Here is the code I have written to draw a single rectangle in a specified...
  60. alexhicks22

    Good programming language to learn?

    Im wanting to learn a programming language in my spare time. In college i have kind of learnt c# but not very indepth. Any ideas what language i should learn? preferabble object oriented. Thanks!