43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for khRiztin:)

i need to make a simple paint application using java where i need the function of BRUSH. i don't know much about UI. please help me. thanks.

Software Development java
Member Avatar for khRiztin:)
0
786
Member Avatar for Dartz654

I think I already know the answer to this, but just to be sure, is there any way to connect to a MySQL database in VB?

Software Development mysql vb.net
Member Avatar for Teme64
0
93
Member Avatar for murjam

Hello This is my first post on this forum. I have found that this place seems to have lot of knowledgeable people when it comes to Python. Anyway I'm quite new to GUI programming and I'm not exactly having a huge problem but I'm more interested about how to make …

Software Development gui python tkinter
Member Avatar for TrustyTony
0
157
Member Avatar for chade25

First let me say, please don't post code back all fixed. If you see where the error is, just tell me where it is and I will look to find it. Thanks, much appreciated! [CODE] /* void processCmdLine(void) Function: parses the command line using gettok(), and constructs an argument list. …

Software Development c
Member Avatar for chade25
0
144
Member Avatar for TrueVb.NetNoob

Hi Everyone! Is there anyway to create A program which can demonstrate the following function: A capsule machine(Similar to a candy machine),when you,say,insert a coin into it and can randomly pop out a capsule containing an item in it? How(or any possible way)is to code the probability for a particular …

Software Development vb.net
Member Avatar for TrueVb.NetNoob
0
126
Member Avatar for crapgarden

Is this: A)[CODE]while (!isLegal(move, board))[/CODE] the same thing as: B)[CODE]while (isLegal(move,board) = !!)[/CODE] ?

Software Development c++
Member Avatar for crapgarden
0
147
Member Avatar for usiyalla

hi guys i'm new in java and this site too i was making a small program but this mismatchexception making me angry i really appreciate if u answer my these stupid questions 1. what is token... 2. Exception in thread "main" java.util.InputMismatchException at java.util.Scanner.nextInt(Unknown Source)[/TEX][/TEX][/TEX] at java.util.Scanner.nextInt(Unknown Source) at Main.check(Main.java:63) …

Software Development java
Member Avatar for NormR1
0
1K
Member Avatar for aea414

Hello all, I think am having problem getting the add_to_list function below to work. I created it so that it accepts a pointer to a linked list, a pointer to a char array (string) and a number for occurrence of the word. [CODE] #include <stdio.h> #include <stdlib.h> #include <string.h> #include …

Software Development c file-system linked-list
Member Avatar for aea414
0
204
Member Avatar for Toulinwoek

I have a combo box on a form (MainForm) that's bound to a column in a database table. I want this combo box to get it's list of selections from a second table (LocationsTable). Items are added or deleted from LocationsTable via a second form (frmLocations). If I have MainForm …

Software Development perl
Member Avatar for Toulinwoek
0
85
Member Avatar for chade25

I am trying to write my own shell. I am having problems with the user input part. I have made an array (char inputBuff[512]) and I want to read in user input. I am using ffputs() and ffgets() but I want to limit the person to the 512 size, and …

Software Development c
Member Avatar for chade25
0
118
Member Avatar for rowley4

I need to write a program that implements the reverse function using a recursive solution by removing the first character, reversing a sentence consisting of the remaining text, and combining the two. I have written this code below. I have two problems. 1, I am getting a fatal error on …

Software Development c++
Member Avatar for rowley4
0
330
Member Avatar for jay200032

Hi Everyone, I want to create program, with different forms, in that it would have a main form in which if the user decides to select other forms, it would change right in the main form, so disallowing the user from noticing that he/she is viewing another form. Is it …

Software Development microsoft vb.net
Member Avatar for ÜnLoCo
-1
169
Member Avatar for kate2mba

Wirte a regular expression pattern to match all words ending in s. This is what I got but seems like im thinking to hard on it, plus of course its not working lol Please help! :) [CODE]import re str = "Subs are everwhere" print (str) matchObj = re.match(".*?s ",str,re.L|re.I) if …

Software Development python
Member Avatar for kate2mba
0
151
Member Avatar for abcdr

I need to write a function that takes a string as an argument and outputs the letters backward, one per line.so far I have this: [code] def wordReverse(word): acum = "" for ch in word: acum = ch + acum return acum [/code] I tried adding \n to acum but …

Software Development python
Member Avatar for TrustyTony
0
199
Member Avatar for kate2mba

Hi all its me needing help again :P My exercise says: Write a function wordPop that accepts a text and a length N and returns the list of all the words that are N letters long, sorted by their length. okay so what I have is 2 fuctions first: [CODE]def …

Software Development python
Member Avatar for kate2mba
0
187
Member Avatar for WargRider

Well, I am writing a game / engine in 2d in , and I have gotten quite far, my problem is I was reading some stuff about the engine Slick2D, which is pretty much one of the most popular 2d engines in Java, I noticed that the creator said he …

Software Development java opengl
Member Avatar for WargRider
0
305
Member Avatar for superjacent

I'm self studying from the book, C++ Primer Plus Fifth Edition, by Stephen Prata. The following relates to Chapter 13, Page 699, Programming Exercise #4. One task is to write the derived class method definitions based upon the given prototypes. The following are the said prototypes. [CODE="cpp"]class Port { private: …

Software Development c++ ruby
Member Avatar for sheldonrobinson
1
59K
Member Avatar for avataralien

I am not sure what is wrong with my While Loop because if select ("Press 0 to edit info."), I will not get prompt for "Name" anymore. Another thing is my exception does not work. I wanted to deny user from entering alphanumeric under "Mobile". Only numeric allowed here. Pls …

Software Development java
Member Avatar for avataralien
0
119
Member Avatar for Ubraxis

I require some help with a program I've got to write, the theory behind it is based around OOP, but I'm having trouble grasping what exactly I should be doing. I'm not entirely sure how to call the addProperty method from the Property class, or even that I've written out …

Software Development java oop
Member Avatar for Ubraxis
0
102
Member Avatar for danswater

Hi again guys. Well i need to convert char to int my problem is how can i get the exact value of int if for ex: [CODE]char x=2;[/CODE] i need to convert that to integer.

Software Development c
Member Avatar for rax_19
0
117
Member Avatar for Jollyyy100

Hi, would u please help me with the buttons i use on my vb.net forms. I want a way in which if i drag my mouse onto a particular button it would increase its size and if i click onto it, it can respond to the codes. May be like …

Software Development gui vb.net visual-basic
Member Avatar for Jollyyy100
0
176
Member Avatar for prem2

Hi, I have a few basic doubts in java . Statment: class MainExample1 {public static void main(String[] args) {}} class MainExample2 {public static void main(String []args) {}} class MainExample3 {public static void main(String args[]) {}} 1.What is the difference between the above three statments.? 2.Why main method should be declared …

Software Development java
Member Avatar for tong1
0
111
Member Avatar for need help!

I use windows-xp python 2.6 Could I have your help. I need to hide and then show a Tkinter root window. And also "remove" the exit, minimize and maximize options. I can't do it like this! root.hide() #do some stuff root.show() Root.hide works but root.show doesn't. No Exception thrown. :(

Software Development python tkinter
Member Avatar for hayathms
0
11K
Member Avatar for abcdr

I am trying to square each number in the list under [I]nums[/I]. But I don't know how to do it. I got this so far: [code] def squareEach(nums): for i in nums: y=i*i return y [/code] What is happening here is it's counting how many numbers are in the list …

Software Development python
Member Avatar for TrustyTony
0
451
Member Avatar for TrueVb.NetNoob

Hi Guys! I have problem coding with a vertical Scroll bar. I made a label in form1 and a vertical scroll bar next the it on the right side. The vertical Scroll bar is to scroll down the label if the label is full of text. Here is my code …

Software Development vb.net
Member Avatar for TrueVb.NetNoob
0
117
Member Avatar for Zinderin

Still learning here... this is my method to get the record count of a table ... it works, but it seems like a lot of coding for something so simple. Is there an easier way? [CODE] public int GetTableRecCount(string table) { //Set up the connection and adapters... OleDbConnection myConn = …

Software Development dataset
Member Avatar for Zinderin
0
480
Member Avatar for Jerompie

Hello DaniWeb, This is my first topic here at DaniWeb. I have always been a great fan of this forum mostly for C# solutions. Iam a 3rd year student IT. Now I have a problem. Iam trying to make a application that checks if IP + Port is online.( it's …

Software Development client-server
Member Avatar for Teme64
0
238
Member Avatar for Cap'nKirk

Hi, my app needs to have an internet connection to run correctly, so I have been trying to implement a piece of code to check for the availability of a net connection. [CODE] private void Form1_Load(object sender, EventArgs e) { HttpWebRequest req; HttpWebResponse resp; try { req = (HttpWebRequest)WebRequest.Create("http://www.google.com"); resp …

Software Development
Member Avatar for farooqaaa
0
195
Member Avatar for DawnyB

For my intro to programming class i have to design a game where a ball is shot at an angle and hits squares that are worth points. I have two questions 1.How do you get the ball to move. I was given this code but I don't know if I …

Software Development gaming image python
Member Avatar for Archenemie
0
1K
Member Avatar for potato4610

This code is used to reverse a number in C++ but I have a problem. When I input 1010 or -1010, the output is -101 and 101. How should I fix this?[code]/* Christopher Langford U05799189 * clang4d@gmail.com * Assignment 3 Exercise 3 * July 23, 2010 * Macbook Pro w/Mac …

Software Development c++
Member Avatar for Duki
0
592
Member Avatar for GAME

My program won't display all the text on a webpage, it basically only reads the first line. I am using a rich textbox to display the text. [code] void readrss() { try { newstxt.Text = string.Empty; StreamReader x = new StreamReader(WebRequest.Create("http://www.xample.net/").GetResponse().GetResponseStream()); newstxt.Text += x.ReadLine(); x.Close(); newstxt.Text = newstxt.Text.Replace("<", "•"); } …

Software Development
Member Avatar for GAME
0
105
Member Avatar for SHENGTON

Hello, good day. :) I got a problem with "passes occurred". This is the only problem left in my program. My program is about Naive Searching and Binary Searching. There's no problem with my "Naive Searching". The problem is the "Binary Searching". [b]Naive Searching:[/b] This is the result when I …

Software Development c
Member Avatar for Adak
0
135
Member Avatar for aaronmk2

I understand that you are allocating memory for Stack, buy do not understand after :: and I thought that you only used :: when declaring classes not in the classes. [CODE] myTop= new Stack::Node(original.top());[/CODE] I can post the function class of the entire program if need be.

Software Development c++
Member Avatar for mrnutty
0
97
Member Avatar for timrichardson

I have a script where I want to use a message box for the occasional interactive question [code] # python 3.1 from tkinter import * from tkinter import ttk from tkinter import messagebox answer = messagebox.askyesno(message="Are you thinking of the " + "data " + "?" ,icon='question' ,title="My guess" [/code] …

Software Development gui python tkinter
Member Avatar for vegaseat
0
1K
Member Avatar for Cap'nKirk

Hi, my app does not contain a web component but it does download images from the web into pictureboxes. I am trying to figure out how to code a progressbar on my app that would start when the form is loaded and increase gradually until all the pictureboxes have been …

Software Development
Member Avatar for Cap'nKirk
0
191
Member Avatar for ichigo_cool

Hi. I'm trying to make a two-dimensional array full of descriptions. As if they were map tiles for a text-based RPG. There's a point class that holds your coordinates and I use the Get_X and Get_Y functions to put into the map so it can read them. I'm just starting …

Software Development c++
Member Avatar for ichigo_cool
0
104
Member Avatar for WargRider

I was testing out a networking script of mine, and it worked fine locally. It is basically a replica of a very bare bones multiplayer game network, where multiple clients connect to a master server, each client can say anything that it wants, and the server redirects that message to …

Software Development client-server java
Member Avatar for WargRider
0
2K
Member Avatar for VBNick

Hullo. I made a small webserver just to flex my winsock muscle, but it only works for small files like html files. Once I have processed the request to get the path of the file, I send the result like this: [code] ifstream fin; fin.open(URL, ios_base::binary | ios_base::in); if (!fin.good() …

Software Development c++ ios web-browser web-server
Member Avatar for VBNick
0
177
Member Avatar for sabareesh

// find new size nNewArraySize = StrNewSizeForCharReplace(pszString, pszFindString, pszReplaceString); // nNewArry size is 1063 // alllocate memory pszTemp= (unsigned char*)malloc(nNewArraySize + 1); // add 1063 character in to pszTEmp // 1063 nLength = strlen(pszTEmp) // length is 1063 free(pszTemp); // Heap memory exception How can remove this exception

Software Development c++
Member Avatar for Ancient Dragon
0
133
Member Avatar for andrewktmeikle

Hi team, I'm having some issues getting the results of my query to output on a data grid. I'm using an sql query to get the data from access, which is working fine, but then I want to output it onto a datagrid. My code is as follows just for …

Software Development microsoft-access open-source vb.net
Member Avatar for andrewktmeikle
0
242
Member Avatar for kingofnothing

hi everybody i dont now whats wrong whith this code below when i run it debug show an error with con.open() [CODE]Dim con As New System.Data.SqlClient.SqlConnection con.ConnectionString = "Server=iraq\\sqlexpress ; Database=stats ; Trusted_Connection=True ;" Dim com As New System.Data.SqlClient.SqlCommand com.CommandText = "insert into users values('" & TextBox1.Text & "','" & …

Software Development vb.net
Member Avatar for Oxiegen
0
274
Member Avatar for bbman

Hey, I have an API that can move windows. If I put the x co-ordinate higher that the horizontal resolution of the screen, it will move to the next monitor. I do not have multiple monitors, so I cannot test this myself. Would I use something like: [CODE] Screen[] screens …

Software Development api windows-api
0
69
Member Avatar for bbman

Hey, I have tried Google, but no avail. I have an XML file, say <Items> <item> <id>1</id> <name>test</name> </item> <item> <id>2</id> <name>othertest</name> </item> </Items> I have a function Add(int id, string name). How would I read through every <item>, get the id and name, and call the add function. Thanks

Software Development xml
Member Avatar for bbman
0
83
Member Avatar for jcrcarmo

Hello everyone, After I publish my C# VS2005 application (to be installed from CD-ROM), the crystal reports in it will not load, but if I run the application from debug, everything works fine. Does anybody know what's going on? Thanks a lot. Best regards, JC

Software Development c c# c++ publishing
Member Avatar for Deresse
0
129
Member Avatar for virusisfound

Hi, How can i restrict the user to input only numbers. I have done the following coding for[B] VB[/B] [CODE]private void textBox1_TextChanged(object sender, EventArgs e) { if (!char.IsNumber(e.KeyChar)) { e.Handled = true; } }[/CODE] But now i used it in C# it is not showing the [B](e.keychar)[/B] property. I have …

Software Development
Member Avatar for virusisfound
0
191
Member Avatar for P00dle

I'm trying to move a file to a different directory using .renameTo() This isn't working, as the file is still in the original dir after the code has completed, and there is a copy of the file in the target directory. I tried deleting the original file, which doesn't work. …

Software Development file-system java xml
Member Avatar for P00dle
0
256
Member Avatar for Maya Pawar

Hi friends, When i give breakpoint to my function or event. There is a warning that,"The breakpoint will not be correctly hit.The source code is different from original version" What is this warning. I don't understand.I m in trouble. I can't find my error even. Plz help me yaar..... Thanks …

Software Development vb.net
Member Avatar for Oxiegen
0
102
Member Avatar for TrueVb.NetNoob

Hi,Guys! I am currently making a project and got stuck.(I am a total beginner) The program is for users to submit their username by typing in their username and pressing the submit button. The username may be able to display on the Usernamelabel in form1.(I made the button on form2) …

Software Development display vb.net
Member Avatar for TrueVb.NetNoob
0
95
Member Avatar for leo1937ca

I am using w2k, vb6, VBOLock and access 2000. I created a program that at first ran OK in VB and the compiled EXE. Now when I compile and run the EXE, I get a run-time error '53' file not found. I have checked and rechecked the code for accuracy …

Software Development visual-basic
Member Avatar for AndreRet
0
207
Member Avatar for bleedi

Hey again! I ran into a new problem in my university course exercises. Basically, I'm trying to read things from a .txt file. Every line is supposed to get converted into an object called "Client", and lines are formatted like this: <account:int> <firstName:string> <lastName:string> <balance:double> I have written my own …

Software Development c++
Member Avatar for mrnutty
0
256

The End.