132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for abelLazm

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
2
504
Member Avatar for vegaseat

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 …

Software Development python tkinter
Member Avatar for vegaseat
2
4K
Member Avatar for Rockpile

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
Member Avatar for vegaseat
2
448
Member Avatar for TrustyTony

[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
Member Avatar for e-papa
2
420
Member Avatar for Seattle Slim

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
Member Avatar for jon.kiparsky
2
392
Member Avatar for ddanbe

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
Member Avatar for ddanbe
2
1K
Member Avatar for dare599z

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++
Member Avatar for dare599z
2
283
Member Avatar for november_pooh

hi all.. i want to convert decimal to binary.. best regards..thanks.

Software Development pascal
Member Avatar for Bilal gulbaz
2
3K
Member Avatar for gerard4143

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++
Member Avatar for nileshgr
2
150
Member Avatar for EkoX

Hi.. how to calculate distance between two points.. each point have a coordinates (x,y). please help..

Software Development pascal
Member Avatar for Jx_Man
2
428
Member Avatar for Momerath

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
Member Avatar for Ssyxz
2
737
Member Avatar for chound

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
Member Avatar for aer9998
2
222
Member Avatar for xtianenikkian

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
Member Avatar for AndreRet
2
113
Member Avatar for Momerath

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
Member Avatar for Momerath
2
631
Member Avatar for Ramy Mahrous

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
Member Avatar for vigor
2
1K
Member Avatar for javinpaul

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
Member Avatar for javinpaul
2
158
Member Avatar for NicAx64

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
2
499
Member Avatar for Ene Uran

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
Member Avatar for Flintstone_
2
2K
Member Avatar for Unhnd_Exception

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
Member Avatar for zinnqu
2
983
Member Avatar for Ramy Mahrous
Member Avatar for Rajesha N
2
2K
Member Avatar for PsychoCoder

This snippet takes a string as input and formats it to proper case

Software Development c#
Member Avatar for lipasion
2
2K
Member Avatar for i_suck_inc++

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++
Member Avatar for sonia asim
2
175
Member Avatar for Diamonddrake

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 …

2
224
Member Avatar for james6754

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#
Member Avatar for vedro-compota
2
164
Member Avatar for Diamonddrake

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
2
453
Member Avatar for dark3lf

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
Member Avatar for dark3lf
2
196
Member Avatar for darkagn

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
Member Avatar for darkagn
2
380
Member Avatar for hurkagurk

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
Member Avatar for Mitja Bonca
2
133
Member Avatar for ManicCW

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
Member Avatar for Mariandi
2
342
Member Avatar for mitchems

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 …

Software Development microsoft perl
2
146
Member Avatar for G-Do

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
Member Avatar for woooee
2
1K
Member Avatar for Falkoner1

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++
Member Avatar for burcin erek
2
476
Member Avatar for RFID46616c73

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++
Member Avatar for RFID46616c73
2
1K
Member Avatar for PsychoCoder

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
Member Avatar for srps.software
2
209
Member Avatar for Nathaniel10

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++
Member Avatar for Nathaniel10
2
141
Member Avatar for hondros

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
Member Avatar for hondros
2
166
Member Avatar for William Hemsworth

A small game of pong I put together in about half an hour :) Enjoy.

Software Development c++
Member Avatar for William Hemsworth
2
7K
Member Avatar for vegaseat

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.

Software Development python tkinter
2
726
Member Avatar for FrancoisvdHeide

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
Member Avatar for gusano79
2
174
Member Avatar for WASDted

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
Member Avatar for AuburnMathTutor
2
715
Member Avatar for Lusiphur

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
2
504
Member Avatar for mrnutty

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++
Member Avatar for griswolf
2
410
Member Avatar for vegaseat

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
Member Avatar for snippsat
2
2K
Member Avatar for TrustyTony

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. …

Software Development python tkinter
Member Avatar for TrustyTony
2
442
Member Avatar for EireJoker

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
Member Avatar for arjunad
2
156
Member Avatar for mrnutty

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++
Member Avatar for NathanOliver
2
168
Member Avatar for DaveTran

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
Member Avatar for DaveTran
2
200
Member Avatar for toitoi

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++
Member Avatar for toitoi
2
112
Member Avatar for snippsat

Many of us like wxpython,so is always fun with a new tool.:) [url]http://wxformbuilder.org/[/url]

Software Development python
Member Avatar for joetraff
2
925
Member Avatar for tyler_kid_a

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
Member Avatar for kvprajapati
2
188

The End.