Quantcast
Channel: Programming Forums
Browsing all 51036 articles
Browse latest View live

TextArea, character/string replacement with Image

I started to write a chat application in a class, but it was basic. I was looking at improving what it is able to do. One thing I would like to learn is Emoticons. Replacing the inserted text of :-)...

View Article


Image may be NSFW.
Clik here to view.

C# WindowsForms MultiThreaing - Question

Hello all This is my first post here at Dream.In.Code, I hope that I am complying with the rules with this post />/>/>/>/> I've been working on a simple Windows Forms application that...

View Article


my task is to write to a .dat file

I recently posted some code and tested the code with a .txt file. now that I have the code working my task is to change the .txt to a .dat file, now my code does not write to the file. Am I missing...

View Article

Compile / Parser Errors with WebConfig and Inherit Code

I am really stuck and looking for some insight and suggestions. I built an ASPX project that works perfectly on my workstation in Dev environment. When I transferred into production, it fails. In a...

View Article

List view data save to file and load

I have following codes and I know how to add data from the text box entry to the header . but my question is, how can I save these entered text in each row to .txt file or .xml file, and load those...

View Article


improving my simple 2d game

hi all , i have basically followed a book that has helped me create my first 2d game called RockRain it basically is a ship that has to dodge the oncoming meteors , at the end of the chapter it allowed...

View Article

Problem calling a method?!

Hey, just trying to get these buttons to work by calling the methods "correctAnswer" and "wrongAnswer" at the bottom into earlier code. I had it working earlier but it was "styled badly" so I'm trying...

View Article

Read input from text file and print on console.

I have been trying to read input from a text file and print it to the console but it doesn't print anything out. My latest 2 attempts are at the bottom. #include <stdio.h>; #include...

View Article


EnumerateDirectory

This following code displays the directory path perfectly fine in a GUI, four times that is. I want to display the size, type, and date last modified after the base path as well. I tried using a...

View Article


[Link] Safeguard Your Code: 17 Security Tips for Developers

QuoteWriting secure code begins long before the first loop is formed -- and is no easy task. To even approximate bulletproof code, architects, engineers, auditors, and managers must try to imagine...

View Article

Cannot Access File

hi everyone , I was working on an application using GUI and i always show this erro ; the code private void button1_Click(object sender, EventArgs e) { //try { // StreamReader str = new...

View Article

Not reading text file correctly.

Hey guys. Below is an exert from my main class in my java program. I'm needing it to read information from this text file (packages.txt). package p02Inheritance; import java.io.*; import java.util.*;...

View Article

How to deal with uploaded photos?

Recently, I was trying to develop a function about uploading photos. But I only got two methods. The first one is to add a new column , the type is 「binary」,the each photo users upload just convert...

View Article


How can I make Java recognize "yes"

Hello here's my code import java.util.Scanner; public class Quest { public static void main(String[] args){ Scanner ui = new Scanner(System.in); int a=1,b=2; System.out.println("You have come across a...

View Article

Pass by reference in Java

I'm writing a program that converts roman numerals into a decimal number. The program ask the user to input a roman numeral and then ask if it wants to print it as a roman or decimal number. I've...

View Article


10 Use Trial

Hi all. I am trying to put a 15 uses trial on my application. The following is my code I am using...: Private Sub frmmain_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles...

View Article

Not recognizing isDigit and isLetter char commands

When I run through the code is won't get past checking if there is a letter or digit. It just keeps asking for it, and not sure how to fix it. This is for a homework assignment. Thank you for your...

View Article


Inserting user inputted data with apostrophe's.

I'm trying to make a form where users can submit bugs that are then inserted into a MySQL database. The problem is that anytime someone try's to use an apostrophe it will break the SQL statement inside...

View Article

It doesn't print anything

Hello, I'm creating a very simple game. Here's my code so far import java.util.Scanner; public class Quest { public static void main(String[] args){ System.out.println("You have been summoned to...

View Article

[HELP] Convert String to INT

Hi, can someone explain why there is an error with my code when I'm trying to convert the string to int? import javax.swing.JOptionPane; public class AdditionQuizDialog{ public static void...

View Article
Browsing all 51036 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>