199,114 Archived Topics
Remove Filter ![]() | |
![]() | Hey people, here is a question that is troubling me from quite a long time. I want to diable the (x) button on form_load event, to prevent user from directly closing the application. How may I achieve this ? ![]() |
Hello everyone! I am tring to use Tkinter from terminal (I'm on a mac) and I keep raising AttributeErrors on both Python 2.7 and Python 3. For 2.7 I input: >>> from Tkinter import * >>>win = Tk() >>>f = Frame(win) >>b1 = Button(f, "One") and I raise the AttributeError: … | |
Hi guys ! I am newbie, I have downloaded oracle 11g release 2 but i don't know where to start and how to connect C# program to database. I want to write simple program of username and password in which I it stored in database. And also maps the username … ![]() | |
My problem is that when I try to convert a unit, the result does not is displayed in the textbox this is my code <script type="text/javascript"> function convertVals() { // retrieve values and types of and for conversion var sel1_val1 = parseFloat(document.sel1.conv[sel1.conv.selectedIndex].value) var sel1_val2 = document.sel1.conv[sel1.conv.selectedIndex].value2.toLowerCase() var sel2_val1 = parseFloat(document.sel2.conv[sel2.conv.selectedIndex].value) … ![]() | |
Hi, Does anyone give me the suggestion about "InvokeRequired"? I can't find "Controls.InvokeRequired" in vb.net2003. I want to write a simple data updating from "Mulitple Thread", but I would like to check whether "Controls" are requied "Invoke" or not. Thanks and regards | |
I am going to begin learning Java but I want to get a book (2-3 books... one being easy, intermediate, and advanced). I don't mind buying the books (the price doesn't matter either). What are some books that are most perfered by you guys? I currently i am learning it … | |
Hello. I have this code from http://zetcode.com/tutorials/javagamestutorial/sokoban/ and I want to change the image of the baggage when it's on the right place. Do you have any idea of how should I do this? | |
i just started reading how to connect ur cart to paypal. i get the main idea but when i hit paypal buy button. data doesnt tranfer. so on paypal site it alway say to have 0 items in ur cart. <?php ... $x=1; $pp_checkout_btn = ''; $pp_checkout_btn .= ' <form … | |
I've written a short tutorial how to get started writing sql database applications with C#. The totorial is in PDF format so that you can download it and read at your leasure. It assumes you are using MS-Windows and Visual Studio 2012. If you are using an earlier version of … | |
Hey everyone, I was under the inpression that PHP would refresh dynamically and not necessarily the whole page. When I make forms in PHP I am noticing the entire page gets refreshed before the new content is displayed. this is the oppsite of what I am trying to acheive. If … ![]() | |
main.aspx ----------- <body> <form> id="form1" method="post" runat="server"> <asp:TextBox ID="TKullanici" runat="server" Height="27px" style="text-align: left" BorderColor="Silver" BorderStyle="Solid" Font-Size="Medium" ForeColor="#999999" BorderWidth="1px"></asp:TextBox> <asp:TextBox ID="TSifre" runat="server" TextMode="password" Height="27px" style="text-align: left" BorderColor="Silver" BorderStyle="Solid" Font-Size="Medium" ForeColor="Gray" BorderWidth="1px"> <asp:Button ID="BGiris" runat="server" cssclass="SBGiris" Text="GiriÅŸ" onclick="BGiris_Click" xmlns:asp="#unknown" /> </form> </body> main.aspx.cs ------------ protected void BGiris_Click(object sender, EventArgs e) { string … | |
Hi! I am supposed to write a programm for making a window.First of all, I must make a window with some given default values. Below is the code that I have been given as a template public class Window { private String name; private int height; private int width; private … | |
Sir, having a problem. I have two tables i.e directives and para_comments_sect. there is no direct connection with each other . what i want is to get the data field from directives and para_comments_sect of para_id=15 ( its a foreign key from para table). any suggestions and guidance for it … | |
I have made this RSA encryption program but it crashes when it is finished decrypting the line. What is wrong and how can I fix it? #include <iostream> #include <string> #include <cmath> using namespace std; bool IsPrime(int p); int main() { int p, q; int n, phi; int e, d; … | |
![]() | I have this code to parse XML file I need to take elements "Name" and write them all to csv header (from every product in XML) with rest of the XML data, but I need values to be as data in csv For Now I can write just header, but … ![]() |
i have a popup hover menu showing diner menus on our business website... couple issues. one, on iphone/ipads it is not showing up by curser, as it does with IE, or firefox... i noticed on chrome, it works, but i did an X and Y offset, that IE and Firefox … | |
hi i have some data in mysql db and i need to create a page where i have a dropdown down box with different categories. when a user select a category from a the drop down it will show data form the mysql table from that category. so how can … | |
Hi there guys i've got a script that's suppose to find the average of two times as strings. The times are in minutes:seconds:milliseconds i'm doing ok in printing the right minutes and seconds my problem is with the milliseconds. **Example if i have 00:02:20 and 00:04:40 the average will be … | |
Hi I am trying to use axis with Tomcat. I am trying to execute AdminClient of axis. I am getting the following error. I get connection refused exception, i donot understand connection to where is refused :sad: Can anybody tell me where I am going wrong. Thanks in advance Srinivas … | |
![]() | HI People, I have following situation. I have an MDI form and a child form which opens upon selecting one of the menus. When this chld form opens it opens with it's defalt size. What I wish to do is open child forms maximized in parent when it(child) form is … |
Im passing a long string to a method that will return the first 20 words, however when i return the value the old value is still in the string. any ideas? My code is as follows: string textContent = txtDiaryText.Text.ToString().Trim(); int NumberOfWords = 20; getLimitedWords(textContent, NumberOfWords); { //do stuff with … | |
I would find Inverted matrix A ... (A)-1 can you help me? | |
#include<iostream.h> #include<conio.h> #include<stdio.h> #include<process.h> struct room { char type[3]; int rmn; int terrif; }; void add(room *,int); void main() { clrscr(); int n,r,modifychoice,c,a,i; room rm[5]; cout<<endl<<endl; while(1) { cout<<"\t\t\t"<<"HOTEL DAVIANS"<<endl<<endl; cout<<"\t\t "<<"MENU FOR HOTEL DAVIANS -"<<endl; cout<<"\t\t"<<"1. Enter rooms record for the hotel "<<endl; cout<<"\t\t"<<"2. Modify rooms records"<<endl; cout<<"\t\t"<<"3. Check … | |
Hello, In trying to port some Java code to C++ I'm disliking the std::stream's lack of copy constructors. I know exactly what the problem is, but I don't know what I can do about it. I have a dangling reference to a stream as a member variable of a class. … | |
actually, I am new to C++ , although not new to programming. i have a vector of pairs , vector<pair<double, pair<int,int> >> and i want to sort it in incresing order. for simplicity, i am using sort() inbulit function. does pair has ibuilt '<' operator ? or we have to … | |
Say I have this class #include <iostream> using namespace std; class Test { int x; public: int GetMax(int a, int b); }; int Test::GetMax(int a, int b) { x = a > b ? a : b; return x; } int main() { // Pointer to class Test *t; int … | |
Please show me what is the correct code to compare the DateAdded (2012-12-26 00:00:00 - its format inside MySQL) and DTPicker (01-01-2000 default format from user input) Sub FilteredQuery() cnDDR.Open "Driver={Mysql ODBC 3.51 Driver}; server=x; port=3307; database=x; user=x; password=x; OPTION= 1 + 2 + 8 + 32 + 2048 + … | |
Hi please help me with this. My head really hurts from attempting to answer this question. Thanks a lot! #define maxCells 1000 #define maxCS 11 #define maxIT 19 typedef struct { char LN[16], FN[24], MI; }nametype; typedef struct studtype { unsigned long ID; nametype name; char course[8]; int yr; }student; … | |
<html> <head> <title>Grade Calculation</title> <script type="text/javascript"> function Add() { var a=parseInt(document.getElementById("fptxt").value); var b=parseInt(document.getElementById("sptxt").value); var c=parseInt(document.getElementById("fgtxt").value); var d=a+b+c; document.getElementById("sgtxt").value=d/3; } //grade equivalent if(sgtxt >= 95&& sgtxt < 100) { document.write("etxt").value=excellent; } else if(sgtxt >= 90&& sgtxt < 95) { document.write("etxt").value=VeryGood; } else if(sgtxt >= 85&& sgtxt < 89) { document.write("etxt").value=Good; } … | |
Hi I'm trying to Select Data from an Access DB. I wrote this query to Select all Invoices that were Invoiced between two dates. I get the following error Syntax error (missing operator) in query expression 'Invoiced >=02/01/13 AND <= 05/01/13' "SELECT * FROM invoiced_filter WHERE Invoiced > " & … | |
So here's the question I've been assigned to and I seriously need help with the C++ coding. Please **Airline Seat Reservation System** A small airline has just purchased a computer for its new automated reservation system. You have been asked to program the new system. You are to write a … | |
Hi all! i was just thinking if there could be any logic behind "starting an application automatically when a prescribed folder is accessed?" More clearly, i need to prevent my data inside a folder, and want the application to get the password from user, if it is correct, application may … | |
Although the program still run fine I am getting a little tired of the warning on my program that I can't get rid of. First one is with a process: Dim NewProcess As Process = New Process If Attachment2TextBox.Text <> "" Then NewProcess.Start(Attachment2TextBox.Text) Here is the warning: Warning 5 Access … | |
I have a FormView that has a datasource bind as a object which is a WCF service. In the WCF Service i have a Object PublicationDetail which has a attribute List<string> authors; I want to join the contents of the list and print them out in the form view however … | |
I am attaching the saved html of a usage report. Basically, it gives you daily usage by date. I needed a better data like the accumulated usage for the month to date of subscription, AND the percentage of quota use ..etc.. I wrote jquery to do that. My first attempt … | |
i dont even know how to title this subject. curious how i would go about inserting data from an array file i have name array.php into my cgi. i have a set of links at the bottom, and i change one of the anchors depending on the season #summer, #fall … | |
I am beginner in c++ programming however I have tried to run my code but I got error and Idonot understanding can you help me thanks:) this is my code #include <iostream> #include <string> #include <fstream> #include <sstream> #include <vector> #include <conio.h> #include <iomanip> #include <map> #include <algorithm> #include "Student.h" … | |
I want to call the button events. here is the similarity of what I want. NB the following code is not working it just the sample to show what I want the code to look like. if Button1.Clicked = True Then ' Do my thing End If So my problem … | |
Hi. I have a select box with the id=1. I need a solution for: when changing the select box with the id=1 to appear another select box with the id=2 and when changing the select box with the id=2 to appear another with the id=3, and so on. I have … | |
Hi fellas, I have a question about disassembled code. I have a very simple assembly code that prints "Hello world" to screen. When I disassembled it by using nasm(ndisasm), I got a text file. After that I opened it and started to analyze it. However, in a section that comes … | |
Hi I have a problem with retrieving first populated, than selected by user quantity from the select dropdown menu. I have several the same numeric type of menus. They contain values 0-20. Event onchange causes the selected number to be displayed in an html div. It works fine. However, if … | |
Hello, I was following series of tutorials http://net.tutsplus.com/tutorials/javascript-ajax/build-a-contacts-manager-using-backbone-js-part-5/ 5 part is not finished yet. BUt I 4 parts are done. In 5th part there is written about .net, but I want to use php. The problem is - application worked fine when I was not using php - only html … | |
Hi, I'm coding a game, i have a form to create player. I use html5 storage to create this. But the problem is if you go to tools>local storage, the password is visible. I want to implement some sort of security to hide this password in javascript. Can someone tell … | |
The function i am writing below is made to time how long it takes to process a function. // return type for func(pointer to func)(parameters for func), container eg.vector clock_t timeFuction(double(*f)(vector<double>), vector<double> v) { auto start = clock(); f(v); return clock() - start; } This is the function i want … | |
Hey guys, yes the title sounds funny, I am working on this project for a special someone, and I want to ask her out by writing her a simple program. I am having some trouble though with the execution of this idea. I have a pseudo code ish plan in … | |
I'm having a bit of a problem and I cannot figure it out. It seems as though code will only write to one keyname I have an inifile [section] key1= key2= key3= And my code Class I'm using from http://www.codeproject.com/Articles/10809/A-Small-Class-to-Read-INI-File stringstream ss (stringstream::in | stringstream::out); CIniWriter MyIniTest(".\\test.ini"); char out[20] = … | |
hey guys so i was thinking of how i would make a program that would state the alphabet from a-z in capitols then the program would change it all to lower case one at a time. btw i would like to use pointers | |
Hello, I have just completed a rather large project which involved data that was less than optimal html wise. Our biggest problem currently is that we have a structure like this: <ul id="postblockinfo"> <li>List One</li> <li>List Two</li> <li>List Three</li> <li>List Four</li> <li>List Five</li> </ul> Text that is suppose to be … | |
Hi, I am planning to create location tracing based on IP and presenting the relevant contents to the user as par his country, similar to msdn website. I have installed the php_geoip.dll and change the ini file too, to include this dll The dll shows enabled in IIS as well, … ![]() | |
Hello everyone... :) I am a student and I have a project to work in but I dont know how to do it.. I have to create a database of the students of the school... I have to include name, marks, date of birth and i dont know what else... … |
The End.