199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for gchurch

hey well i have a drop down menu or four that collects the day, month, year and number of nights spent over. i'm havin difficulty caluclating the departure date with all this info. can anyone help me???

Member Avatar for gchurch
0
88
Member Avatar for fuggles

I am using Direct2D to write a simple rendering system that I could use to easily write a game. I have a function that renders each object every frame. Now, if my game is going to be dynamic, I can't hardcode every object into that function. I would much prefer …

Member Avatar for Sodabread
0
144
Member Avatar for Empireryan

I am writing code for a guessing game program. The game is supposed to generate a random number, 3 digit number and let the user guess what it is, providing feedback for every wrong input. It is also supposed to perform 10 iterations, keeping track of the number of guesses. …

Member Avatar for Fbody
0
531
Member Avatar for phouse512

Hello, I've looked all over for the solution to this problem, but they all present a similar solution to this one and they all don't work. I've created the JFrame in the constructor for the class that this method is contained in. [CODE] public void print() { JPanel panel = …

Member Avatar for phouse512
0
77
Member Avatar for ozlem.a17

So i have to write a program that designs a basic Home CAD System. The user will be able to build a house, add/remove rooms and items, etc. I have began writing the program and all seems gravy, i decided to use an ArrayList for the list of rooms the …

Member Avatar for NormR1
0
142
Member Avatar for gchurch

is it possible to use a vaiable within the date() insted of using y-m-d. i want to use $day-$month-$year

Member Avatar for gchurch
0
115
Member Avatar for yap_1991

Hi all Im experiencing problems whereby my codes can only read one file instead of all files in my directory. Does anyone know anything regarding this? Below are my codes: [CODE]import java.io.*; import java.util.*; public class extractionn { public static void main( String[] args ) { File dir = new …

Member Avatar for NormR1
0
134
Member Avatar for GAME

How can I remove all the items of a list? I do not know any thing about how the items get indexed, thats why I cannot provide a better code except this.. [code] for (int i = 0; i < _Cars.Count; i++) { } [/code]

Member Avatar for Geekitygeek
0
95
Member Avatar for sabeeh ahmed

hii QUESTION: Take any 4 integers add them and print the first and last digit of the answer the restriction is that i can only use scanf command and data types.. I AM VERY THANK FULL IF SOMEBODY SOLVED MY PROBLEM

Member Avatar for sabeeh ahmed
0
93
Member Avatar for sam1

Hi, I have browser embeded, How would i fire and even whenever a browser field is clicked. basically i have this website where when you click on a fieled it will show a button. i want to capture that button's click. any help would be appreciated thanks

Member Avatar for Geekitygeek
0
100
Member Avatar for JBLDW

I have the following code section that is used for displaying a list of items and would like to modify it so it displays as a multi column display. I have been told that I need to use a counter, but I cannot find any information on how to do …

Member Avatar for JBLDW
0
214
Member Avatar for IDC_Sharp

I made this code: [CODE] private int a; private int b; private void Form1_Resize(object sender, EventArgs e) { adrBarTextBox.Width = b + this.Size.Width - a; } private void Form1_ResizeBegin(object sender, EventArgs e) { a = ((Form)sender).Size.Width; b = adrBarTextBox.Size.Width; } [/CODE] when i open the program and i maximize the …

Member Avatar for Geekitygeek
0
162
Member Avatar for gertails

please help me on my problem about visual basic 6.0 my problem is how to add music background .... please give me some code or some idea thank you....

Member Avatar for AndreRet
0
502
Member Avatar for drake10k

Hello, I'm receiving an error message (ArgumentException was unhandled - Parameter is not valid) when I'm trying to capture a portion of the screen with a rectangle. It works great when drawing the rectangle with clickPoint.X < lastPoint.X and clickPoint.Y < lastPoint.Y, but when lastPoint.X or/and lastPoint.Y is lower than …

Member Avatar for Geekitygeek
0
133
Member Avatar for NH1

Im trying to change the color of a row when the value of one of my columns is changed to [icode]Terminated[/icode]. for example when an employee is termiated i want the color of his record to be red. this is the code i have so far. [code=c] foreach (DataRow dr …

Member Avatar for Geekitygeek
0
298
Member Avatar for bbman

Hey, I am creating a usercontrol, and I would like an Items property, like in ListView.Items. How would I do this? Cheers, Jacob Edit: I'm making a static menu, that won't disappear. Would it be better to just skin a listbox? There will be events for the items.

Member Avatar for Geekitygeek
0
123
Member Avatar for Letscode

I'm struck in a problem here.I have server side code that has to collect values from the client side code(Javascript).The Javascript code basically gets the frame height and width and the server side code(VB) has to collect the values and resize the control(lets say Image).I used Query string and it …

Member Avatar for trousers
0
2K
Member Avatar for erfanjan

i write one program that have mant textbox for entry data into database but i want when user enter data in textbox and press 'Enter' ,change focus to another textbox. can anyone have idea for hep me? thanks.

Member Avatar for Geekitygeek
0
141
Member Avatar for dayju

#include<stdio.h> #include<stdlib.h> #include<conio.h> typedef struct { char fname[30]; char lname[30]; char MI; }stud_name; typedef struct { unsigned long idnum; stud_name name; char course [10]; int yr_level; }studtype; typedef struct { int grpnum; char subj[24]; int time_sked; int day; int units; char rmnum; }class_sked; --sir, is this a correct definition?i have …

Member Avatar for dayju
0
144
Member Avatar for jjf3rd77

Hello all I am new to this community have found help on it without even joining however I cannot find a solution to my specific problem... Write a program that reads five numbers (each between 1 and 30). For each number read, your program should print a line containing that …

Member Avatar for hupy
0
858
Member Avatar for sami.asanga

Hi, I need to get the itemId's from the Database to a combo box where the combo box will increase according to the new values. I wrote a code like this [code] <select name="catId"> <?php //get category id from the database $sql = "SELECT cat_id FROM tbl_category ORDER BY cat_id"; …

Member Avatar for metalix
0
619
Member Avatar for wb4whd

ok, I am working on a program for work and I am stuck on trying to make a new XML file from VB.NET 2010. I have the old code which was done in C# and it works but even using a C# to VB converter didn't help. I will paste …

Member Avatar for GeekByChoiCe
0
179
Member Avatar for arthurav

I use a couple of functions to which I have to pass the name of the mysqli connection in order to fetch some data. Is it safe to use a global variable for the mysqli connection to skip passing the connection name to the functions?

Member Avatar for FlashCreations
0
108
Member Avatar for ckant_kol2006

I want to upload and store images in MySQL database, but have no idea. Please help me out? Thank you

Member Avatar for FlashCreations
0
346
Member Avatar for VBNick

I have a simple web server built, and I created a status window that runs on a separate thread. If I have a list of structs being updated by the main thread, is it ok to read(only read) from those structs from the second thread for the purpose of getting …

Member Avatar for mike_2000_17
0
187
Member Avatar for Garee

I recently wrote a short program for an exercise in a textbook. After completion however I re-structured the program to use methods instead of one long main method. My question: Which way of programming should I be using? I am leaning more towards the methods as it is much more …

Member Avatar for JamesCherrill
0
86
Member Avatar for mindboggler2010

Hi, I just want to share this function to you that can split an array and return it and formatted as: 'element1','element2' etc. This is useful in your WHERE clause particulary if you are using IN e.g. select id, lastname, firstname from farmers_table where id in ([B]'3408', '1223'[/B]); The BOLD …

Member Avatar for mindboggler2010
0
108
Member Avatar for sami.asanga

Having a problem with updating a picture.I need to replace the current picture in the DB by allowing the users to browse a picture and uploading it.And if the user did not upload any image I need to keep the current picture as it is. I wrote something like this,but …

Member Avatar for Daiva
0
101
Member Avatar for jhonilson

I am having a small problem with getParameterValues function and my algoritm. Before I will explain how is my data table showed: [COLOR="Red"]| value1 | value2 | TextArea | CheckBox | [/COLOR] Then when I check any checkbox and press submit it call other servlet and read the parameters : …

Member Avatar for javaAddict
0
1K
Member Avatar for anoop4real

Hi, I have an sqlce query where I dynamically constructs the string by appending different strings. I have a field where I append a product name and its subname. Say for example main name "Pepsi" and Subname "Large", there are some instance where the Subname is empty and the subname …

Member Avatar for anoop4real
0
115
Member Avatar for jkaye

Hi All, The basis of this project is that I have an album of pictures, where you can add and delete pictures. What I wanted to do, was when you delete a picture, have the rest of the pictures move down to fill in the gap. The database is set …

Member Avatar for vibhaJ
0
109
Member Avatar for erogol

I am searching about programming languages to choose for improving myself in one of them in the way of my aims. Thus, I want to learn what is special for python and what is the general purpose of using this language, it is suitable for what kind of programs. Please …

Member Avatar for snippsat
0
146
Member Avatar for LloydFarrell

Hi all I have the following script 99.9% working for uploading a single image to a database - Storing the file in a folder and placing a link to the file in the database - The only problem im having now is when the image is uploaded the extension of …

Member Avatar for chrishea
0
131
Member Avatar for AutoC

Hi, I have a string that looks like this \\x\\y\\z-Select * from x where y=z I need to split this at the '-' into two strings. When I use substr as, [code] string s = "\\x\\y\\z-Select * from x where y=z"; size_t p = s.find("-"); if(p!=string::npos) string query = s.substr(p+1); …

Member Avatar for AutoC
0
251
Member Avatar for sourisengupta

Hi, Can anybody give the list of environment variable functions list. For eg. getenv() is one function which can catch the environment variable from the system. Thanks for your help in advance.

Member Avatar for sourisengupta
0
100
Member Avatar for Dupron

Recently I have made a simple chatting application(in Java). It has two classes one for client and one for server.On compiling it is not giving any error but on running, it is not giving desired result. So, It will be grateful if you come ahead and try out helping me …

Member Avatar for yasuodancez
0
573
Member Avatar for poison_bubbles

Hi im zee and i'm new to javascript.. The javascript function below..examines if a string value contains only numbers.. My problem is..I can't figure out why it doesn't continue with the 2nd loop and iterate j..please help.! [CODE]<script language="javascript"> <!-- value = "23e"; isNumber(value); function isNumber(value){ document.write('I'm inside the function …

Member Avatar for james chaco
0
115
Member Avatar for Dhammakirty

hiiii i have to open .ppt,.pps files in vb.net web page with background music to .ppt files Its very urgent , anybody can help me ? ? ? Thanks in Advance

Member Avatar for vikash511987
0
98
Member Avatar for jjemphoung

good day! i'm a newbie in php. but i know the basic things like what is server side and what is client side. my question is is it "OK" if i place a php script (which is a server side) in the page that my client views? i dont know …

Member Avatar for jjemphoung
0
125
Member Avatar for zahnsoftware

When is it appropriate to use abstracts as opposed to interfaces to define base class behavior? What is the most common, practical usage for each? For instance, if I were to write a database applications that required to read a wide variety of database formats, would I define by database …

Member Avatar for embooglement
0
191
Member Avatar for shrublet

Hello, all! :) Let me preface this by saying that I am a computer science student with only a rudimentary introduction to C++ so far, having worked mainly in Java up until now. I apologize if this is an overly simplistic question. A relative of mine has asked me to …

Member Avatar for NicAx64
0
158
Member Avatar for Gregoriochavez

After weeks of getting a javascript to work the way I want it to, I am informed by the company that hosts my web sites that they want more money for me to have the .js file functional on the server. I am not a coder, nor do I have …

Member Avatar for Gregoriochavez
0
79
Member Avatar for patton228

I have to add inputs just in case i have up to nine lines that i need to add feet values too. but im curious if i only have 5 lines to input is there a way to bypass the other inputs cause if i in put zero it has …

Member Avatar for patton228
0
156
Member Avatar for Davish

I want to write a program that accepts date from the user in the for mm/dd/yy and then displays it in the form yymmdd Enter a date(mm/dd/yy): 2/17/96 You entered the date 96021? The program should be in C language.....thank u!!

Member Avatar for kings_mitra
0
97
Member Avatar for RobotFX

Hi! I'd like to show the ads on my page only to visitors coming from search engines. I'm looking for a php script that can do the trick - if lucky and I'll find it, I'll integrate it in my page. If you know of such thing or how to …

Member Avatar for RobotFX
0
154
Member Avatar for sadaka

Hey how's it goin' every body, I am pretty new to opengl so please bear with me a little k. Here goes... I downloaded glut.dll,glut.lib and glut.h. Placed them in the following directories: glut32.dll to windows system32 directory, glut32.lib to dev-cpp lib directory, and glut.h to dev-cpp gl directory. Yet …

Member Avatar for sadaka
0
155
Member Avatar for chris forgeard

Here is my code excuse me if it seems a bit off i've only been coding for a day :) What I want it to do is in the comments at the top [CODE]/*====================================================================== IN THIS PROGRAM I WILL TRY AND SCRIPT A CONVENTIONAL CALCULATOR WITH THE USER ENTERING THE …

Member Avatar for embooglement
0
157
Member Avatar for codedude

Hi friends, I have a windows application(vb.net) in which i want to retrieve informations from 3 websites(after authentication).here i have a list of customer details.based on the customer details application have to decide where to retrieve data(i mean among the 3 websites).now i am able to retrieve informations by giving …

Member Avatar for codedude
0
218
Member Avatar for lwaterfo

Hello again everyone.. I have a form with an e-mail input. After the user enters their e-mail, I want to have the content of the form sent to them... The name of the form textfield for the e-mail is "email". How could I make this happen in the php script?? …

Member Avatar for lwaterfo
0
171
Member Avatar for cpeepee

I've read a few threads on this site; all seem to provide almost everything I need to complete this project, but I just cannot get there. What I am trying to do is, instead of reading the raw text from a local text file and counting the word, have the …

Member Avatar for cpeepee
0
154

The End.