4,457 Topics
![]() | |
I have a remove button like i would like to delete just sigle selected row from both datagridview and the actual database.the problem I am having is in deleting selected row.if i dont use the parameter the contents of the table gets deleted ,i dont have any primery key just … | |
Hello, I posted yesterday regarding my issues with adding rows to a database, this is now solved and I am grateful. Once the rows were added to the database the list box that displays one column of the database did not update so I included the following code after the … | |
Hi all, I'm currently make my final year project program at university, and have been puzzled by this problem for sometime now. The issues I am having is that when I try to update a value in a specific column of a specif row. The program has a paddy and … | |
Hello, I am quite stuck. I have my database running on a seperate machine from where I am writing my application. The connection between Visual Studio and the database seems to be fine as I can display data in various controls on the GUI. My problem arises when I try … | |
what is wrong with the ifstream and ofstream? I had try again and again and the info shown run to infinity. :( I tried a lot of times ady, will be glad if anyone can help, thank you :) Sorry if its looks messy, still learning all the way. [CODE] … | |
Could somebody help me please?! I'm trying to include math.h in a simple program an it doesn't work. I got following errormessage:"fatal error C1083: Cannot open include file: 'math': No such file or directory". I've checked if math.h is in the include directorie of visualC++, and it is. Here is … | |
Hello all, So I am having trouble figuring out a runtime error I am getting in my code. Essentially I read in data and push it into two lists (using the STL list). Then I use the .sort() function to sort the data by average. However I am having a … | |
Hello, I'm not new to C++ but I usually program in Linux. I'm currently programming in Microsoft Visual Studio 2010. I just installed the Magick++ x64 binary library. I've read the "detailed" installation instructions on what to do next but honestly I am completely lost. In the .pdf it says: … | |
[code]Option Explicit Dim connectionado As ADODB.Connection Dim recordsetado As ADODB.Recordset Dim num As Integer Private Sub cmdCanceL_Click() frmSTUDENT.Enabled = True frmSTUDENT.Show Unload Me End Sub Private Sub openDbaseConnection() connectionado.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Documents and Settings\student\My Documents\dbStudentInfo.mdb;Persist Security Info=False" connectionado.Open recordsetado.ActiveConnection = connectionado recordsetado.CursorLocation = adUseClient recordsetado.CursorType = adOpenStatic recordsetado.LockType = adLockOptimistic … | |
Hi guys I'm a newbie, and can't figure out the problem with the following code. I get the error inthe line in Bold. Please help [CODE]private void Form1_Load(object sender, EventArgs e) { con = new SqlConnection(); con.ConnectionString = "Data Source=.\\SQLEXPRESS;AttachDbFilename=C:\\Users\\KAMESH\\Documents\\Visual Studio 2010\\Projects\\bankDBApp\\bankDBApp\\bankAcc.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True"; con.Open(); MessageBox.Show("Connecting to SQL Database", … | |
![]() | I am developing an inventory application. There is a form named frmInventory where material receipt has been done. Logic The logic is that First you Enter the Transaction no. in text box named TxtChalanNo Then a combobox named cmbval on flexgrid named mf1 will got focus then the user select … ![]() |
Hi, I am writing a piece of code that takes copies the contents of one file to another (which is created by the code, the name is given by user as an arguement). I've managed to successfully open and read in the source file, and the program will create the … | |
Hey! I am creating an application which will allow users to search parents names and display their childen respectively in a datagrid. I have created a form with two text boxes, a search button and a datagrid. The two text boxes are txtFName.text and txtLName.Text. On clicking btnSearch I want … | |
im working on an attendance monitoring system and im having a hard time on saving a picture on my picture box, at the "add employee" section of my program. i want to save the path of the picture on the emphoto field of my database and the actual photo on … | |
Hi all my friend. i am new in PHP .i am working on open source job portal . i want to ad a common feature dynamical registration from . so that any one can ad any field in registration from from admin. Please Help me do do that . If … ![]() | |
Hi, I have a form with a ComboBox, two labels named "Price" and 'Dealer Cost" respectively a NumericUpDown control and two buttons named "calculate Commission" and "Enter Another product" respectively. I want to be able to retrieve the corresponding Price and Dealer Cost from the local database and display them … | |
[CODE] Dim connection As OleDbConnection connection = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; " _ & "Data Source=" & Server.MapPath("~/Database/dbLupon.mdb") & ";") Dim command As OleDbCommand Dim commandPos As OleDbCommand commandPos = New OleDbCommand("Select POSITION_C FROM tblLupon_C WHERE POSITION = 'C' REGION_C = '" & lblRegion_C.Text & "' AND PROVINCE_C = '" & lblProvince_C.Text … | |
Hi people I need some help here. Here is the CODE : [B]for Form1:[/B] [CODE] using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.SqlClient; namespace practice { public partial class Form1 : Form { Form2 obj; public Form1() { InitializeComponent(); } … | |
Who can teach me how to make Class to store database location When want to use just call the location. Everytime I will write again the connection. When database location is change, I will change the database location one by one. This is time consuming and difficult to maintain program. … | |
Hopefully I have come to the right place to ask this question as it has had me stuck for some time now. The complexity of my problem makes it difficult to ask but I will do my best to state my problem as best I can with a few questions … | |
Hello, I'm trying to crate a login form that basically logs users in.. Now, I have created the database, and queried the table to see if the user exists.. But how do you check if the query returns whether it is or not? E.g. in PHP you'd use like.. [CODE] … | |
I was able to insert a single row from datagrid but when i try to select 2 or more rows its just inserting the first row. How will I save multiple rows in the sql table, could somebody help me. Here's my code... For ex. 3 products in one OR … | |
the path is correct, and there is no error, but still, my database is empty... Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim myConnection = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Users\Along\Documents\Visual Studio 2008\Projects\LCRS\LCRS\Lcrsd.mdb;") Dim myCommand As OleDbCommand Dim mySQLString As String Try myConnection.Open() mySQLString = "INSERT INTO REKOD_PELAJAR … | |
hey friends i need to retrive data in textbox... here is the detail information... A class has been created: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data; using System.Data.SqlClient; namespace databaseR { class data { public SqlConnection dbCon; public SqlCommand dbCmd; public SqlDataAdapter dbAdptr; public SqlDataReader dbRdr; public … | |
Hello, I am trying to connect to a database "database1" using C#, however, everytime that I try to connect I get this error: [I]Unable to connect to any of the specified MySQL hosts.[/I] This is the code that I am using to connect to database1 [code] string connString = "Data … | |
![]() | Hi Guys, I'm currently developing a project using WCF (hosted on local IIS) which connects to a local SQL database using LINQ to get data. My problem is that when I run the code, 9/10 times it'll fail with the "Specified Cast Is Not Valid" error, but the other 1/10 … ![]() |
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.skynet.simpleHttpServer; /** * * @author Gryffy */ /* "Copyright (C) 2001,2005 by SkyNet Corporation \n"+ "\n"+ "Redistribution and use in source and binary forms, with or without\n"+ "modification, are permitted … | |
[ATTACH=RIGHT]19350[/ATTACH]In the past, the word "JavaScript" usually triggered notions of buttons changing when you float your mouse over them, and images flashing, and silly animations happening in the web browser. Today, however, most programmers recognize that JavaScript is actually much more than that; it's a powerful language that runs in … | |
I am a beginner in Jpcap. My problem is as follows:- i am trying to send a TCP packet but unable to receive it. The code for sending Tcp packet is as follows. I am working on Windows XP. hoping for reply. [CODE]//code for sending import jpcap.*; import jpcap.packet.*; import … | |
Hi, I have been trying to compile open source projects since past few months with no success. I just don't know how to go about the entire thing. Readings over the internet have not helped much. Some come with [COLOR="red"]./Configure[/COLOR] and a [COLOR="red"]Makefile[/COLOR] while others with only a [COLOR="Green"]Makefile[/COLOR]. How … | |
Hi guys, I'll try to keep it as short as possible. Basically, I love the webcomic [URL="http://www.xkcd.com"]xkcd[/URL]. And recently, I've been browsing around for a downloader, and have found one written in Perl that works great. It even grabs the Alt-Text (text that pops up when you hover your mouse … | |
I am running multiple lines generated from a SQL data source and using pulldown menus to input the data on a button click control using c#. When this is executed with the button, only the first set of data is transferred to the SQL table. The other lines are not … | |
We have to login to a http page so that I can surf the net. But, that login page also requires me to keep that page open which is very irritating. The page have javascript that checks if the page is loaded every 180 seconds, it its not loaded, I … | |
I am asim, hi, i have uploaded my site first time and but unfortunately i got errors in web.config file that is as below: [CODE]<?xml version="1.0"?> <!-- For more information on how to configure your ASP.NET application, please visit http://go.microsoft.com/fwlink/?LinkId=169433 --> <configuration> <connectionStrings> <add name="ConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Database.mdf;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient" … | |
So I am a bit confused with the following terms already and how they interact. I am new to IM creation and I want to know the best approach on how to go about this. Anybody can explain them to me? I know ejabberd is a kind of open source … | |
We're working on a project and we are completely stuck. Basically, we are coding a virtual Quoridor player module. However, our player module thinks that it's starting one square in front of it's home! Why could this be? [CODE]from interface import * import engine import random import time import copy … | |
Hi Everyone! I am a beginner at VB. I have been a systems admin for some time and my new employers are forcing my hand into programming. I am currently Trying to write custom software that interfaces with our Advantage Database. I have the data source and connection opening fine. … | |
i need for an open source program to complete and personalize it . please if anyone have any inf about my problem sent me an email at: [email removed] thanks a lot | |
hello all.. Hi, I'm having problem to read *.DBF (DBase File) using VB.NET. Below is my code : [code] Public abc As String = "C:\Documents and Settings\LASIM\My Documents\20100126a\JADUAL\TCMSV2" Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim sql As String Dim connection As String Dim dsXML … | |
Have you read this? [url]http://arstechnica.com/open-source/news/2010/10/shuttleworth-unity-shell-will-be-default-desktop-in-ubuntu-1104.ars?utm_source=rss&utm_medium=rss&utm_campaign=rss[/url] | |
I am writing this thread not to ask how to make an operating system, but to say how to make an operating system. There always seems to be new threads created asking how to make an operating system. [b]The simple answer[/b] There is no simple answer. Making an operating system … | |
this is the error message... The INSERT statement conflicted with the FOREIGN KEY constraint "FK_Admission_Record_PT_Chart". The conflict occurred in database "HospitalManagementSystem", table "dbo.PT_Chart", column 'Chart_ID'. The statement has been terminated. my code is [CODE]Imports System.Data.SqlClient Public Class Admission Private cs As New SqlConnection("Data Source=SAbio;Initial Catalog=HospitalManagementSystem;User ID=sa;Password=TRACERT123") Private da As New … | |
Hi all, I've got a small problem with a database I'm working on, the project was given to me by college kids & their Teacher to complete. They created the database using Access 2007 and I'm left building a Windows App user interface in Visual Basic. Anyway I can't figure … | |
So all i have to do is clean it up but cant find the source to the actual error. Heres my code: [code] #include <iostream> #include <fstream> #include <string> using namespace std; bool isVowel(char ch); string rotate(string pStr); string pigLatinString(string pStr); int main() { ifstream infile; string newstr; int length; … | |
I am using update query statment but is not working for this code [CODE]Dim myConn As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source= Provider=Microsoft.Jet.OLEDB.4.0;Data Source=../lms/DBLMS.mdb") Dim item As Integer myConn.Open() myComm = New OleDbCommand("UPDATE tblVehicles SET Vehicle_Type = " & cboVehicle_Type.Text & ", Vehicle_Model = " & txtVehicle_Model.Text & ", Plate_No = " & … | |
when i select option button of fastfood it retrieve the data in two listbox from database. i m using 4 list box one(check style list box) is for food item another(simple list box) is for cost. when i selects(checked) any fooditem then a inputbox will occur for entry of food … | |
I have made a couple of preliminary versions of a web machine as an HTA and as a web dialog plug in for Google's Sketchup. The machine has moving sliders (hence machine) that get populated with names of real objects in a hierarchical structure set by the user's associations e.g. … | |
[CODE] Protected Sub Gridview1_RowUpdating(ByVal sender As Object, ByVal e As GridViewUpdateEventArgs) Dim txtR, txtP, txtC, txtCo, txtB, txtL, txtF, txtM, txtPo, txtSu, txtS As TextBox Dim row As GridViewRow = GridView1.Rows(e.RowIndex) txtR = CType(row.Cells(1).Controls(0), TextBox) txtP = CType(row.Cells(2).Controls(0), TextBox) txtC = CType(row.Cells(3).Controls(0), TextBox) txtB = CType(row.Cells(4).Controls(0), TextBox) txtCo = CType(row.Cells(5).Controls(0), … | |
the code is for binding data from a gridview [CODE] Sub BindGrid() Dim connection As OleDbConnection connection = New OleDbConnection("Provider=Microsoft.Jet.Oledb.4.0;Data Source=C:\Users\Karl Gennadi\Desktop\Visual Studio 2008\WebSite3\Database\dbLupon.mdb") connection.Open() Dim command As OleDbCommand command = New OleDbCommand("Select LAST_M, UNIQUE_C from tblLupon_C", connection) Dim DataReader As OleDbDataReader DataReader = command.ExecuteReader() GridView1.DataSource = DataReader GridView1.DataBind() connection.Close() … | |
Hi guys - whenever i run this code i get " SYNTAX ERROR (MISSING OPERATOR) IN QUERY EXPRESSION" - ive checked everywhere and cant find a solution can anybody spot any errors here? [CODE] Try Dim updatecon As New OleDb.OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;data source=H:\FROM HOME\EXTENDED PROJECT !!!!!!\Databases\Login Details.accdb") updatecon.Open() Dim updatecmd As OleDb.OleDbCommand … |
The End.