132,729 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for ThrustinDuffman

Hello everyone! Im new to programming and Im working on an assignment but I keep running into trouble. My assignment is to make a trivia game and although I have made pretty good progress, I am stuck on one particular part. The part I am stuck at is I am …

Software Development c++
Member Avatar for ThrustinDuffman
0
167
Member Avatar for IDC_Sharp

ok i made a Browser in FORM1 and i made a button that will open FORM2 (Form2 = Options) so in the Form2 i made a button to change the font of the Browser: [CODE] FontDialog fontDialog = new FontDialog(); if ( fontDialog.ShowDialog() != DialogResult.Cancel ) { textBox1.Font = fontDialog.Font; …

Software Development
Member Avatar for Geekitygeek
0
71
Member Avatar for empyrean

I have two list boxes in two different forms.. I load the data in to second list box using first list box...both have exactly same values.. but in first list box user selects multiple selections and i wanted to show them in second listbox as selected.. i have the following …

Software Development
Member Avatar for Geekitygeek
0
3K
Member Avatar for GAME

Hello, I was wondering if there was a way to cascade the windows any where on a form like in the middle or near the top left hand corner. I dont want the windows to cascade in the top left. I can provide a pic if needed.

Software Development
Member Avatar for nick.crane
0
157
Member Avatar for bpatt22

If I want to find the X coordinate of an image that's already on a canvas, how would I do that with tkinter?

Software Development image python tkinter
Member Avatar for bpatt22
0
507
Member Avatar for ahmedshayan

I have been trying to connect Database in Java for a quit time now. Following is the code. I have worked with .mdb extension, but this time I am using .accdb extension. Database File. [icode] import java.sql.*; class DB{ static Connection con; static Statement sta; static void getDBConnection(String path) { …

Software Development java microsoft-access
Member Avatar for NormR1
0
106
Member Avatar for DustinS

My console program outputs "*" symbols to indicate progress. I'd like to read this in order to update the progress bar in a Windows form: [code=c#] int Progress=0; System.Diagnostics.Process ProcessObj = new System.Diagnostics.Process(); ProcessObj.StartInfo.UseShellExecute = false; ProcessObj.StartInfo.CreateNoWindow = true; ProcessObj.StartInfo.RedirectStandardOutput = true; ProcessObj.Start(); while(!ProcessObj.HasExited){ Progress+= ProcessObj.StandardOutput.ReadBlock(buffer, index, 1); } Progress+= …

Software Development
Member Avatar for DustinS
0
211
Member Avatar for empyrean

Hello everyone..i am newbie in C# programming.. i have two different forms..Form 1 and Form 2. Users will select multiple items in form 1. i wanted to duplicate the listbox in form 1 to form 2. please suggest how to do..

Software Development
Member Avatar for empyrean
0
85
Member Avatar for Medalgod

OK, basically I want to test if the shift key is pressed. The method i've tried (unsuccessfully) is [CODE] private bool shiftPressed = false; private void CheckKeys(object sender, KeyPressEventArgs e) { //If enter is pressed and shift isn't //This allows for line breaks in a message by pressing shift & …

Software Development
Member Avatar for Geekitygeek
0
155
Member Avatar for PDB1982

Can someone explain to me, the purpose of the "public" and "private" options of a class?

Software Development c++
Member Avatar for Knightly
0
557
Member Avatar for majestic0110

Hi, I have written a C# dll and I have a SQL Db that has three columns (username, password, role). The role element is a class of user eg admin, user; each role needs a different login completion event. The login form I am using is an ASP.net web page …

Software Development asp asp.net sql
Member Avatar for khusiaaaan
0
244
Member Avatar for Frederick2

The memset function declared in memory.h is declared this way... void* memset(void* dest, int c, size_t count); and the MSDN example of its use I have shows this for setting the 1st four bytes of a buffer to a '*'... memset(buffer, '*', 4); The 2nd parameter confuses me a bit …

Software Development c++
Member Avatar for Frederick2
0
644
Member Avatar for vlad44

hi everbody I was opening all files in a certain folder I've used WIN32_FIND_DATA, FindFirstFile, FindNextFile. it works well but for certain extension that i ask the user to enter i.e it will get only all the files with the extension given by he user and ignore any thing else …

Software Development c++ file-system
Member Avatar for Ancient Dragon
0
199
Member Avatar for Garrett2011

take two following classes: [CODE=c++] class Test1{ public: Test1()=default; Test1(char in1,char in2):char1(in1),char2(in2){} char char1; char char2; }; class Test2{ public: Test2()=default; Test2(char in1,char in2):char1(in1),char2(in2){} private: char char1; char char2; };[/CODE] I know in c++0x both of these classes are considered as POD types and we can initialize objects of them …

Software Development c++
Member Avatar for Garrett2011
0
292
Member Avatar for haxor98

Im writing a program (has been a little while) which will gather files off my computer and make a new partition the right size to store them. I would like this to be automated since it would help if I use it on friends machines. So pretty much what I …

Software Development api vb.net
Member Avatar for Oxiegen
0
112
Member Avatar for Garrett2011

take two following classes and their constructors as samples: [CODE=c++] class One{ public: One(int a,int b):adad1(a),adad2(b){} private: int adad1; int adad2; }; class Two{ public: Two(int input[]){ for (int i=0;i<10;i++) araye[i]=input[i]; } private: int araye[10]; };[/CODE] considering objects with static storage duration, I think first constructor can be applied during …

Software Development c++ oop seo
Member Avatar for Garrett2011
0
403
Member Avatar for Garrett2011

How does an optimizing c++ compiler determine when a stack slot of a function(part of stack frame of a function) is no longer needed by that function, so it can reuse its memory? . By stack slot I mean a part of stack frame of a function, not necessarily a …

Software Development c++ motherboards-cpu-ram seo
Member Avatar for Garrett2011
0
422
Member Avatar for acrocephalus

Hello! I have created a database named Ornithobase, which contains a Users table with Name, FamilyName, eMail and Username columns. I have already connected to the database with MySQLdb module. How can I print this table in the console from the Python script? Furthermore, how can I perform a search …

Software Development mysql python
Member Avatar for acrocephalus
0
130
Member Avatar for pxalpine

I have a script here that takes a bunch of diff .txt files and plugs&chugs what's in one file into a master "template.txt" list. It basically replaces what's in the [BRACKETS] in the master template list with the other data files. Here's my code: [CODE] import re, sys class Template: …

Software Development python
Member Avatar for woooee
0
111
Member Avatar for Jackie91

I was having an error, it says cannot convert string into int..i have no idea how to convert string into int. My teacher asked me to read 5 students names into the array..help me pls.. [CODE] #include<iostream> #include<string> #include <stdlib.h> using namespace std; int search(int data[], int size, int value) …

Software Development c++
Member Avatar for Lerner
0
152
Member Avatar for Tommymac501

This code worked fine under 2.6: [CODE]f = open("v20100515.csv",'rt') r = csv.reader(f) try: r.next() # skip the header record for row in r: n = 1 for col in row: print str(n) + ": " + col n += 1 ......[/CODE] But since I upgraded to 3.1, I modified it …

Software Development python
Member Avatar for Tommymac501
0
2K
Member Avatar for jacg4

Hello everyone My request is the following: Do anyone know about a collapsible panel that can be used on a windows forms project? Thanks for any answer

Software Development c# visual-studio
Member Avatar for jacg4
0
119
Member Avatar for kate2mba

Hello all I am very very new to programming & Python. My problem is I cannot figure out how to create a line consisting of random colored pixels. I know how to create a white or red line but how to make the colors random is beyond me. This is …

Software Development python
Member Avatar for Beat_Slayer
0
114
Member Avatar for java_programmer

Hi, I have just started to learn python. I have installed and set the environment variables as per documentation. And from command prompt, I execute some python script,too. But I can't execute multiple line script, if the script contains any function. For example, see the following code - >>>a,b=0,1 >>>print …

Software Development python
Member Avatar for TrustyTony
0
363
Member Avatar for kalpa23

i have this asp.net web site i made using v.s.2003 and i made a web setup project and made a msi installer but my installer file is not working properly when i execute it preparing to instill massage come an then it disappears and nothing happens after that if any …

Software Development asp.net
Member Avatar for kalpa23
0
104
Member Avatar for nahmartin

Quick help please I am writing some data to a file but I do not know the information required in the third line until after the file is completed is there a way to point the ofstream back to the beginning of the file so that i can edit it …

Software Development c++
Member Avatar for mike_2000_17
0
433
Member Avatar for ssmg

Hi everyone; I have a character array of 13 elements and I already defined the first 5 ones. The rest chars are constant so all I need to do is assign the chars between 6-12 instead of writing them one by one.To make it clearer, say my string is "ILoveYouMary" …

Software Development c++
Member Avatar for ssmg
0
124
Member Avatar for coroll

Hi!, when im trying to execute following code.i get this error.can any one help me to make it correct. java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Data type mismatch in criteria expression. at sun.jdbc.odbc.JdbcOdbc.createSQLException(Unknown Source) at sun.jdbc.odbc.JdbcOdbc.standardError(Unknown Source) at sun.jdbc.odbc.JdbcOdbc.SQLExecDirect(Unknown Source) at sun.jdbc.odbc.JdbcOdbcStatement.execute(Unknown Source) at sun.jdbc.odbc.JdbcOdbcStatement.executeQuery(Unknown Source) at SelectApp.main(SelectApp.java:18) this is my …

Software Development java microsoft-access
Member Avatar for java_programmer
0
199
Member Avatar for greenman626

I would like to know how to write code for a right circular shift aka lazy susan. Its an array with 10 elements let me show you and example first time throw array it prints 1,2,3,4,5,6,7,8,9,10 second time throw after right circular shift of 3 places for example it prints …

Software Development java
Member Avatar for jon.kiparsky
0
276
Member Avatar for siriphonic.ner

*I need help solving this. Stuck half way. Would someone mind giving me an example of their program of this?* The local t-shirt shop sells shirts that retail for $12. Quantity discounts are given as follows: Number of shirts Discount 5-10 10% 11-20 15% 21-30 20% 31 or more 25% …

Software Development c++
Member Avatar for siriphonic.ner
0
2K
Member Avatar for emps

Ok, this has got me banging my head against a wall. I have a structure defined in a header file. It get initialized in my "main.cpp" file, then later in a separate file "readconfig.cpp" it gets accessed to store information. I haven't been able to get it to compile except …

Software Development c++
Member Avatar for emps
0
1K
Member Avatar for Pim

The problem is that this program crashes: [code] program Arrays; var a: array[1..5] of Integer; i, j, tmp: Integer; begin a[1] := 23; a[2] := 45; a[3] := 12; a[4] := 56; a[5] := 34; for i := 1 to 4 do for j := i to 5 if a[j] …

Software Development pascal
Member Avatar for Ionelul
0
257
Member Avatar for neo.mn

Hi i m developing a payroll and attendance project in C# with MS SQL server 2005. currently i am facing a problem with one of my class. i can not understand the problem. now i would like to send my full code and database by email to anyone of your …

Software Development
Member Avatar for Geekitygeek
0
108
Member Avatar for MARKAND911

I want to add Combobox in a column of Datagridview in window Application using C#.net. How can i Do this.

Software Development
Member Avatar for Lusiphur
0
74
Member Avatar for angelinrajeesha

Hi, what are the classes that cannot be instantiated in c++? I know that one of the ans is Abstract base class.what is the other one in c++? could you please help us?

Software Development c++
Member Avatar for angelinrajeesha
0
622
Member Avatar for EmmaH

Hi there Im trying to program a simple project for school but am having troubles. I need to ask a person to enter a number which displays on screen, then multiply that same number buy itself. I can get the number entry part but keep getting errors from that point …

Software Development
Member Avatar for finito
0
133
Member Avatar for ThrasherK

I am new to programming but when I took my class on Visual Basic it seemed so easy and I learned it so fast. It seemed like a giant puzzle. Now I am taking a introduction course to C++ and I cannot seem to grasp the material at all. When …

Software Development c++ puzzle visual-basic
Member Avatar for Fbody
0
677
Member Avatar for Garrett2011

Is there a macro that can get a text as input like "abc" and then extract characters in that text and generate a code using them, something like "{'a','b','c'}" ? thanks.

Software Development c++
Member Avatar for mike_2000_17
0
208
Member Avatar for Shannanigin

OK this is what I want to do: [LIST=1] [*]Log the User in by checking with a SQL Database with a table that has user name and password. Also that table is linked to another table with all there personal information [*]After they login, they have to enter information into …

Software Development linked-list sql
Member Avatar for khusiaaaan
0
776
Member Avatar for hunfa

[code]public partial class Form : System.Web.UI.Page { private void connecttodb() { OracleConnection conn = new OracleConnection(); conn.ConnectionString = "User Id=WLL; Password=wll; Data Source=WLL;"; } protected void Page_Load(object sender, EventArgs e) { if(!Page.IsPostBack) { String CommandText = "Select DepartmentID,Department from its_department;"; OracleDataReader odr = GetDr(CommandText, ConnectionString); DropDownList1.DataSource = odr; DropDownList1.DataTextField ="Department"; …

Software Development open-source
Member Avatar for Lusiphur
0
75
Member Avatar for kerek2

Hi all... i need to do some study regarding how to count the multiple int that keep in by user like this :- "Please enter the integer : 1 3 5 66 88 (1+3=4+5=9+66=75+88=163 - the program will terminted cause exceed than 100) how to do ?...i stuck very long …

Software Development java
Member Avatar for stephen84s
0
108
Member Avatar for Garrett2011

Suppose we have following two classes: [CODE=c++] class Temp{ public: char a; char b; }; class Final{ private: int a; char b; char c; public: Final(Temp in):b(in.a),c(in.b){} //rest of implementation };[/CODE] can we initialize an object of the Final class with following syntax in upcoming c++0x standard: [CODE=c++] Final obj(Temp{'a','b'});[/CODE]

Software Development c++ oop
Member Avatar for mike_2000_17
0
257
Member Avatar for virusisfound

Hello, I want to print a crystal report on paticular size of parer. but it has only standerd size (A4 size). how can i set the size of the report.

Software Development
Member Avatar for virusisfound
0
97
Member Avatar for neetika reddy

i have written this in else condition ..can anyone please check this... [CODE] else if (DDlDepartment.SelectedValue != null && DDLStaffid.SelectedValue != null) { con.Open(); string str1 = DDlDepartment.SelectedValue; string str2 = DDLStaffid.SelectedValue; SqlDataAdapter ad1 = new SqlDataAdapter("Select * from ManstaSalary where Department='" + str1 + "'and StaffID= '" + str2 …

Software Development dataset display
Member Avatar for Geekitygeek
0
399
Member Avatar for saqib_604

Aslam o Alikum to all, here is my code to get and change the attributes of a txt file. I want to change the hidden attribute of file. In this code, when i get attribute of file, the number 20 (100000) is returned in cx. I changed this number to …

Software Development assembly
Member Avatar for muslimgirl
0
315
Member Avatar for lawlip0p

Hi, I have a problem trying to capture data from a database to a label. I am trying to display a list of values from my database when i press a button. Can anyone help me out? This is my code for my database [ CODE]Dim strDBFileName As String strDBFileName …

Software Development open-source vb.net
Member Avatar for pritesh2010
0
175
Member Avatar for sakhi kul

hello everybody, I need a code to export data from Ms-access database to Ms-Excel sheet using VB.NET Thank you in advance:)

Software Development asp.net vb.net
Member Avatar for hungk53c
0
181
Member Avatar for solycutema

Hi all, Currently im doing a little coding to communicate between two PCs through RS232 ports. i am thinking of using: "writeFile" to send a string to the other PC, "readFile" to read back the acknowledgement string from that PC and "strcmp" to check if the read back acknowledgement string …

Software Development c c# c++
Member Avatar for solycutema
0
151
Member Avatar for kerek2

Hi, I need ur help regarding to do this program in java....i need to do program where user can input any number n this program will count until reach 100...if reach then the program will print out :---bla bla bla.....if not user can keep input the integer..how to to?...i'm dizzy …

Software Development java
Member Avatar for kerek2
0
144
Member Avatar for krap_nek

Hi, well what I'm trying to do with this, is to read a text file line by line and pass its data to the struct. the problem is that not only i can't read the strings and put it on the struct fields, I also get a segmentation fault. Could …

Software Development c file-system
Member Avatar for xwolfjack
0
3K

The End.