64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for JoshuaBurleson

I'm working on learning GUI development, I'm attempting to utilize the GUI for a user to search the dictionary: my code so far is[CODE]from tkinter import * class Interface(Frame): def __init__(self, master): super(Interface, self).__init__(master) self.grid() self.create_widget() def create_widget(self): self.pwrd= Label(self, text='Address Book') self.pwrd.grid(row=0, column=2) self.searchlbl= Label(self, text='Enter Search Query:') self.searchlbl.grid(row=2, …

Member Avatar for JoshuaBurleson
0
288
Member Avatar for stevenbaron1

Hi Guys, I noticed that in some apps people tend to use the following method in classes without instantiating an instance or defining objects, but this works, could someone explain whether this is a correct way of doing it. (its for a simple data management and interface app) For eg. …

Member Avatar for stevenbaron1
0
168
Member Avatar for bubbinos

Here's what I'm trying to do. I'm making a program that uses an array to store a deck of cards. I have other code written that converts a number between 1 and 52 into numbers and suits. My only issue is that my code to randomly put numbers into the …

Member Avatar for Adak
0
215
Member Avatar for JoshuaBurleson
Member Avatar for JoshuaBurleson
0
225
Member Avatar for jigarsangoi

I wrote the following code for inserting the value in table company_db & database is Company_DB but the value are not inserted into the table table shows null values the code is below: [CODE]Imports System.Data.OleDb Imports System.Data.OleDb.OleDbConnection Imports System.Data.OleDb.OleDbCommand Public Class Newcompany Inherits System.Windows.Forms.Form Private Sub Button1_Click(ByVal sender As System.Object, …

Member Avatar for debasisdas
0
132
Member Avatar for MissJava

Hi all, I really need your help on this as I am just learning Java. I do have an error message which says "cannot find symbol on line 23. Many thanks. [CODE] import javax.swing.JOptionPane; public class averageRainfall { public static void main(String[] args) { //declare variables String[] Month = new …

Member Avatar for MissJava
0
231
Member Avatar for aloi93

This is what i've made so far. [CODE]#include <iostream> #include <conio.h> using namespace std; int main() { int b=1; for (int i=1; i<=5; i++) { for (int k=1; k<=i; k++) { cout<<b; b++; } cout<<endl; } getch(); return 0; } [/CODE] The output is as below 1 23 456 78910 …

Member Avatar for Anuradha Mandal
0
388
Member Avatar for niconico96

Hello everyone. I'm an expert html5/css3 designer, but when it comes to javascript, I don't know anything... I need some javascript code that detects a browser engine (webkit, gecko, etc.) and redirects based on that. I need webkit and gecko to redirect to home.php and all others to redirect to …

Member Avatar for niconico96
0
235
Member Avatar for JoshuaBurleson

In one of the books I'm using to study Python I keep seeing things like: [CODE] class Application(Frame): super(Application, self).__init__(master): self.grid() self.bttn_clicks=0 self.create_widget"""which is another function in the class"""[/CODE] Why is the super necessary for the class if the class it's calling is itself?

Member Avatar for JoshuaBurleson
0
263
Member Avatar for BlackHawck

Look at this program compiled using [I]Turbo c++ 3.0 compiler[/I] Aim is [B]to calculate the factorial of a no[/B]. [COde]#include<iostream.h> #include<conio.h> long double factorial(int); void main() //main function { int inp; clrscr(); cout<<"Enter a positive no. "; cin>>inp; cout<<"factorial is :"<<factorial(inp);//displays factorial getch(); } long double factorial(int a) { long …

Member Avatar for Anuradha Mandal
-1
752
Member Avatar for CSharpUser

Hi all, and thanks in advance for your help. I am trying to write a Linq to XML query that will test attribute values in multiple elements and return the possibly multiple qualifying entries from a main element. The XML I'm looking at is basically like this: [CODE]<ContentList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" …

Member Avatar for CSharpUser
0
2K
Member Avatar for zoraster01

can you help me to code a vb.net program.. i want to have a button that if i click it will add a table in the sql server database.. tnx :)) i really really need this code i only have 1 week to finish dis project :))

Member Avatar for shivya jain
0
132
Member Avatar for vishalbhavsar

hi all, i am trying to do a mini project in java which is totally console based. please suggest me few topics for it...

Member Avatar for amrita111
0
161
Member Avatar for tky

is it possible? i would like create Q&A game with a countdown-timer. if timer=0 then stop the game. how can i do this? Thank you

Member Avatar for qqaa1122
0
634
Member Avatar for Digitalwolf

Hello everyone, i write mostly in java but have recently started picking up c and c++, and i was wondering if there was an equivalent to the java date class in c++ or c? I've searched for a date.h and came up empty.

Member Avatar for Digitalwolf
0
629
Member Avatar for Upoma

I need the dates in a specific range.And i want to get the result in java manipulating from a MySQL database.Now how can i do so. Suppose there are 3 days 17.08.2011,18.08.2011 and 19.08.2011 .I want the dates in the range 16.08.2011 to 18.08.2011 .So how can i manipulate it …

Member Avatar for mKorbel
0
162
Member Avatar for phaedrusGhost

Hi all, For some reason I can't seem to wrap my mind around JOINING tables and getting the data I need from this. I have three tables I am trying to join. I need to count the number of blogs, comments and number of views for each user. I have …

Member Avatar for phaedrusGhost
0
127
Member Avatar for pivotcity

I have been looking at tutorials in regards to isNullOrWhiteSpace to validate user input of a string. but i am unsure how to initialise the method. This is just a code snippet and all i am trying to do is place this in a loop to ensure if user presses …

Member Avatar for pivotcity
0
296
Member Avatar for coroll

Hi all, I want to know how to assin a return value to a variable when calling a regex function. it always returns a bit type of value(its ok). i want that bit type of value tobe cheked whether it is '0' or '1' this is my C# code in …

Member Avatar for coroll
0
181
Member Avatar for Simplicity.

Dear Folks, When I iterate within the very bottom function under the comment "#Update conserved quantities" in this module using for loop (see below), I have noticed that the block of statements below it is not iterated, [CODE] """ """ from numpy import * from math import * from scitools.std …

Member Avatar for Simplicity.
0
3K
Member Avatar for waaliban

Hello friends, I want to write a javascript to list of all files in a folder including files in the subfolders. This is for the scorm purpose to list all the files. some examples are listing files but not listing the files inside the subdirectories. I want the file's full …

Member Avatar for nudelsalat
-1
28K
Member Avatar for Genericusername

Hello, I have written some code that spans 5 different files, which are all in a folder called Employee. The code runs fine without a package, but i have an assignment to package them. When i try to compile the object method which contains all the get and set methods, …

Member Avatar for Genericusername
0
147
Member Avatar for manchurianCEO

Hello, I just revamped a website and rather experimented including absolutely all <head > contents within a single .php file, including google analytics. But I am a little confused now reading the analytics for my website and I wonder if google analytics, being fed to all the pages from a …

Member Avatar for manchurianCEO
0
153
Member Avatar for SamY

I know how to print forms in vb but i wanted to change the page orientation to landscape but the code in the help file is [COLOR=red]:evil:form1.orientation=1 '1 for landscpe and 2 for prtrait:evil:[/COLOR] [COLOR=#ff0000][/COLOR] [COLOR=black]this doesn't work please help[/COLOR]

Member Avatar for agrothe
0
1K
Member Avatar for mikejs

Hi I am trying to save settings on close I have the following code [CODE] Private Sub MainSystem_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing My.Settings.firstRun = Me.RadCheckBoxFirstLoad.Checked = True End Sub[/CODE] and on form load [CODE] If My.Settings.firstRun = False Then RadPanelWelcome.Show() Else RadPanelWelcome.Hide() End If[/CODE] I …

Member Avatar for mikejs
0
143
Member Avatar for ptemedia

Hi, I have seen a lot of people have been having a similar problem to this, but I have not found a solution and so daniweb is the best place to go! Basically, whenever I use: [CODE]<?php include_once "Filename.php"; ?>[/CODE] which I often do for the header, navigation and footer …

Member Avatar for ptemedia
0
277
Member Avatar for Roobin

Hi! Im Im trying to read a some 32-bit registers from a PLC and check if a bit is set. If e.g bit number 8 is set then i have an alarm. If bit 9 is set then it is acknowledged. If there is an alarm i would like to …

Member Avatar for sknake
0
855
Member Avatar for rom.

Hi all. I'm trying to move someone else's app onto a different server (and debug it in the process). Among the onslaught of bugs to squash, theres one I just cant get my head around... I get a parse error on try-catch, and I have no idea why. I've isolated …

Member Avatar for rom.
0
340
Member Avatar for SANJAY26

[CODE]Imports System.Data.OleDb Public Class Form1 Public con As New OleDbConnection Public cmd As New OleDbCommand Public da As New OleDbDataAdapter Public dr As OleDbDataReader Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim oOLE As String Try con.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:\BOND\BOND\bin\database\RBIBOND.mdb;Persist security info=False;" con.Open() oOLE = …

Member Avatar for SANJAY26
0
112
Member Avatar for DaveTran

Hi folks, I was wondering how I can differentiate between file types when using OpenFileDialog. I would like to be able to have the option to load different file types (as denoted by the Filter property) and handle each type in a different way. For example [CODE] Stream stream; OpenFileDialog …

Member Avatar for DaveTran
0
230
Member Avatar for Vaspar

[IMG]http://i25.lulzimg.com/29b7c6.png[/IMG] I used transparent panel and labels... used paint method to round corners... b4 using paint method panels were transparent but now one panel is transparent others are white... in properties it still transparent [url]http://www.mediafire.com/?l7tbtsh00w97pyn[/url] if i select wordpress category panel become transparent.. how i can solve this problem and …

Member Avatar for Vaspar
0
104
Member Avatar for biojet

Hi everyone, Coul you please help me to find the position between Star_poso and end_posi. I have two data Data 1: Num Posi 1 2 2 5 3 9 4 16 5 19 .. .. Data 2: Num Star_posi End_posi 1 1 10 2 15 18 3 26 30 .. …

Member Avatar for d5e5
0
384
Member Avatar for Hani1991

Hello, I found this keyword written everywhere I read about classes, which is __construct. Is it a built-in method or keyword? What does it do? There's another one, which is __clone. What is it too? If they're not built-in, then why are they always preceded by 2 underscores? Thank you.

Member Avatar for Hani1991
0
100
Member Avatar for M.Waqas Aslam

hi ! I want to develop an application in vb.net which can save any open Text Document , Notepad ,Ms-Word ,Ms-Excel etc , The main theme is that my application simple send the SAVE command . i use SendKeys.send("^S") , SendKeys.send("^ + S"),SendKeys.send("{^+S}"),SendKeys.send("{^}+{S}"),SendKeys.send("{Ctrl}+ {S}") . but nothing happening.can Any one …

Member Avatar for Reverend Jim
0
811
Member Avatar for Thropian

So I've decided to make some simple animations with python and I came to the issue of getting parts to rotate and move together. I decided to put parts together on a smaller canvas (canvas for the leg placed on the main canvas) but I can't get the canvas to …

Member Avatar for TrustyTony
0
1K
Member Avatar for D33wakar

I am trying to write a program for searching strings(one at a time)in a text file. To start things off, I wrote this one. [CODE] #include <stdio.h> #include <string.h> #include <stdlib.h> #include <ctype.h> int main() { FILE *txt_file; int chr;/*char read by fgetc*/ int word_match=0; const char* substring ="window";/*search word*/ …

Member Avatar for Narue
0
231
Member Avatar for Jennifer84

Hi, I have a problem with a webrequest with the below code. If I try to request "http://www.google.com", it works fine. But when I try to reach this long URL below with this code, I receive an error: I wonder what this depends on and what could be done? [B]The …

Member Avatar for thines01
0
204
Member Avatar for thompsonSensibl

Hello folks. I am stuck in a problem where I must pair objects of an array with unique partners. I have one array. I must pair each element to each other. Incorrect pairing algorithm would result with repetitions, and pairing with itself. e.g. [CODE]String[] codesArray = {"A", "B", "C"};[/CODE] For …

Member Avatar for thompsonSensibl
0
133
Member Avatar for matleeds

Hi, I'm using Windows Vista, I have Apache HTTP server 2.2 running and am using PHP 5.2.17. I’m having a problem remotely running a php script on the web server. I run this script locally below… [CODE] <?php $file = fopen ("http://localhost/Epointment/testphp.php", "r"); if (!$file) { echo "<p>Unable to open …

Member Avatar for matleeds
0
248
Member Avatar for bLuEmEzzy

Hi guys, Please help! I want the column/cell of my Datagridview to accepts double(1500.50). I declare the cells as TextBoxCell. [CODE] 'In dgvw_EditingControlShowing event : AddHandler tb.KeyPress, New KeyPressEventHandler(AddressOf txtColDgvw_Keypress) 'Calling the Keypress of TextBoxCell[/CODE] [CODE] Private Sub txtColDgvw_Keypress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Try If not Char.IsNumber(e.KeyChar) …

Member Avatar for bLuEmEzzy
0
180
Member Avatar for aldeene

shifting from vb.net to java gives me a hard time!.. I have a little background on java.. but not on Java + Database.. anyone can give me samples or tutorials? I started googling some but hell I can't understand it

Member Avatar for Anuradha Mandal
0
149
Member Avatar for SagarSe7en

Hey Guys im newby to Java! Help Needed! Please Help Needed! This is How it Goes! DAO.java [CODE] private BookRecordViews populateBookObject (ResultSet Results) throws ClassNotFoundException , SQLException { int BookID = Integer.parseInt(Results.getString("BookID")); String BookName = Results.getString("BookName"); String DateOfArrival = Results.getString("DateOfArrival"); String DateOfPublish = Results.getString("DateOfPublish"); String AuthorName = Results.getString("AuthorName"); int StudentID …

Member Avatar for SagarSe7en
0
3K
Member Avatar for Rizi004

Please tell me which server i should install to run the asp files or pages, give the link of the best sever for windows 7 and also tell me the setting of server waiting for your reply Regards Rizwan

Member Avatar for ArtistScope
0
225
Member Avatar for comp_sci11

I'm currently making a program that list all the perfect numbers from 1-1000. and list also its factors. heres my code. [INLINECODE] public class perfect { public static void main(String[]args) { int sum=0; int x=0; for(int num=1;num<1000;num++) { for(int factor=1;factor<num;factor++){ x=num%factor; if(x==0) sum=sum+factor;} if(sum==num){ System.out.print(num); System.out.print("The factors are "); for(int …

Member Avatar for gihariwathsala
0
1K
Member Avatar for mikejs

Hi I am using this code to clear the contents of my panel [CODE] For Each c As Control In PanelEdit.Controls If TypeOf c Is RadTextBox Then DirectCast(c, TextBox).Text = String.Empty End If If TypeOf c Is MaskedEditBox Then DirectCast(c, MaskedEditBox).Text = String.Empty End If If TypeOf c Is ListBox …

Member Avatar for mikejs
0
356
Member Avatar for -==Zero==-

Iam Coding A Small Portal And Need Help This Is My Code [CODE]echo "<div class='posterdecoration'><img src='$row[scr1]' width='640' alt='$row[name]' /></div>"; echo "<div class='posterdecoration'><img src='$row[scr2]' width='640' alt='$row[name]' /></div>"; [/CODE] When I Put Scr1 + Scr2 From Site Panel It Show On The Site I Need To Use <If Condition> On The Scr2 …

Member Avatar for -==Zero==-
0
113
Member Avatar for emorjon2

Hi all! I want to start making apps for android phones. The problem is that I have installed Android SDK, JDK 7 and eclipse, but failed to complete the install of the ADT plugin. I have install the plugin, but I can't configure it. the guide on android developer saids: …

0
146
Member Avatar for ben1996123

Hello, I just downloaded the [url=https://mattmccutchen.net/bigint/]big integer library[/url], and I want to use it in my prime number checking program. I downloaded the zip file and got a bunch of .cc and .hh files. I need to know what to do with the files, where I should put them, and …

Member Avatar for ben1996123
0
240
Member Avatar for evilguyme

hey guys! i was just wondering all these large games make use of footholds to make a character stay is there any way in C++ to make simple footholds? im making a stick platform game and am tired of using collision checking to make it work all the time for …

Member Avatar for evilguyme
0
98
Member Avatar for lcfjoertoft

I have the following connection string in a Excel VBA project: oCon.ConnectionString = "Driver={SQL Native Client};Server=SQL;Database=D1; Trusted_Connection=yes;" On my laptop this works perfectly. But when I try it out on another computer I get an error: I get this error when oCon.Open on debugging: Run-time error '-2147467259(80004005)': Automation error Unspecified …

Member Avatar for lcfjoertoft
0
157

The End.