64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for basma.lm

hi, i work on windows application. i have the first form of the authentification ( with username and password) after that i have the principal form. in the load event of this principal form i put a code that shows another form. my problem is that i delete this code …

Member Avatar for finito
0
108
Member Avatar for tuomari

I keep getting this error: c:\inetpub\wwwroot\Phoenix\Login.aspx.cs(85): 'Phoenix.WebForm1.DBConnection(string, string)': not all code paths return a value I have already tried putting everything in the DBConnection function to comments but still the problem persisted. This is crucial that i get this working. I have watched examples from the guides in daniweb but …

Member Avatar for dnanetwork
0
140
Member Avatar for antman89

Protected Sub Button5_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button5.Click Dim connection As SqlConnection = New SqlConnection("server=(local); Database = Bookstore; integrated Security=True") Dim CSP As SqlCommand = New SqlCommand() 'Dim Cust As SqlCommand = New SqlCommand() CSP.Connection = connection CSP.CommandText = ("select CusID,CusPassword from CusromerDetail where CusUsername = …

Member Avatar for dnanetwork
0
122
Member Avatar for Sailor_Jerry

Can someone provide sample code on how to create and fill a DataTable with the table schema and data from a mySQL database? I found examples where you set up columns and other information programmatically. But i wanted to know if there a way to "sync" the schema in the …

Member Avatar for Sailor_Jerry
0
179
Member Avatar for KPooja

Hi All, In our application we have combo boxes implementated using tables with fixed column width(fixed combo width). and newly i have added a functionality for these combo box. functionality is expand combo box on rightclick (using oncontextmenu) to fit to lengthy text. oncontextmenu=function_call(object); inside function: obj.style.width="auto" but the problem …

Member Avatar for KPooja
0
95
Member Avatar for stabzagg

Hey guys, I am having some trouble getting my head around tkinter at the moment. I am new to programming and have been using python for about 2 months now. The problem I am having is with RadioButtons. I have a set of radio buttons numbered 1-9 and I can …

Member Avatar for stabzagg
0
309
Member Avatar for bsewell

Hi All, I'm trying to write some code to read a CSV file and produce HTML from it. I'm using MAMP to develop the page, but no code at all will display in the browser. I would like the first line of the file to be the header, and then …

Member Avatar for bsewell
0
158
Member Avatar for moni94

How can I make a stream appendable and readable at the same time? Because when I do this: [CODE]static FileStream fs = File.Open("keys.txt", FileMode.Append, FileAccess.ReadWrite, FileShare.None);[/CODE] I get the following error: "Append access can be requested only in write-only mode."

Member Avatar for finito
0
958
Member Avatar for dbphydb

Hi, Please check the below code. [CODE] URL = "http://11.12.13.27:8080/cruisecontrol" from urllib2 import urlopen from HTMLParser import HTMLParser import re # Fetching links using HTMLParser def get_links(url): parser = MyHTMLParser() parser.feed(urlopen(url).read()) parser.close() return parser.links # Build url for Deploy page def get_deploy_url(): url = URL + "/buildresults/xxx_%s_nightly_build" % branch print …

Member Avatar for dbphydb
0
113
Member Avatar for MARKAND911
Member Avatar for murugavel84
0
126
Member Avatar for jamshed ahmed

[CODE] SELECT Customer_Info.CustName,Customer_Info.Address,Customer_Bank_Info.CustChequeNo,Customer_Bank_Info.CustAccountNo from Customer_Info,Customer_Bank_Info WHERE Customer_Info.AgentID=Customer_Bank_Info.AgentID [/CODE] THERE ARE TWO RECRODS ARE AVAILABLE IN Customer_Info TABLE AND TWO RECORDS ARE AVAILABLE IN Customer_Bank_Info BUT WHEN ABOVE QUERY IS EXECUTED IT SHOWS 4 RECORDS IT REPEATS THE QUERY THAT'S WHY SAME RECORDS FROM THESE TABLE ARE RETRIVED FOR TWO TIMES. …

Member Avatar for jamshed ahmed
0
163
Member Avatar for cris651

Hello, I'm new to ASP.NET. I'm requesting help. I've tried hard but with no result. I want to provide my user a Gridview filled with data from database, allowing him to edit these records not in order to update the database, but in order to insert edited rows in db …

Member Avatar for cris651
0
775
Member Avatar for maunica

hi all, I want to know that how can i change the font size of the output in php. suppose this is the snippet echo 'y' echo '$ans' where i want to echo the value stored in variable ans by changing the font size to 12px.so how can i change …

Member Avatar for maunica
0
102
Member Avatar for Rhap

[CODE]//// point.h using namespace System::Drawing; class point { protected: int x; int y; Color col; public: point(); };[/CODE] [CODE]////point.cpp #include "stdafx.h" #include "point.h" point::point() { x = 0; y = 0; col = Color::Blue; }[/CODE] [CODE]///Error c:\...\point.h(10) : error C3265: cannot declare a managed 'col' in an unmanaged 'point' 1> …

Member Avatar for jonsca
0
237
Member Avatar for painejake

I have this code: [CODE]Byte[] OriginalBytes; Byte[] EncryptedBytes; MD5 md5; md5 = new MD5CryptoServiceProvider(); OriginalBytes = UTF8Encoding.Default.GetBytes(OriginalPassword); EncryptedBytes = md5.ComputeHash(OriginalBytes); return BitConverter.ToString(EncryptedBytes); MessageBox.Show("MD5 Hash is: " + EncryptedBytes);[/CODE] However I get the error "A return keyword must not be followed by a object expression." I'm quite new to C# so …

Member Avatar for painejake
0
203
Member Avatar for dbphydb

Hi, Im basically from QA. I have a piece of code in python that parses HTML pages to reach to a specific link on a webpage. The below code gets me the url of the link which needs to be clicked. What code should i write to simulate clicking a …

Member Avatar for TrustyTony
0
984
Member Avatar for Krstevski

Hello friends, I have one stupid problem with overlapping div and object tag. I have slideshow (.swf) and now I want to add a div tag on the top of the slideshow, but when I try to do this then the div tag is hidden by object tag (slideshow). How …

Member Avatar for Krstevski
0
153
Member Avatar for lunaluni

i have a textbox to upload .csv file. after i click upload it insert the .csv file into sql server database how to insert .csv file using vb.net into sql server

Member Avatar for lunaluni
0
1K
Member Avatar for MrBlack

[CODE]1. protected void Button1_Click(object sender, EventArgs e) 2. {string s="Data Source=Black-PC\\SQLEXPRESS;Initial Catalog=Test;Integrated Security=True"; 3. SqlConnection Conn = new SqlConnection(s); 4. 5. Conn.Open(); 6. string strqry = “Insert into students values (” + TextBox1.Text + 7. “,’” + TextBox2.Text + “‘,’” + TextBox3.Text + “‘)”; 8. 9. SqlCommand Com = new …

Member Avatar for kvprajapati
0
154
Member Avatar for sidhu51

hi all, I have a string "FS:A151940.A-CM4;4" and have a integer value stored in a variable num.... now i want the string to be modified as "FMS:A151940.A-CM4;*" where value of num must be present instead of *... please help me out with this !!

Member Avatar for sidhu51
0
94
Member Avatar for kseling

i can't find any other posts on this, so.... i have a site hosted at godaddy and i'm using vb.net in dreamweaver to make my solution. i can connect to the database at godaddy by using the database connection wizard in dreamweaver, but i can't get my pages to use …

Member Avatar for kseling
0
102
Member Avatar for dbphydb

Hi, The below code is doing the following 1. Reading the branch name and the destination from a txt file 2. Parsing thru HTML pages Basically, i want to deploy the build of the branch (supplied thru txt file) on a test environment (supplied thru txt file) The branch_dest file …

Member Avatar for dbphydb
0
208
Member Avatar for gunbuster363
Member Avatar for krunalkakadia

Hello you all, I have used label in repeater to display news content.see the code below. <asp:Label ID="lblNewsContent" Width="1000px" Height="500px" runat="server" Text='<%#Eval("News_Content")%>' ReadOnly="true" BorderStyle="None" BorderColor="#EFF3FB" BackColor="#EFF3FB" TextMode="MultiLine"></asp:Label > Now problem is that how can i give new line in label after certain amount of characters?means i have say 500 characters …

Member Avatar for krunalkakadia
0
740
Member Avatar for wildplace

i know how to determine if x instanceof aClass. if x is not an instanceof aClass, how can i tell if it it will give me a compiler error or run time error. Consider the following question~ [QUOTE]interface I { ... } class A { ... } class B extends …

Member Avatar for wildplace
0
241
Member Avatar for blahbla

hi i was given an assignment to do i did it but i'm always getting a segmentation fault i found out where i'm getting the problem but i dont understand why i'm getting the problem heres the code: the extra cout's that dont make sense are just to tests to …

Member Avatar for blahbla
0
75
Member Avatar for llemes4011

Hello, I was wondering if anyone knew anything about programming Microcontrollers with C, and if so what controllers are best/have the most room for the least cost/ easy to get the code on. I know nothing about what's needed to get it up and running, or even what to buy! …

Member Avatar for llemes4011
0
117
Member Avatar for gaudi_br

Hello, I'm remotely debugging a J2EE application from eclipse. I developed an external tool that will copy the file I modified to the server and then debug the application from the server. It used to work perfectly, but since a few days ago, it doesn't work anymore. This means that …

Member Avatar for gaudi_br
0
102
Member Avatar for gaudi_br

Hello, Because of licensing constraints, we're allowed a single Development server where our application will be installed. Supposing I have the tomcat server running on a remote machine in the company's network, let's say that multiple developers should be able to remotely debug that application. Is it possible?? How could …

Member Avatar for gaudi_br
0
203
Member Avatar for gaudi_br

Hi, I'm a developer with little experience in J2EE. I'm working with an Application called Enovia Matrix, which is an N-Tiers System composed by an oracle database, an RMI server, some "thick-client" applications and a Web-Based interface. I develop using Eclipse, in which I imported the War File generated for …

Member Avatar for gaudi_br
0
367
Member Avatar for krishnisilva

hi, i have a datagrid view in VS 2008 standard edition,how can i check if there is no value entered in the cell, how can i write the code.??? please give me and answer someone, thanxxx

Member Avatar for bords
0
126
Member Avatar for agongpor

Hello ... I have a very annoying problem just now, MySQL server in my office is not stable. This morning it has stopped for more than 10 times. :'( FYI, the version of MySQL is 3.23.54 running on redhad 9. When I tried to restart it, it showed like this: …

Member Avatar for agongpor
0
7K
Member Avatar for Lapixx

Hi, I'm new to Python, and although I've quite some programming experience, I wasn't able to find an answer for this problem: As a first project, I am trying to create a small text game. All is going well (since it's very basic), except for my inventory system. At the …

Member Avatar for snippsat
0
8K
Member Avatar for BLKelsey

Guys, I could really use some direction in getting this console program working for a C++ assignment. I'm in my 8th week and although I've been doing good on past projects, this is a multiple file assignment and I'm confusing myself the more I try to understand. I feel like …

Member Avatar for BLKelsey
0
270
Member Avatar for smkdude

Hello, I am currently trying to write a board game, and I am having trouble making each GameTile on the board access the same Point on the board. Each GameTile contains a certain number of Points, and sometimes Points overlap(the Point on a corner of one tile may be the …

Member Avatar for smkdude
1
166
Member Avatar for PhiberOptik

Hey guys, I want to know how you guys parse html. I'm writing a program to compare products on a website. I already have a system that scrapes the websites. I looked at HTMLParser, I'm a little confused on how to use it, I was thinking about writing my own …

Member Avatar for PhiberOptik
0
93
Member Avatar for reza.adinata

Hi All, I am new in programming, and currently learning from some samples. From a[URL="http://www.c-sharpcorner.com/uploadfile/sthangaraju/tcpclientserverst11182005014316am/tcpclientserverst.aspx"] page[/URL], I tried to implement a TCP client server with the following page in WPF (visual studio 2008) [CODE]using System; using System.Text; using System.Net; using System.Net.Sockets; public class serv { public static void Main() { …

Member Avatar for reza.adinata
0
469
Member Avatar for superchica08

hello everyone i was wondering if anyone would be able to help me in an program i have to do. the program wants me to use my initials A and G and plot them on using gotoxy() function to make some thing that look like the picture in the link …

Member Avatar for superchica08
-1
919
Member Avatar for krishnisilva

hi , i have a multiline text box in one form when i write information on it in the run time, it goes on without showing the scroll bar, how can i add the scroll bar controll to the textbox?? this is in C# Any one know the answer?? please …

Member Avatar for ddanbe
0
124
Member Avatar for ceyesuma

Hello. Is there someone who might be able to show me how to adjust a insert for a prepared statement sent to a derby embedded db? [code] run: driver name from xml: org.apache.derby.jdbc.EmbeddedDriver in bCreatedTables: created table: createAdminTable created table: createPayeeTable created table: createStudentTable created table: createInstructorTable created table: createBookingTable …

Member Avatar for ceyesuma
0
302
Member Avatar for OldQBasicer

I'm trying to make a form with a thermometer painted on it. I want the thermometer to go up each second. I tried the code below and it sorta works, but not really. It does the For... Next loop okay and shows the message box, but then does NOT Exit …

0
64
Member Avatar for doomfrawen

Hello friends, I've been working on a program that extracts the data from a database, then when I query the database the data is displayed on a listview, and then only the items that are selected are added into another listview(checkbox), now my problem is that i need to calculate …

Member Avatar for doomfrawen
0
192
Member Avatar for aaronmk2

I am trying to use pow(2,a); and I am getting a error 'pow' ambigous call to over load function. I don't understand why, I added the cmath libarary. Here is the code. [CODE] #include <iostream> #include <cmath> using namespace std; int binaryToDec(int); int main() { binaryToDec(1110); return 0; } int …

Member Avatar for aaronmk2
0
94
Member Avatar for DrueY

Hi Everyone, I need help understanding how these traversals work :s [url]http://en.wikipedia.org/wiki/Tree_traversal[/url] On this page they have the code for these tree traversals, but I don't quite get it. For example, printing using the in-order traversal (using the example tree provided on the site) should give: A, B, C, D, …

Member Avatar for DrueY
0
467
Member Avatar for bhavin12300

hi, i am facing strange behaving of my application. i have developed one simple application, which will fill up some fields in webbrowser control webpage. this webpage has iframes in it. domain of both iframe are same and fields which i am filling with my code is in iframe. but …

Member Avatar for bhavin12300
0
730
Member Avatar for babzog

Hey folks, Probably a stupid error on my part, but I'm having trouble with this. Using ioctl calls to get adapter info on a linux box. I've got it working using a fixed size array (of struct ifreq) but it's not working when I try to use a dynamic array …

Member Avatar for babzog
0
129
Member Avatar for rogerkore

Hi all, can someone tell me if it's possible do search like this: Mysql database: test Mysql Table: something Mysql rows: id name1 name2 name3 name4 Where [CODE] id name1 name2 name3 name4 1 roger mac phill chill 2 roger chill dubs lee [/CODE] The idea is do a search …

Member Avatar for diafol
0
414
Member Avatar for daino

Hi Would anyone know if there is a book explaining all the various C++ Libraries and what features they encapsulate? I'm thinking in terms of, for example: iostream -- then a list of features and functions in iostream etc. Could anyone suggest any books or good reference material for this …

Member Avatar for daino
0
220
Member Avatar for vihrao

I am trying to add two matrices and get error when I add two matrices in the line rslt = m1+m2 using operator overloading. Both m1 and m2 are matrix classes. Here is the code: [CODE] int main(int argc,char *argv[]) { matrix * rslt; //matrix *m1 = new matrix(); matrix …

Member Avatar for vihrao
0
232
Member Avatar for Cap'nKirk

Hi, I have got some code that at startup checks for the existence of a file, if it finds the particular file then it opens another form. If it doesn't find the particular file then it shows a messagebox asking whether or not to enter some data, answer YES or …

Member Avatar for Ramy Mahrous
0
164

The End.