199,114 Archived Topics
Remove Filter ![]() | |
hi there, i have a code for the above mentioned property below,when i click a value from the datagridview combo box column the for loop runs 2 times y is that??? what do i have to do for the loop to run once. thanxxxxxxx [CODE] private void dgvSubContract_CurrentCellDirtyStateChanged(object sender, EventArgs … | |
I have a problem with the drawing and or the filling speed of my FlowLayoutPanel. [URL="http://camart.se/screenshot/jims001.JPG"]See screenshot[/URL]. Can I speedup the process my cashing my images somehow? Or is there a better alternative to the FlowLayoutPanel? [CODE] private void FillPanel() { flpServices.Controls.Clear(); prevStatus = 0; prevRows = 0; foreach (Jims.Services … | |
Hello, I have a derived class, that I'm trying to delete. This causes a segmentation error, though. I'm fully aware of the virtual destructor thang, but I'm using it all the way around, and still this issue occurs. I'll post my headers only, please tell if more is required. DataStream.h … | |
Hi All, I have written reversible link list and pasting the code as below in c++. It works fine, please let me know if there are anything more that is required to make this more robust. This is on a single link list. [CODE] [COLOR="Green"] #include "stdafx.h" #include <iostream> using … | |
Hello I am having some problem, can any body give me a helping hand each time I compile I get this error massage, I dont know where I made the mistake help please I new to programming[code]This is my Main File include libraries #include <iostream> //Call C++ normal imput and … | |
Hi , I need help with select staement.I am trying to to look for a word in column word .If i find that word then then show a message box that this word exist in databse.Can anyone help me with this.my code is something like this [code]private void dataGridView2_CellContentClick(object sender, … | |
Hi, I have to somehow modify a C-code by introducing a new array. We are in the chemical field: I have a small molecule (guest) inside the structure of a larger one (host). The existing array stores the square of the distance between a specific class of atoms: they are … | |
hi all i have an assignment in which i have to use object-oriented programming to read from an input file(say: input.txt), use prim's algorithm and calculate the weight of a minimun spanning tree and then save the output to a file(output.txt). the problem with my code is that the program … | |
I'm getting to a point in my project where functionality can be based on the needs of individual users. As part of my application I would like to have the ability to add and remove functionality based on the user. I figure plug-ins might be the way to go for … | |
Is there a better way to write this if statement? Option1: [CODE]if (isset($_GET['item']) || isset($_POST['item'])){ $path = 'uploads/file/'.$filename; }else{ $path = 'uploads/'.$filename; }[/CODE] Option2: [CODE]if ('item' != $_GET['news'] || 'item' != $_GET['events'] || 'item' != $_GET['download']){ $path = 'uploads/file/'.$filename; }else{ $path = 'uploads/'.$filename; }[/CODE] | |
Hello everyone. I have a question. In a servlet, can we write something on page using [CODE] PrintWriter out=response.getWriter();[/CODE] ,then clearing the page and then also forward the request using [CODE]RequestDispatcher rd = request.getRequestDispatcher("/some jsp page"); rd.forward(request, response);[/CODE] I was trying to do this but for some reason forwarding part … | |
Hello I am trying to compile my project in VC++ Express Edition and get the error below. The project did compile fine before I reinstalled XP windows. But now when I have installed everything again, I receive this error. I dont understand what this can mean ? When clicking the … | |
Hi all, I am trying to do an action by clicking a button. So if I press the button 1, it will do action1 (showing an image), and if I press it again, it should go do action 2 (which is reverting action one, so disable the image), press again … | |
Been working on this for hours now. but most of it has been trying to fix these two errors. I've been googling my heart out and keep getting cryptic answers about the [B]const[/B]. Really need help. it's supposed to take in names of students and their scores, sort them, then … | |
hi. I am working on a project which keeps its data access, business logic and UI in separate projects of a solution. Is there a way to access a strongly typed dataset in one project of a solution from another project of the same solution? I need these to fill … | |
i have this code which input 3 numbers into ascending order. i know make it 10 i just change the array size but then it is only ascending the numbers that were inputing that are under 10. how can i change it so it's any number. [code]#include <iostream> #include <conio.h> … | |
Hallo ... I am very new to Python programming & I have this Question ... I am asked to write a program to calculate the No. of words & the length of each (letters) in this sentence : (An Oligonucleotide is a short segment of RNA or DNA, typically with … | |
I am trying to teach myself C#. I recently completed this exercise. The code works the the way its suppose to. My question is how could I make this more efficient or is there bad programing practices? Thanks [CODE] using System; class testcontact { public static void Main() { InputWrapper … | |
Hi All, I'm trying to figure out how to load images from a resource file into a picture box using a visual studio windows forms application in c++. I figured out two different ways to do this in c# by going through the forums, but I cannot figure it out … | |
Hello everyone, i need to enter a value into a savings account paying 7% interest and €1,000 is withdrawn from the account at the end of each year. How many years are required for the savings account to be depleted? here's wat i did, but the loop not working: [code=c]#include … | |
haii friends.... [COLOR="Red"]i want to select a particular string from textarea...i need it in javascript.... am using the tag <layout:textarea> i did not need the whole ,but only a part...plzz help me...[/COLOR] | |
I have just started learning python, I am a Java programmer. I think python is more simple than java. What I wanted to ask is, where is python used? And if python does not follow the complete OOP concepts, then can it be used to design large / major applications? … | |
Hello everyone I know that one cannot pass a parameter to destructor functions in classes. Is there a reason why this functionality was left out of c++, and is there a way to get around it? Thanks! | |
hi everyone, I have a tiny problem with a simple implementation: - i have a main window with a table in my central widget - i want to add stuff in the table gradually, and I allow only the 1st cell (index 0) of each row to be selectable. - … | |
I want to improve my programming skill and decided to build python wrappers over other library's. I've done this with the face recognition and think it would be real world code for me to work on. I want to code as a career and I want to code stuff programmers … | |
Hi Guys, I want your help with , how to navigate between forms.I have one form that has a drop down list.first list item is to add new list item.So when user select add new item it pops up a new form to eneter item and save it.When i save … | |
I am trying to write a function which converts a number to a string. But when I return from the function, the reviving string - according to debug mode - still is empty, so the program outputs nothing. What am I doing wrong? [CODE=c] #include <iostream> #include <string> using namespace … | |
hi as i learned, asp .net login control has a built in required field validators but how can i use a regular expression validators to validate the UserName and Passwords textboxes ? is there a way ? | |
Say I have an array like this: double *a; and I use new/delete[] to do memory allocation on it. How would I be able to delete certain elements from it? Like this: [code=c++] void RemoveElement(double *a, const double &element) { } [/code] | |
hello can you please help me in my registration...my problem is that i don't know how to check if the user input numbers, character, and letters....i want that if the user inputed this in password,example password=jem125@# this will display in my lblvpass="Strong password",if the user input only jem125 it will … | |
Hello, I'm writing a simple program implementing a list. You can add, remove, search, print and find the minimum element. My problem is that the program crashes if I don't add the 'system("PAUSE");' line before the last 'printf("Minimo = %d.\n", minimo(l));' call in the main method. Here is the code: … | |
[CODE] char in[100], *temp[10],var[10][10]; int i, n = 0,fulval=0; double val[10]; var[10][]="ANS"; [/CODE] it should be simple but i cannot figure it out. I want to assign "ANS" to var[0][0,1,2] but it did not work? | |
why i cant submit a form in asp when an object is disabled? I have a form in an asp application that is validated by javascript and one of the conditions is disabling a textbox and when i want to submit the form its not submitted when the textbox is … | |
i can handle a store procedure which returns one output parameter using ExecuteScalar() but wot if my store procedure returns more than one parameter then how can i handle it. any advice Adapost ? | |
Hello All, what is code for exceute one aspx page onclick hyperlink without dispaly that page? Basically, I have one page p2.aspx.,which getting querystring parameter from page p1.aspx. When I cliced on hyper link of p1.aspx page .it redirect to the p2.aspx. but i want only that the code on … | |
Hi there everybody, I am currently studying for my university exams and need 2 make a function for the below scenario. The function must display the information inside the 2D array as you can see in my code I have tried but to no prevail. Any help will be GREATLY … | |
Write the assembler instructions that will read the text document located starting from memory location 020AH. The last line of text document is specified by escape character ‘\’. While reading print out the text that starts from character 11 to character 20. Comment your assembler instructions. this is the assignment. … | |
How i can Rewrite URL JSP in Apache tomcat same MOD Rewrite in PHP [U][B]EX.[/B][/U] [CODE]test.jsp?id=1 as test/1[/CODE] Thank You. | |
hi, how to restrict the text box input to allow user to write only Arabic letters, without english letters or numbers or ponctuation symbols. i searched on the net and i tried this code but it does't do what i want [CODE] private void nomTextBox_KeyPress(object sender, KeyPressEventArgs e) { if … | |
[code=html]<table-group> <html> <head><title></title></head> <body> <table width="885"> <tr> <td width="20%"><p></p></td> <td width="20%"><p></p></td> <td width="60%"><p></p></td> </tr> <tr> <th align="left" valign="bottom"><p><b>Revision Date</b></p></th> <th align="left" valign="bottom"><p><b>Sections Revised</b></p></th> <th align="left" valign="bottom"><p><b>Description</b></p></th> </tr> <tr> <td align="left" valign="top"><p>7/1/02</p></td> <td align="left" valign="top"><p>All</p></td> <td align="left" valign="top"><p>Complete manual revision to reflect changes related to the MMIS and HIPAA compliance.</p></td> </tr> … | |
Hi Guys, I want to know how can you add image to a part of word .I ll explain it further...suppose i display some text on a text box , now what i want to do is , suppose i have a word 'horse' in my text and i want … | |
Hey, I want to create an image from a file, and then have the file deleted (or moved) after. How could I achieve this? I tried using using(), streams, Bitmaps etc. I'm completely stumped. Any help would be great. Thanks Edit, the problem is that I cannot delete/move the file, … | |
Hi.. I'm not sure whats the array_merge doing here in this code? I've read the mysql manual,but i just not sure what it is really means,so hope somebody could clear it out for me. By the way this is the code : [CODE] if (isset($_POST['submit'])) { // Form has been … | |
Hi, i'm new to Python and i'm currently following the "How to Think like a Computer Scientist" tutorials. I'm at Chapter 4: Conditionals and doing the last exercise where i need to create six colored houses on a black background. I've successfully created the house at the bottom left, but … | |
Alright i need help computing random dates and i have to use lists. this is what the program should do program must print out the following output: 1. The complete list of birthdays that you generated. 2. The birthday that was generated twice (printed separately from the list). 3. The … | |
I m new to programming .Can anybody tell me where do we use Nested Class in piratical(i dont need the code )? and Why do we use it with out using regular class Plz explain me | |
hi there, i have a mask textbox in C# which saves $9999999999.99 as the mask, i have a database field should take the value and save it. the database feield is in money .but when i am writing the C# method to insert it into the data i convert the … | |
What i want may seem simple but i have been at it for hours trying to get it to work and searching the internet for answers. What i have been trying, and failing at doing, is taking X minuets from a time selected from a database (which is in the … | |
Hi, I have a dropdown box extracted from MySQL database and I have two records for a product as it was produced in different years. i.e. model number 75 repeated, I am trying to extract only one of them in the dropdown box and have used select distinct but it … | |
I have a JTable as a leaf node of a Jtree. But though I can select each row in the table I cannot select each cell element. Please HELP! Adity |
The End.