64,152 Solved Topics
Remove Filter ![]() | |
How can I get SQL Date and time into statusstrip with timeer control | |
The title says it all. Basically what I'd like to do is have a JComboBox drop down with a list of items. When the user clicks on that item it will redirect them, or open a new browser tab, of the url to that specific item. Quick example (these sites … | |
I am writing a C# program that reads in a text file of a list of events followed by a date and time, delimited by a comma and prints it out to a textbox along with how much time is left till that date and time happens. It must read … | |
////////////////////////////////////////////////////////////////////////////////// // Now I have an idea how to get my strings from the file so that I can properly // play with them (with fstream I did not have the string "in my clutches" quite // the way I wanted it). However, now I have a problem with my … | |
![]() | Hi all, I'm a long time reader of the forums and thought this would be a good place to ask a question. For the record, I am very new to Java! Basically, I have a [I]MainClass[/I] which inherits JFrame, the constructor for which sets window size, title etc. It also … ![]() |
Hi, I'm using Codeblocks as a compiler. So when i'm creating a new class by following File>New>Class it creates two files xxxx.h xxxx.cpp Ok, code is simple. [CODE]#include <iostream> #include "Sally.h" using namespace std; int main(){ Sally so; } [/CODE] Sally.h [CODE]#ifndef SALLY_H #define SALLY_H class Sally { public: Sally(); … | |
Hello! can you give me some ideas on how I can make the field values to field names? | |
hi Friends can you pl help me to create a simple snake game. give me with step by step creation. thanks. | |
Hi I have a class which has alot of tasks related to multiple classes. the tasks are add, modify ,delete, write on a file and read array from a file.all theses methods operates on objects of other classes as a member variables. In other words, I have to perform a … | |
I want to extend JFrame needed for my GUI program but i get this.. [URL="http://imageshack.us/photo/my-images/209/screenshot20111226at163.png/"]http://imageshack.us/photo/my-images/209/screenshot20111226at163.png/[/URL] how do i solve this? | |
i am trying to write a program for friend functions but it isnt working. :( [CODE] #include <iostream> using namespace std; class Z; { private: int a; friend void fn(); }; void fn() { Z one; one.a=5; cout<<a<<endl; } int main() { fn(); return 0; }[/CODE] can someone please tell … | |
Hi every body How to find smallest number and how many occurrence with the user input numbers until enter 0 ? this my code ....... [CODE]package javaapplication101; import java.util.Scanner; public class JavaApplication101 { public static void main(String[] args) { int num = 0 , min = num ; int count=0; … | |
hi guys trouble again, i want to print year from 1980 up to 2050 using loop in richtextbox and apply newline every print. thnx in advance guys | |
Hello, I'm new in Java and this is my first post here. I was doing my homework but faced the following error: [QUOTE]c:\java\my box\Login.java:25: variable p might not have been initialized if (p == pass) { ^ 1 error[/QUOTE] You can see the main code bellow: [CODE]import java.util.Scanner; public class … | |
I have a form that has a ton of work ongoing for around 10secs such as moving controls, resizing them, hiding some, making others visible and more importantly, mouse moving and clicking. I don't want the user to see these ongoing stuff so I thought of making a splash screen. … | |
the admin page goes nowhere before it works very well [CODE] <?php session_start(); if (isset($_SESSION["manager"])) { header("location: index.php"); exit(); } ?> <?php // Parse the log in form if the user has filled it out and pressed "Log In" if (isset($_POST["username"]) && isset($_POST["password"])) { $manager = preg_replace('#[^A-Za-z0-9]#i', '', $_POST["username"]); // … | |
Hello people... I got a problem here.. I am using a vb 2005 and mySql as my database. I already created my project but it seems like when i edit my program.. it doesnt apply. What might be the problem? Is the vb.net application, MySql or the OS? Thanks in … | |
how string comparison is done in php? i wan to copmpare two strings and result i want is the same letters in both strings? any help plz | |
I'm creating a C# program that has a sizable textbox that prints out data every 5 seconds. Whatever data that is displayed is (supposed to be) cleared and replaced with new data every 5 seconds. I've created a thread so that the window opens (main thread) and the data is … | |
//////////////////////////////////////////////////////////////////////////////////////// // In this little project I am trying to learn to get and manipulate data from // a file input using fstream strings I also wanted to use the formating available // with the printf and related string handling methods. I have a question in regards // to the … | |
I trying to get the hang of link list, but very time a write one i fail miserably... [CODE]struct node { int data; node *next; }; int main() { node *head = new node; head = NULL; node *temp = head; //node 1 temp->data = 1; temp->next = NULL; temp … | |
title is self explanatory how do i convert it to a std::string? all this LP stuff makes my brain hurt... | |
Hello, I want to validate this form and display error right next to the input field. [code=html] <div id="regForm"> <form action="register.php" method="POST" onsubmit="return validate(this);"id=registration" name="registration"><p> Username: <input type="text" name="username" id="username_reg" /><br /> Password: <input type="password" name="password" id="password_reg" /><br /> Repeat password: <input type="password" name="repeatPassword" id="repeat_reg" /><br /> Email: <input type="text" … | |
Hi, I have some problems with the code below. Also below the code I have two pictures one from IE one from Chrome. [CODE] <object id="MediaPlayer1" CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" standby="Loading Microsoft Windows® Media Player components..." type="application/x-oleobject" width="280" height="256"> <param name="fileName" value="<?php echo $check ?>"> <param name="animationatStart" value="false"> <param name="transparentatStart" value="false"> <param … | |
I write letter, it checks vowel or not but could not achieve for the capital letter without using if loop help me [CODE]#include <cstdlib> #include <iostream> #include "stdio.h" #include "conio.h" #include "string.h" using namespace std; int main(int argc, char *argv[]) { int a,b; char ch; printf("Enter Letter="); scanf("%c",&ch); if (ch==a) … | |
I have this alert box that I would like to add a sound after you click ok. Can this be done to the script I have here? Thanks [CODE] //<![CDATA[ var alertmessage="Well this the last and finale Assignment for the JavaScript Level One Course" //Alert only once per browser session … | |
This is not giving right output :((( [CODE]#include<iostream.h> #include<conio.h> using namespace std; int main() { char c[80],d[80]; cout<<"Enter a string = "; cin.get(c,80); strcpy(c,d); strrev(d); cout<<"String = "<<c; cout<<"Reverse word "<<d; getch(); return 0; }[/CODE] | |
hi m trying to make a registeration form. i have made it and trying to validate it. m new comer so dont have much knowlege so having problems in validating form. i have three files one is registeration form. other is geting value from form and storing it in database … | |
What is wrong with this code? [CODE]import time import sys print """Welcome to the age finder. This program takes some input (they will be the years) and then adds it to 4 ages. For example, if you give the ages 10, 11, 12 and 13 it will return the age … | |
I'm just learning PERL. I'm working on a short practice data set. All I want to do is to see if A) all values from a list exist in a hash i've made from a separate data file, and B) are the values that do exist defined--i.e. have a value … | |
hey there, I am trying to test strings using regex to make sure that the string may represent a monomial. that is, it must be 123123213x^213123. I am having difficulties to find any helpful information on how to test for ^. I am trying this: [+|-][0-9]*[.][0-9]*[x\^]? but I get a … | |
I know that there is a sticky thread and i know that maybe i repeating things that already mentioned but i am totally confused. I am interested to study about game programming,i don't study i bought a book and i am near to finish it about c++. i goggled and … | |
i searched for similar threads but couldnt find any. i write python scripts ..but i want to store them in someother folder eg /Desktop/... the scripts get executed from the unix terminal..however the python intepreter(initialised by typing python in terminal window )is not able to find the files. i changed … | |
hi i want to create some random password for users who sign up in the website also i want to use from rand command in php for creating some numbers among some characters and the results will be some things like this : sa231dsaw22sa suppose it as a example of … | |
I'm looking for javascript of a bird flying across my screen, is there such thing? or maybe an airplane. Thanks. | |
Hi, I'm doing a registration system and as you can see when i verify the fields, if it's empty it says that the FIELD_1 misses. And what i want is if the field is empty says that and then goes back, but i don't wanto the info already written disappears. … | |
Dear All, I'm working on a web application, JSP. I have a script with a javascript function that returns a String. I want this returned String to be passed to another page in a form, when a button is clicked. Any ideas on how to make this work? I was … | |
I'd like to spend some time killing my brain cells over a small program which nevertheless uses appreciably high logic, e.g. some scientific application. I'd classify myself as a mid-range, so please go easy. Thanks! | |
Hi im attempting to create a room viewing system where by The building selected with a drop down - this uses an sql query to store the data of the building from a different table rooms then if its available from now ie rooms free for 1 hour from now … | |
hello,i must solve this problem : "Sum all even digits of a given number. That's what i've got so far. [CODE] #include <iostream> using namespace std; int main() { int sum = 0 , num; cin>>num; while(num > 0) { sum+=num%10; num/=10; } cout<<sum; return 0; } [/CODE] the problem … | |
I have a datatable - 1 of the columns is a double so i read it like this Dim num As Double = Drow(1) I get an error about late binding here (with option strict on) I have tried converting to a double eg Dim num As Double = convert.toDouble(Drow(1)) … | |
I have a drop down menu on my page, and I want to change the background color of the box from white to match the rest of the page, how do I do this. Thanks [CODE]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta … | |
Iam Making Register & Login System Thats My Code [CODE]<?php include ('func.php'); include "Admin/config.php"; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" dir="rtl" lang="ar"> <head> <title>ÇáÊÓÌíá</title> <meta http-equiv="Content-Type" content="text/html; charset=windows-1256" /> <link href="favicon.ico" rel="icon" type="image/x-icon" /> <link rel="stylesheet" type="text/css" href="Style.Css" /> </head> <body> <?php include "header.html" ?> … | |
Need help. I have a combobox (cmbCharge1) that gets populated by a text file. Inside the combobox, the data inside is laid out like this: 41-1A-1303: EXPIRED REGISTRATION Now, autocomplete works fine, if I start typing in the statute (like the 41 part). But what I need is for it … | |
Hi, I need some help getting the hypergeom distr. I've started with this code, but it doesn't seem work: [CODE]def logchoose(n, k): lgn = special.gammaln(n+1) lgk = special.gammaln(k+1) lgnk = special.gammaln(n-k+1) return lgn - (lgnk + lgk) def hypgeo(x, r, b, n): return exp(logchoose(r, x) + logchoose(b, n-x) - logchoose(r+b, … | |
Hello guyz.. Now am currently doing a SMS portal site . I have 2 frames like , <frameset rows"" cols""> <frame src"page1.php">Page1</frame> // Navigation <frame src"page2.php">Page2</frame> // Main Content </frameset> Navigation : Static main Content : Dynamic || By this case when user press F5 the Main content frame goes … | |
Hi All [CODE]package apple; import java.io.IOException; import java.util.Scanner; /** * * @author Mates */ public class Apple { private double sample(){ double total; int a=120; Scanner as=new Scanner(System.in); System.out.println("enter the value"); double i=as.nextDouble(); total=i*a; System.out.println("apple"+i+"kg"+" "+total); [COLOR="red"]return total;[/COLOR] } public double sample1(){ int b=50; double total1; System.out.println("enter the value of … | |
Hi I require assistance on how to sort numerous records in C# in chronological order e.g the date of birth, if someone could help me it would be much appreciated. Thanks Ryan | |
The title really says it all. For example if I had a music file and I wanted to have it play all the way through then how would I make it start another music file after the first is done? | |
Hi, im making my new CakePHP project and I've got some problems with validating data, which comes from form. I mean i do know how to add custom rule but i don't know how should regex for 9 numeral telephone number looks like. [code] function checkPolishNumber($inputValue){ $regex = 'what to … |
The End.