64,152 Solved Topics
Remove Filter ![]() | |
Hi there, I am fairly new to C++ and wanted to have a go at coding my own function with parameters. However some of the parameters are arrays and I get strange errors occur. I will comment my code with a couple of other questions as well. I am writing … | |
private void btnCencelProducts_Click(object sender, EventArgs e) { for (int i = 0; i < lbFinalList.Items.Count; i++) { if (lbFinalList.GetSelected(i)) { lbFinalList.Items.Remove(lbFinalList.Items[i]); } } } thats code of my button i have list box where i want to removie multible item.. when i chose more than one item so only 2 … | |
Hello, If a user logs in with an email address and I have a session to save its email address so I can pass it along to other pages, how does it work if the user decides to update their email address in their account page? Will the session that … | |
Hey Guys... Brain is kind of dead on a late thursday afternoon in Cape Town, Can anybody please assist... what i am trying to do is: 1) in a table i have a column that is an array, its all in plain text 2) i have a table that has … ![]() | |
This is a program for getting the sum of prime numbers of given range. The problem is that it would take hours if the limit is about 1000000. I've read about the sieve of Eratosten but having difficulties with implementing it. Could someone help to make this piece of code … | |
So I've been giving a number of assignments to do but I'm stuck on one in particular now. I've to create a 2D array ([5][2]) and then say how many times ou of the 5 rows that the first row was bigger than the second. I imagined I would need … | |
I have a project which is 98% complete. Its basically a Shop(till) interface. I have a form that has tabs the first being the main till, second shows a listview with everything in stock and the quantity of items in stock. Im stuck on one part of the program where … | |
Hi I'm currently using vb6 and ms access for my database. So far the application runs good, but the rumor (or fact) that access are not powerful enough with multiple access and also it has low data limitation (around 2 Gb), it scares me. I don't want my clients to … | |
hi, thankx for solving all my previous thread right now my problem is that i have to get width and height of pdf file | |
how can i get java to enter/type text into a textbox for me once i select it(click inside it) so the cursor is there. Also how would i get it to send the enter key or other "non-text" keys. | |
I want to create a j2me app with some pleasing UI. I tried polish but I didn't worked well, what are the other options I have? I am looking for SVG. But I am not comfortable with xml. please help me with this. than you | |
Hi frens.. I have a requirement, where the user selects a option from dropdown, depending on the option selected, the next 2-3 fields must get populated from data coming from db(this must happen without refresh) so i decided to use ajax. I am getting a error which i am not … | |
When I try to connect to a data base I am getting the following error. Please help me. Request for the permission of type 'system.Data.OleDb.OleDbPermission,system.Data, Version = 2.0.0.0, Culture = neutral, PublicKeyToken = b77a5c561934e089'failed. DotNetAmat | |
hi, im a beginner. i hav an assignment on Pascal's triangle. i saw some post over the topic but couldnt get it to work with my code. heres what i have done so far.... [code=c] #include<stdio.h> #include<conio.h> void main() { int a[10][10]; int i,j,c,n; clrscr(); printf("Enter how many lines do … | |
Hello, I am having an issue with my legacy app saving files to Windows 7 machines. My first thought was that I would just run the program as administrator but that helped none. I have attempted saving this image to the temp folder and to appdata but neither seems to … | |
Hey Guys, I have downloaded the [url]http://www.swis.nl/ga/[/url] google analytics class and it is working just fine. It shows a graph of things like pageviews and visitors in a graph per day. What I want is just a solid number like: Visitors Last 30 days: 1,2043 | Visitors This Month: 1,434 … | |
Hi, I am trying to combine two arrays to a multidim one. I have two int arrays stat[] and indexes[]. So the first looks like this 34,56,78,etc holding hundreds of numbers. The second looks like this 0,1,2,3,4,5 etc. I want to end with a multidim array like this 34,0 56,1 … | |
I am new in vb.net please help. [CODE]Public Class Form1 Private Sub RichTextBox1_KeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles RichTextBox1.KeyPress RichTextBox1.Text = " Not available " RichTextBox1.Select(RichTextBox1.Text.Length, 0) End Sub End Class[/CODE] I want this code to pass not available like" Not available Not available Not available " … | |
hello, what book will you suggest me to read if i want to learn gui using c language.? | |
the same as tiltle. is that exit() just end the function and abort() end the program? | |
hey, i started learning javascript programing n i wrote this simple code to test, it isn't working, here's the code :- [CODE]<script type="text/javascript"> { function mltest() { var fnmae=document.myForm.fName.value; var mName=document.myForm.mName.value; var lName=document.myForm.lName.value; var rtxt; rtxt="Your full name is : "; rtxt+=fName; rtxt+=mName; rtxt+=lName; var finalName=""; document.myForm.finalName.value=rtxt; } } </script> … | |
i have a forum wherein a user can create a topic,delete and edit a topic. and i have a admin panel that can delete a topic,edit and locked a topic or closed. I'm done in delete,edit and create what I'm looking for is how can i lock the topic if … | |
Hey everyone, Usually when I create a Java application I will use the built-in Preferences class to save user preferences. I believe this saves user information to the registry on Windows, and to other locations on Linux / Mac OS X. When I need to store a serialised object, I'm … | |
Just as the title says, how can I detect double clicking in a ListView? I'm trying to emulate browsing through a directory with windows explorer. | |
i write a program that goes as follows a part of it is: [CODE]#include <iostream> using namespace std; const int size=8; const int plus[]={1,2,3,4,5,6,7}; const int minus[]={-1,-2,-3,-4,-5,-6,-7}; int vertical(int[][size],int&,int&); int horizontal(int[][size],int&,int&); int diagonal(); int main() { int board[size][size]={}; int accesibilityboard[size][size]={}; int currentrow=3; int currentcolumn=4; int counter=0; } int diagonal() { … | |
Dear ajax expert, [URL="http://www.w3schools.com/php/php_ajax_php.asp"]http://www.w3schools.com/php/php_ajax_php.asp[/URL] Refer to the link, using the sample, I'm able to use php ajax to populate 1 text box which I've already pre-define (not using "echo '<input type='text'..") -- the info came from a table e.g. Search: [jo ] Name: [John doe] sql --- select name from … | |
Ok, I have three main tasks. One: I need to create a 2 dimensional array that is 8x8 and consists of randomly generated numbers that range from 0-3. I'm assuming the Math.random will be used inside of a for loop with a limit set for length(8) and range(0-3) somehow? Two: … | |
Hiya I'm relatively new to data structures and using push_back. I'm trying to build a small dictionary program that assumes that there is no words (and definitions) in the dictionary when you first launch it. What I then need to do is ask for a word then definition to start … | |
Dear All, I have a question again with my very old PHP project code(it was very dirty code) :-). It is a simple Dictionary Search program. Currently when the Search Data not found in the mysql database, it just show the blank result. How can i add some String for … | |
How can i read some number from a text file and then go back to read some other information? All i know, is read it from the beginning to the end, but even when i check something for ex if(fgetc(in)!=...) goes forward one character, and all this messes up my … | |
I'm newbie to JSF and i am confused on this portion written by Cay Horstmann in the Core Java server faces: ======================================================================================= The code: [CODE]public class QuizFormBean { private UIOutput scoreComponent; private UIInput answerComponent; // PROPERTY: scoreComponent public UIOutput getScoreComponent() { return scoreComponent; } public void setScoreComponent(UIOutput newValue) { scoreComponent … | |
hi i have a lab to do and i'm stuck on how to start a method i have 10 coins and i want to write a method that tells me the fewest amount of coins needed to add up to 100 - 1 dollar coins are randomly generated - values … | |
Hi, I am working with PHP. I have a field in my form, which is basically a text box. But as the user start to type it will show a list of matching items, fetched from mysql table. I can have a drop down, but in a drop down , … | |
Hi guys, Sorry the title is vague. Couldn't come up with one. Ok so I have a int variable which is, let's say, of the value 5. Now I want to create a string which contains underscores, so: "_____" the amount of underscores is the same value of the integer. … | |
Hi, I have two questions 1. Is it possible to add short cut keys in my php application, show that the user can access different menu items using them? 2. How can I print something directly to a printer without showing them on screen using php? ![]() | |
I was trying to send mouse positions to my status bar in a larger program. I could not get them to write more than one position to the status bar, then it stops changing. To test why, I wrote a small window using one "Do Paint" function first. I still … | |
Hi, I am having some problem to integrate my PHP & JS codes. The PHP code - [CODE] <?php for($i=1;$i<=3;$i++) { ?> <input type="text" id='rate<?php echo $i; ?>' /> * <input type="text" id='quantity<?php echo $i; ?>' onChange="updateValues(THIS);" /> = <span id='amount<?php echo $i; ?>' style="border: 2px solid black;padding:2px;"></span><br /><br /> … | |
i want to implement multicast using python can anyone tell me how can i get information on socket programming in python? | |
I have a code that I call from `Button_click` event. The code adds a new row to the table and attempts to add onclick element to every td element in the new row. Somehow, onclick does not work. Any help is appreciated. Here is the code: function insRow() { var … | |
Hi everyone! I am new to PHP and aat the moment trying to create a login to an admin area of a website with a simple CMS backend. I have found this code whicj I have tried to look at/learn from and implement into my own website, but I am … | |
Hello people. I have the following class. [CODE] public class Model{ private Kutia[][] c; public Model(Kutia[][] x){ c = touch(x); } public void touch(Kutia[][] k){ for(int i = 0; i < 8; i++){ for(int j = 0; j < 8; j++){ if(k[i][j].occupied()){ touchHorizontal(k, i, j); touchVertical(k, i, j); } } … | |
If I start a new thread, and that thread executes a method that is contained in a referenced dll, how do they signal each other? Would this be considered a cross-process EventWaitHandle? It doesn't seem like it would be considering that the thread is started in the same process. I … | |
I'm trying to write a program which allows a person to enter the number of days they have worked. Their hypothetical salary is 0.01$ per day and doubles everyday (0.02$ on the 2nd and 0.04$ on the 3rd day etc...). For each day, the day number, pay for the day, … | |
my deletecommand delete all my rows whenever i delete a row..but when i view it again the other rows still there and the i deleted is actually deleted.. here's my code for da.deletecommand [CODE] da.DeleteCommand = New SqlCommand("Delete from Admission_Record WHERE Patient_ID = @Patient_ID", cs) da.DeleteCommand.Parameters.Add("@Patient_ID", SqlDbType.VarChar).Value = ds.Tables(0).Rows(bs.Position)(0) cs.Open() … | |
I'm having difficulty figuring out how to append two user inputs into a list as a tuple. I would also like to call the list and enumerate the list (e.g., 0. dog_name:dog_breed). I'm not sure how to call display or if it is even written properly. Here's what I have … | |
For example, I want to write a minesweeping. I know the interior algorithm, but I don't know how to start creating a gui. How should I get started? Thanks. | |
hi everyone i got this error Cannot insert explicit value for identity column in table 'Patients' when IDENTITY_INSERT is set to OFF. i set identity to Yes in sql server 2005..whenever i run my code i get this error message here's part of my code [CODE]Private Function GenerateCaseNumber() As String … | |
Hi. Implicit: the compiler does the work for you Explicit: you have to specify what you would like the compiler to do. are the above statements true? I have just read on MSDN that an abstract method is implicity virtual. One is not implemented and one is, so is this … | |
I have a series of data files with large headers. Here is an example: [COLOR="red"]SpectraSuite Data File ++++++++++++++++++++++++++++++++++++ Date: Fri Feb 25 13:43:55 EST 2011 User: group Dark Spectrum Present: No Reference Spectrum Present: No Number of Sampled Component Spectra: 1 Spectrometers: USB2E7196 Integration Time (usec): 11000 (USB2E7196) Spectra Averaged: … | |
Hi, Please see the below one : [CODE]#!c:/perl/bin/perl use CGI qw(:all); print "Content-type:text/html\n\n"; print <<EndOfHTML; <html><head><title>Print Environment</title></head> <body> <FORM action="sample.cgi" method="POST"> First Name: <input type="text" name="first_name"> <br> Last Name: <input type="text" name="last_name"> <input type="submit" value="Submit"> </FORM></body> EndOfHTML[/CODE] From this, i don't know to proceed. There are two text box with … |
The End.