132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Start4me

I have a list box, with an item "Math". When I click on the Math item, I want a new collection of items to be added to the listbox after removing the current Math item, and make a back button to appear to return Math item back in case I …

Software Development vb.net
Member Avatar for Start4me
0
248
Member Avatar for yAjMeL

Hello there.. I want to backup my database (MySQL) using a command button in VB6...How can I do that? thank you for answering... :)

Software Development mysql visual-basic
Member Avatar for Minimalist
0
1K
Member Avatar for amcath

Hi Could you please tell me how to solve this simple problem in c++. #include<iostream.h> #include<conio.h> void main() { clrscr(); int a=5,b=3; int y=a-b++ * --b; /* manually I get the answer as 6 , but the compiler gives as -4 . how?*/ cout<<y; getch(); }

Software Development c c# c++
Member Avatar for deceptikon
0
247
Member Avatar for CoilFyzx

Hello good day. I am having trouble letting my listeners wait on each other. I have a 1. JComboBox 2. JList - groups 3. JList - students The choice from the JComboBox, clears and updates the groups JList by way of an actionlistener. The ListSelectionListener for the groups JList, then …

Software Development java
Member Avatar for CoilFyzx
0
760
Member Avatar for murali2489

Hi Team, Im reading collections and there is a topic called Backed Collections. I could not understand the output below . Please throw some light on it. TreeMap<String,String> map = new TreeMap<String,String>(); map.put("a","ant"); map.put("d","dog"); map.put("h","horse"); SortedMap<String,String> submap; submap = map.subMap("b","g"); System.out.println(map + " " + submap); map.put("b", "bat"); submap.put("f","fish"); map.put("r", …

Software Development java
Member Avatar for murali2489
0
238
Member Avatar for samtechae

hae all, how can one make a program that will count number of items in an array and also insert item at certain positons in an array.Thanks in advance...

Software Development c++
Member Avatar for anku gupta
0
129
Member Avatar for Start4me

I'm trying to select items from the listbox when pressing Enter on the selected item. Here is what I have tried so far: Private Sub ListBox1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles ListBox1.KeyDown Select Case e.KeyCode Case Keys.Enter ListBox1.SelectedItem = ListBox1.PerformMouseClick() End Select End Sub

Software Development gui vb.net
Member Avatar for G_Waddell
0
382
Member Avatar for Patrik_2

Im going to do a game of dart 501, the game is gonna have 1 player and 1 computer player that throws random. Every throw can give 0 - 60 points, so max 180 a round. The players points its written manually while the computers is automatic generated. First one …

Software Development
Member Avatar for Ketsuekiame
0
298
Member Avatar for maurice.waka

Is there a pythonistic way available to search all the tables and columns of an Sqlite3 database? The only inputs would be the name of the sqlite DB file or a raw input. I am trying to write a forensics tool and want to search sqlite files for a specific …

Software Development python sqlite
Member Avatar for Gribouillis
0
348
Member Avatar for kothaisaravan

Hi, I have two forms, Form1, Form2 I need to show form2 first and then add form1 to form2. I did this in program.cs Passing form2 object to form1 in constructor. am assigning the properties of form2 in form1 using the constructor object. static class Program { static void Main() …

Software Development
Member Avatar for kothaisaravan
0
274
Member Avatar for Muhammad_52

sir please i want a c# code that reads from the txt file and save it to database...

Software Development c c# c++
Member Avatar for Mike Askew
0
115
Member Avatar for vishal anand.s

Hi my name is vishal. For the past 1 week i been in the process of creating a dashboard using listview in c# windows forms with sql server 2008. I created listview named lstDashItems and populate it from a table named USERACTIVITIES in sql server 2008. The design of USERACTIVITIES …

Software Development listview microsoft mssql
Member Avatar for vishal anand.s
0
390
Member Avatar for makakus

I need detect GPU (videocard) and set settings of the app, appropriate to GPU performance. I'm able to make a list with settings for each GPU model, but I don't understand how to easily detect model of GPU installed in PC. What is the best way to solve this task? …

Software Development display
Member Avatar for makakus
0
250
Member Avatar for napninjanx

Like for example a person created a photo app every android user used the app and millions used it as well so it became popular. For example Google wanted to buy it for 2 billion dollars. How would the person sell the app? By giving them the software he coded? …

Software Development android app-store
Member Avatar for napninjanx
0
180
Member Avatar for TheDarkHorse

I really need help with this. If anyone could guide me, please let me know. - Sincerely, thank You

Software Development c++
Member Avatar for rubberman
0
114
Member Avatar for muneebhasan

Imagine you are developing a software package that requires users to enter their own passwords. Your software requires that user’s passwords meet the following criteria: • The password should be at least six characters long. • The password should contain at least one uppercase and at least one lowercase letter. …

Software Development c++
Member Avatar for richieking
0
298
Member Avatar for chubbyy.putto

How can i get this code to show once and it counting all the positive? When i enter a 10 numbers. it show The positive are.... The positive are.... The positive are.... The positive are... The positive are... ... until 10 can someone show me how to make it show …

Software Development c++
Member Avatar for Ancient Dragon
0
175
Member Avatar for frnds2vivek

Hi, I am working on a project. The project is running perfectly with no run-time errors on the development console. But when it was installed and executed on the test pc, I came across an error **(-2147217900 : The database engine could not lock table 'tablename' because it is already …

Software Development visual-basic
Member Avatar for kmomo5
0
183
Member Avatar for javed.iqbal.3979

Hi all,, A module of my Bank Management System which should display the user account details after successfuly entering his/her details calls to a function: void display_acc(int n) { account acc; int flag=0; ifstream inFile; inFile.open("account.txt",ios::in); if(!inFile) { cout<<"File could not be open !! Press any Key..."; return; } cout<<"\nBALANCE …

Software Development c++ ios
Member Avatar for NathanOliver
0
156
Member Avatar for Start4me

When creating a new project, I have a list of Frameworks to chose from. I need a Framework which will allow my program from Bin -> Debug -> Program.exe to work on various computers, such as Vista, Windows 7 & 8, and perhaps any others of the Windows family. I …

Software Development asp.net vb.net windows-vista
Member Avatar for Minimalist
0
308
Member Avatar for Nandomo

DatagramSocket SERVERSOCKET = new DatagramSocket(9999); byte[] receiveData = new byte[2000]; while (true) { DatagramPacket receivePacket = new DatagramPacket(receiveData, receiveData.length); SERVERSOCKET.receive(receivePacket); String LINE = new String( receivePacket.getData()); InetAddress iPAddress = receivePacket.getAddress(); int port = receivePacket.getPort(); } Ok I have this right now, I have been googling, yet I do not know …

Software Development java
Member Avatar for Nandomo
0
398
Member Avatar for nhrnjic6

program works fine until I call print_List function : void print_List() { Vagon *kondukter = head; while(kondukter != 0) { cout << kondukter->num<<" "; kondukter = kondukter->p_next_num; } cout << kondukter->num<<" "; } and that it opens some some new boxs that says : win checking for solutions. I used …

Software Development c++ linked-list
Member Avatar for nhrnjic6
0
323
Member Avatar for javed.iqbal.3979

Hi Coders!!! I am developing a Bank Management System ..In one of its provided facility i.e.new account creation i am having problem with gets(name) . void account::create_account() { cout<<"\nEnter The account No."; cin>>acno; cout<<"\nEnter The Name of The account Holder :\n"; gets(name); cout<<"Your name is :"; puts(name); //for check purpose …

Software Development c++
Member Avatar for Ancient Dragon
0
196
Member Avatar for Andrew_9

I need to change the default page a C# application redirects to when the current authenticated user doesn't have permission to reach that page. I looked through the application and found the following code: <authentication mode="Forms"> <forms timeout="525600" loginUrl="~/login/" defaultUrl="~/unauthorized/" /> </authentication> It did not have a defaultUrl before, so …

Software Development web-browser
Member Avatar for Andrew_9
0
314
Member Avatar for sk8ergirl

hi, I have gui with layered pane and four buttons two buttons are above the layered pane and the two buttons are at the left side of the layered pane.the user can controll the size of the GUI but the proplem is that the buttons size doesn't change I want …

Software Development gui java
Member Avatar for JamesCherrill
0
132
Member Avatar for danielagaba

Hi I've run this code and i get no errors but my form data is not saved on the dataset or database. This is the click event code. [code] Dim conn As New SqlConnection("Data Source=.\SQLEXPRESS; AttachDbFilename=|DataDictionary|\TMSDB.mdf;Integrated Security=True Instance=True") Dim ds As New DataSet conn.Open() Dim Adp As New SqlDataAdapter("select * …

Software Development dataset open-source vb.net
Member Avatar for jigar.makhija
0
969
Member Avatar for _Nestor

I have a question about how the message loop works in a windows application [code] while ( GetMessage(&msg, NULL, 0, 0) ) { TranslateMessage(&msg); DispatchMessage(&msg); } [/code] Does the windows o/s maintain a message queue that the app retrieves a message from the front of then dispatch it bck to …

Software Development c++ queue
Member Avatar for shinejos
0
379
Member Avatar for sonam281

hello,my code is below mention, bt in this my eraser button doesnt show me any cursor in drawpad.. thanxxx in adva import java.awt.BasicStroke; import java.awt.Color; import java.awt.Cursor; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.Image; import java.awt.Point; import java.awt.RenderingHints; import java.awt.Toolkit; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.ItemEvent; import java.awt.event.ItemListener; import java.awt.event.MouseAdapter; import …

Software Development java java-swing
Member Avatar for JamesCherrill
0
282
Member Avatar for haider885

runtime error "not recognized as an internal or external command, operable program or batch file" # include <stdio.h> # include <stdlib.h> # include "iostream" using namespace std; int main() { char ch; cout<<"Do you want to Logoff your computer now(y / n) \n " ; cin >> ch; if (ch …

Software Development c++
Member Avatar for haider885
0
116
Member Avatar for ManthanB

Well i know one can multicast using udp port. but i want to know if it is possible to do the same using c sharp. since TCP is connection oriented protocol. So expectedly it will not allow to connect other client to the server if already it is connected on …

Software Development tcp-udp
Member Avatar for Ketsuekiame
0
375
Member Avatar for christan

Greetings, Can someone please tell me on how to use this class? Public Function GetDataFromStoredProcedure(ByVal spName As String) As DataTable Dim ds As New SqlDataAdapter Dim dt As New DataTable Dim cmd As New SqlCommand Dim con As New SqlConnection(_connectionString) Try _success = True con.Open() cmd.CommandType = CommandType.StoredProcedure cmd.CommandText = …

Software Development dataset vb.net
Member Avatar for christan
0
187
Member Avatar for zawpai

Hi, I have some problems when drawing dot or lines in picturebox. If I do minimize and maximize the form after finishing my drawing, all of my drawing will be lost. I can't see any more. How should I handle this situtation? Regards, Zawpai

Software Development visual-basic
Member Avatar for zawpai
0
151
Member Avatar for maurice.waka

from Simhash import Simhash from teamque1.referrences.definitions import define from teamque1.referrences.definitions import teamscore from teamque1.referrences.definitions import teamplayers from teamque1.referrences.definitions import teamtable from teamque1.referrences.definitions import teamposition from teamque1.referrences.definitions import teamsgame import re import sys import difflib name = input def search_soccerteams(): """Searches through the system finding the team stuff e.g. if you …

Software Development python
Member Avatar for maurice.waka
0
253
Member Avatar for dsushmareddy

Gtk-CRITICAL **: IA__gtk_range_set_range: assertion `min < max' failed I am getting this error when running my code wriiten using wxpython. Can anyone please explain what this error is.

Software Development python
Member Avatar for vegaseat
0
372
Member Avatar for rbyrd

How can I capture a mouse click on a wx.Panel so that a circle is drawn wherever the mouse is clicked on the panel?

Software Development python
Member Avatar for vegaseat
0
556
Member Avatar for Felix Arba

Hey guys ! I hope I'm not posting this topic in wrong place . I'm new to DaniWeb forum , although I've been previously following certain articles as a guest . Anyway , let's get to bussines . I have this problem , as titles says , I need to …

Software Development c++
Member Avatar for Felix Arba
0
180
Member Avatar for rowen_1

1)How would you give a short and good explaination to someone who is a beginner in programming of the following * short * long * typedef * const

Software Development c++
Member Avatar for deceptikon
0
176
Member Avatar for klika

So i have to write a c++ program for the Graeffe's square root method I have am stuck here when i have this formula transform into c++ code, the formula is on the link The code works particulary, the (elem[j-1]*elem[j+i]) doesn't work, it's beeing ignored and i don't know why... …

Software Development c c# c++
Member Avatar for tensity
0
1K
Member Avatar for eplymale3043

Write a program that can read the students records from the file “scores.dat”. This program will find the maximum and the minimum student scores. The first line in the file is a header. Each line (starting from the second line) contains the records of one student separated by spaces. These …

Software Development python
Member Avatar for vegaseat
0
2K
Member Avatar for Cap'nKirk

Hi all, I am having a play around with batch files but have hit a stumbling block. The file returns the contents of an image folder and outputs the results in html format as such: Thumbnail - Filename (usable link) - Creation Date - Modified Date Please bear in mind …

Software Development shell-scripting
Member Avatar for Cap'nKirk
0
225
Member Avatar for fourty

How can i copy data from a named range in a different worksheet and paste it to another worksheet all done without activating both sheet. With all code just behind a form button If i try to use the statement **application.goto reference:="x"** where x is the named range but this …

Software Development microsoft-office visual-basic
Member Avatar for Stuugie
0
6K
Member Avatar for Neelam_1

Can some one tell me that global variable are static bydefault or not?

Software Development c
Member Avatar for Neelam_1
0
206
Member Avatar for IndyItMan

Greetings all. In my MVC app I am trying to iterate through 2 collections, which are similar to a jagged array (a collection of modules, each containing a collection of components). Module and Component each have an Index attribute where the sort order is specified through an admin tool. The …

Member Avatar for IndyItMan
0
238
Member Avatar for christan

Greetings, i just want to ask how to insert a data with fk. Like if i insert a data on tblPatient, the patientID will be displayed on the tblRecord. is it just a normal insert into tblpatient or is there another code for it? Thanks.

Software Development vb.net
Member Avatar for G_Waddell
0
218
Member Avatar for on94

I have 2 form called form1 and form2 why i cannot use this code form1.textbox.Text = "Hello" ????

Software Development vb.net
Member Avatar for G_Waddell
0
122
Member Avatar for murali2489

Dear All, I am reading Generics, below method is confusing. It clearly mentioned in the Method parameter that it should accept only List. But when i give ArrayList as Argument it compiles. It should be only List right? eventhough Arraylist is an implementaion class. below is the code PLease explain. …

Software Development java
Member Avatar for murali2489
0
238
Member Avatar for triumphost

I've created: #include <streambuf> #include <iostream> #include <windows.h> template<typename T> class BufferedStream : T { private: T &stream; std::streambuf* buffer; //planning to use this to create other "IO" functions. public: BufferedStream(T &stream) : stream(stream), buffer(stream.rdbuf()) {} ~BufferedStream() {stream.rdbuf(this->buffer);}; std::ostream& operator << (const char* data); std::ostream& operator << (const std::string &data); …

Software Development c++
Member Avatar for Ancient Dragon
0
273
Member Avatar for MARKAND911

I am building a winform Application. I have to create buttons dynamically based on data fetched from database. I followed following steps Created UserControl On UserControl_Load event I fetched data from database. I populated the UserControl with buttons based on number of rows i get from the database. The above …

Software Development listview visual-studio
Member Avatar for deceptikon
0
426
Member Avatar for wallet123

It is relaed to the thread i posted a while ago. Before I edited the model of my table, it was working properly, but when i added some columns thats when the problem came out. Everytime i click the button that will open this window, it goes blank. Only a …

Software Development java java-swing
Member Avatar for wallet123
0
352
Member Avatar for bahed121

Hello All, I have a C1TrueDBGrid on my form it was working fine but when i added a new view i.e. on button click grid's datasource changed and display new values but the problem is that on this click i don't know why the checkbox column of my grid widens …

Software Development
Member Avatar for Nagarjungn
0
1K

The End.