43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for LeNenne

Hi I just wonder how to enabled the X in the right upper corner of a form. When I press the X then I will that it goes to cmdquit and the program is ending. How to do that Lennie

Software Development visual-basic
Member Avatar for Jx_Man
0
246
Member Avatar for happymadman

Hey, when I execute the following code I get "App instance has no attribute rolls" I have no clue as to why this is and any help would be awesome, Thanks. import Tkinter class App: def __init__(self, master): self.sticky_all = Tkinter.N+Tkinter.W+Tkinter.E+Tkinter.S self.frame = Tkinter.Frame(master) self.frame.pack() # Dice Buttons. self.bd4 = …

Software Development python tkinter
Member Avatar for bumsfeld
0
164
Member Avatar for Suzie999

Hi. In a project of mine, I have many different files 1.h, 1.cpp, 2.h, 2.cpp, 3.h, 3.cpp etc. Some of the functionality in them depend on veriables or functions in the others. If I juggle the #includes around I can get around most of it, for instance, if functionality in …

Software Development c++
Member Avatar for Suzie999
0
203
Member Avatar for poopuh

I have this line of code if (passLength >= 1) { for (i = 0; i <= 62; i++) { if (ascii[i] == inPass[0]) { outPass[0] = inPass[0]; i=100; } } } else { return "Please enter a Password"; } I basically want the program to check through an array …

Software Development java
Member Avatar for JamesCherrill
0
195
Member Avatar for daniel.king.39794

in my code (below) im looking to stop using long list of if statements to randomly select a phrase, how would i use an array to accomplish the same task? link to code http://ideone.com/0l8xiI

Software Development python
Member Avatar for bumsfeld
0
104
Member Avatar for siddiquedu

I choose a program that can read data from a txt file. Now, I input two column from txt file and i want to substract first value of 2nd column to every value of 2nd column. finally I want the sum of substracted values. Can anyone please help me. Actually, …

Software Development c++ mathematics
Member Avatar for siddiquedu
0
253
Member Avatar for PM312

for my combobox i want to prevent user from typing **further text** if the typed text **do not match part** of combobox items i.e from starting Autocomplete mode set to SuggestAppend Autocompletesource set ot Listitems Private Sub ComboBox1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles ComboBox1.KeyPress Dim i As …

Software Development vb.net
Member Avatar for Reverend Jim
0
2K
Member Avatar for nicfred

I have to do a project where the imust create a class that draws a crayon and then an applet that draws a box of those crayons. I can get the box to draw, just not the crayons. Help? CLASS import java.awt.*; public class Crayon { private final int BOTTOM …

Software Development java
Member Avatar for pbj.codez
0
276
Member Avatar for treasure2387

I know that C# is translated to MISL which is run by the CLR into machine code. .Net provides different languages such as VB and F# and C++. Are the different high level languages translated into the same MSIL language? Is there a difference between MSIL of C# and MISL …

Software Development
Member Avatar for treasure2387
0
156
Member Avatar for zachattack05

I am attempting to replicate the grid you see below taken from a popular accounting software program. I'm not after the title bar or any of the other controls, just a data grid view that behaves like the one shown, kinda like a check register. Does anyone know if this …

Software Development
Member Avatar for zachattack05
0
267
Member Avatar for M.Waqas Aslam

hello ! i want to disable my usb port using c# or vb.net ,is it possible to do so using .net ? if yes then any idea how i can do this ? Regards

Software Development vb.net
Member Avatar for PriyaVijay
0
530
Member Avatar for pipsy17

When there is a if while else in pseudocode how do you interpret it in a flow chart. For example, a1 if c1 { a2 while c2 { a3 } } else { a4 } is the else statement connected to the if statement or the while statement and if …

Software Development c++
Member Avatar for mrnutty
0
237
Member Avatar for Tsaou

Hello everyone... I've searched a lot for this but i can't really figure this out. My project consists of 5 .c files and 4 .h headers. all in the same folder. I compile them separately succesfully but when it comes to group compiling (gcc -o progname and all the code …

Software Development c
Member Avatar for Ancient Dragon
0
1K
Member Avatar for Affable zaki

i have decleared all variables as double. Sub kaat() goldkaatinratti = (Val(txtbox_tolagoldweight.Text * 96) + Val(txtbox_mashagoldweight.Text * 8) + Val(txtbox_rattigoldweight.Text)) * 8 / 96 End Sub but when i leave the textboxes empty it gives ma the error (Conversion from string "" to type 'Double' is not valid.) i CANNOT …

Software Development vb.net
Member Avatar for Jx_Man
0
3K
Member Avatar for gobiking

I have been getting used to c++ as I have been trying various scenarious on programs and exand on them with new concepts. This is my first try at exporting data from command line to a text file and the program runs fine with all the calculations. The real issue …

Software Development c++ file-system
Member Avatar for gobiking
0
247
Member Avatar for Necrozze

Hey guys, I'm trying to learn how to use classes and work with seperate files, and I been reading about it and now I tryed making a little short "Hello World" thingy but I don't really understand the self. things, I thought I did but it's not working so I …

Software Development python
Member Avatar for Necrozze
0
304
Member Avatar for fatalaccidents

Hey guys, I wasn't exactly sure where to put this post, but this was my best guess: I'm on a HPC and wanted to use vim as a python IDE and was trying to install my own version of vim (7.3) with a python interpreter. I use configure to enable …

Software Development ide python unix
Member Avatar for biry2009
0
598
Member Avatar for Hazuan Nazri

i just want to make a mp3 player, but i got problem at my mp3 path. this is my code: Public Class Form1 Private Sub Import_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Import.Click FBD.ShowDialog() TextBox1.Text = FBD.SelectedPath Dim folderInfo As New IO.DirectoryInfo(TextBox1.Text) Dim arrFilesInFolder() As IO.FileInfo Dim fileInFolder …

Software Development vb.net
Member Avatar for Hazuan Nazri
0
1K
Member Avatar for bibiki

Hey there, I have a question regarding the builder pattern that I need someone with more experience to clarify for me. I have this User class that has an inner, public static Builder class that has the same fields as User as well as the corresponding setter methods. Now, the …

Software Development java
Member Avatar for bibiki
1
161
Member Avatar for Kareem Klas

Hi everyone I'm studying the part about while-statement but I don't understand the explanation in the book really well and the example doesn't work for me so I can't see it with my own eyes how it works. Can someone explain what the while-statement means and does? Also can you …

Software Development c++ programming-construct
Member Avatar for Kareem Klas
0
334
Member Avatar for kobalt

Hello All, I'm having trouble with a little string search. My code downloads a webpage that contains a table of a list of sharenames, the company name and a margin rate in the following format: [CODE]<tr class="odd"> <td>AAC</td> <td>Australian Agricultural Company Limited.</td> <td>35.00%</td> <td> No </td> <td> No </td> <td> …

Software Development regex
Member Avatar for jemware.waseem
0
213
Member Avatar for habenero

I'm back: Is there any place I could send what I have as a project to be looked at for help? Signed The Pest I'm trying to copy/rename a file using conditionals and a string variable Thanks for your help Jeff

Software Development visual-basic
Member Avatar for habenero
0
340
Member Avatar for schroaus

I am currently taking a programming class. I finished my work early one day and was bored so.. I decided to make a randomizer that will only pick a number a single time. I have been trying to make it, but I run into continous errors with it. It seems …

Software Development vb.net visual-basic
Member Avatar for schroaus
0
222
Member Avatar for mKorbel

- Please how is possible (probably dirty hack) to create [How to Create Translucent and Shaped Windows](http://docs.oracle.com/javase/tutorial/uiswing/misc/trans_shaped_windows.html) - undecorated container (returns *java.awt.IllegalComponentStateException: The frame is displayable.*) - change Look and Feel for (returns *AWT-EventQueue-0" java.awt.IllegalComponentStateException: The frame is decorated*) - by using code from linked official tutorial . import java.awt.*; …

Software Development gui java java-swing oracle
Member Avatar for mKorbel
1
1K
Member Avatar for Affable zaki

i am making a module in vb.net which will convert number of grams to number of tola masha and ratti respectively. 1 tola = 12 masha 1 masha= 8 ratti while 1 tola = 12.5 grams i can make number of tolas by number of grams \ 12.5 but can …

Software Development vb.net
Member Avatar for Affable zaki
0
5K
Member Avatar for PixelExchange

Using Winsock and C++, I have successfully created a server which runs on my pc good and well. The problem is, I would like this same (console) server to run at a different IP address (that is not my home IP address). If my server (which is called server.exe) is …

Software Development c++
Member Avatar for Reiz3N
0
181
Member Avatar for IT_Techno

I added a DataBase.accdb file into a project (VS 2010) then created a DataSet. but now I've a small problem: I want to have the connection string in the app.config file, to allow customer to edit it. I go to the app.config file and find no connection string created inside. …

Software Development dataset file-system
0
107
Member Avatar for jaejoong

I have 2 parameters ID - txtID.text Name - txtName.text I would like to select (SQL): SELECT ID ,NAME FROM TABLE WHERE If ID is not null read in txtID If Name is not null read in txtName If ID is null read all in select statement If Name not …

Software Development
Member Avatar for jaejoong
0
132
Member Avatar for mc3330418

Sorry guys, this is a huge chunk of code that looks inefficient as f***. This was for a class I had last spring, so I'm not rying to cheat I just want an answer. So here's the assignment, Develop an object-oriented program to produce a grade report and an error …

Software Development c++
Member Avatar for RonalBertogi
0
627
Member Avatar for pwolf

whats wrong with this code? It keeps giving me an "unreachable code detected " exception public static int search(string Registration) { // this method will search for registration, if found it will return the index value , else it will return max value + 1 for (int x = 0; …

Software Development
Member Avatar for ndeniche
0
259
Member Avatar for pwolf

Hello, I'm trying to program a basic program at the moment and have run into some difficulties. I have a method as follows: public static void loadDB() { // load data into datasets - this will be called on form2 the login screen loadTblStaff(); loadTblCars(); } the method is called …

Software Development dataset
Member Avatar for ddanbe
0
250
Member Avatar for pwolf

I have been struggling with this since yesterday and I really need to get it finished. I have no clue why its not working. THe porblem im facing at the moment is as follows: I have a method loadDB(); That is looks like this: public static void loadDB() { // …

Software Development dataset open-source
Member Avatar for pwolf
0
262
Member Avatar for donaldw

I am using MCI controls to play media files within some software. For the most part, it works OK but sometimes things go poorly (e.g. when the media file is corrupt). How can I either put the code into a try/catch (i.e. what exception do I look for?) or how …

Software Development c++
Member Avatar for donaldw
0
267
Member Avatar for schroaus

I am making a game in microoft visual basic. It is virtually finished, but I am having a problem. When you hit the start button a timer is activated making the character in the game equal mouse position. The problem is that the character is not actually going to the …

Software Development gaming pc-peripheral vb.net
Member Avatar for schroaus
0
705
Member Avatar for bashaash

Hi to all I got flash mp3 player from my friend and I wanna your help becuase I'm not well flash and my friend was moved to Africa, here the actionscripts 2.0 code. my question is I don't to use the plalist.xml file I want to use direct link in …

Software Development flash xml
0
191
Member Avatar for CoilFyzx

Hello good day. I have an urgent need as it relates to creating a table. Is it possible to create sub-columns under a main column? Please see image file for clarification. ![70637f1f94a4b270bf9cc203f22390bf](/attachments/large/3/70637f1f94a4b270bf9cc203f22390bf.png "70637f1f94a4b270bf9cc203f22390bf") Ultimately, I want to create a coulmn heading, and then beneath that heading divide it's width into …

Software Development java
Member Avatar for JamesCherrill
0
947
Member Avatar for jaejoong

Hi All, How can I get sample.xls from C:\users\sample\desktop\sample.xls to string? Thank you.

Software Development
Member Avatar for jaejoong
0
109
Member Avatar for Enrique Nivasch

I am serializing an object and storing it on a file using one assembly and reading it and deserializing it using a different assembly. When the second assembly attempts to deserialize the object I get back the following error: Unable to find assembly 'CreateData, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. Googling around I …

Software Development assembly data-structure file-stream
Member Avatar for saratkumar123
0
10K
Member Avatar for entropic3105

Where can I download the random module, because I've been looking for weeks and can't find a site where I can download it.

Software Development file-system python
Member Avatar for entropic3105
0
760
Member Avatar for Bhavya scripted

hey all I was watching a tutorial on java game development.In that video,the guy was making a window a on the screen,then making an oval,then moving it. His code worked fine and i am 100% sure that my code is similar to his(i checked it a few times). What my …

Software Development ide java java-netbeans java-swing
Member Avatar for Ezzaral
0
323
Member Avatar for kindofsudden

I'm trying to visualize how this will be set up... I need my VB.NET application to read year 2013 values (Year, Employee, and Annual Performance Score) from a CSV file and write them to an Access DB. This DB is linked to my VB.NET project using a dataset. No problem, …

Software Development dataset vb.net
Member Avatar for kindofsudden
0
328
Member Avatar for otengkwaku

hi guy, i have created an app why my beloved python. i have frozen it using cx_freeze for easy distribution but the problem is, on my development computer (win7) it runs perfectly but when i send it to a testing pc (windows XP sp3 32bit) it give me the error …

Software Development python
Member Avatar for vegaseat
0
596
Member Avatar for Vusumuzi

This program is to calculate commission and this is the pseudo I wrote for it. Tell me if I'm right. 1 Declare variables 2 get sales 3 calculate if sale < 1500 Then commision= sale * 0,02 else commision= sale * 0,04 4 Dispaly commision

Software Development vb.net
Member Avatar for Jx_Man
0
183
Member Avatar for Affable zaki

well here is the problem ! i am making a desktop application using vb.net and sql server for a local jeweler. i want to fetch "gold rate" to text box "txtbox_goldrate" from http://www.goldrates.pk . the other way is to use goldrate api from a webservice but that is not free …

Software Development api vb.net
Member Avatar for Affable zaki
0
237
Member Avatar for phani1092

immutable objects cannot be altered,whereas in line 3 x contains xyzabc. I want to know what exactly is happening with the string object. Thanks in advance

Software Development java
Member Avatar for JamesCherrill
0
329
Member Avatar for bhallarahul

hi I have method which accept file and want to compare with string for the above mention reason i did System.out.println(targetFolder.getAbsoluteFile().equals(listPropertyValue[1]/*which is a string */)+"\n"+targetFolder.getAbsoluteFile()+"\n"+listPropertyValue[1]); the value of listPropertyValue[1] and targetFolder.getAbsoluteFile() same value but it gives false. Please tell me where i am wrong Thnks

Software Development java
Member Avatar for bhallarahul
0
111
Member Avatar for siddiquedu

3 years ago, one brother solved this problem, i need this program to make some calculation. actually, i have some fractional/decimal component t (like 2.0213, 3.047) this program can only take integer. Can anybody please help me !!! #include<iostream> #include<fstream> #include<string> #include<cstdlib> #include<cmath> #include<iomanip> #include <windows.h> using namespace std; //void …

Software Development c++
Member Avatar for siddiquedu
0
386
Member Avatar for JOSheaIV

Okay so here's a good one for you guys, I have some theories but would like some help. So I have a project I just came up with while I was waking up this morning. Part of this project involves comparing 2D arrays (or Lists, if I say array assume …

Software Development
Member Avatar for JOSheaIV
0
225
Member Avatar for Ralphael

I have a project I am working on and it involves java graphics which I am a novice at, I have uploaded the description of the project and the image of how it should look like, now i am having problems implementing the part of introducing the virus and drug …

Software Development java java-swing
Member Avatar for robin.litsetorp
0
244
Member Avatar for yuvjeeth

Hi I want to know how to know if user is running the program for first time? I have a .txt file which will be loaded on start, but it is the first time and there is no such file. If anybody contributes, I will be happy Thanks in advance …

Software Development visual-basic
Member Avatar for mridul.ahuja
0
236

The End.