132,726 Archived Topics
Remove Filter ![]() | |
I would like to allow only certain keys to be valid for my TextBox control. I have set it up as follows and it works fine. [CODE] private void TextBox_MapInputMin_KeyDown(object sender, KeyEventArgs e) { if (!IsFloatingPointTextBoxValid(e, textBox_MapInputMin)) { // 'Handled' property stops key from being entered into the control e.Handled … Software Development | |
Can anyone please help me in finding out whether the below code causes memory leak or not. If it doesnt cause leak wat modification i can do to make it leak. Thank You Here is the code in FORM1 [CODE]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using … Software Development c# | |
I recently went and compiled my Tkinter application into a standalone app using py2exe. It seems to work when python is installed on the computer but when it is not installed, it shows the error - 'This application is not configured properly. Reinstalling the application may help', I read elsewhere … | |
I have my code set up so I can 1)select what image and 2)the coordinates of the mouse click where the image is going to be placed. What it currently does it place the right image in the right coordiantes but if I click again somewhere else, it replaces the … Software Development java | |
Hi all, i have a table "Contracts", with fields CompanyNumber, MaturityDate and other fields. i have a form in vb.net, with a textbox that should check if the entered company number exist in my db, if it does it should check whether the maturity date is bigger or less than … Software Development open-source vb.net | |
I have been trying to make my program load the images while using web start with no success. The following code is inside an extended JButton class. Image is a string containing the address of the desired image ("0.jpg", for example), I know that this would only work if the … Software Development java | |
Made a small project to help compare two files that I am testing...but for some reason the line I highlighted isn't working as its supposed to. I originally had [CODE]c1 != c2[/CODE] and then changed it to [CODE]!strcmp(c1, c2)[/CODE] Maybe its a dumb logic bug, but would appreciate some help … | |
How to write the recursion code in calculating the sum of the array elements at odd value? I understand the factorial example using recursion, but I am having a really big trouble when writing the recursion codes to perform anything else on my own :/ Please help with this task … Software Development java | |
I am having a problem setting the initial value in the new Tkinter tix module. Can anyone help me out? [code]# explore the tix.ComboBox() # the Tix (Tk Interface Extension) module comes with the # Python27 and Python31+ installation try: import Tix as tix # Python27 except ImportError: import tkinter.tix … | |
I have a code designed to show the different spaces a knight can move to in a standard chess game. It needs to be a function created that outputs the possible spaces in tuples. I can't figure out how to make the output in tuples and I would appreciate it … Software Development python | |
Hi guys, I am new on this forum and I would like you to help me out regarding to the actual errors that I have got. I am using managed c++ as I have switched over from vb.net, however I need your help because I couldn't figure out the solutions … Software Development assembly c++ microsoft-access | |
Hi everyone, I'm trying to create a program that you can use to communicate to other people with the same program. It connects to a Server program that gets your message an send it to everyone. I found 2 problems that I haven't been able to solve. The first one … Software Development gui java lan-wan socket-programming | |
Most web browsers print the web site's title in the form text. So I want to do the same thing on navigation if possible. [code]// Only prints the URL. So please help. string siteName = webBrowser.Url.Host; this.Text = siteName;[/code] Much thanks! Software Development | |
Hi ~ I am getting a strange [B]RunTime Error[/B] while debugging my code. Run-Time Check Failure #2 - Stack around the variable 'player' was corrupted. Code is below. Would love some help on this one. Thanks. ps ~ I realize that system("pause") is frowned upon but it is what we … Software Development c++ | |
Implement a class Person with two fields name and age, and a class Car with three fields: (1). the model, (2). a pointer to the owner (aPerson*), (3). a pointer to the driver (also a Person) Write a program that prompts the user to specify people and cars. Store them … | |
hey i need a to write a program that when given an interger reduces it to prime factors. the interger is guarenteed to be less than 900 Software Development python | |
I was wondering if I partially specialize a class (which I'm understanding to mean hardcode some of the template parameters?) if I have to implement all functions or if I can just implement some functions. I put together a demo: [url]http://programmingexamples.net/index.php?title=CPP/Templates/PartialClassSpecialization[/url] Where in the main class definition there are two … Software Development c++ | |
i have a problem about compare arrayList and sortedlist. my arrayList are shown below: 1 2 1 3 1 2 2 3 1 2 3 1 3 2 3 1 2 3 my another sortedeList are shown below: (1): 4 (2): 4 (1 2): 3 (3): 4 (1 3): 3 … Software Development | |
alo guys,, do you have turbo c installer please send me a link where to download i need it, i want to practice c programming language... thanks Software Development c | |
So I need this to print when vowel you entered instead of just telling you that you wrote a vowel. I'm straight up not sure how your suppose to do that! I went ahead and wrote the code for inputting vowels not sure whats next. [CODE] #include <iostream> using namespace … Software Development c++ | |
I have a [ICODE]JFrame[/ICODE] window to which I am trying to add 3 panels. One panel is for input (text areas and their labels which I already have arranged within the panel), one is for a set of buttons, and one is for output. I want the the input and … Software Development java | |
Hi, I need suggestions on how to count the words, letters, characters on a file . I created a program of it however, when i use the "seekp(0L,ios::beg);", it doesn't go to the beginning. I want to just close and re-open the file but I think there is a better … | |
Calling “paint” should be by: [CODE]System.Diagnostics.Process.Start(@"C:\Windows\System32\mspaint.exe");[/CODE] Am I right? What’s the minimum code around it needed to make it work in a windows form application? Software Development c# | |
Well I'm working with structures and need some help with a program. Now if the user chooses to deposit more, I need it to add to the last amount entered... But I'm not sure how to go about doing so. [CODE]#include <iostream> using namespace std; struct the { int num; … Software Development c++ | |
I've been scouring the internet and my textbooks and haven't found any good explanations about how to incorporate hexadecimal numbers into my C++ code. I am currently working on a program that acts as a simulated computer environment to run a simulated machine language in the console a maximum of … Software Development c++ | |
Hi,i want to access the filename of a any file using python.Ex. Suppose a folder contain some files Picture1.jpg,picture2.jpg,mypic.jpg..etx i want to make a program which will print all the file name Picture1.jpg picture2.jpg mypic.jpg of the certain folder.And the folder can have random file name but with .JPG extension. … Software Development file-system python | |
anyone can tell me how to use and reset hashset and intersect? hope someone can help me..thank you so much. Software Development | |
Hi everyone , I'm learning C for couple of months and now I have a project in which I have to make the snake game in text enviroment !! So please someone tell me how can I do that and what I need to learn ?? remember it just has … Software Development c | |
Hi Guys, I am trying to list the name of all tables which belong to a selected database from the comboBox1(which is populated from SQL Server 2008).I used the following code but it seems it is just adding all System Tables! to listBox1 instead of choosing tables from selected database. … Software Development open-source sql | |
I am just learning c++ and, I am trying to create a function out of the lines that are surrounded by stars. I am at my wits end! Does anyone have a suggestion or reference that might help me figure this out. Here is my code: [CODE]int a, b, c, … Software Development c++ | |
this is my code and i want to do this function to be general, how i do it? [CODE]#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <stdlib.h> #include <string.h> void * DoIt (void *arr, int elemSize, int numElems, void (*f) (void *)); void Sqr (void *x); void main( ) { double a[3] = … Software Development c | |
Hi all, I have an image 300x300. What I need to split into 100 regions or boxes. The code im using is below: [CODE]box = (a1,a2,a3,a4) h8 = bill.crop(box)[/CODE] The values of box I had as 0,0,30,30 for the first one. Next box as 30,30,60,60, next one as 60,60,90,90. But … | |
Hi All, I am trying to update my form once the delete button is clicked. There are several fields like Name, Date, Date of Birth and so on. Once I delete a record I want the form to automatically load with new / updated data. This form fetches data from … Software Development asp.net vb.net visual-basic | |
HI im having some trouble to create new GUI using python Tkinter module. [CODE] from Tkinter import * import Tkinter as tk import tkMessageBox import tkFont class GUIFramework(Frame): """This is the GUI""" def __init__(self,master=None): Frame.__init__(self,master) self.pack(padx=100,pady=100) self.master.title("Lab Management Hosts") self.costumFont = tkFont.Font( family = "Helvetica", size=30, weight="bold") label = tk.Label(master, … | |
Hi, I want to close a form, when another form closes. Basically, I have a search form that opens up a results form, which contains a dataGridView only. when the user closes the results form, I want the search form to close also. Is this even possible? Thanks Software Development | |
Hello, I need help making my shell in c. The shell needs to ignore spaces, this means that you can put the spaces you want an the command needs to work, I already resolved that problem, the next problem is that if you put ; two commands need to be … Software Development c shell-scripting unix | |
So here's my assignment: Define a class Quiz that implements the Measurable interface. A quiz has a score and a letter grade (such as B+). Use the implementation of the DataSet class in Section 9.1 to process a collection of quizzes. Display the average score and the quiz with the … | |
Hello, I have a segmented region in an image, it is not rectilinear. Just a random shape without right angles , much like a circule. I want to calculate the mean on that shape. so I can plot the mean as a starting poiny for drawing a vector. I have … Software Development c++ | |
Hi all i want to display two unrelated tables in the same datagridview. I m using merge method of datasets but in vain. Any idea Plz Software Development | |
Please enclose code or link for implementation of monte carlo methods. Thanks in advance Software Development c | |
hi..i finish my intersection. Now i need to convert the output in the array. Now, my output is in hashset. i need to convert back to array. my output now is like this 2 1 2 1 3 2 1 3 4 And now, i wan them to become like … Software Development | |
Here is Assignment07: [CODE]public class Assignment07 { public static void main(String []args) { Asn07Employees emps = new Asn07Employees(ids, hours, rate); Asn07Employees allEmps[] = new Asn07Employees[7]; int ids[] = {5658845, 4520125, 7895122, 8777541, 8451277, 1302850, 7580489 }; int hours[]={ 12, 15, 7, 16, -1, 20, 15 }; float rate[]={6.5f, 12.5f, 1.5f, … Software Development java | |
This program is supposed to simply take user input and output it in the right format. It keeps giving me an error message. I cant figure out what is wrong and would appreciate some help. [CODE]#include <iostream> #include <iomanip> using namespace std; int main() { string date[9], dollars[3], cents[3], first_name[20], … Software Development c++ | |
Hi, I'm having trouble getting my summation function to work using recursion. I am reading in a set of 10 numbers from a file into an array, then printing the array out using recursion, then I have to take the summation of 1-last number in the array (Ex 1-14). The … Software Development c++ | |
My program talks to a USB device over a serial connection. I have WMI ManagementEventWatchers watching for the device to be plugged in and unplugged. If I try to enable, disable, or change anything about the GUI from the event handlers for the WMI Events, I get a InvalidOperationException because … Software Development gui | |
I am supposed to take this program and use a method to tokenize the inputted string into words and store them into an array of strings. Then use another method to print the array element one word per line. I need help on the first method, trying to tokenize and … Software Development java | |
Hello Everyone I was instructed to do the following but came up with 10 errors which are listed below can anyone please help with this. Write a sentinel loop that will sum all positive integer values entered; use a negative number to end the loop. Be sure to test for … Software Development java | |
I want to create a system to filtering a URL in python hungryforwork.co.nz/company/job/ eg hungryforwork.co.nz/telecom/5/ I want to put out the telecom and lookup this company and then 5 for a reference to a listed job Putting a folder for each company would be a mission. An error 404 might … Software Development python | |
Is it possible to overload an operator for a built-in type? And if so what is it's syntax? EG: [CODE]//Use of overloaded operator^ for types double and double (assuming it is overloaded for exponent): double a=10.0; double b=2.5; double pow=a^b;//pow is approximately 316.22....[/CODE] Software Development c++ | |
Okay I'm trying to set up an open file dialog to grab a dll of my choice, then inject it into the application. I know how to use my own custom DLLs, but I also want the ability to make DLLs then use them without modifying the source after run … Software Development open-source |
The End.