132,726 Archived Topics
Remove Filter ![]() | |
Add this code any where in your main form and You will be able to disable the [B]X[/B] button on a winForm Software Development | |
The tkSnack sound module was developed at KTH in Stockholm, Sweden. A great module to generate sound, play and analyze sound files and speech. It was written using Tkinter and its native TCL language. Alas, the latest release is from 2005. However, the important file tkSnack.py can be converted to … | |
Hello, is this a bug? I get different results when I run this from command prompt and IDLE. [CODE] name = input('Hello what is your name: ') print('Hello ' + name + '.') [/CODE] From IDLE, it works correctly. The result shows as Hello Bob. If I run the program … Software Development python | |
[URL="http://www.pyside.org/"]PySide[/URL]: Python for Qt 1.0 released! The PySide team is thrilled to announce the release of PySide: Python for Qt version 1.0.0. In addition to the source code release, project community packagers have already released binary packages [developer.qt.nokia.com] for all major Linux distributions, Microsoft Windows, Mac OS X, and Nokia’s … Software Development microsoft-windows os-x python qt | |
I see some comments about Objective C or Cocoa however their does note seem to be a specific area for such comments. Objective C would be a good listing below the other languages. Any serious OSx iPad or iPhone developers would look here first for information. Since there is more … Software Development apple ipad iphone objective-c | |
The DataGridView class is huge and complex. It is a beast I'm still struggling with, but once you learn to comprehend it, I find it most rewarding! Some try to circumvent it by using listboxes and the lot. Why don't get your feet wet with this as basic as it … Software Development vb.net | |
Hi all! I'm a beginner to C++ and wanted to try my skill at creating a decimal to binary converter in the console. I tried two different methods, but I failed at both. My first program was an attempt at being organized and using multiple functions and snaking the output … Software Development c++ | |
hi all.. i want to convert decimal to binary.. best regards..thanks. Software Development pascal | |
I'm wondering what is the proper way to point at an overloaded function. Is it correct to cast the function to the proper type? [code] #include <iostream> int double_it(int x) { return x * 2; } int double_it(int x, int y) { return (x + y) * 2; } int … Software Development c++ ![]() | |
Hi.. how to calculate distance between two points.. each point have a coordinates (x,y). please help.. Software Development pascal | |
When Microsoft was developing Windows Vista (and they continued this in Windows 7) they decided to add a security feature to the Program Files directories. This feature is that all the directories are read only. The idea behind this is to prevent malicious software from overwriting your exe/dll files. This, … Software Development windows-vista | |
Is it possible to create programmes to run on coumputers thad do not have any operating systems? :evil: :cheesy: :sad: Software Development c operating-system | |
Good day, I have a system and it has a studentdatabase.mdb database, ive putted password into the .mdb file and now when I run the .exe file of my vb6 program it says Not a valid password, Question: How can I automatically put the password of the .mdb file when … Software Development visual-basic | |
Sometimes we need to generate sequence and perform some process on the results. This usually results in some code like this (We'll be using the [URL="http://en.wikipedia.org/wiki/Fibonacci_number"]Fibonacci sequence[/URL] in these examples): [code]void MyMethod() { // What we want to do is output to the screen the first 10 Fibonacci numbers // … Software Development | |
Here's I wrote some code to move controls on the form 1- Assign (Control_MouseMove, Control_MouseDown, and Control_MouseUp) to the controls you need it movable. Software Development | |
Hi Guys, I am a relative new member in this forum , My name is Javin Paul and I am Java programmer. I have question related to garbage collection in Java Does garbage collection occurs in PERM Area of Java Heap ? As per my knowledge PERM area is used … Software Development java | |
circle.h [code] // // circle.h // defines the functions to draw circle. // #ifndef CIRCLE_H #define CIRCLE_H #include <windows.h> typedef struct tagCircle { int x; int y; int radius; } Circle; /* set the window handle */ void SetWindowHandle(HWND); /* set pixel @parms int x xposition @parms int y yposition … Software Development c++ operating-system | |
You can download the matplotlib free from: [url]http://matplotlib.sourceforge.net/[/url] It has, amongst many other things, the module pylab that allows for high quality plotting of data. All you have to do is to feed it a list of x values and the corresponding list of y values calculated from the x … Software Development python | |
![]() | Hopefully someone searches this one day and it becomes useful. I never found anything. Below is the vb syntax for combining numbers in the same memory address. [code] Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim LngWord As Long = LngMakeWord(Integer.MaxValue, 65489) Dim LoLng As … Software Development vb.net |
1- Handler TextBox Key pressed event handler. Software Development | |
This snippet takes a string as input and formats it to proper case Software Development c# | |
this code was workin when i used srand function to fill th e array with random numbers and the array was a declared globally.But now the code is not working.I cant find anything wrong in this .Sombody pls help.. [CODE=CPP] #include<iostream.h> int *a,NUM_ITEMS; int main() { void enterdata(); void quicksort(int,int); … Software Development c++ | |
A project I am working needed a question style message box, but I wanted that contemporary look of Vista and Seven. I set out to see how it was accomplished, turns out there are some special APIs that exist in Vista and Seven that don't exist in XP that accomplish … Software Development api daniweb-api windows-api windows-vista-7-8 windows-xp | |
Hi everyone...I am at University and learning C# for my software development modules. Presently I am mostly using "Beginning Microsoft Visual C# 2008" (although I find C# for dummies pretty good!). Its always the case that some books suit people better than others and they find them easier to understand. … Software Development c# | |
I needed a very simple multi-line label control for a project I was working on, It had very simple requirements. It needed to draw text in any font, in any color, on multiple lines with vertical and horizontal alignment control. So I hacked up this little class. Just as easy … Software Development | |
Hello, I am writing a program in python that detects inserted usb drives using dbus in linux and copies all of the files from it over to a dir on the computer. Here's my code: [CODE] import dbus import gobject import shutil import os import subprocess import time def move_files(pth): … Software Development file-system pc-peripheral python | |
Hi all, Well this is my 1000th post here at DaniWeb and I thought "What better way to celebrate than by posting my first ever code snippet?" This problem occurred in an application that I am working on. I have a password field in my form that was specified as … Software Development windows-vista windows-xp | |
I have a parent form (Form1) that holds four childForms (childForm1, childForm2, childForm3, childForm4). The childForms can get pretty big, and I'd like the user to be able to use the scrollwheel on their mouse to zoom the screen in and out so that they can get a 'big picture' … Software Development | |
When you are programming web pages it is very important to optimize your code for better and faster performance. In this part I will show you how to optimize code for filling multiple dropdownlists with data from Microsoft Access. The same thing is with SQL Server. I'm using asp.net 2.0 … Software Development asp.net microsoft-access vb.net | |
Hi all, There are not too many threads that I start, but I wanted to share with you all something I discovered last week that saved me tons of time. I have a program, which is way to long and complex to post here, that basically opens excel, reads data … | |
Here's something of mine that might actually be useful: a Python implementation of the K-means clustering algorithm. I wrote something similar last year in Java for a school project, and decided to rewrite it in Python this summer for practice. The purpose of the algorithm is to discover internal structure … Software Development algorithm data-structure python | |
Yes, I have read the sticky MANY times, however it does not help me with my problem. The issue is that I have a program where [icode]getch()[/icode] is used in conjunction with [icode]kbhit()[/icode] in order to only recieve input when the user hits a key. The problem is that if … Software Development c++ | |
Doing this project 1 step @ a time but the multiple files are starting to get confusing. Lemme start by telling you all what I need to do, then show you what I've done, and then maybe you can tell me if I'm on track with this or if I … Software Development c++ | |
A C# snippet demonstrating how to merge 2 files (of any type) into a single file. Need a reference to the System.IO Namespace Software Development | |
I am learning C++ from the Stroustrup book "Programming Principles and Practice". I have been doing the exercises in each chapter. I have gotten stuck on chapter 6. I understand the concepts of classes, constructors, functions, and 'throw and catch' error handling, but seemingly not well enough to actually write … Software Development c++ | |
Well, since there was no option for "tutorial" in the type of post, it has been created as a simple thread... Obfuscation - confusion resulting from failure to understand obfuscated code - Code that is hard to read In this tutorial, I will show you how to convert something readable, … Software Development python | |
A small game of pong I put together in about half an hour :) Enjoy. Software Development c++ | |
Python programming can have its lighter moments. Here we use one of those moments to draw an optical illusion using the Tkinter canvas to draw a rectangle, some lines and circles. | |
Hi, I'm trying to write a licensing module of my C# Application. The license file is a basic text file saved on the clien'ts machine which includes an encrypted 64BaseString. Up and until now I've used the Rijndal method for encrypting and decripting the string and matching the license up … Software Development c# encryption | |
DaniWeb plans to interview Bjarne Stroustrup, the designer and original implementer of C++ and the author of many books on C++. This is truly a treat and rare opportunity for us as a community to talk to the father of C++. As the new editor-in-chief of DaniWeb's News and Reviews … Software Development c++ daniweb-feedback microsoft | |
As suggested by Duki in [URL="http://www.daniweb.com/forums/thread298488.html"]this thread[/URL] I figured I'd compile all the workable examples and explanations here towards the question of "Why do we use get/ set to change properties?" [QUOTE=pritesh2010]Properties provide the opportunity to protect a field in a class by reading and writing to it through the … Software Development data-protection data-structure | |
This is a simple demonstration of meta programming. It shows the idea of meta programming. It basically calculates the factorial of a number before runtime. When I first saw the concept of meta programming, it blew my mind so badly. I was so surprised that one could do this. Its … Software Development c++ | |
A simple program to count the words, lines and sentences contained in a text file. The assumptions are made that words are separated by whitespaces, and sentences end with a period, question mark or exclamation mark. Software Development python | |
From python.org official website: [URL="http://python.org/download/releases/2.7/"]Python 2.7[/URL] [B][I]Python 2.7 was released on July 3rd, 2010[/I].[/B] Python 2.7 is scheduled to be the last major version in the 2.x series before it moves into an extended maintenance period. This release contains many of the features that were first released in Python 3.1. … | |
Hello Daniweb :) I am currently doing a programming assignment for college and have hit a brick wall. I am getting an error while trying to fill a combo box. [CODE]Private Sub Form_Load() 'Fill the Network List With adoNetwork.Recordset [COLOR="Red"] Do Until .EOF[/COLOR] If !Networks <> "" Then cboFilterNetwork.AddItem !Networks … Software Development visual-basic | |
Its this side thing I was working one, when I got the chance. Its not very good right now, as its still in its developing stage. But its still ok, where I can show it of, lol. Attached is an exe, that given a set of data points, it tries … Software Development c++ | |
When using OR with an if statement does the computer check both statements if the first statement returns true? [CODE] bool a = true; bool b = LongComplicatedMethod(); if (a || b) { Console.WriteLine("Hello"); } [/CODE] So say the boolean b has its value determined by a long complicated algorithmic … Software Development | |
Hi, If I static cast an object of a derived class to its base class, the object's virtual methods should be those of the base class. But this doesn't seem to be the case if I call such a virtual method via another method. The following is an extremely simplified … Software Development c++ | |
Many of us like wxpython,so is always fun with a new tool.:) [url]http://wxformbuilder.org/[/url] Software Development python | |
I have code such as this: [CODE=C#] string url = "http://en.wikipedia.org/wiki/Earth"; System.Windows.Forms.WebBrowser wb = new System.Windows.Forms.WebBrowser(); wb.Url = new Uri(url); [/CODE] but after that last line wb.Url is always null. Also, if the last line is replaced with: [CODE=C#] wb.Navigate(url); [/CODE] wb.Url and wb.Document are always null. What is going … Software Development |
The End.