132,724 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for sk8ergirl

I'm practcing for my test and I couldn't solve these questions I spent hours trying to solve it but every time I get error ArrayList<objClass> li = new ArrayList<>(); public objClass RemoveAtPos(int pos){ // I'm trying to remove the object at the given pos , but first I want to …

Software Development java
Member Avatar for Seldar
0
154
Member Avatar for CJMW

Wassup. I'm writing an application for web development. I have run into an issue and can't seem to overcome it. I have a button within the application that upon being clicked, will create a new tab that contains a rich text box. This new tab can then be used to …

Software Development
Member Avatar for Fenrir()
0
338
Member Avatar for cambalinho

i know use SetConsoleTextAttribute(): SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), ForgC|(BackC<<4) ); (too be honest: i don't have sure if i can avoid the '<<4') i need ask these: can i add it more data and then use it? like: Blink=128 SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), ForgC|(BackC<<4) | Blink); and then test if these value is there?

Software Development c++
Member Avatar for cambalinho
0
247
Member Avatar for JohnOSull4021

Hey guys, I have a program similar to X's and O's. But I need to put the "CheckWin" method in another class and call it from there. Im having no luck, can anyone help? (CHECKWIN PART AT VERY BOTTOM) import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.io.*; import java.util.*; public …

Software Development java java-swing
Member Avatar for stultuske
0
189
Member Avatar for danielPROGRGAMS

So i have a recent python project and i'm struggling a little, if anyone could be of any assistance that would be great :). The project is to make a 'Flash Cards' type quiz within which i am required to make a random generator to import one randomly chosen keyword …

Software Development python
Member Avatar for TrustyTony
0
472
Member Avatar for duke2303888

Ok this may sound strange but I have an app that pulls records form a DB then puts them in a string ready for me to send out :) yay works fine but now i want to add 2 records at the top of the report every time so record …

Software Development visual-basic
Member Avatar for Reverend Jim
0
108
Member Avatar for rajeeeesh

How to extract data from xml file using xml minidom with respect to tags in xml file

Software Development python xml
Member Avatar for vegaseat
0
147
Member Avatar for Albert Pinto

Hi, just wanted to know how to delete a record from datagrid, i tried the following code but it gave me an error in deleting records, I am using Mysql Database. Following is the code: [code] Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click 'recorddelete() Dim …

Software Development vb.net
Member Avatar for KimberGariando
0
2K
Member Avatar for nirmeen.asad

Hello, i need to implement priority queue using a binary search tree, i need some one to help me?

Software Development java queue
Member Avatar for nirmeen.asad
0
1K
Member Avatar for ehsan2

How can i add one record from a table to another table in vb.net? Whats the instruction ?Using the instructions of squel , how can i put in the vb.net instructions? ehsan2

Software Development vb.net
Member Avatar for Reverend Jim
0
205
Member Avatar for Nebil

Hi guys, I'm a little bit confused to declare a certain variable. I defined it under a button.It's in a do-while loop and it stores calculated values while other this are being executed. And i wanted to extract that value using another button.I know i can use a function but …

Software Development vb.net
Member Avatar for tinstaafl
0
182
Member Avatar for pritaeas

We're looking into the Enterprise Library, to see if the security part will fit our needs. We want to use application roles/rights, so we probably need to write our own security provider. What I'm looking for are decent resources on this specific topic. I've found several books already on the …

Software Development cybersecurity microsoft
0
164
Member Avatar for kbear23

Hello, Need some help with Pointers, please. I have base class ShapeTwoD and 3 derived classes: Cross, Rectangle and Square. Each have different x and y values input by user. Eg, Cross has 12 sets of x,y coordinates, Rectangle and Square have 4 sets each. Can I know how to …

Software Development c++
Member Avatar for kbear23
0
2K
Member Avatar for smdjilani

I have created lot of c files and i executed them,but i can run the executed files only in terminal.... can we have a direct c code,on clicking the exicuted file it should open its new window and work.... How should i create it,please help me..

Software Development c c# c++
Member Avatar for rubberman
0
103
Member Avatar for lobnaallam

****Hi everyone! I have to make a pig latin translator for cs hwk. I've made my code and everything works up until i put it together. I need to debug it, but can't figure out the if statement in the main. The assignment is "Here's how to translate the English …

Software Development java
Member Avatar for lobnaallam
0
1K
Member Avatar for DanielTradeWs

I have this code working on VB.NET 2008 but not working in VB.NET 2010 and show no error code. When I use the query analyzer the query work good, but when I try on my code nothing happen. I can do SELECT code and that ok, it’s just the update …

Software Development open-source vb.net
Member Avatar for DanielTradeWs
0
325
Member Avatar for mehdix

Hi All, I was assigned to code a project which to some extend simulates timetable of an airport. This has to be implemented using linkedLists. The poject should consist of Node class and SLL (singly linked list) class. The logic of the project is like this: There should be a …

Software Development c++ linked-list
Member Avatar for deceptikon
0
277
Member Avatar for xxn5

how to save ListBox in vb.net Dim files() As String files = Directory.GetFiles("C:\", "*.mp3") Dim file As String For Each file In files ListBox1.Items.Add(Path.GetFileName(file)) Next output : 00001.mp3 00003.mp3 00005.mp3 .... want to save all item wth Only filenam to another folder.

Software Development vb.net
Member Avatar for chuchaykaw
0
218
Member Avatar for Deegirl

Hello, is this how a constructor is created and initialized. I am getting an error; VB does not like the "New" what I am trying to do is to create a constructor with one argument and initialize its attribute. Public Sub New(ByVal newProdNumber As Long) intProdNumber = newProdNumber End Sub …

Software Development oop vb.net
Member Avatar for chuchaykaw
0
224
Member Avatar for jared.geli

Hi I need help in making an auto complete feature in my datagridview where if I input a certain cell it will automatically have a value or it will have a autocomplete suggestion (like a textbox link to a table) based on my other table. I don't have any clues …

Software Development dataset vb.net visual-basic
Member Avatar for chuchaykaw
0
1K
Member Avatar for edrianjon

Hi guys, 1st year cllege student here. New on C Programming. My program's main unction is that it will display products with fixed cost and a person will just enter numbers and will be multiplied to the fixed cost. The product of those should be displayed correctly but in my …

Software Development c
Member Avatar for Learner010
0
122
Member Avatar for kyle.mace.35

I need help converting ascii to hex. This is my code so far. ASCII DB 0DH,0AH,'THE ASCII CODE OF $' HEX DB ?,' IN HEX IS $' CHAR DB ?,'$' .CODE MAIN PROC ;initialize DS MOV AX,@DATA MOV DS,AX REPEAT: LEA DX,MSG ;get message MOV AH,9 ;display string function INT …

Software Development assembly
Member Avatar for Assembly Guy
0
3K
Member Avatar for dannilip

I have this code: private void words(string path) { List<string> text = new List<string>(); var intro = "Video File Name:"; var words = File.ReadAllLines(path) .Where(line => line.StartsWith(intro)) .Select(line => line.Substring(intro.Length).Trim()); } When i use a breakpoint and look after all on the variable words i see: System.Linq.Enumerable.WhereSelectArrayIterator<string,string> I want to …

Software Development file-system video
Member Avatar for Ketsuekiame
0
503
Member Avatar for ScubaSam

Hi everyone, I need some help, I don't know where and how to begin and I'm seeking for some advice. Problem: I need to design a custom C# library to better manage a client list for internal projects. The library must be capable of importing data in a textfile(clients.txt) into …

Software Development algorithm c c# c++
Member Avatar for Ketsuekiame
0
293
Member Avatar for johnrosswrock

Hello everyone, I have a project which i want to publish but the problem is i don't know how to add my name as the developer in the setup... can anyone tell me how to do that... thanks in advance

Software Development
Member Avatar for johnrosswrock
0
186
Member Avatar for tinku.cater

Write a payroll program that pays time and a half for anything over 40 hours. This should have 3 functions in addition to main The first function asks the user how many total hours were worked and the pay rate and returns this information to main. These values must be …

Software Development python
Member Avatar for Gribouillis
0
280
Member Avatar for jelineease

Hi, Im ne to vb.net and I have a file and instead of sending it to a printer I want to converting it to a PDF from any ideas on how O can make this work? Im using vb.net 2010 Thanks all answers are appriciated

Software Development file-system pdf printer vb.net
Member Avatar for jelineease
0
135
Member Avatar for beastie805

I need help reading a bool function from my HW assignment, I am not asking you to do complete my assignment for me. All I need help with is reading my bool function in main. Thank you for looking #include<iostream> #include<fstream> #include<string> using namespace std; struct StudentType {string studentName; int …

Software Development c c# c++
Member Avatar for beastie805
0
688
Member Avatar for supernova122

I am using VS2008 to develop web application with vb.net under .net 2.0 and Crystal Report 7.0 reportclass. I have changed some wordings in a Crystal Report template (file1.rpt) which is included in the source program of vb.net (in a .soln file) in testing environment. Now I want to apply …

Software Development vb.net
Member Avatar for supernova122
0
322
Member Avatar for tohtori.o

I'm trying to do the following: 1. get username typed into the userField 2. make a SEARCH mysql_query with the username as a variable I'm having a hard time getting past phase 2 since mysql_query takes a const char* as the query string, and I can only get username as …

Software Development c++ mysql windows-api
Member Avatar for Ancient Dragon
0
287
Member Avatar for VBOI

**Why is it that when i use ctime to capture the time I am getting this error: time_t now = time(0);// convert now to string form char* dt = ctime(&now); cout << "The local date and time is: " << dt << endl; error C4996: 'ctime': This function or variable …

Software Development c++
Member Avatar for deceptikon
0
2K
Member Avatar for nikolaos

ProducerConsumer_Using_ExecutorService class in a for loop initiate producer consumer threads using worker threads from ExecutorServiceThreadPool class. consumer thread takes an element from queue adding it to ArrayList consumerdata. Seems that consumerdata has no elements. why is that; Both producer - consumer threads seem to work. import java.util.ArrayList; import java.util.Iterator; public …

Software Development java queue
Member Avatar for nikolaos
0
5K
Member Avatar for a8med

Hi, I have writen a code whit some functions and the program start by launching on of those functions. The problem is that some of the variables in the functions need too be accessed by other functions. I know that I can use global "variable name" but is there a …

Software Development python
Member Avatar for vegaseat
0
232
Member Avatar for rabowling

import time pause = time.sleep(3) print "Welcome to the Game of Choice!" pause print "You will be given multiple choices throughout this adventure. How you choose determines how you end. Please answer questions in all lowercase letters. On all questions that require a yes or a no, type out the …

Software Development python
Member Avatar for vegaseat
0
497
Member Avatar for booicu

I am trying to generate a program using the builtin Random and generate an algorithm that determines whether the number is odd or even. I need to write a program that generates 100 random numbers, determine if its even or odd and finally count the number of even and odd. …

Software Development algorithm python
Member Avatar for vegaseat
0
3K
Member Avatar for Mafiamanandre

Hi all. How Can I makes login form for my vb.net project? I would like to make one that can identify the user according to their roles. Eg. Roles 1-4. Role 1 being the lowest user so this user can't use everything on the app. Role 4 as the highest …

Software Development asp.net vb.net visual-basic
Member Avatar for Reverend Jim
0
2K
Member Avatar for cdwin

I need a code based on this attack on hill cipher http://practicalcryptography.com/cryptanalysis/stochastic-searching/cryptanalysis-hill-cipher/ in python. As I am not maths student I am so helpless in this. Also I need to specify the charecterset of my own here.. can anyone help?

Software Development python
Member Avatar for vegaseat
0
2K
Member Avatar for VUEKID

How would i output my vector of strings into a ".txt" file?

Software Development c++
Member Avatar for mike_2000_17
0
2K
Member Avatar for VUEKID

Okay, so I know how to reverse the whole string of a vector, [code]for_each(newLines.begin(), newLines.end(), [](std::string& s){ reverse(s.begin(), s.end()); }); copy(newLines.begin(), newLines.end(), std::ostream_iterator<std::string> (std::cout, "\n")); [/code] But is there a way to only reverse the first 10 or so characters of a vector string? i.e. sdjkfskjd sfdsdf sdjflkjsdjklfsdlkjflksdjfkls jklda sdfioss …

Software Development c++
Member Avatar for tinstaafl
0
180
Member Avatar for nirmeen.asad

Hi (Salm).. In my java code i have to insert a table into a text area, by choosing "insert table" from the menue "Insert" so then the program will ask me to enter the number of rows & cols to create the table with the numbers i've entered.. the image …

Software Development image java
Member Avatar for nirmeen.asad
0
307
Member Avatar for CJMW

So I am trying to create a text editor for php, html, css an JS. I have a tab function that creates a new tab, and inserts a new richtextbox ready to type code. My problem is this, how do I select only the text from the currently selected tab …

Software Development html-css
Member Avatar for CJMW
0
2K
Member Avatar for Mohsin89

Hi, am trying to for file uploading of doc, docx type. When I uploaded the file there is no space at the top of the page but when I download the file it makes an extra space at the top of the page. Is there any solution, suggestion or idea …

Software Development
Member Avatar for Ketsuekiame
0
205
Member Avatar for ik1610

Hello! I am trying to implement a persistent data structure using a vector of linked lists, but each time I am adding the modified list to the vector, all the old entries seem to be updated... Could you please help me? Definition of the vector of linked lists (the list …

Software Development c++ data-structure linked-list
Member Avatar for sepp2k
0
307
Member Avatar for PaulDel

Hello All, Just looking for code snippets to remove color from jpg image. I would like to remove red, blue, green from a picture, leaving black and white. For instance, imagine a newspaper cartoon with an "X" on the picture. I want to remove the colors leaving the "X". I'd …

Software Development image java
Member Avatar for stultuske
0
326
Member Avatar for Mr.M

Hi DW I'm creating a program in vb.net which is an aspx but I think the solution to my problem as I'm using vb.net can be as vb.net because most of the codes in this web application I wrote it via vb.net, I have a server it a wamp server …

Software Development client-server vb.net
Member Avatar for G_Waddell
0
381
Member Avatar for jelineease

hi I have this code that will send my panel into a printer but the problem is it doesent let me choose which printer I will use any idea on how can I make the printer window appear? thanks Public Class Form1 Dim img As Bitmap Dim WithEvents pd As …

Software Development printer vb.net
Member Avatar for G_Waddell
0
445
Member Avatar for pro_student

please can you help me to solve this problem :>>> no develop a bookstore information system. The bookstore manages a collection of books it is selling, book orders, and customers who purchased from the store. A book store also has a counter that accepts cash from book sales. Each book …

Software Development c++
Member Avatar for pro_student
0
284
Member Avatar for nitish.mohiputlall

The Question: Write a function main that prompts a user to enter the number of different items that he intends to purchase from a showroom.Your program should read for each item the quantity to purchase and the unit price then finally display total amount to be paid anyone help me …

Software Development c
Member Avatar for ddanbe
0
154
Member Avatar for Ankur_2
Member Avatar for vishal daldani
0
150
Member Avatar for techyworld

Hi i need help to retrieve data from DB. I am trying to retrieve from database the number of cars that we registered each month in 2013.Based on that i will draw a line chart.so on my x-axis will be cars, and y-axis is number. Note: i have different models …

Software Development java
Member Avatar for masijade
0
203

The End.