199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for santakdalai90

I am a beginner in java. I wrote the following code in netbeans. [ICODE] /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package sanfile; import java.io.*; /** * * @author santak */ public class SanFile { /** * @param …

Member Avatar for santakdalai90
0
139
Member Avatar for rockout15

how can i pass a database value to a textbox if i click a button.. should i use a query statement..? what kind? help pls ...

Member Avatar for rockout15
0
77
Member Avatar for venkat4krish

Actually i got the source code form official website but its looking like latin & greek !!!! So in order to understand the source code !! from where should i start ???? how can understand where to begin with and go on to end..... provided i have the knowledge of …

Member Avatar for zeroliken
0
235
Member Avatar for Amiet Mhaske

Hello guys, I am new to vb programming. Can anyone tell me how to access command button of one form onto another? I have one mdiParent form on which i have command button "PRINT" and "Add New Client", I want to disable Print button, when i clicked on "Add New …

Member Avatar for Amiet Mhaske
0
177
Member Avatar for Hiiero

I am currently trying to create a list of skills and each list of skills generates 3 to 10 skills to put in the list and then randomly generates the skills that it places in that list. But I don't want skills repeating,meaning if I have 8 skills going in …

Member Avatar for Hiiero
0
147
Member Avatar for Behi Jon

Hi, I don't understand why this validation check isn't work, Everything is OK, but .... [code] <html> <head> <script type="text/javascript"> function valForm() { var x = document.forms["ActorForm"]["actorfname"].value; if (x == null || x == "") { alert("First name must be filled out"); return false; } } </script> <meta http-equiv="Content-Type" content="text/html; …

Member Avatar for Airshow
0
162
Member Avatar for Ahsan_1

hi ... i want to send mms from pc. and using jmmslib .....but here i have problem in jwap conection with mobile phone .... it timeout error .... how to make connection using Jwap ....?? what should else i need to get this ....? what steps should i do ..... …

Member Avatar for Rahmat1990
0
193
Member Avatar for kjs5533

Yo guys! How's it going? To give you a quick gist of my goals : I want to allow the user to enter a bunch of criteria for a book (title, author, etc) so I made a structure. Then I store that structure in an array so they can enter …

Member Avatar for pseudorandom21
0
460
Member Avatar for SakuraPink

Hi everyone, I am trying to write a shell script in which my variables take their values from a text file. The text file looks like the following: [CODE][0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,..,19][/CODE] One can say it is a large file so what I need to do is to write: [CODE]variabledin = [0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,..,19][/CODE] In …

Member Avatar for SakuraPink
0
240
Member Avatar for zaneulhaq

Hey guys, what i'm basically trying to do in this code is to write an array which is automatically written to a txt file in the order I have shown below, however, I not only get this error [code] --------------------Configuration: testmtl - Win32 Debug-------------------- Linking... LIBCD.lib(crt0.obj) : error LNK2001: unresolved …

Member Avatar for Schol-R-LEA
0
267
Member Avatar for bcogan6502

I have been fighting with this all day and looked at so much documentation and other posts I think I am going blind. I can't find an answer that works. I am trying to read through a set of records until the reference number changes and then return to the …

Member Avatar for BitBlt
0
691
Member Avatar for twinkle2011

Hi guys, after my "Calculator" was done with your help. I'm planning now to create a new program using Java a "Basketball, 24 shot clock timer" I can't imagine how to start or how I can make a Shot Clock Timer using Java. I need your best advice guys and …

Member Avatar for hfx642
0
541
Member Avatar for jeraldmuthu

[CODE] import java.sql.*; import javax.xml.parsers.*; import javax.xml.transform.*; import javax.xml.transform.dom.*; import javax.xml.transform.stream.*; import java.io.*; import javax.servlet.ServletException; import javax.servlet.ServletConfig; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletRequest; public class MySer extends HttpServlet { public void init(ServletConfig config) throws ServletException { super.init(config); } public void doGet(HttpServletRequest req,HttpServletResponse res) throws ServletException,java.io.IOException { String xml; Connection conn …

Member Avatar for hfx642
0
236
Member Avatar for furlanut

I want to show users the number of records on the database. I have this on my html page: How many ships are listed ? <form action="rowcount.php" method="post" target="_blank"><input type="submit" value="Answer here" /> </form> with about 8,000 names. and this :[CODE] <?php require_once 'dbconnect.php'; $query="SELECT COUNT(name1) FROM allnames"; $result = …

Member Avatar for diafol
0
96
Member Avatar for Jah-Jah

how do you write a program that converts a number entered in Roman numerals to decimal? The dicimal values of the roman numerals are M 1000 D 500 C 100 L 50 X 10 V 5 I 1

Member Avatar for hfx642
0
77
Member Avatar for mairead01

1.Procedure named *ship_order* that will accept an order# parameter. It should verify that the ship date for the order# is null and each book ordered has a sufficient quantity on hand. If every book is available, the quantity on hand for each book should be decremented and the ship date …

Member Avatar for hfx642
0
196
Member Avatar for eve_91

Hi, Basically I am working on a uni project but I am pretty new to Java. I've been trying to figure out how to do this for days now but just can't get it right. Really need to get it done as the deadline is approaching! I have 3 (large) …

Member Avatar for eve_91
0
4K
Member Avatar for gowans07

Hi, I'm creating a program and a feature i wish to include is for customer orders to be printed out. I've got this code below which will add in the relevant data and create the text file, but when i come to print it will include the standard &f header …

Member Avatar for gowans07
0
186
Member Avatar for mangel.murti

HI all, i have a links which is dynamically created.after clicking this link only one ajax request has to go for retrieving relevant broker data.but after seeing in firebug it displaying sometime 3 request and some time 5 request of ajajx call. i need only one ajax call on click …

Member Avatar for diafol
0
186
Member Avatar for eoop.org

hey, I have created two forms. in one form there is a panel, which is Form1: [CODE]Panel1.visibel = false;[/CODE] Form2: When the [CODE]WindowState == FormWindowState.Minimized[/CODE] then the panel1 in form1 needs to be visible, but how to do that ? :S Waleed Ahmed

Member Avatar for vadriaan
0
337
Member Avatar for king_saqib

HI TO EVERY HELP ME! HOW CAN I CAPTURE DISPLAT (PRINT SVREEN IN VB BY USING VB CODE AND HOW I CAN SAVE I AS .png FORMATE PLEASE PLEASE HELP ME I WILL BE VERY THANKFUL OF YOU

Member Avatar for gowans07
0
99
Member Avatar for coolbeanbob

Not sure I understand what is going on with setw(). [CODE] I would expect the program below to output something like this 77 77 77 77 Instead, it does this: 77 77 77 77 77 77[/CODE] Why are the first three 77's not indented? [CODE]#include "utility.h" // setw example #include …

Member Avatar for Schol-R-LEA
0
226
Member Avatar for craigus12

Hello, I am creating a web server which lets me insert into a table. The user invokes the specific ID and its meant to append to the table with that ID, startdate and an enddate. [CODE] <WebMethod()> _ Public Function reserveVehicle1(ByVal vID As Integer) As Boolean Dim strInsert As String …

Member Avatar for craigus12
0
219
Member Avatar for dress237935
Member Avatar for trubilo

Hello, there. I'm using Visual C#, creating a small game currently. After Graphics g = CreateGraphics(); g.DrawLine(new Pen(Color.White, 1), new Point(x, y), new Point(x, y); How do i delete that line?

Member Avatar for trubilo
0
189
Member Avatar for swissknife007

HTML FILE IS: [CODE] <html> <body bgcolor="yellow" text="red" > <form method="get" action="cookie6.php"> <p>Which car you want to buy?<P> <TABLE border=2> <TR><TD><input type="checkbox" value ="15" name="text[]"><TD>Ferrari<TD bgcolor="blue" width="15px"> 15million</td></TR> <TR><TD><input type="checkbox" value ="35" name="text[]"><TD>Mercedes<TD bgcolor="red"width="15px"> 35million</td></TR> <TR><TD><input type="checkbox" value ="50" name="text[]"><TD>Bugatti<TD bgcolor="yellow"width="15px">50million</td></TR> </TABLE> <input type="hidden" value="1" name="check" > <p> <input type="submit" …

Member Avatar for cereal
0
2K
Member Avatar for Ntropy

Hello there java gang. I've written a program which basically checks the dates that i have written for the program in question and then validates it against a set of rules, using arrays to ensure that what a user enters is valid. So for example, you can have 1,(day) 5,(month), …

Member Avatar for JamesCherrill
0
239
Member Avatar for addision

Ugh! need help. Ok I am creating a form to calculate a conversion, actually one of 24 conversions to be decided by radio button. I placed the code to make the conversion under the "checkchanged" event of each of the radio buttons, turns out that's not a good idea as …

Member Avatar for thines01
0
245
Member Avatar for furlanut

I am trying to combine a MySQL query with change date format so all rows display as d-m-Y (surely possible ?) in results. The datefield type is DATE. [CODE]$query="SELECT * FROM table DATE_FORMAT('datefield','%d-%m-%Y')AS datefield FROM table";[/CODE] SELECT*FROM table on its own displays datefield as YYYY-MM-DD but DATE_FORMAT does not change …

Member Avatar for simplypixie
0
120
Member Avatar for jaxi

Tried to compile the following code and got these errors: [CODE]Course.java:43: incompatible types found : java.lang.String required: double double cStart = df.format(cStart); ^ Course.java:44: incompatible types found : java.lang.String required: double double cEnd = df.format(cEnd); ^ [/CODE] Here are my two classes: [CODE] import java.text.DecimalFormat; public class Course implements Comparable<Course>{ …

Member Avatar for jaxi
0
350
Member Avatar for behemothdave

Alright I have a school assignment I had to create a loop to accept grade percentages from 0 to 100 and it needs to give the average percentage and letter grade, this is what I have but it is not working correctly, it always gives an F and no percentage. …

Member Avatar for ddanbe
0
108
Member Avatar for cool_zephyr

hello everyone..i'm trying to get a file in a server using a WebRequest..the server sends some headers saying "Transfer-Encoding :chunked"..what does this basically mean??? I'm using a BinaryReader to read the data..but after some few hundred bytes the transfer just stops..do i have to make a WebRequest again to get …

Member Avatar for thines01
0
2K
Member Avatar for Andy90

Hello, I just started learning this wonderful language! but I m facing some difficulties, which I would like to share, and hope for some help from you guys. Yesterday while learning I created a program which gets the screen resolution of desktop and displays the form in top-center of screen. …

Member Avatar for Andy90
0
191
Member Avatar for naveedqadri

Dear Experts, I am trying to get out put, as this is working fine on my local machine running on server 2003, 32 bit, BUT when i upload it to VPS with same specifications , it gives following errors. -System.ArgumentNullException: Value cannot be null. Parameter name: path at System.Web.HttpServerUtility.Execute(String path, …

Member Avatar for thines01
0
1K
Member Avatar for AceStryker

I need to create a KeyStroke encryption, i studied about it and the theory is this: [LIST] [*]Check the keystate before keyloggers do it [*]Cancel the action of the key [*]get the active window [*]Simulate a virtual key in this window [/LIST] I can make the last three items, but …

Member Avatar for Morten Brendefu
0
217
Member Avatar for willleung9

I need help coding this in java: Write a class named GroceryList that represents a list of items to buy from the market, and another class named GroceryItemOrder that represents a request to purchase a particular item in a given quantity. The GroceryList should use an ArrayList of type GroceryItemOrder …

Member Avatar for thines01
0
6K
Member Avatar for skp03

what to do in order to get the same setting in the execution of the form which has been done during the previous execution of the form in VB.net

Member Avatar for adam_k
0
428
Member Avatar for sidd.

hi, i have two drop down list. First one is populated from database and its working fine. Second one will also be populated from database but as per the value selected from the first drop-down list. [CODE]<head> <script type="text/javascript"> function xyz_list() { // xyz_list is the id of ;;my first …

Member Avatar for Ezzaral
0
168
Member Avatar for hszforu

today i was learning about jagged arrays.So i wrote the following code, i wanted to use foreach loop with it, but i am getting following error: Cannot convert type 'int[]' to 'int' on line 31. The code is as follows:[CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ArraysExplained { …

Member Avatar for hszforu
0
274
Member Avatar for coolsport04

I understand the definition of canonical, but I need an example. For instance, what would the canonical form of the string [CODE]String s = new String("foobar");[/CODE] be? Thanks.

Member Avatar for gusano79
0
105
Member Avatar for rajatchak

[CODE] #include<iostream.h> #include<stdio.h> #include<fstream.h> #include<string.h> class qa { char question[35]; char option[4][20]; int ans; //correct option no (eg 0 1 2 3) public: void getques() { gets(question); cout<<endl; } void getopts() {cin>>option[0]>>option[1]>>option[2]>>option[3]; } void getans() { cin>>ans; } }; void main() { int n; qa q; fstream file1; file1.open("questions.dat",ios::out); cout<<"\n …

Member Avatar for rajatchak
0
216
Member Avatar for msmorsan

Hi I have a JTable applet that implements querys with MySQL, and i have a couple of classes in my program. I made it using ECLIPSE, and when i run it using this code: <body> <applet code="AconsultaMysql.class" archive="mysql-connector-java-5.1.17-bin.jar" width="900" height="300"> </applet> </body> </html> It is in a package called webconsultas …

Member Avatar for NormR1
0
325
Member Avatar for asuprem

This is for an extra credit assignment for class. Requirements I am having trouble with: 1. User enters number specifying numbers of integers 2. User enters integers 3. program will read them and parse. ---------------------------------------------------------- Here is a sample input and what the program should do: How many numbers: 5 …

Member Avatar for asuprem
0
625
Member Avatar for cjohnweb

Hello, I've built myself a nice, simple little store to sell some stuff I've got laying around and some nice jewelry I got last week. I would like to give users the option to pay with PayPal exclusively (since it will also process CC's I figure that's all I really …

Member Avatar for cjohnweb
0
520
Member Avatar for KamranArshad

Hi i have a problem in uploading large file. web hosting allow me to send file 256M, Code is working for small files but i try to upload 25M size file page return back without any error, and nothing happened. i also use "set_time_limit(0);" for unlimited request time In error …

Member Avatar for pritaeas
0
171
Member Avatar for priyamtheone

I have inherited the standard panel control to create a panel having custom border color. The problem is, while the panel is on a form and any other form is moved across it, it paints hapazard lines of the same color as the panel custom border color, all throughout background …

Member Avatar for priyamtheone
0
811
Member Avatar for priyamtheone

I have a readonly datagridview that is bound to a datasource. It has two columns. Now I want the first column to have no cell borderstyle; and the second one to have 'All' (i.e. all sides of the cell shall have a border) as cell borderstyle. Before binding the datagridview …

Member Avatar for priyamtheone
0
4K
Member Avatar for cr7489

Hi i have 2 tables: film - filmid, filmname review - id, reviewtitle, filmreview, filmid i basically want to search for a film name thats in the film table then retrieve the review from the review table that matches the film, the match is found using the filmid as the …

Member Avatar for cr7489
0
182
Member Avatar for behemothdave

Okay I have created a validation loop which addresses the user entering a number between 10 and 50, as long as it is within these parameters it is supposed to ask for another number. When it is out of these parameters the program should let the user know it is …

Member Avatar for thines01
0
190
Member Avatar for riahc3

Hey AFAIK, you have to pay for Mono for Android so you cant write C# applications that run on Android. Is there any alternative?

Member Avatar for riahc3
0
185

The End.