199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for csstu

How do I display an image in a picturebox using a variable name? string name = "photo.jpg"; pictureBox1.ImageLocation = name; // or Image image = Image.FromFile(name); pictureBox1.Image = new Bitmap(image); neither is working. I'm getting the small box with an x in it. Any help? Thanks

Member Avatar for csstu
0
139
Member Avatar for forjustincase

Hi.. I am working with netbeans for making my desktop application (swings).. I want to edit my frame (like setting icon to the Jframe , etc ) but i couldn't able to do so. This auto-generated code in netbeans really sucks. I cant see where the jframe object is created …

Member Avatar for JamesCherrill
0
981
Member Avatar for robotnik

Hi, im trying to make a C++ project for my class which reads the input from a text file and outputs the mean, median, and mode. but im running into an error i get when i run it. i get this error when i try to build it error C2040: …

Member Avatar for Lucaci Andrew
0
396
Member Avatar for bdl365

1. Create arr, an array of size six. Each element of arr is a random two-digit positive integer. (The program should make a random selection using the function rand.) Print the elements of arr. 2. Compute x as the average of the array. Print x. 3. Compute y as the …

Member Avatar for Lucaci Andrew
0
94
Member Avatar for LindaJ

Hi, I need a hand from a kind MySQL guru. I am running XAMPP for WinXP ver 1.6.8, phpMyAdmin ver 2.11.9.2, PHP Version 5.2.6 - on a local host (my laptop). I'm running Joomla 1.5.7 (on both my net server and on my local host). What I need to do …

Member Avatar for shafi.nce
0
578
Member Avatar for anandschiru
Member Avatar for anandschiru
0
124
Member Avatar for ganges
Member Avatar for miran788

I'm having trouble with this assignment: Write a class Coins with one constructor that takes a number of cents as a parameter. Supply four public methods, getQuarters, getNickels, getDimes, getPennies, that return the number of corresponding coins that add up to the amount (in the optimal representation with the smallest …

Member Avatar for jalpesh_007
0
1K
Member Avatar for andarivaadu1

Here is my query UPDATE tracks SET People_id_Reference = (SELECT People_id FROM People RIGHT JOIN top100 ON People_name=top100.artist LIMIT 1) WHERE People_id_Reference IS NULL; But that query inserts same people_id value into all rows of People_id_reference Can some on help me with this. Thanks in advance

Member Avatar for andarivaadu1
0
198
Member Avatar for ashley9210

I am creating a bar graph essentially **just by only using the graphics module**. I am stuck with it. Below is my code that I have done which creates a perfect square. (10 x 10) so for every one bar I was it to decrease by 10. def drawRectanglePatch(win, x, …

Member Avatar for woooee
0
198
Member Avatar for diya45

hi all now guyz i add a info in datagrid view also displau now i hve some probelms that when i create a update fuction in guestinfo table then the guest_id is autogenerte then can i delete through guest_id or not and it is also not updated public void update() …

Member Avatar for arunkumars
0
218
Member Avatar for Zatara7

So this is going to be the last project for my java class. Any input is appreciated and I'm generally posting it here because someone else might benefit from it. It is not done yet but when it is I'm going to post the full code. I made a video …

0
396
Member Avatar for napztor

hey guys im working on school prroject to develop a navigation system, i was just wondering is there a way to search for a page by entering its page number in a seach box ? is there a script for that? please let me know

Member Avatar for <M/>
0
45
Member Avatar for HunainHafeez

how to redirect paypal sandbox to localhost (asp.net's ) after successful transaction ? is it possible ? silly question but may be ....................

Member Avatar for kvprajapati
0
188
Member Avatar for mmpal78

Hi, Im new to programming and to Python. Im making a program to get weather information from online, parse it the way I want to, then have Festival read it aloud to me. I got the weather info and parsing done exactly how I want but am getting an error …

Member Avatar for mmpal78
0
269
Member Avatar for Goldfinch

I'm learning the PIC16F690 and I'm trying to program it to do a simple operation, move over one led each time the single button is pressed and then reset. I'm not asking for code, just if I can bounce ideas of how to implement this off someone who can maybe …

Member Avatar for Goldfinch
0
176
Member Avatar for andrew mendonca

Assignment 9, Due Dec 2 Design and implement a program that allows the user to keep track of students in a college course. The program will function as a simple database in which students can be inserted, removed and updated. Additionally, the user can display students in order by name …

Member Avatar for andrew mendonca
0
226
Member Avatar for diafol

Hi All, not the usual, "how can you help me" thread, but a heads-up on a templating engine I've been using for a while called RainTPL. A few users have posted threads of late asking about templates. I thought I'd give this one a plug, especially as Federico (the author) …

Member Avatar for rajppd
0
964
Member Avatar for giovannitao

Hello, I'm developing script php about cell phone specific, now I want to insert an uploader for image of cell phone. I want to upload image to a fecific folder and save url to mysql table. Can you help me to create form and how to do this?

Member Avatar for B1ts
0
3K
Member Avatar for joedavis23

This program asks the user to enter pricer for items. The user enters a price of 0 to stop. The program then prints a reciept including a list of items bought arranged from least to most expensive, and a total that includes 5% sales tax. I am lost can anyone …

Member Avatar for zeroliken
0
1K
Member Avatar for HelloJarvis

So I'm using an Ajax request and processing input of sentence(s) in my program that will be looked up using a thesaurus API. The processing works fine, but I am trying to get it so that it will strip bad input such as semicolons in order for the API to …

Member Avatar for HelloJarvis
0
310
Member Avatar for James.M.Dallimore

Hi all, Had alot of problems with writing this code to update an access database from vb 2010 - even my computing teacher is at a dead end as what we havent tried. - Da.update(ds, "stafftable") Basicallly i can navigate records fine - but as soon as i try to …

Member Avatar for john.knapp
0
300
Member Avatar for ashley9210

I am trying to make this pattern in python but stuck, any help please? Ashley http://images.colourbox.com/thumb_COLOURBOX3492089.jpg

Member Avatar for Gribouillis
0
147
Member Avatar for Melly3

` This is the code of Tic Tac Toe from Python the absolute beginner. How could I edit the global constants so the user could pick the pieces or should I just remove them all together? # global constants X = "X" O = "O" EMPTY = " " TIE …

Member Avatar for TrustyTony
0
178
Member Avatar for london-G

I am going to create a list in java, what would be the best thing to use to check whether or not there are duplicates in the list: 1.x.compareTo(y) (Can I use this one?) 2.x.equals(y) 3. x == y Thanks

Member Avatar for zeroliken
0
117
Member Avatar for hwoarang69

how to fix animation flickering import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.Image; import javax.swing.JApplet; public class main extends JApplet implements Runnable { //player information variable int x = 10; int y = 50; int width = 30; int height = 30; int dx = 1; //########################################################################################################### /*** init method ***/ public …

Member Avatar for zeroliken
0
148
Member Avatar for Tinnin

Hi all! I'm putting a contact form together to receive emails. It is giving the appearance of sending the form data through to my email address (i.e the "thank you" message appears) but nothing is coming through. I'm not sure if I have incorrect html in my form or if …

Member Avatar for Tinnin
0
144
Member Avatar for john.knapp

Consider this: I have a user-defined stored procedure which returns a bit value as OUTPUT. In my calling code I want to check that value. I define it in my code as follows: Dim retval As New SqlParameter() retval.ParameterName = "@return" retval.SqlDbType = SqlDbType.Bit retval.Direction = ParameterDirection.Output DataCommand.Parameters.Add(retval) DataCommand.ExecuteNonQuery() ' …

Member Avatar for john.knapp
0
532
Member Avatar for Farhad.idrees

guys i have for buttons in html form...edit, back, submit, reset but the problem is how to go back to previous page....i m performing this using onlick event but not working... my code is.... <form method="post" action="" enctype="" name="Qform" onsubmit="return validateForm(this); "> <div class="centerform" > <div id="divbox"> <label id="label">Name : …

Member Avatar for Farhad.idrees
0
158
Member Avatar for sofien.fkih

Hi everyone, I have many executable files which I developed using java language(netbeans platform), which all run at the same time 24 hrs, the problem is that I can't know which one is for which program in the task manager, process tab, because they all have the name of javaw, …

Member Avatar for sofien.fkih
0
281
Member Avatar for corby

Hi. I am trying to write a function that when given a class, will tell you the number of methods that class has. I am getting the java.lang.noclassfoundexception message. I read something about adding to the PATH but was unsure. I also tried using HelloWorld.class, but that did not work …

Member Avatar for corby
0
232
Member Avatar for Weliaz

Hey there people! I have a problem with an application which i'm working on! The problematic code: #ifndef CONFIG_H #define CONFIG_H bool LoadConfig(); XMLElement* Element(std::string name); #endif Where the "XMLElement* Element" is the problem. I am using the library TinyXML-2 for this. If anybody could help I would be very …

Member Avatar for Weliaz
0
335
Member Avatar for ROSS679

Hi, I have created an application in C# and would like it viewed in a full screen that also covers Microsoft's taskbar, kind of like the way a PowerPoint is viewed in full screen. Is this possible? Sorry if i come off a bit confusing. Thanks

Member Avatar for ROSS679
0
100
Member Avatar for zakiraimanaz
Member Avatar for zakiraimanaz
0
736
Member Avatar for TIM_M_91

Ok so I have a class called DBdatabase.cs which stored all my sql queryies, what I am trying to do is execute an update statement that updates the users password through the session however when I execute the statement nothing occurs what am I doing wrong? Also Please note that …

Member Avatar for TIM_M_91
0
99
Member Avatar for ralph1992

I have attached a quick class model of what I am trying to achieve (Also, sorry for the mass of code but I figured I'd post everything I have thus far in case anyone saw other improvements I could make). I can give a customer an 'Account' but I want …

Member Avatar for phorce
0
8K
Member Avatar for QuantNeeds

I am not sure why this is occuring. I declared these functions in the header file and it is defined them in the .cpp file but in the main function it does not recognize them. Did I forget something basic or do something illegal? The errors: : error C3861: 'createAndInitializeTextFile': …

Member Avatar for fiqa92
0
4K
Member Avatar for zachattack05

The question I have involves 3 basic objects, (1)a class that contains methods to serialize and deserialize another class that is then saved to a file on a disk, (2)a class that contains methods and values that is marked serializable and is the class that is serialized to disk and …

Member Avatar for zachattack05
0
103
Member Avatar for coolerking

im trying to make my own Serialization library but I have some problems with the following. I have a package wich I serialize to a t_stream and then I need to serialize the t_stream to a char * again. This is the complete code: typedef struct{ int16_t port; int16_t priority; …

Member Avatar for deceptikon
0
161
Member Avatar for ponkhiraj

Hello Developers, I'm here for your kind help, I am making a program where these codes i wrote: for i as integer = 0 to 5 If TextBox4.Text.Contains("1") Then TextBox4.Text = TextBox4.Text.Replace("1", "_n_") End If If TextBox4.Text.Contains("2") Then TextBox4.Text = TextBox4.Text.Replace("2", "_o_") End If If TextBox4.Text.Contains("3") Then TextBox4.Text = TextBox4.Text.Replace("3", …

Member Avatar for Reverend Jim
0
557
Member Avatar for LeonKam

Hi, i would like to know is it possible to create an application that allows a computer to send and receive SMS to/from a mobile phone without using a GSM modem (maybe just throught wifi)? i was thinking of making a server that would handle the sms'ing process in between. …

Member Avatar for malak05
0
548
Member Avatar for rikkitikkitavi

Hi, I need help please. i spent the last 6 hours looking EVERYWHERE for help about using PHP session across web pages. The $_SESSION variable is supposed to be global, right? but I can only access it on the page it was declared. like: //PAGE 1 this works <?php session_start(); …

Member Avatar for jkon
0
687
Member Avatar for pratik65

hii, guyz i wanted to learn how to declare and and use one and two dimensional array can any body give me a guidance through an eg.

Member Avatar for B1ts
0
320
Member Avatar for adityasingh95

can sum1 pls explain why there isn't any output??? #include <iostream.h> #include <conio.h> void main() { clrscr(); int a[50][50],r,c,ans=0; cout<<"Enter Size of Array:"; cin>>r; r=c; for (int i=0;i<r;i++) { for (int j=0;j<c;j++) { cin>>a[i][j]; } } getch(); clrscr(); for (i=0;i<r;i++) { for (int j=0;j<r;j++) { cout<<a[i][j]; } cout<<endl; } cout<<endl<<endl; …

Member Avatar for L7Sqr
0
238
Member Avatar for acerious

BEGIN SEQ (n) IF (n <= 3) THEN RETURN n * 2 ELSE RETURN SEQ (n - 3) + SEQ (n - 1) ENDIF END For instance, for n = 8, I ran it in a compiler and the final return value is 38. I tried tracing it in the …

Member Avatar for vijayan121
0
142
Member Avatar for Alex_

Hello daniweb community ! I'm finishing my second year of IT studies and the university is giving us the opportunity to engage in a project with a company. I found a good company but now i'm looking for a good project to work on. I was thinking doing something in …

Member Avatar for JamesCherrill
0
316
Member Avatar for Frensi

I'm having a little problem. The challenge is this: "Modify the program so that different shapes are drawn at each angle rather than a small filled circle". So I'm trying to change the middle shape when the second hand hits 12, 3, 6, and 9. I've got some code, but …

Member Avatar for Lardmeister
0
167
Member Avatar for london-G

Hello, I want to delete duplicate in the array I have created, I have the following method now: Add an element Remove an element Can you give me an idea of how I can implement the deleteduplicates method. Thanks

Member Avatar for london-G
0
94
Member Avatar for james.woods.50115161

Hello I keep getting one error every now and again: Warning: date() expects parameter 2 to be long, string given in /home/web/public_html/set.php on line 727 Below you can see that like ( 727) Any soluctions how to deal with this problem? <div class="bb"><?= date("d.m.y h:i:s",$full_list[ssctime]) ?><input type=hidden id="ssctime" value="<?=$full_list[ssctime]?>"></div>

Member Avatar for pritaeas
0
693
Member Avatar for dot_binary

Hello! I'm trying to get the contents of a binary file into a char array, my read function is in main.cpp, in the header file is referenced as char fileio(char * bufferZ) , and is called in another .cpp file. The problem is , the code in the function cant …

Member Avatar for dot_binary
0
260

The End.