43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for pritaeas

I have multiple listviews on a form (WinForms). List items can be dragged to other listviews. Is there a way to cancel a single item within the dragged items list? The target listview determines whether or not a single item can be dropped there. I'd prefer a solution that will …

Software Development listview
Member Avatar for pritaeas
0
264
Member Avatar for Mr.M

Hi Dw I'm glad to find one active VB forum for the old VB I used to get the solutions in .NET and I'm also a .NET developer but had got a problem the computer that I'm creating this application for is using old Windows OS such as XP and …

Software Development java visual-basic
Member Avatar for Mr.M
0
234
Member Avatar for mufasil

I have problem that when i click JComboBox i will display all ProductName in JComboBox but when i click it again the items becomes dusplicate means again select statement called i only want that if i click once it will update the JComboBox not as many times i click it …

Software Development java
Member Avatar for mufasil
0
246
Member Avatar for jared.geli

Hi again I want to display my table in excel to my datagrid. I want select the 5th row of my spreadsheet as the column header. I have no problems of displaying it in DGV when my column header is at the first row. Now I need to have my …

Software Development dataset vb.net
Member Avatar for jared.geli
1
1K
Member Avatar for beastie805

i am having difficulty with the binary search function for some reason the comparisons are coming up much higher then they should be. heres my code from main comp = 0; for( index=0; index<Max_Tests; index++) { results = BinarySearch(list, test[index], comp); cout<< setw(5) << test[index] << setw(15); if( results == …

Software Development c++
Member Avatar for beastie805
0
157
Member Avatar for poksmdpk

how to can i insert data in another table without using wizard dataset and i have a variable that date and time that can be used on date time picker please help can anyone simplyfy the code?

Software Development dataset sql vb.net
Member Avatar for Ancient Dragon
0
120
Member Avatar for Derek_4

I am creating a game project in BlueJ but the "drop" and "items" commands do not work. When I call either one of them in the game I get a "nullpointerexception" error message. This is the drop method in the game class, which compiles but does not work: /** * …

Software Development java
Member Avatar for JamesCherrill
0
254
Member Avatar for CodingCabbage

Why is this not working, no errors? photo exists in correct position... gui doesnt alwyas show up, image doesnt. Using python 3 from tkinter import * from random import * import time mainGUI = Tk() width2= 319 height2 = 240 widthOfScreen = mainGUI.winfo_screenwidth() #Get the width of the screen heightOfScreen …

Software Development image python tkinter
Member Avatar for vegaseat
0
373
Member Avatar for lehlohonolo.mohaila

This Assignment is in line with our University’s Concept on Students Working on Projects in Real Live Situation. The industrial unit that is assigned for your project is “Wing’s Café” located in the plaza. As you very well know, “Wings Café” is one of the most successful business units of …

Software Development gui java user-interface
Member Avatar for JamesCherrill
0
224
Member Avatar for Derek_4

I am trying to implement an item class to add items to rooms in a game in BlueJ. However in the Room class the addItem method is not working because of a problem with the "items.add". I have no idea what I am doing wrong. public class Room { private …

Software Development java
Member Avatar for Derek_4
0
771
Member Avatar for castajiz_2

As it is said in the title i can not get the keyword string. I finally found a version of C for windows 8 but now i can t get the most important thing types int, double char,bool ect... work perfectly and always show as a keyword but somehow i …

Software Development c c++
Member Avatar for Ancient Dragon
0
293
Member Avatar for kuldeep tinku

hoe to create the gas agency project in vb .net pls send detalis

Software Development vb.net
Member Avatar for Reverend Jim
-1
106
Member Avatar for CodingCabbage

I wish to create a loop which adds images across a screen with random positions: photo1 = PhotoImage(file=address) #Assign image to PhotoImage XValue = randint(0,widthOfScreen-width2) #width2 = image width YValue = randint(0,heightOfScreen-height2) #width2 = image height Label(mainGUI, background = "white", image = photo1, borderwidth = 0).place(x=XValue, y = YValue) the …

Software Development gui python tkinter
Member Avatar for CodingCabbage
1
14K
Member Avatar for Pyler

I have the following public class bucket<String,Integer>{ private Integer num; . . . public bucket(){ num=new Integer(100); } } Eclipse spits out an error saying that it cannot instantiate the type Integer. Why is it saying this?

Software Development java
Member Avatar for JamesCherrill
0
219
Member Avatar for Zachary_1

import java.util.*; import java.io.*; import java.text.*; import java.lang.*; public class Pascals_Triangle public static void main(String[] args) throws IntegerEntryFailException { new Pascals_Triangle(); } public Pascals_Triangle() { int lines = 0, index = 0; char q = ';'; String string = null; Triangle myTriangle = new Triangle(); Scanner scan = new Scanner(System.in); …

Software Development java pascal
Member Avatar for Zachary_1
0
2K
Member Avatar for kenadams

Hello, I am just starting out with Java. But I had a big puzzle when I am in the first chapter. It says that we have to "initialize" the handle when we are creating one, like String s = "asdf", And later it says we have create a new object …

Software Development java puzzle
Member Avatar for kenadams
0
250
Member Avatar for mc3330418

I need to read in sentence and then put each letter into an arraylist. When I'm done I need to out put the letter that were in the sentence and how many times they appeared. ex: hello how are you h2 e2 l2 o3 w1 r1 y1 u1 So, I …

Software Development c++
Member Avatar for mc3330418
0
198
Member Avatar for NathanOliver

Hey Daniweb, I have recently started working with threads in the c++11 library. I started with a simple dispatch mechanism where I have a queue and that would get passed to the threads and the threads would take turns emptying the queue. Since each thread needs to share the queue …

Software Development c++ queue
Member Avatar for NathanOliver
0
338
Member Avatar for Cassidy_2

def main(): p =input("Enter your sentence: ") words = p.split() wordCount = len(words) print ("The word count is:", wordCount) main() I get the read out: Enter your sentence: Hello world Traceback (most recent call last): File "C:/Python27/idk.py", line 11, in <module> main() File "C:/Python27/idk.py", line 3, in main p =input("Enter …

Software Development python
Member Avatar for vegaseat
0
274
Member Avatar for dean.ong.14

how do i backspace from last number and also clear th? last equation and add a quit button????????? from tkinter import * from tkinter.font import Font def button(frame, text, command=None): ft = Font(family=('Verdana'), size=14) return Button(frame, text=text, font=ft, width=3, command=command) def frame(frame, side=LEFT, bg="black"): f = Frame(frame, background=bg, padx=5, pady=5) …

Software Development python tkinter
Member Avatar for TrustyTony
0
499
Member Avatar for mikewyatt

I have multiple jcomboboxes spread throughout my program. Most of these boxes get their data from names or text strings found in databases. Normally when adding a new item, it is added to the bottom of this list. What I want to do is when I add an element to …

Software Development java
Member Avatar for mikewyatt
0
1K
Member Avatar for Panarchy

Please help me, I want to make a quiz in python (And a game, if I get the time), can someone help me? I saw the topic projects for beginners, but it was a .dat file (which I opened using notepad 2), I don't know how to use a dat …

Software Development python
Member Avatar for EarthHorse
0
5K
Member Avatar for ZixCo

HI. I'm new at programing in Java and I made a little program that: 1. Show current date 2. Show curent time 3. When button about pressed pop up about 4. When button setalarm pressed set Alarm(for begining in minutes) The problem is when i run the program everything works …

Software Development audio java java-swing
Member Avatar for ZixCo
0
517
Member Avatar for lrhimma

hi everyone im doing small vbproject that must auto generate id using the current date format in vb.net-(VISUAL STUDIO 2012) with Ms access database. When the button1 click the autonumber should be displayed in text. And when it save, it should be saved in the database access. The id number …

Software Development vb.net visual-studio
Member Avatar for lrhimma
0
2K
Member Avatar for MOKSHo

write a template for a function called total . the function should keep a running total of values entered by the user , then return the total . the argument sent into the function should be the number of values the function is to read . Test the template in …

Software Development c c# c++
0
153
Member Avatar for nav234

Hi all, Iam using [B]vb.net and WPF[/B] In a wpf window im showing a datagrid in the load event while in the load event itself,i need to count grand total amount from a single datagrid column and add it to a textbox in same page . My page looks like …

Software Development asp.net vb.net
Member Avatar for 123mahesh
0
5K
Member Avatar for andrew mendonca

For the maze program, with '*' indicating a wall, ' ' indicating a corridor, and '#' indicating a solution path, where I have to use a recursive backtracking algorithm, I am still having trouble print the maze solution. Here is the unsolved maze: 8 12 ********** * * * * …

Software Development algorithm c++
Member Avatar for kal_crazy
0
312
Member Avatar for mavtcr

Dear friends pl help me I want to select data from a data base table Tran with two selection criteria one is number and the other one is text When i use one criteria it works well But i am failed to use the two criteria my code is here …

Software Development visual-basic
Member Avatar for mavtcr
0
213
Member Avatar for Stpdoug

Hey guys i am having a problem with displaying a single record out of a text file the code is not reaching the "if" function in the while loop of the "getRecord" Function please help. Everything else is working import java.io.*; import java.util.Scanner; import java.util.InputMismatchException; public class FileTest { //Globals …

Software Development display file-system java
Member Avatar for Stpdoug
0
337
Member Avatar for sravan953

Hey guys, As the title says, I want to know how I can reverse the characters in a string, but retaining the placement of the words as such, here's the code I used: [CODE]class reverse { void reverse(String s) { int l=s.length(),j=0; String s1=""; for(;j<l;j++) { char a=s.charAt(j); if(a==' ') …

Software Development java
Member Avatar for JamesCherrill
0
609
Member Avatar for Derek_4

I am trying to create a player class to pick up and drop as well as carry items and this is the code I have so far. However, I am unsure what needs to be changed for it to work. import java.util.ArrayList; public class Player { private String Name_; private …

Software Development java storage
Member Avatar for Derek_4
0
393
Member Avatar for Rahul47

What is possibly wrong with this code ? data segment msg db "Enter a character: " data ends code segment assume cs:code , ds:data mov dx,data mov ds,ax mov dx,offset msg mov ax,08h int 21h mov bx,ax mov ax,4c00h int 21h code ends end ![766258137b1795d569beae9cd872b521](/attachments/large/4/766258137b1795d569beae9cd872b521.jpg "766258137b1795d569beae9cd872b521")

Software Development assembly
Member Avatar for turboscrew
0
241
Member Avatar for andrew mendonca

In this program, I am trying to print a solution for the maze with '*' indicating a wall, ' ' indicating a corridor, and '#' indicating a solution path. I am using a recursive backtracking algorithm in this program. For instance, here is a small (8-by-12) maze: 8 12 ********** …

Software Development algorithm c++
Member Avatar for kal_crazy
0
1K
Member Avatar for poksmdpk

can anyone help me in this problem? i have to put sql server data in my combobox on my form, i watch several tutorial in youtube and read here some other codes but i still don't how to. please can anyone help me? Using combocon As New SqlConnection("Data Source=NSSISQLSERVER;Initial Catalog=NSSIDB;Persist …

Software Development open-source vb.net
Member Avatar for poksmdpk
0
152
Member Avatar for mc3330418

I am trying to read in a word to a string and then output the letters, in alphabetical order, and count how many instances of that letter. array a 2 r 2 y 1 #include "ArrayList.h" #include <iostream> #include <string> struct ItemType { char letter; int count; }; int main() …

Software Development c++
Member Avatar for rubberman
0
112
Member Avatar for andrew mendonca

Write a program to read a maze from a text file into your array, print the unsolved maze, solve the maze, and then print the solution. You may assume the maze will fit in a 24-row by 81-column character array (for 80 character C-strings). The maze will be in a …

Software Development algorithm c++
Member Avatar for owenransen
0
1K
Member Avatar for beastie805

this is probably a dumb question but how would I remove the array so that there is no max size on it. struct StudentType { string studentName; int testScore;//Between 0 and 100 char grade; }; const int NUM_STUDENTS = 20; int main() { StudentType student[NUM_STUDENTS]; } this is what i …

Software Development c++
Member Avatar for beastie805
0
124
Member Avatar for mikewyatt

I am trying to add /edit records in an embedded database. I have written some code that I think might work, but I would like a second set of eyes to look at to see if it is coded correctly..... private void Save_Item___MouseClicked(java.awt.event.MouseEvent evt) { if ("Equipment - Mundane".equals(jComboBox1.getSelectedItem().toString())) { …

Software Development java
Member Avatar for mikewyatt
0
211
Member Avatar for borgasia

Can't get this work properly: FormatRange(ref ws.Range[curRange.Offset[1, 0] , gives A property or indexer may not be passed as an out or ref parameter Any help would be thankfull public static void WriteDetailData(ref Worksheet ws, string type, ref int row, int col, Hashtable parts, Hashtable refList) { Range curRange = …

Software Development
Member Avatar for borgasia
0
4K
Member Avatar for Deep Modi

I am using the richtextbox, and now when I am saving the File, then the File get saved but not as I want.? Example: File Name: example File extension: .txt Body: **1.)**Hey guys, Whats up? **2.)**R u Fine ??? **3.)**Reply soon Now When I save the file and open in …

Software Development file-system vb.net
Member Avatar for Deep Modi
0
1K
Member Avatar for Delira

I'm trying to finish up this vending machine. It worked well until I tried to add multiple items via inheritance while using a toString method. I'm not sure what is wrong about how I've done this. import java.util.Scanner; public class VendingMachine { public static double moneyCredit; public static double itemCost; …

Software Development java
Member Avatar for Delira
0
3K
Member Avatar for castajiz_2

Is there any option which i can activate when using ECLIPSE so that when i m typing S... for String or i.. for int etc... to automaticly give me suggestions that i want a int if the first letter is i or i want a String if the first letter …

Software Development ide java visual-studio
Member Avatar for JamesCherrill
0
183
Member Avatar for jackbauer24

My computer does not have the swing.properties. How to make a swing.properties file and with what software?

Software Development java java-swing
Member Avatar for durim.kryeziu.927
0
1K
Member Avatar for stresstedout

Hi, I am new to java, so please be nice. I am trying to make an application in Netbeans, i know the basics of how to use the program but get a little stuck when it comes to programming. At the moment i am trying to get a button to …

Software Development java java-netbeans
Member Avatar for ObSys
0
165
Member Avatar for Jamie_2

from graphics import * def patchdrawer(): win = GraphWin("Patch drawer", 100, 100) for x in range(0, 5): for y in range(1, 6): p1 = Point(x * 20, (y - 1) * 20) p2 = Point((x + 1) * 20, y * 20) rectangle = Rectangle(p1, p2) if (x + y) …

Software Development python
Member Avatar for Jamie_2
0
654
Member Avatar for dean.ong.14

raceback (most recent call last): File "C:/Python32/n", line 1, in <module> from Tkinter import * # button text list cmdlst = ['7', '8', '9', '+', '%', '4', '5', '6', '-', '**', '1', '2', '3', '*', '//', '.', '0', 'CL', '/', '='] class MyButton(Button): backref = None def Click(self): # back …

Software Development python tkinter
Member Avatar for sneekula
0
760
Member Avatar for PulsarScript

Hi to all,can someone can help with animation project and help with the steps. I have canvas created and a few imagesof pacman 7x7 px ,how will i make him move left,then right,up? It something to do with positioning.And second question is how to put the diffrerent color on the …

Software Development c++
0
96
Member Avatar for Ng

When i compare two strings i can use strcmp. But i want to know that when i compared more than 2 strings. Have any function OR method i can use? Thanks.

Software Development c
Member Avatar for deceptikon
0
78
Member Avatar for whatthebobo

Hey guys, Now that the previous problem was fixed I was finally able to run my program but now I just don't know what is wrong. Everytime I would enter in a few numbers and let it run, it would print out a series of the same number. Can someone …

Software Development c++
Member Avatar for whatthebobo
0
268
Member Avatar for Deep Modi

I like to know how to add the no at the each new line before starting. I know how to count total lines. but I am lacking some knowledge on how I can Add new line number before New line and also the selected line get background colour different then …

Software Development vb.net visual-studio
Member Avatar for Deep Modi
0
687

The End.