199,114 Archived Topics
Remove Filter ![]() | |
if i run the program it goes hang here is the code [CODE]Set rs = New ADODB.Recordset With rs .Open "Select * from tblCandidates1", cn, 2, 3 Do While Not .EOF If !Position = Combo1.Text Then Combo1.AddItem !Name ElseIf !Position = Combo2.Text Then Combo2.AddItem !Name ElseIf !Position = Combo3.Text Then … | |
on my project, i have a search textbox and also a listview. What I want to do is when a user type in the search textbox, it will automatically list all of possible results in the listview. For example, if I type letter 'a' in the search textbox, it will … | |
Hi guys, I'm in the process of learning PHP. I know the dribs and drabs and can kind of understand code when I read it, but I'm not to the point of being able to write an advanced script from scratch. I've been interested in chatbots and the concept AI … | |
Hi, I'd like to develop an algorithm that would only accept positive real numbers and would loop the input until the input is a real positive number. | |
hello all I create a Jpanel ,with TextField For name and password. My question is how to increase My TextField Height,is is veri short ,I need to increase to 300 % of it's now 's height I include partial code below thanks denny [ICODE] JLabel lblnama=new JLabel("NAME"); JLabel lblpassword=new JLabel("PASSWORD"); … | |
hi all I have the code below, and I am getting this error: The image "http://127.0.0.1/newsite/thumbnailgenerator.php" cannot be displayed because it contains errors. think this should be correct, what could the problem be? please help if you can. thanks :) [CODE] <?php header('Content-type: image/jpg'); function create_thumb_nail($array_image) { if (isset($array_image['image'])){ $image … | |
I promice everone that I have looked and looked and looked for a solution, I'm not just having a problem and being lazy putting it on daniweb... haha :) ull have to trust me, ive even googled it :O! Ok, so I am wondering, if I wanted to return a … | |
Hi, I am trying to create a UDP broadcast server so that I can send out data to every computer on our local network for aircraft testing. I can get every component of the system to work except for the broadcast part... As I understand it, if I want to … | |
![]() | Can someone please explain what the differences are between: Page_PreInit Page_PreLoad Page_PreRend Page_Init Page_Load And if some of these are not raised when doing a httpWebRequest as opposed to going to a web page on a browser. Many Thanks, Unhnd |
I've searched around and didn't find anything useful! :( What i want is to have my C# app doing a command to a running process. This running process is a console application and i just need to enter the command "restart".. my try was: [CODE] Process[] processes= Process.GetProcessesByName("OpenSim.32BitLaunch"); foreach (Process … | |
Dear all i need help.......!!!! i want to insert data using a datagrid how can i use it? ![]() | |
$result = mysql_query("SELECT * FROM rooms"); while($row = mysql_fetch_array($result)) { mysql_query("insert into chat (name,text,date,chat_id) values('$_SESSION[username]','$_POST[text]','$date','$row[id]')"); } can i do that without repeat the mysql_query code? | |
In writing a logger for an application, the datestamp ends up adding a new line. The datestamp function is as follows: [CODE]string log_class::get_time() { time_t rawtime; time (&rawtime); string timestamp; timestamp = (ctime (&rawtime)); return timestamp; } [/CODE] This outputs something like [ICODE]Tue Sep 6 14:58:35 2011[/ICODE], but when called … | |
I'm trying to create a console application that will write an entire paragraph one letter at a time (on a timer for instance) without creating a new line everytime. My problem is that I can't figure out how to do it without if and else if statements. I thought about … | |
Hopefully my last question for awhile, I wrote a piece of code like this before, but now I get the error: error C2064: term does not evaluate to a function taking 2 arguments Here is my code: [CODE]#pragma once namespace ValestromsCalculator { using namespace System; using namespace System::ComponentModel; using namespace … | |
Trying to use a <body id=""> tag to simulate a hover event on any given image of my navbar. Is it possible? Could a "swap image" script work? I'm willing to place the images in an "li,ul" list if need be. Any advice on this or any other aspect of … | |
By coding algorithm and using some liberal prints with small set of data, you can learn to understand the basic algorithms better than just reading about them. Here simple selection sort. | |
I posted this in PHP but I was wrong. Am new in web making sooooo. :D Here is the code: [code=php] <form name="form" id="form"> <div align="center"> <select name="jumpMenu" id="jumpMenu" onchange="MM_jumpMenu('parent',this,0)"> <option value="#" selected="selected">Episode List</option> <option value="episode001.php">Episode 01</option> <option value="episode002.php">Episode 02</option> <option value="episode003.php">Episode 03</option> <option value="episode004.php">Episode 04</option> <option value="episode005.php">Episode 05</option> <option … | |
It outputs blank for some reason, here is my current code. [CODE]<table> <?php $puserid = $anothervalue; echo public_Images($puserid); ?> </table>[/CODE] [CODE]function public_Images($puserid){ $sql = "SELECT * FROM `ue-userfile` WHERE userid = '$puserid' AND albumname ='Public' ORDER BY date DESC"; $result = mysql_query($sql); $count = 0; while($row = mysql_fetch_array($result)){ if ($count … | |
I am creating an Interactive map which displays the facilities when the user clicks on the Checkbox, such as toilets. It will display all the toilet locations via PictureBoxes. I want to do this without having to write all this code? [CODE]Private Sub chkCash_CheckedChanged(ByVal sender As System.Object, ByVal e As … ![]() | |
I am having some issues with my project. This is homework and I am not looking for answers, just some help. I am to create a RationalNumber class that takes two rational numbers (fractions), reduces them, and I am then supposed to use overloaded operators to add, subtract, multiply, and … | |
[CODE]import java.util.Scanner; class M6 //Main Method { public static void main(String args[]) //Index of Largest Number method { int a[]; int i; a= new int[10]; System.out.print("Enter any 10 numbers:"); Scanner s = new Scanner(System.in); a[0]=s.nextInt(); a[1]=s.nextInt(); a[2]=s.nextInt(); a[3]=s.nextInt(); a[4]=s.nextInt(); a[5]=s.nextInt(); a[6]=s.nextInt(); a[7]=s.nextInt(); a[8]=s.nextInt(); a[9]=s.nextInt(); System.out.println("The 10 no.'s you have entered … | |
How can I Print the the records I search in the listview!!??please help me..thanks | |
Hello everyone. I have a program that is driving me crazy. It is a cashier change return where the user enter the amount owed and the amount paid and when he/she press calculate the program should display the change due as well as the number of Dollars, Quarters, Dimes, Nickels, … | |
Ok, I have no idea how to use a class I created its probably really simple but I still cant figure it out Person employee = new Employee("Tom Jones", "777 B Street", "408-888-9999", "tj@xyz.com", "Room 221", "$30450", [COLOR="Red"](2, 8, 1987)[/COLOR]); I am trying to use this with this class I … | |
Please help. I have an assignment for a class and I have been working on this for a week. Nearly all of it I finished in two days but I have been stuck with this problem for 5 days now. I am using MS VC++. I am having quite a … | |
I have a web page in which there is a textbox that asks my users to enter a start date. What I'm trying to do from there is that no matter what the end date is, my page will calculated that from the text box, store it as a variable … | |
I am an absolute newbie to C++. I have an ATM program problem where I need to keep a running total of transactions and the balance of the checking account. I cannot think of how to set an accumulator for the transactions or how to keep a running total of … | |
Ok, I feel like I'm so close, but could use some help. I am trying to retrieve data from mySQL database via use of a form with checkboxes. This form is working somewhat except that it is only pulling one selection, not all that are selected. Can someone look at … ![]() | |
But the problem is: There a File names "includes" which includes the php files which have been included in some of the php files outside of it. But I want to lock/ make it inaccessible for users. Is it possible that the users can't access the folder/directory but the php … | |
| |
i have few xml files in my project.i used "advanced installer" software to create exe setup files.i have included the xml files in PROJECT->BIN->RELEASE ->RESOURCES folder. after installing the project setup,when i run the project, i am able to view the xml file details ,but i cannot add new content … | |
Hi, I have a app that at startup shows a particular label i.e. [B][COLOR="Red"]Ready...[/COLOR][/B] then when the user hit a download button it changes the label to:- [B][COLOR="Red"]Contacting Server...[/COLOR][/B] By using 'Threading' I have also added an update progress which updates the label with percentage and also updates a progressbar. … | |
im currently programming a simple space invaders.. i have the aliens, missiles and the player.. all of them are working smoothly, but say those aliens are landed into the earth, when missiles hit the stones (for example) the stone must hava a damage. like in "GUN-BOUND" by mobius. can anyone … | |
Has anyone found a good way to create powerpoint files on the fly. I'd like to go straight from PHP but creating from an HTML or XML doc is fine too... Also I'm totally Linux so COM Objects on Windows is out... thanks for any help... | |
this code will delete all the files from a directory on the server. be careful when using this as it will delete everything in the directory so use it wisely or make sure you have backups if it is implemented on the wrong directory. it works by searching for all … | |
Hi, I want to ftp a file to a location and then kickstart a process there to work on the file. I tried using !rexec but it does not seem to be working too well. I am not using the .netrc file(if that helps you understand my problems better) Thanks … | |
Hello, does anyone know how to unwrap an Object? for example z and y are of type Element and 5 is a primitive double. I can write an operator+ function to add the two object together ie (z+y) but I don't knw what to do to add 5+z, Z is … | |
Hey, I just started programming but im stuck. so lets say I have a wordlist with words containing 2-12 letters and I want to remove all words containing less than 3 letters or more than 7 letters. How would i do that? Another problem I have is, I want to … | |
Hello All, I'm currently having an issue trying to retrieve elements that have been saved within my arraylist. I currently have two classes, Project and Staff. In the Project class, i have declared an ArrayList of type [i]staff[/i], as seen below: [CODE]public static ArrayList<Staff> staff = new ArrayList<Staff>();[/CODE] In the … | |
how to use video files in c#???in which format we can use video files in c#???which control we can use for video files in c#??? | |
So I want to make a text-based game that has different maps, displayed in ASCII art-style. I've been tinkering with fstream, and I wrote up this code: [CODE]#include <iostream> using namespace std; #include <fstream> int main() { ifstream indata; int i; int j; int k; char grid[9][9]; char letter; indata.open("grid.txt"); … | |
Hi, just started today with trying to implement a Thread in my application and have come across a problem that I can't seem to figure out. The application asks the user to enter their userid into a TextBox on the main form which is used to download a specific XML … | |
[CODE]#include<stdio.h> #include<conio.h> void main() { int x=01234; printf("%d",x); }[/CODE] the above c code will produce output 668(value of x) why? | |
Any idea how to determine if the vertical scroll bar is active in a multiline textbox? Active as in, the user can click the arrows and the text is long enough to scroll. Similiar to being enabled/disabled? I'm trying to have a mouse event so when the user moves their … | |
Hi, I found a problem with operator overloading. Consider following class: [CODE]class Number { public: int value; int operator +(int v) { return value + v; } }; Number n; n.value = 5; [/CODE] Now, n+5 successfuly returns 10, but 5+n gives error [QUOTE]error C2677: binary '+' : no global … | |
i have taken two fields date of issue and date of maturity like this [CODE]try { tDateofIssue=new JFormattedTextField(new MaskFormatter("##-##-####")); tDateofIssue.setBounds(200,130,125,30); c.add(tDateofIssue); } catch (Exception ex) { ex.printStackTrace(); } try { tDateofMaturity=new JFormattedTextField(new MaskFormatter("##-##-####")); tDateofMaturity.setBounds(200,400,125,30); c.add(tDateofMaturity); tDateofMaturity.addFocusListener(this); } catch (Exception ex) { ex.printStackTrace(); }[/CODE] and taken both the field of date/time … | |
I wrote this 3D Breakout game as a sample project to learn both Python and the visual module, vPython. It is based on a similar game I had on my Amiga back in the 80s. I don't expect that my Python is either standard or as elegant as it could … | |
hi to all geniuses i have created a webbrowser but how can i copy any text foem a website and how can i save the passwords can anyone heip me please help me in this project | |
The End.