199,114 Archived Topics
Remove Filter ![]() | |
HI. I was taken one grid view, in that gridview there is 6 text boxes are there (sun1b,mon1b,...... total1b), I want to add (sum) those textbox valus without ''ADD Button ''click . I need to add the text box values (Horizontal, vertical ) total, I attached the image, u r … | |
Hi, I have 2 JTree components on my JForm. If a user clicks on a DefaultMutableTreeNode on JTree A i want app to add it to JTree B. [CODE] public void addModule(final JTree a, final JTree b){ a.addTreeSelectionListener(new TreeSelectionListener(){ @Override public void valueChanged(TreeSelectionEvent e) { DefaultMutableTreeNode node = new DefaultMutableTreeNode(a.getLastSelectedPathComponent()); … | |
Hey, so as you can tell, this is my first attempt at writing a class. I put in a mock int main() in order to follow what exactly is going wrong. As far as I can tell, every time the struct in push is used, it always has the same … | |
i dont know to close the theread on daniweb can any one tell me. | |
Hello Im trying the ini4j library but I seem to be having problems writing a Unicode file (no problems reading I believe) Is this a Java issue or ini4j? Thank you | |
Basically, i'm doing an exercise that requires me to decrypt some numbers in an array, which will then read out something about "THEO", i've written my code out in this way, and it compiles fine, but it's having a problem when i run it, i'm getting a problem with my … | |
hi all, I came through this question and was confused as to what and why the ans should be?? [CODE]String str = "10"; int a = new Interger (10);[/CODE] which of the following is legal: - choose any 3. a) str += a; b) boolean b = str == a; … | |
[CODE]<?php $time1=time(); $time2=$time1+5; echo $time2-time()."Current time<br>"; setcookie("user","Abhi",$time2); // ECHO "<html> // <body> // <form action='cookie2.php' method='get'> // <input type='Submit'> sybmit // </form> // </body> // </html> // "; ?> <?php while(isset($_COOKIE["user"])) { echo "hi ".$_COOKIE["user"]; echo time()."Current time if<br>"; } if(!isset($_COOKIE["user"])) { echo "hello"; echo time()."Current time else<br>"; } ?>[/CODE] … ![]() | |
Hello everybody! I'm participating in a competition, and I just finished my program. It doesn't really matter what it does, and how. I have encountered a bug I think. I'd appreciate every kind of help, because with the problem, my solution fails for the test file. I have to read … | |
I have created a DLL files using C#.... How can i use it in Visual Basic 6.0? Please help me with this project...can you give me codes for it or step by step procedure THANK YOU!!!!!!!!!!!! | |
hey.. can someone help me here?? how can i get the second to the last and the last record in the notepad?? then, i will subtract those values and insert into the database. tnx. im using vb6 and mysql. | |
i have a file of the form [CODE](9430, 3656) (9147, 14355) (133, 14393) (7917, 9513) (3719, 12775)[/CODE] lets say i need to store it as a hash.such that 9430=>3656 and so on.I tried using split but it takes whitespaces for right hand values.How can i do it the better way? | |
Hi, I was trying to figure this out. I've been scratching my head all morning and I'm at a mental dead end. Can anyone help me? Malicious code in red [CODE]/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package … | |
Okay so for my beginners c++ class we have to make game for our final project. The game is a simple shooter type game with ascii chars and stuff for the player and the enemy. We covered up to 2d arrays in class and then the teacher gave us the … | |
[CODE]<?php include 'connection.php'; $data = mysql_query( "SELECT Date,color_code, COUNT(color_code) FROM paintshop WHERE Date BETWEEN '$startDate' AND '$endDate'") or die('error'); while($rw = mysql_fetch_array($data)){ ?> <td width="59" height="25" class="style5Copy"><?php echo $rw['Date']; }?></td>[/CODE] i want display the dates between i post from the form.. eg: start date = 1-12-2011 until end date 7-12-2011 … | |
i need to compare these two arrays. one array in the lottotest class, method getdata gets the users numbers and stores them in an array. the nest in loto class, method gendata, generates 6 random numbers between 1-9. i need to then call both methods into the main method and … | |
am using vb6 and ms office 2007 on Windows 7 professional platform i wrote code as below dim db as database dim rs as recordset dim ws as workspace Private Sub Form_Load() Set db = OpenDatabase(app.path & "\Contacts.mdb") Set rs = db.OpenRecordset("Info", dbOpenTable) End Sub Now, when i run my … | |
Now I have a lot of airplanes, in the ideal world the interface of the airplanes(or anything) should be unify but for some kind of weird reasons, the class for different airplanes are designed like this [code] struct airplane_A { fly_A(); speed_up_A(); //blah blah blah }; struct airplane_B { fly_B(); … | |
Hey, I know this is a stupid way of doing it, hence the question..: How can i do this smarter: [CODE] if (($url == 'billeder') or ($url == 'billeder=1' or $url == 'billeder=2' or $url == 'billeder=3' or $url == 'billeder=4')) { include("includes/billeder.php"); } [/CODE] I just want to see … | |
anybody can solve my php syntax problem?[CODE] $sql = "SELECT entries.*, catagories.cat FROM entries, catagories WHERE entries.cat_id = catagories.id ORDER BY dateposted DESC LIMIT 1;"; [/CODE] | |
I'm new to VB.Net i was asked by my professor to create and pass an application (He didn't mention any specifics so i'll take it as creating my own application) So i'm thinking to create something simple and it include something like opening a form within a form For example … | |
how to link a form so that the form should appear as soon as the computer gets on in VB.net | |
I need to save pictures in my database, my database is MSSQL as of now, my code for getting the picture is this: Private Sub browsepic_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles browsepic.Click With dialogpic 'Open File Dialog sa toolbox .InitialDirectory = "C:\Users\CAMILLE\Pictures" .Filter = "JPG Files|*.jpg|PNG Files|*.png|GIF … | |
[B]Hello .. im a business student with a vb.net course .. donno why we're being taught vb but that's that .. any ways could anyone help me solve this problem: Develop an application which reads two integers n1 and n2 from the user via two textboxes and displays in a … | |
Hello people. Im having a problem in my coding. I am doing a username and password application (sumtthing like a password keeper). So I have created the interface and i integrated vb 2008 with sql server 2008. So the adding of account and password all went fine. I have applied … | |
hi everyone,i am just a beginner in python,i am going through "head first programming" and saw about the [B][COLOR="red"]pygem[/COLOR] [/B],but iam unable to install pygem....i already downloaded [B][COLOR="red"]pygame-1.9.1release.win32-py2.5[/COLOR][/B] from pygem site,but at the time of running the set up i am getting a error that it is not compatible with … | |
Hi, I want to assign a f2 key for the save button in my c# application, is it possible ? if not any other ways where i can assign short cut key for the buttons ? any one can help me Thanks in Advance .. | |
hi, does anyone know how it would be possible to change my code so that the circles drawn by the applet are resized as the applet screen size is changed? [CODE] import java.awt.Graphics; import javax.swing.JApplet; import java.awt.Color; @SuppressWarnings("serial") public class OvalApp extends JApplet { private int width, height, x=10, y=10; … | |
Hello :) i intend to make a game in c# that will contain information of 10,000 people i dont familiar with db yet but i guess from a little reading that the best way is to use ADO.NET sql library... the game is not on the internet, it will be … | |
Hi all, I have a site, where everything is on the index.php page - and then I include files when needed. Im not sure if this matters, but now you know..the page I am trying to create pagination on, is in an included file. So the page/url i am working … | |
In a nutshell, my company is using several different programs that use a string of data regarding personal appearance information for different TV/movie character. This data need to be read in a very strict manner. (The following example is exactly how we need to input the information... including all brackets … | |
I am currently working with a vb2010 front end with access as the database. everything works for accessing the information adding information. But when I try to edit/update the contents of a row I find that the update is being applied to the first row of the table rather than … | |
// ws is an object variable of worksheet // systype is a string variable Range r = (Range)ws.Cells[2, 2]; systype = r.Value2.ToString(); how can I combine these two lines into one single line ? Please help .... | |
Hello, So I have started to learn java from scratch, and I love it, any time spare I try to create programs (nothing complex yet) The last one I have done is the game Pontoon, blackjack or 21, many names. It works to how I would like it to, but … | |
Hi! I m trying to open a filter form at the center of a form which is inside the panel 2 of a split container.. I ve selected Start Position of the filter form => Center Screen but the problem is that when I push the button which opens the … | |
Hello, I'm new to the whole regex thing, and I'm having trouble understanding the syntax. I have to separate a line by different criteria like spaces, brackets and others. Here's and example line: "$#*! My Dad Says" (2010) {Code Ed (#1.4)} 2010 What I want to have is: $#*! My … | |
Hi,guys!May i know how to i seperate -keyword and +keyword from an array? eg, i have $arrayList = array(+book,+school,-play,-study); How to i seperate those +keyword into 1 array and -keyword into another array? You help will be kindly appreciate. Best Regards, Stanley | |
Hi, I want to redirect domain.com to [url]www.domain.com.I[/url] found may people mentioned about Rewrite Rule as shown below in .htaccess. I could not find .htaccess file in my apache. There is httpd.config file. How to force domain to display [url]www.domain.com?[/url] Options +FollowSymLinks RewriteEngine on RewriteCond %{HTTP_HOST} !^www\.domain\.com$ [NC] RewriteRule ^(.*)$ … | |
i have a form in which their is a two text boxes text box1=username text box2=password when i execute then i have to enter the username and password when i cancel the execution it will close every thing ok But i need the same username which has been used at … | |
Well is there any built-in function to do this ?, or 3rd party library EXAMPLE code [CODE]source := Sock.Get('http://www.google.com/'); if source('Google Search Engine', a) > 0 then begin NeededPattern := GetPattern(source, '<font>','</font>'); result := neededPattern; // will display ABC of the <font>ABC</font> end;[/CODE] Then it will get the middle of … | |
Can you help me put actions to the buttons [code]public class TimeIn extends javax.swing.JFrame { /** Creates new form Timein */ public TimeIn() { initComponents(); } /** This method is called from within the constructor to * initialize the form. * WARNING: Do NOT modify this code. The content of … | |
To make some operations on XML elements you have to know their types. This snippet is about getting the types of these elements. | |
Hello Everyone! That's my first post on this forum and I'd like to greet Everyone I got a question about getting the last key pressed without stopping the programm. I know that getchar(), cin, getch() commands don't allow to do that. Have You any idea how to solve this problem? … | |
I have an index.php. page which is a search on my MySQL database to update HTML tables in my results.php page. I have a form on the index page as the search which is like this: <form action="results.php." method="post"> Search: <select name="searchtype"> <option value="Date">Date</option> <option value="Wk No.">Wk #</option> <option value="Artist">Artist</option> <option … | |
[CODE]<?php session_start(); $_SESSION['title'] = $_GET['form_book_title']; $_SESSION['ISBN'] = $_GET['form_book_ISBN']; $_SESSION['qty'] = $_GET['form_book_qty']; $_SESSION['fName'] = $_GET['form_book_fName']; $_SESSION['lName'] = $_GET['form_book_lName']; if($_SESSION['ISBN']=="" || $_SESSION['title']=="" || $_SESSION['qty'] =="" || $_SESSION['lName'] =="" || $_SESSION['fName'] =="") { echo "please fill out all the form fields"; echo "<a href=\"sell.html\"> Go Back"; }else require_once("db_info.php"); $con = mysql_connect($localhost,$username,$pw); if(!$con) exit(mysql_error()); … | |
I'm building a C # application on Visual.NET. Now, After packing program to deployment. When users use the program, if have internet connection, the program will automatically send mail notification to me. To do that I do like? Thanks! | |
i got project on student information management system .... i have no idea about the topic and content ... please if you have C# project please share ........ if you have software on student management system do share :) college management or institute management or school management ... any of … | |
A bit of confusion what to do I have a form1 in that their is a button by name "login" by clicking on the button "login" the form2 will be shown in a form2 their is username and password text boxes and two button one is "ok" and another one … | |
I am having problems with my program to add and multiply two 4 bit binary numbers. The part in which I am currently having trouble is when I run the program the output for the addition function is not correct. Instead of displaying the correct answer it is just displaying … | |
I have a text file with names, wins, losse. I have to take those in a write a function to find the average, and a function to sort the names in alphabetical order. I finally got everything into arrays but I cant do anything else. I don't think I'm understanding … |
The End.