199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for MrConfused

I have VB 5 learning edition which has suited me fine thus far believe it or not! One thing has really been annoying me for quite some time. I can't find how to set the command buttons forecolor (at least with the VB version I have). Backcolor is no problem, …

Member Avatar for danomac
0
938
Member Avatar for WigglesMcMuffin

Hey, I'm trying to build my own calculator piece by piece, and I've currently got it to the stage where it'll add positive integers. Anyway, at the moment I'm trying to incorporate the keyboard into the program. What I've done is made is so that only my form can have …

Member Avatar for WigglesMcMuffin
0
105
Member Avatar for Naveed_786

Can any body help me how can i design my first page in PHP and database sql server2008 which should have four textboxes in the center of the form like this Name Naveed FatherName Akhter DOB - NIC NO - and two buttons one for exit and one for changing …

Member Avatar for diafol
0
123
Member Avatar for phplover

Hi, I basically have two functions; the first one below [b]GenerateFormTokenHash()[/b] is placed in a hidden field on my form and echoed out in the hidden field plus it stores the token in a session called [b]token[/b]. The second function below [b]IsValidFormTokenHash()[/b] is called straight after the check is made …

Member Avatar for phplover
0
229
Member Avatar for LWS

Hi, i facing a problem with update data in database... i had create 3 files [CODE] //list_records.php <?php $host="localhost"; // Host name $username=""; // Mysql username $password=""; // Mysql password $db_name="test"; // Database name $tbl_name="test_mysql"; // Table name // Connect to server and select database. mysql_connect("$host", "$username", "$password")or die("cannot connect"); …

Member Avatar for LWS
0
177
Member Avatar for Neversleepin

hi, i try to run java program with ProcessBuilder but it works only with .exe file and with .jar or .java i use netbeans 6.9 why please? [CODE]import java.io.*; public class Mani { public static void main(String args[]) throws IOException, InterruptedException { try { Process p=Runtime.getRuntime().exec("javaw -jar D:\\NetBeansProjects\\GetIPAddress\\dist\\GetIPAddress.jar"); } catch(IOException …

Member Avatar for mKorbel
0
1K
Member Avatar for discovery-power

Hello All, I am writing my self a simple little address book application and I seem to be having some trouble with updating the dataset. I have written the code and I cant see for any reason why it shouldnt work, but during run time, when I delete an entry …

Member Avatar for prvnkmr194
0
216
Member Avatar for horserider
Member Avatar for TechSupportGeek

Hello, I'll be as clear as I can in this one. OK, here is what is going on: I'm kind of trying to create a programming language of some sort using a Console application. I have got most commands to work, but what I haven't got is the ability to …

Member Avatar for TechSupportGeek
0
176
Member Avatar for wonder_laptop

I am working with mobile agents, i got two .java files: HelloAglet.java and MyDialog.java they both depend on each other, i put them both on the desktop (same directory) and im trying to compile them using the following command: %JDK_HOME%\bin\javac -d %AGLET_HOME%\public -classpath %CLASSPATH% *.java and im getting the following …

Member Avatar for wonder_laptop
0
152
Member Avatar for Tuloa

I can use the program fine without this code but I need to be able to take a line of text a file and read it into a variable. Here is the code causing the app crash: [CODE] string ReadLine() { getline(file, lineread); if (lineread.find_first_of("WSF_") != string::npos) { return lineread; …

Member Avatar for Tuloa
0
202
Member Avatar for jay_el_em

I have a simple array, where I store the 5 best times for a game. I then write the array elements to a text file . I get the message that a string reference is not set to an instance of a string [CODE] private void Scores() { if (!File.Exists("TopTimes1.txt")) …

Member Avatar for jay_el_em
0
131
Member Avatar for jimu

i am a beginner .can anyone just give me a code to make a txt file using c code,that will create txt file with name same as the value of int variable.. consider like if int x=10,then file name created will be 10.text if x is assigned 45 then it …

Member Avatar for jimu
0
206
Member Avatar for kingofdrew

I don't know why but nothing is appearing? I suppose to have a applet of a house. [CODE]import javax.swing.*; import java.awt.*; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.awt.event.*; import java.applet.Applet; import java.awt.Graphics; public class color extends JApplet { public void init() { addMouseListener(new MyMouseListener()); getContentPane().setBackground(Color.white); } public class MyMouseListener implements MouseListener …

Member Avatar for JamesCherrill
0
190
Member Avatar for horserider

How do I insert commas to numbers so I can convert 1000 to 1,000 or 1000000 to 1,000,000. [CODE] FileSize = GetSize(MyFile).ToString & " KB" [/CODE] the output would be "6652 KB" i m trying to get output 6,652 KB Plz try to modify this code only.

Member Avatar for horserider
0
273
Member Avatar for AngelicOne

I successfully implement in my application a listview that can get the values of selected items using a for loop [CODE] for (int i = 0; i < eventlv.Items.Count; i++) { if (eventlv.Items[i].Checked == true) [/CODE] and using this to get the specific value on my parameter [CODE]eventlv.FocusedItem.SubItems[0].Text[/CODE] Though, I …

Member Avatar for Mitja Bonca
0
5K
Member Avatar for bro3886

i want to develop a program using vb to lock the wondows which needs a user id and a password to logon. the user ids and passwords will be stored in a server machine's database. the clients requires the user id and password to logon the client m/c. so i …

Member Avatar for AndreRet
0
252
Member Avatar for arv3

Can anyone help me with this? I need for select out the posts where type_lbiltank=1 from this SQL-sentence: $query = sprintf("SELECT address, name, email, type_lbiltank, type_lbilut, type_lbilborst, type_pbilselv, type_pbilauto, lat, tlf, lng, ( 3959 * acos( cos( radians('%s') ) * cos( radians( lat ) ) * cos( radians( lng ) …

Member Avatar for jkon
0
86
Member Avatar for iwanttolearnc

im currently studying having a python program supply data to a website. to do this, i am working with a simple example. as a disclaimer to you guys: im quite new with webservers and websites so please bear with me. 1. the python program simply generates a random number continuously …

Member Avatar for iwanttolearnc
0
180
Member Avatar for agriz

Hi, I have a table with 2 laksh records. If i use rand() in mysql query it takes approximately 1.5 seconds to run So i use mt_rand(1, 200000) It returns most of the times results in 1,000,00s The query is like this. $query = "SELECT * FROM tbl WHERE Length(word) …

Member Avatar for smantscheff
0
104
Member Avatar for azegurb

hi all, i have registration script that registers user according their [B]user ID[/B]. if there more than one user id it returns false and says that this [B]user ID[/B] is taken. but if i submit different user ID and the same email address it accepts. how can i do that …

Member Avatar for azegurb
0
135
Member Avatar for bangla

Hi, Below code gives me this error: "syntax error, unexpected" in line 5 <?php $to = "safiullah12@hotmail.com"; $subject = "test fname, email,phone,nn"; $Sender = $_POST["email"]; $message = Name: echo $_POST["fname"] . "\r\n". ///////////////////////line 5 Email Address: <?php echo $_POST["email"] . ?> "\r\n". Phone No: echo $_POST["phone"] . "\r\n" ; // …

Member Avatar for 84hd0ns
0
226
Member Avatar for Aser Gado

Okay, I am working on a facebook for my school, and I need help creating the signup/login/profile pages... Connecting to the database and stuff.. if someone could help me here or on MSN? [email snipped] Thanks, Really looking forward to it!

Member Avatar for 84hd0ns
0
96
Member Avatar for bangla

Hi, Below code is not working. Once I run it, it works fine. i expected "Thanks" but i get nothin. is not redirecting to thankyou.html <form name="myForm" action="/send_email4.php" method="post"> <input type="hidden" name="subject" value="Form Submission" /> <input type="hidden" name="redirect" value="thankyou.html" /> Name: <input type="text" name="fname" /> Email: <input type="text" name="email" /> …

Member Avatar for 84hd0ns
0
143
Member Avatar for Joshua Kidd

Is there any possible way to change the language of a form with a button or checkbox. I have found and tried [CODE]ChangeLanguage("de")[/CODE] But that no work. Any Ideas ? :) Thanks

Member Avatar for Joshua Kidd
0
129
Member Avatar for vijaybrar

Hi i am kind of new to java but can please show me the code on how to count words in an input for example : [B] only allowed to use looping and String Methods only[/B] Select The type of character to be Stripped(1-vowel, 2-consonant, 3-number, 4-other(special characters) Input Enter …

Member Avatar for peter_budo
0
165
Member Avatar for ajayb

I am trying to learn java. I want to know whats the best way of doing it? For example I got the code for setting up a TCP server in java which sends the data given in string. Now I want it to send the data dynamically to the client …

Member Avatar for peter_budo
0
185
Member Avatar for KenyanRaphael

I've been teaching myself java using youtube videos of Starnford Engineering Everywhere. So far its been good, till the code started getting complicated and i got stuck. I need advice on how best to learn java.

Member Avatar for KenyanRaphael
0
221
Member Avatar for AngelicOne

How can I loop through a particular column of a datagridview? For example, I have three tables and I only need to get the selected items of the first column. I'll use for loop, right?

Member Avatar for Mitja Bonca
0
4K
Member Avatar for cmaheshwari16

Hi I have not installed mysql on my own, its the default one that is coming with fedora14 at /usr/local/mysql I am giving you some screenshots, please check if you can find out something. ********************************************************************************************************************************************************* The first issue is while I login using command mysql -u root -p it asks …

Member Avatar for rch1231
0
274
Member Avatar for spoonlicker

I'm having real complex problems with Windows API and a console application. The issue is that I can't have both windows active at the same time. I tried to include both headers, did both required tasks but only one of the windows opens. Here is the completed code: [code]#include <windows.h> …

Member Avatar for peter_budo
0
2K
Member Avatar for Jake.20

Guys, need help in autofill in my textbox, and the data is coming from the database, please tell me how will i do it. need help pleasee. thank you in advance.

Member Avatar for TechSupportGeek
0
144
Member Avatar for Zephyr-

Hey, I got excellent help regarding adding tabs to a tabcontrol. Now, how would I got about adding items to a listbox? I'm creating an application that not only adds tabs but allows you to edit the names of the tabs using the listbox. Basically, every time it adds a …

Member Avatar for Mitja Bonca
0
110
Member Avatar for daniel1977

Dear Friends: I have a few questions. First, I want to say I am using Microsoft Visual C++ 2010 Express. 1. When creating a class, should it be in the main file? I assumed it was in the header files folder of the project. Maybe I am making this process …

Member Avatar for user422
0
163
Member Avatar for primeratoma

I need help writing this code i been working for a day now on it and i cant seem to get it. i need help with this code if any one can help. I am taking java and this is the first program i cant get. thank you guys so …

Member Avatar for peter_budo
0
175
Member Avatar for lochnessmonster
Member Avatar for pritpal.singh88
0
233
Member Avatar for Jessurider
Member Avatar for darkagn
0
92
Member Avatar for banh

I am trying to come up with the algorithm for my n queens using Simulated Annealing. There is the general algorithm online, but when i look at it, I couldn't understand how it work. My nodes have the number of hits between the queens on chess board. How can I …

Member Avatar for banh
0
194
Member Avatar for Silvanarix

I have only been diving into the C# language for roughly 3 days. I have alot of background with computers but never in a programming language. I am attempting to gain a foothold in C# by playing with it to learn a little about how it works before returning to …

Member Avatar for Silvanarix
0
73
Member Avatar for neptunethought

Hi guys, I want to split the console output screen ,as like frames , which means, for every entry i give it should update on the other side of the console. any idea on how do i do that?

Member Avatar for ddanbe
0
189
Member Avatar for lexusdominus

i wrote this a couple of years ago when i was just starting to program. i didnt know any professional programmers and wanted to learn, so just experimented with the language. maybe it will give you an insight into how people program for fun. feel free to add to it, …

Member Avatar for mike_2000_17
0
140
Member Avatar for spoonlicker

I want to know how to show C++'s application in a text-format in machine language through C++ itself. Does any one know how to do that? Sorry if I wasn't too descriptive, I can add more.

Member Avatar for spoonlicker
0
3K
Member Avatar for jacob.irwin

This is common code and I've searched all of the forums and cannot find the answer to fix my problem. I created 3 pages: 1.) Login [CODE]<title>Login</title> </head> <? /** * Checks whether or not the given username is in the * database, if so it checks if the given …

Member Avatar for jacob.irwin
0
169
Member Avatar for kedar9

Hi all, What I am trying to do is On "Page 1", user fills a form, and when he clicks on "Submit", a new page, say "Page 2" should get automatically created (in the same folder as index.php) in such a way that name of the page is say first_name.php …

Member Avatar for kedar9
0
191
Member Avatar for l00kit

Hello all, I'm studying socket programming and have trouble when simulate a FTP server (I don't want to use pyftpdlib). The problem is when the client want to list the directory (LIST command) on the server, I do not find a way to send directory contents. here is the code: …

Member Avatar for l00kit
0
254
Member Avatar for VernonDozier

I just learned about the AtomicInteger a few days ago. Didn't realize it existed before. I haven't tried it yet. I used to simply write my own MutableInteger class. Integer has no "set" method. AtomicInteger does, so I imagine that it can now replace my MutableInteger class. My question is …

Member Avatar for VernonDozier
0
1K
Member Avatar for CHOCHOCHO

Create a file that contains your favorite movie quote. Use a text editor such as Notepad and save the file as Quote.txt. Copy the file contents and paste them into a word-processing program such as Word. Save the file as Quote.doc. Write an application that displays the sizes of the …

Member Avatar for Momerath
0
347
Member Avatar for dennis.d.elston

For a homework assignment I need to write a function that computes the average value of an array of floating-point data: double average(double* a, int a_size) In the function, use a pointer variable, and not an integer index, to traverse the array elements. The code below is what I have …

Member Avatar for dennis.d.elston
0
190
Member Avatar for robtyu

I am trying to figure out what I am missing to get this to work. I am not sure how to get the account balance to change as the user continues to do more transactions. Here is the code I've written so far but now I'm stuck. import math [CODE]def …

Member Avatar for woooee
0
5K
Member Avatar for zerey02

.Hi guys i have been working on a picture viewer and what i want to do is put certain informations over the pictures that is retrieved from the database. i used the following code to retrieve images from the database: [CODE]<?php $host = 'localhost'; $user = ''; $pw = ''; …

Member Avatar for zerey02
0
353

The End.