64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for zy_430l

hi, im a newbie in using vb2008 and mysql server 5.1. i tried creating a dataset using the myodbc driver 5.1 (which im sure is correctly typed in because that is the exact same connection string i used for data manipulation within my app. now, im stuck. i cannot generate …

Member Avatar for tomason
0
623
Member Avatar for slrobinson1983

hello all. i've bee learning php for the last couple of weeks while designing a site but i am now frequently running into situations where i need to use javascript. i have a page where i want a user to browse for a pic with a file field and i …

Member Avatar for slrobinson1983
0
295
Member Avatar for AngelicOne

My textbox is set to read-only, but I need to disable the focus on a textbox. There's an error that a read-only textbox could not lost focus. Is there any other way to get a white backcolor that has a particular width? I tried to do it with textbox and …

Member Avatar for AngelicOne
0
252
Member Avatar for AngelicOne

Instead of changing my 15 textboxes manually, I would like to do it automatically, maybe doing a foreach loop? I don't know what do you call it but this kind of method is usually done when clearing textboxes and controls that is instead of putting a .clear() to all textbox, …

Member Avatar for AngelicOne
0
103
Member Avatar for JDSkywalker

I have 2 types of datagrid combobox columns. One where the value member is an integer (ID) and another where the value member is a string(Shortname). The display member (Longname) in both are strings. The one with the string value member works fine. The one with the integer displays the …

Member Avatar for Mitja Bonca
0
659
Member Avatar for stimp80

I'm working on a Windows Forms application created in Visual Studio 2010. Working with 2 different forms, I have a ComboBox on the first form that is databound to the client table of my database. Also on the first form is a link-label that opens the second form without closing …

Member Avatar for stimp80
0
331
Member Avatar for Nickod777

Got a code failiure. I tried making a code that does this. Grade calculator. Assume max points are 300. make the user submit 3 numbers between 0-100 and have them added together and divided by 300 to get a decimal to the possible nearest Hundredth or whole number. 3 numbers …

Member Avatar for Ezzaral
0
196
Member Avatar for cousinoer5

I'm taking an advanced C++ class now, and everything up to now has been pretty simple (mostly review stuff), but now we got to binary file io and it's kicking my butt. This program is supposed to read from a file called "Hardware.dat" (or create it if it doesn't exist), …

Member Avatar for cousinoer5
0
485
Member Avatar for reemhatim

long seats; long no_of_guests; long fact=1; cout<<"Enter the number of seats nn"; cin>>seats; cout<<"nnEnter the number of guestsnn"; cin>>no_of_guests; for(int i=0;i<seats;i++) { fact*=no_of_guests; no_of_guests--; } cout<<"the possible combinations : "<<fact<<"nn"; this code has run successfully but there is a something that I couldn't get first this program will run this …

Member Avatar for Momerath
0
86
Member Avatar for Tellalca

Hey; I am trying to keep a data file but I'm getting confused with the sizeof(char) = 2 bytes. I understand that it is a unicode char but why does class BinaryReader's function ReadChars(int count) function just increases the streams position by count bytes ? If that is not clear …

Member Avatar for Momerath
0
191
Member Avatar for ptara1

I have a script that calls up a picture stored in a database. I then have a script that displays said picture on another page. If there is no picture in the database I would like for their to be a no picture icon displayed. New to php but I …

Member Avatar for ptara1
0
2K
Member Avatar for frank33

In my code I am trying to draw/define a line but despite my best efforts I cannot make it appear as thick as I would like. To be more exact I cannot do that INSIDE A GROUP BOX, although outside that box the definition is exactly as required. The full …

Member Avatar for frank33
0
190
Member Avatar for musikluver4

How do you allow an action to be performed when a user selects a specific item on a Choice() component? For example: If a user selects a specific item on the Choice() component, I want a JTextField() to be set to .setVisible(true) and appear. Anyone?

Member Avatar for musikluver4
0
85
Member Avatar for WildBamaBoy

I'm doing a client and server program and I am having issues getting my computer's local IP address. [ICODE]Dns.GetHostAddresses(Dns.GetHostName());[/ICODE] returns 2 addresses for me. My computer is behind a router with 2 others on the network. The code returns 192.168.1.2 (I know this is my computer), and 192.168.56.1 (I have …

Member Avatar for WildBamaBoy
0
1K
Member Avatar for JaviP

Hello, I am new to C++ programming. I need to do this problem for a class but I'm a bit stuck, it's giving me many errors, could anyone point out what the problem is please? This is the problem: A country club, which currently charges $2,500 per year for membership, …

Member Avatar for JaviP
0
623
Member Avatar for addlou

Write a method called newTest(String input) that accepts one input. Input is a string stored as a variable called input and returns nothing back. Method should test to see if the string’s first and last characters are the same and should disregard case. Use a string method that converts to …

Member Avatar for mKorbel
0
163
Member Avatar for sipchen

In reference to this post [url]http://www.daniweb.com/forums/thread43763.html[/url] I have another more specific question about passing data between forms in VB.net I have a form with over 50 variables that I need to access on a second form and if i followed the method above, my form 2 will end up way …

Member Avatar for Mariandi
0
2K
Member Avatar for annndrey

Hi all! I have a question about PyQT4. How can I get an index of current cell, in which the cursor is whitout clicking on it? According to official documentation of QT there are only signals that send current index when you click on it. But if you just enter …

Member Avatar for annndrey
0
275
Member Avatar for oliminator123

Hi, new here but would appreciate some sort of help. I have to create a program that takes 20 random strings from a string array of 40 words I made, and store them into a new string array called second. Directions: -create random # generator -generate random # between 0 …

Member Avatar for oliminator123
0
816
Member Avatar for codeblock

Hi all, i have a problem in writing a block of SQL code in mysql. The block of code will have too delete a single row/record from about 23 related tables all at once. The code that i have written so far will only delete 1 row/record in 10 related …

Member Avatar for codeblock
0
138
Member Avatar for addlou

I need help showing me where I went wrong. Given problem is. Print to System.out a new string composed of every alternate character in sentence starting with the first. Use a loop to go through a string and retrieve characters from alternate index positions. Append these characters to another string …

Member Avatar for addlou
0
4K
Member Avatar for Muhammadlodhi

Hi .. i want to print this pattern of number using loops . if input is 5 then output should be ... 155555 224444 333333 444422 555551 i have solved 1 22 333 4444 55555 but another reflection is not coming in my mind ... and making me confuse need …

Member Avatar for Muhammadlodhi
0
109
Member Avatar for aaronmk2

I am putting 20 objects in an array then I am using a bubble sort (not the most efficient, I know) to organize the set from highest to lowest. I am wondering if there is a way to do this without using sets (mutators)? Code is below. using System; using …

Member Avatar for aaronmk2
0
96
Member Avatar for RicardoE

Hi, Today I was reviewing traffic for one of my websites, I found out that someone linked a jpg image into a forum, and now its getting huge bandwith I mean a lost of hits even when the image was deleted, hits I could use, is there a way for …

Member Avatar for RicardoE
0
152
Member Avatar for -acir-

[ICODE] here's my code below and i cant seem to find out how to return to public static void main after selecting yes in the dialog box. this cud be a very damn question however i get confuse about how to resolve this. thanks. by the way, this program is …

Member Avatar for -acir-
0
886
Member Avatar for Dexxta27

Well first of all. I am pursuing my associates in CIS, and wanted to continue by getting a bachelors in CIS. The university I am able to go to(UWI*) does't offer that, instead it has MIS and CS. I have done one year of CS(CAPE*) before, and MIS does too …

Member Avatar for Dexxta27
0
164
Member Avatar for davidmhollis

I am running a batch file using msxsl to take an input xml file like below <ns1:invoicedata> <data1>1</data1> <data2>2</data2> </ns1:invoicedata> I need to copy this original output and replace the values with the input file values <ns2:invoiceoutput> <data3>3</data3> <data4>4</data4> <data5>5</data5> </ns2:invoiceoutput> so that it ends up with the following data …

Member Avatar for davidmhollis
0
246
Member Avatar for mikeflash

hey all, The server where I host my website went into unscheduled maintenance, a few minutes later I noticed that the IP of the server changed (they probably moved my website to another server since it's paid hosting although shared). So, my website was back online but some things weren't …

Member Avatar for joefarang
1
1K
Member Avatar for arelius

Hello All, On my local machine, my website works perfectly. All the functionality that I have made works great. I then copy my folders from my local machine to my test development web server. Once this occurs, certain functionality of my website no longer works, yet it is a direct …

Member Avatar for Fortinbra
0
112
Member Avatar for baldwindc

I am taking a data structures class and we are using the standard gcc compiler on a unix system. This is fine and I have no troubles using it, but I would like to begin using an IDE for my labs. I am trying Visual Studio 2010 Professional with my …

Member Avatar for baldwindc
0
242
Member Avatar for AngelicOne

I thought by setting up the custom format of date time picker to |MM/dd/yy hh:mm tt" would work, but the selection doesn't change from date picker only! I need an object that I can be able to choose both date and time.

Member Avatar for AngelicOne
0
93
Member Avatar for abhi10kumar

I have text area and combobox, Selected value of combobox is to inserted at the current cursos location in the text area. How it can be possible ??

Member Avatar for abhi10kumar
0
95
Member Avatar for muhamin

bellow is my entire file, the problem is when i insert multiple links, it only fatch 1 link from the textarea and then giving me the following error on the rest, FYI there is no problem with the reading part in the text area i can read line by line …

Member Avatar for paulrajj
0
223
Member Avatar for mbarandao

Hello: I have a mysql table which has following rows: id (unique and auto increment) platenumber customerid servicearea date I want to create a sql statement which essentially performs the following task: Pull from table_name the last inserted row where the customerid='mb6537'. There could be more than one row containing …

Member Avatar for phpology
0
83
Member Avatar for ntrncx

ok i have i want to summarize only the first collum [CODE]int counter=1; int totalvertical=0; int i=7,k=4; int array[i][k]={random values}; for (int x=1;x<7;x++) { for (int y=0;y<4;y++) { cout<<"["<<x<<"]["<<y<<"]="<<array[i][j]<<" "; totalvertical=array[counter][0]; cout<<totalvertical; } counter++; cout<<endl; }[/CODE] line 12 prints me normaly what is at array[1][0] then array[2][0] then array[3][0] etc …

Member Avatar for ntrncx
0
149
Member Avatar for codeblock

Hi all, i have a problem in writing a block of SQL code in mysql. The block of code will have too delete a single row/record from about 23 related tables all at once. The code that i have written so far will only delete 1 row/record in 10 related …

Member Avatar for codeblock
0
138
Member Avatar for markdean.expres

Guys I know this error is not new. I have read many threads about this and solutions also. But I have done one of the solutions I know and it is still occurring. Update requires a valid update command.... I hava defined a primary key in my database table. What …

Member Avatar for lolafuertes
0
95
Member Avatar for Danny1994

[CODE]void Form1::textBox9_KeyPress(System::Object^ sender, System::Windows::Forms::KeyPressEventArgs^ e) { if(!Char::IsDigit(e->KeyChar) && (e->KeyChar != 0x08)) e->Handled = true; }[/CODE]Thats the code i got, but, how could i allow CTRL+V. [CODE] if(Char::IsDigit(e->KeyChar)) return; if(e->KeyChar=='\b') return; if(e->KeyChar=='\v') return; if(e->KeyChar=='CTRL') return; e->Handled=true;[/CODE] This also doesn't work ._. (Im using Visual Studio 2010)

Member Avatar for Danny1994
0
342
Member Avatar for tcl76

hi all, pls advise on: Can Python 2.6.6 scripts be converted to .dll and read by C sharp? Can Python 2.6.6 scripts be converted to .exe and read by C sharp? thanks tcl

Member Avatar for snippsat
0
214
Member Avatar for TheLittleEngine

[CODE]void Rational::reduce(Rational &f3){ int tnum, tden, temp, gcd; tnum = labs(numerator); // use non-negative copies tden = labs(denominator); // (needs cmath) if(tden==0 ){ // check for n/0 cout << "Illegal fraction: division by 0"; exit(1); } else if( tnum==0 ){ // check for 0/n numerator=0; denominator = 1; return; } …

Member Avatar for TheLittleEngine
0
190
Member Avatar for infinitus

I dont know how to kill this JOptionPane pop out eveytime i do something... it just pops [CODE]Object[] options = {"Option 1", "Option 2"}; Component frame = null; int n = JOptionPane.showOptionDialog(frame, "Chose Game Option \n *Option 1 - Enter Secret Word\n *Option 2 - Random word selection from secret …

Member Avatar for infinitus
0
165
Member Avatar for nyler01

Good Day, I am looking for threads here in daniweb which will contain my question but the return is not similar to my problem.. Please help me.. i don't know what to do with this. I just want to store date field in mysql database but i can't here is …

Member Avatar for nyler01
0
146
Member Avatar for jmensah

Below is a code displaying records from a view which is concatenating first and surname in textbox on the form called accoutnholder. But the code "txtAccountHolder.Text = myDataReader.Item("First_Name&" - " &Surname")tostring]" show the expression does not produce value. please i need ur help to continue Private Sub txt_LostFocus(ByVal sender As …

Member Avatar for jmensah
0
2K
Member Avatar for umamahesh2020

[CODE]<employees> <employee> <user_id>6</user_id> <profile_name>Developer</profile_name> <profile_id>2</profile_id> <user_status>1</user_status> <gender>1</gender> <first_name>Anulesh</first_name> <last_name>Gupta</last_name> <address>106/B, 1st Floor, 46th Cross, 4th Block, Rajajinagar,</address> <pswd>password</pswd> <pswd_change_dte>2011-01-25T19:48:00+05:30</pswd_change_dte> <email_addr>anulesh.gupta@effone.com</email_addr> <phone>91-080-22445281</phone> <dob>1981-09-18T00:00:00+05:30</dob> <join_date>2008-11-20T00:00:00+05:30</join_date> <receive_email_notification>true</receive_email_notification> <last_logged_in>2011-01-25T19:48:00+05:30</last_logged_in> <emp_id>1001</emp_id> <full_name>Anulesh Gupta</full_name> <skill_set /> <city>Bangalore</city> <state>Karnataka</state> <country>India</country> <zip_code>560010</zip_code> <mobile_number>22445281</mobile_number> <pwd_flag>1</pwd_flag> <reports_to>5</reports_to> </employee> </employees>[/CODE] Convert this into this format , please help me out for …

Member Avatar for umamahesh2020
0
1K
Member Avatar for MaDo4

Hi guys i'm trying to write code that requires the user to hit return twice to terminate the project and I can't figure it out. I think i am supposed to use some variation of [CODE] if(input == " "){ exit(1); } [/CODE] with a Boolean expression but I can't …

Member Avatar for MaDo4
0
2K
Member Avatar for zychos

I am doing an bubble sort assignment, the goal is to enter up to a max of 10 numbers and sort them. The problem that I am running into is when I run the code, I have to hit ^D to have the next line of the array displayed and …

Member Avatar for Adak
0
149
Member Avatar for shainjetly

Hi i wanted to loop the options list of the select tag inside that echo statement from my database. This file out puts the content to a javascript code. and this output is also javascript. any one help me how can i loop that options in select tag from the …

Member Avatar for shainjetly
0
1K
Member Avatar for Amitair

I want to open a text file at a specific index point. is there an easy was to do it other then building it in a textbox? in notepad and notepad++ they go by line in text and not text index point.

Member Avatar for Amitair
0
165
Member Avatar for Casper3912

I am in a distributed education programming class, our most recent assignment has me stumped with a error that is driving me insane. The IDE I have on my personal computer is missing some of the libraries I need(I believe), and when I remote desktop to my school's computer and …

Member Avatar for VernonDozier
0
360
Member Avatar for Taimoor Rana

Hello Lovely People, Please have a look at my GUI first, before reading the rest (I've attached a picture, see at the end of my post). I'm having two problem with this GUI. 1) I don't want my Start button to be as long as it is. I want it …

Member Avatar for Taimoor Rana
0
180

The End.