132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for iFrolox

Hello, I'm trying to move listView items (1 selected item only) up & do, but only inside the group, I've trying and search but haven't been able to quiet figure it out, this is what I got so far: Just for going up: if (this.listView1.SelectedItems.Count > 0) { ListViewItem Selected …

Software Development listview
Member Avatar for iFrolox
0
2K
Member Avatar for waqas.zafar.125

Hey Guys! I have to read data from a text file, load it into an array and then bubble sort it! Here is my code: #include <iostream> #include <string> #include <fstream> using namespace std; void Bubble_Sort(string arr[], int length); int main() { int length; length=10,000; ifstream MyFile; ofstream out; string …

Software Development c++
Member Avatar for Ancient Dragon
0
3K
Member Avatar for consc197

Hello everyone, I have a problem, i am unsure how to read the data from my Access Database into my vb.net form. I did some searching but i didn't manage to find anything useful so i would appreciate any pointers. Here is the code from frmAddNewCandidate i am using that …

Member Avatar for oussama_1
0
349
Member Avatar for Sci3nc3F1cti0n

Hey guys, this is my solution to a simple problem and I was looking for some feedback on my code. Please post any criticism you may have about it. //Test project for string to binary conversion// #include <iostream> #include <string> using namespace std; void binConvert(string ConvertMe){ int ArraySize = ConvertMe.length(); …

Software Development c++
Member Avatar for tinstaafl
0
858
Member Avatar for vegaseat

Factorials get large very rapidly. The factorial of 13 is !13 = 1*2*3*4*5*6*7*8*9*10*11*12*13 = 6227020800. This number already exceeds the unsigned long integer, and gets into the real money as the politicians say! This program uses an array of characters to store the factorial as a numeric string. Go ahead, …

Software Development c++
Member Avatar for vegaseat
0
1K
Member Avatar for kamalashraf

i am getting result of average in int instead of float, tell me where i have made mistake. this is the code. #include<iostream> using namespace std; void getData (int a[], int s); int numbersSum (int a[], int s); float average (int sum, int size); int main() { int size=0; int …

Software Development c++ mathematics
Member Avatar for Ancient Dragon
0
325
Member Avatar for EXTRA_RICE

im making a system that will notify me when one month before its expiration. anyone can give me an idea??pls pls pls?? thanx

Software Development visual-basic
Member Avatar for emmy3G
0
110
Member Avatar for xXFalcoPunchXX

I need help in building a binary tree and putting integers in it. I need to write an add method in my MyArrayBinaryTree class (that extends ArrayBinaryTree) that allows me to place the element to be added in the very next available slot in the array. I also need to …

Member Avatar for JamesCherrill
0
365
Member Avatar for msubashrk

i'm inserted a image in sql server2008 as varchar(max).How to retrive in Data Grid view photo column ..i need code ...i tried many ways still getting Confused.

Software Development image sql
Member Avatar for ss125
0
107
Member Avatar for rajeshwarreddyt

Hi Folks, I want to use windows authentication for java application for eaxmple: I have a application called ABC , now i want to apply windows authentication for this ABC appliation like when user hit the application URL the user should login automatically with out prompting any user name and …

Software Development java
Member Avatar for stultuske
0
1K
Member Avatar for Ramy Mahrous

Here's I wrote some code to insert\retrieve images from SQL Server database 1- Create table to hold Image ID, Name and itself [CODE=SQL] USE [ImagesDatabase] GO /****** Object: Table [dbo].[Image] Script Date: 07/10/2009 23:46:46 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO CREATE TABLE [dbo].[Image]( …

Software Development image sql
Member Avatar for Roberto_3
0
10K
Member Avatar for Aldic

Dear All, I'm working on application in C# which needs to filter "blanks" in one column and copy some value from other column instead. Filtering works perfectly, but copying is not so cool.. It copies some lines, but rest left blank. I cant find out where is problem. If possible …

Software Development c c# c++ microsoft-office
0
249
Member Avatar for techxaidz

I am currently having difficulty in testing a condition if a certain button do not have a text on it. For example i have a button in an array named btn[] and a textview(JLabel) named "tv", if i execute this code, nothing happened. if(btn[1].getText().toString().isEmpty()){ tv.setText("Okay"); } i also tried these …

Software Development java
Member Avatar for stultuske
0
171
Member Avatar for Seswing142

I am supposed to get the first and the last word from a string that is input by a user but im not sure how. Any tips would be great! //Print the first word and last word from a string int index = inputString.indexOf(" "); String fistString = inputString.substring(0, index); …

Software Development java
Member Avatar for stultuske
0
8K
Member Avatar for irtza

This program takes a number from the user and then using loop, modulo and division operator split the number into digits. as: import java.util.Scanner; class Split_num { public static void main ( String [] args) { Scanner a = new Scanner (System.in); int num, n, r; System.out.print ("Enter a number: …

Software Development java
Member Avatar for jwenting
0
619
Member Avatar for Mitja Bonca

What do I need that I can add a reference to System.Windows.Controls namespace?

Software Development
Member Avatar for Balaji_1
0
245
Member Avatar for Ravic85

Hello, I'm currently trying to figure out how I could go about taking a getline putting the one line into an array and then putting the first value aka array[o] into a command variable and then all the next values on the line into seperate variables of integer for key …

Software Development c++
Member Avatar for rubberman
0
232
Member Avatar for vividiah

how to make auto numbering for an ID? but id has been given an initial value, examples of initial value: 100027 how to make the ID is automatically incremented by 1? thanks,

Software Development visual-basic
Member Avatar for vividiah
0
134
Member Avatar for dan.gerald

I am having issues on how to assign stock names and respective price on the board positions in a monopoly game in C#, SO far i have only few lines of codes, I need some assistance. stockname.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace WindowsFormsApplication1 { class stock …

Software Development
Member Avatar for ddanbe
0
132
Member Avatar for fernandofranca

Sorry I´m new to PASCAL and I´m using Lazarus to program for Windows CE I dont know why I´m getting the error Error: constructors, destructors and class operators must be methods I have my Unit1 where I´m declaring my form procedures as bellow unit Unit1; {$mode objfpc}{$H+} interface uses Classes, …

Software Development gui pascal
Member Avatar for fernandofranca
0
780
Member Avatar for Iamateur

Accept the string from the user. Find the date from the given string with ddmmyyyy format and display the output as:"date found = " Eg:input:Eg: abc0712201345bye output:date found =07122013 how to do this?

Software Development c
Member Avatar for Adak
0
219
Member Avatar for NajwaMY

I want to enter a data from the text field to my database named project marking. When I compile the java program seems there's no errors but when I click on the Calculate Button the data won't enter into the database. This is the partial code I didn't finished it …

Software Development java java-swing peer-to-peer
Member Avatar for JamesCherrill
0
194
Member Avatar for DCSS

I have a winform that uses a reportviewer to show a list of records. The form load correctly shows all the records in the dataset. The form also has a ToolStrip across the top of the form that allows the user to enter four pieces of information to search by. …

Software Development dataset
0
230
Member Avatar for Tony_8

I am dynamically creating a Form Popup, and populating it with a variable amount of buttons. (it reads a directory and creates a button for each folder in that directory). I have assigned the button.Name of each button to be the name of the directory. My code to do all …

Software Development
Member Avatar for Tony_8
0
203
Member Avatar for farmwife

Here is a plan for a (relatively) random numeric dictionary I've put together. I'm hoping that people can help me refine the plan so that I can start incremental coding: #! usr/bin/env python # creates a random dictionary from random import randint # user inputs maximum length of dictionary # …

Software Development python
Member Avatar for vegaseat
0
218
Member Avatar for marethamogale

write a program that gets a score from a player and rates it based on the following given a score 0-999,the program should display message 'nothing to brag about' 1000-9999 display message 'good score' if score is over 9999 the program should display the message 'very impressive' if score is …

Software Development legal python
Member Avatar for vegaseat
0
159
Member Avatar for Tank50

Hi I used below coding for create a excel sheet.I got from on web site. In below coding there is no problem.Its create the excel file.If i run second time,its ask to overwrite the current excel file.If I said "Yes" then it ok ,but If I select cancel button,its generate …

Software Development c# file-system microsoft-office
Member Avatar for ddanbe
0
1K
Member Avatar for ricardo.scheufele

Hi, I have a class called "car" with - I have no ideia how to say this in english - "data members" as the following: Public pneu As classDoor Public mat As classTire Public length As Double And so on. All the related classes have null constructors. I have a …

Software Development vb.net
Member Avatar for PerplexedB
0
378
Member Avatar for fhau013
Member Avatar for gmmorpheus

Private Sub Load_Faculty() Dim con As New OleDbConnection Dim cmd As New OleDbCommand Dim dr As OleDbDataReader Dim arrImage() As Byte Dim myMS As New IO.MemoryStream Dim sSQL As String = String.Empty Try sSQL = "SELECT b.FacultyFirstName, b.Image, b.Course, a.Course" sSQL = sSQL & " FROM studentsrecords as a left …

0
190
Member Avatar for zspoja

I'm learning to use the pyqt libraries and this code won't work (no output): #!/usr/bin/env python2 # -*- coding: utf-8 -*- from pomocni import Ui_MainWindow from PyQt4.QtGui import QMainWindow, QApplication from PyQt4 import QtCore import sys class MainWindow(QMainWindow): def __init__(self): QMainWindow.__init__(self) self.ui = Ui_MainWindow() self.ui.setupUi(self) def start(): window = MainWindow() …

Software Development python
Member Avatar for zspoja
0
3K
Member Avatar for gmmorpheus

Private Sub Save_Record() Dim con As New OleDbConnection Dim cmd As New OleDbCommand Dim sSQL As String = String.Empty Dim arrImage() As Byte Dim myMs As New IO.MemoryStream Dim bSaveImage As Boolean = False Dim strImg As String = String.Empty If Not IsNothing(Me.pic1.Image) Then Me.pic1.Image.Save(myMs, Me.pic1.Image.RawFormat) arrImage = myMs.GetBuffer Else …

Software Development microsoft microsoft-access vb.net
Member Avatar for Myronz
0
285
Member Avatar for fhau013

what does this mean really need your help thank you!

Software Development c c# c++
Member Avatar for fhau013
0
134
Member Avatar for android_gl

how to test if a num is a square root? ex: 9 is square root 3 is not square root ///////////////////////////////////////////// //do not worry about sytax. int x = 0; //always start at 0 int y = 101010; //is this a square root? square(x, y){ if((x*x) >= y){ //not a …

Software Development algorithm c++ java
Member Avatar for cwarn23
0
327
Member Avatar for IT_Techno

hi ihave 26 tables wanna to build 26 select statements from the tables, so i will have 26 diffrent result of select, but the columes' names have the same names in 26 tables with diffrent data, iwant to bind all data from 26 selects in one datagridview can i do …

Software Development
Member Avatar for IT_Techno
0
131
Member Avatar for bullet_1

I am using following code, it replaces entities in whole html file. But I want to replace only in between specified tags(i.e <div>......</div>) please help me { FileInfo n = new FileInfo(inputpath); string initContent = File.ReadAllText(file); int contentLength = initContent.Length; Matches m; while ((m = Regex.Matches(initContent, "[^a-zA-Z0-9<>=./\\s(&#\\d+;)-]")).Value != String.Empty) initContent …

Software Development regex
Member Avatar for tinstaafl
0
160
Member Avatar for shashikumar s g

/* EXCHANGE THE INTEGER VALUE WITHOUT USING THE THIRD VARIABLE */ #include<stdio.h> void main() { int a,b; printf("enter the two integer variabe \n"); scanf("%d,%d",&a,&b); //exchange the value of a to b ,b to a without using third variable a=a+b; b=a-b; a=a-b; printf("%d%d",a,b); getch(); } /*EXAMPLE: A=3,B=10 A=A+B; // A=3+10=13 B=A-B; …

Software Development c
Member Avatar for shashikumar s g
0
341
Member Avatar for Taruna_1

Hi, I want to identify the datatypes of the te entire dataframe and group it as String, Number and Date. Required Output: Attributes Datatype A String B Number C String As of now I am using the code: for col_number in range(len(data_frame.columns)): datatype = data_frame[data_frame.columns[col_number]].apply(type).unique()[0] if (datatype is np.str or …

Software Development python
0
116
Member Avatar for rach.palo

private void cmdsecadd_Click(object sender, EventArgs e) { try { string myConnection = "server=localhost; port=3306; username=root; password=palo; database= student"; MySqlConnection myConn = new MySqlConnection(myConnection); myConn.Open(); MySqlCommand cmd = new MySqlCommand("insert into student.tblstudlog (studentnumber, fullname, year, section) values ('" + this.txtstudno.Text + "', '" + this.txtfullname.Text + "','" + this.txtyear.Text + "','" …

Software Development mysql
0
96
Member Avatar for DarkLightning7

I have built this function which calls a couple other functions to get the oprator and numbers for an arithmetic operation but I get the error `function call: expected a function after the open parenthesis, but received '+`. normaly you invoke addition as (+ 5 6) and multiplication as (\* …

Software Development
Member Avatar for DarkLightning7
0
239
Member Avatar for Karkalash

Hello: Need some help on how I can pass the following test: 00AA10A4 lea ecx,[eax-1] 00AA10A7 test eax,ecx 00AA10A9 je LockFunc2+27h (0AA10B1h) From my understanding, lea in this case is simply doing ecx = eax - 1 (at least thats what I can observe from debugging) However I keep failing …

Software Development assembly
Member Avatar for Karkalash
0
158
Member Avatar for Tony_8

I have a Visual Express 2012 Windows Form Application written in C#. I have placed a menu strip across the top of the form. I have various pre-made jpgs to use as splash screens and background images during the programs execution. However the tops of them all get cut off …

Software Development
Member Avatar for Tony_8
0
150
Member Avatar for mohan.jce

I know to access tasklist of our machine can be done through os.popen('tasklist').read(). Is there any way to read the tasklist (taskmanager data) of other systems connected in a network using Python? Just reading them will be fine. Purpose: Main objective of this is to write a script which will …

Software Development python
Member Avatar for james.lu.75491856
0
243
Member Avatar for fhau013

hello there! im doing a project point of sale system how iam going to trasform it to have installer ? thank you in advace :) god bless!

Software Development
Member Avatar for fhau013
0
306
Member Avatar for fhau013

C# SelectCommand.Connection property has not been initialized mean? thankyou!

Software Development c c# c++
Member Avatar for fhau013
0
213
Member Avatar for iFrolox

Hello, Right now I have a bunch of textboxs and such and when I click a button the account goes to the ListView and when you click the ListView the information goes to the controls, also I'm able to move the items on the list up and down with other …

Software Development listview
Member Avatar for iFrolox
0
155
Member Avatar for kal_crazy

I am doing a school project which is an airplane collision detection system. Can anyone show me a few examples or pseudocode of implementation of closest pair algorithm O(n^2), O(n log^2 n), O(n log n)?

Software Development c++
Member Avatar for DawnofanewEra
0
520
Member Avatar for HunainHafeez

garbage collector collects unused object during runtime, OK ? i know it but never fully understood it. Like what 'unused' objects ? what makes them unused ? and does GC works when you EXECUTE your program by clicking .exe file ? and does GC work when i run file after …

Software Development asp.net
Member Avatar for HunainHafeez
0
217
Member Avatar for SteveyD

Greetings again. I have a form with a textbox for the user to enter a com port number. When the form and application is closed, how can I get the user's info to populate the textbox when the application is opened again?

Software Development
Member Avatar for timmyjoshua
0
123
Member Avatar for timmyjoshua

Please can anyone tell me where to download a visualstudio for my android phone.....

Software Development android android-development
Member Avatar for timmyjoshua
0
149

The End.