16,916 Topics
![]() | |
Hi I have a base form that subsequent forms are inherited from. It is a form that is designed to have an appropriate look and feel and really doesn't do anything else. The other froms just inherit it as per: [CODE]public partial class frmLoad : frmPeakBase [/CODE] The only other … | |
[CODE]Private Sub cmdDeduct_Click() Dim sConn As String, xQuantity As Integer, xStockTotal As Integer, xPre As Integer Set oConn = New ADODB.Connection Set rsDeduct = New ADODB.Recordset sConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\inventory.mdb;Persist Security Info=False" oConn.Open sConn If LenB(cmbItemName.Text) = 0 Then MsgBox "You have to select an item … | |
Hi guys, I just want to ask some help I added a Download Button in every row of my Gridview. Its function is to download the Binary File of the corresponding row. Whenever i run it it gives me the error "Object reference not set to an instance of an … | |
i am using floppy as ATM card.. am thinking that using the serial number of the floppy, i can check with the database and confirm it and loging the user.. but i have problem in getting the code for getting the code for getting the serial number of the media.. … | |
I have an official version of Visual Studio 2008 Team System. I use Visual Basic 2008 from Visual Studio 2008 Team System. With Visual Basic 2008, I built several Windows application. [B][COLOR="Green"]I want to use Visual Studio 2010 Premium [/COLOR][/B] [COLOR="Red"]Upgrade scenario[/COLOR] I have three Upgrade questions: 1.Can I upgrade … | |
Hi, I observed a strange bug in VC6 and Visual Studio compiler. For one particular program I needed to declare a heap as [B]u = new double[width * height][/B]; where width = 640 and height = 480 and initialize all the values to 0. So I did [B]memset(arru,0,640*480[/B]);. But to … | |
Haven't worked with classes for a while, so please excuse all these dumb questions :P Still learning. Let me know if you need more info. 1>c:\users\adam\documents\visual studio 2010\projects\help\pusoy\pusoy\pusoy.cpp(24): error C3867: 'Deck::dealCard': function call missing argument list; use '&Deck::dealCard' to create a pointer to member deck[] is a vector of Card … | |
How do I check if a form is open (not only loaded, but also open) | |
I have a small company Database that tracks our repair orders. I have a query that I would like to execute based on criteria that the user inputs. I am new to VBA so most of my code is based on google research. I took a technique of wrapping my … | |
here is the question: Write a program that reads names and gpa’s from a text file. The file looks like: James 3.9 Margaret 3.5 Charles 1.2 Jennifer 4.0 Your program sorts the students ascending by gpa, and prints the sorted list including names. To keep the names with the numbers … | |
How can i add treeview control to my project. I cannot find this in components. | |
[CODE] Private Sub cmdAdd_Click() Dim sConn As String, xQuantity As Integer, xStockTotal As Integer Set oConn = New ADODB.Connection Set rsAdd = New ADODB.Recordset sConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\inventory.mdb;Persist Security Info=False" oConn.Open sConn If LenB(cmbItemName.Text) = 0 Then MsgBox "You have to select an item from the … | |
Can anyone help me out.I can't understand why am i getting this kind of error [CODE]#include <iostream> #include <string> #include<sstream> #include<iomanip> using namespace std; void getDerivative() (double [],int[]); void print_d_Array (double[]); void print_i_Array (int []); int main () { const int polynomsize=5; string sub[polynomsize]; string coefficient[polynomsize]; string exponent[polynomsize]; double coefdouble[polynomsize]; … | |
I'm writing a text editor for my own use ( I'm "home learning") where I want to be able to leave comments for myself, like in code section of the VB express IDE. I have figured out how to get the Integer Location of the apostrophy, but can't get it … | |
I hope that this question is not out of place here. I have an access 2007 database for which I made a perfectly functioning simple "front end" program in VB6. That was back in XP or Vista days. I hadn't used it since the switch to Windows 7, and when … | |
Hello Guys! I just created my first VB.net project using Microsoft Visual Studio 2010 that has database(.mdf) and some forms, here is the video link of my project: [URL="http://www.youtube.com/watch?v=4YBt3vP85kY"]http://www.youtube.com/watch?v=4YBt3vP85kY[/URL] I want my project to be remote/network using lan environment, in what way i can do this? can you please help … | |
i want code for search in vb6.if i give see it will search seeni,seenivasan,seetha,mooseetha,etc | |
I cannot get the my application (AA_Coins.exe) to run on a different PC. I have 2 pc's are using Visual Studio 2010 and Net Framework 4 Client Profile. My .exe works fine on both as expected. I put it on a 3rd PC that does not have VisualStudio with Net … | |
Hi I want add .mdf file in visual studio 2010 but in add conncetion show this error : click this link to show error [URL="http://imagenic.net/viewer.php?file=el5ce80y64r9d9bdspq1.jpg"]http://imagenic.net/viewer.php?file=el5ce80y64r9d9bdspq1.jpg[/URL] use SQL server 2008 R2 and VS2010 and I dont know what Please help me or give me a learning file or website Thanks | |
Normally, when populating controls with data from a database I create a connection and then pass a SQL statement to create a DataReader. I then loop through the DataReader and populate the controls. Because I am creating the SQL statement on the fly I can query the database joining on … | |
hello... I created a website having a database. I realised that I need to set a database username and password. I tried to include it in the connection string but I'm having the below error: Login failed for user ''. The user is not associated with a trusted SQL Server … | |
problem is in form5 when i add stock it didn't refresh... just download my attach file "datagridprob.zip" and try to correct my code in "add_stock form" then if you got it right kindly post your code here...thanks... | |
Hi again, sorry for yet another thread. I am using the KeyDown function in my form and it is not able to perform because of the other controls. For example, there is a text box in the form. Once the form has loaded, when I press vbKeyRight, my code does … | |
how to connect adobe photoshop to visual basic 6.0? | |
[CODE] Private Sub Command1_Click() Dim xSold As Integer Set db = New ADODB.Connection db.CursorLocation = adUseClient db.Open "PROVIDER=Microsoft.Jet.OLEDB.4.0; Data Source=" & App.Path & "\inventory.mdb" Set rs = New ADODB.Recordset rs.Open "SELECT * FROM storage WHERE Current Stock = '" & Text1.Text & "'", db, adOpenStatic, adLockOptimistic If rs.BOF = True … | |
Hai Programmers, my title should say it all but im looking for a function where another form (wich pops up when a button in first form gets pressed) will pop up at the top right of the first form. (Would be best with "StartPosition" "Manuel" i guess) ([B]Im using Microsoft … | |
Hi, Can anybody help. How to scroll data in DataList by using mouse scroll. DataList have no Scroll method. | |
I have multiple projects in the same database that use the same dll code. Currently I have to define in the dll what the project names are and what the unc path is that each particular project needs to reference for it's excel file. The excel file contains notes that … | |
[URL="http://www.daniweb.com/forums/thread341763.html"]http://www.daniweb.com/forums/thread341763.html[/URL] Regards to that, i also wanted the system not to be able to delete Administrator Accounts via my code also posted there. Here's the code again: [CODE] Private Sub cmdDelete_Click() ' On Error GoTo err Dim intYN intYN = MsgBox("You are about to delete a record." & vbCrLf & … | |
i want to convert a fie(document,excel,picture) to binary format using VB.Please how can i achieve this | |
Hi, I got a runtime error 3709. It says "The connection cannot be used to perform this operation. It is either closed or invalid in this context." I can't find what's causing the error.. Here is my code: [CODE] Public Sub S_LOAD_flxUser() Dim strSql As String Dim rsLoad As New … | |
Hey, I'm currently doing some work on a program i'm creating for Uni, now i'm getting the above error on the following line of code: [CODE] if ((position.X < boundary.Width - 50) && (counter == 0))[/CODE] All the variables are set to Public. The error is within an 'Alien' class … | |
How to run a command of MS DOS with code through visual basic 6.0 for ex. setting the path, zip and unzip files etc. and also the commands of Visual Foxpro Databasese through VB. | |
hello guys! Its been a long time posting here since I've switch to dot net...But I CANT LEAVE VB6 in programming.! I just want a little help.. Anybody can recode this statement regarding connecting to SQL SERVER local database.. The connection is succesful. But i want to trap the error … | |
hello, im using vb6 with access 2007 (.mdb) im using adodc connection. my question, how to prevent if the data existed in my database. i've put primary key in my database and i need an example like it's giving msgbox "data existed!" anyone can help me? thanks. | |
I want to get this string arrays and turn them into double arrays, but i get this : [CODE]#include <sstream> #include <cstdlib> #include <iostream> #include <string> using namespace std; int main () { string str[3]={"2.5","3","1.5"}; istringstream stm; double d[3]; for(int i=0;i<3;i++) {stm.str[i]; stm >>d[i]; cout << d[i] << endl; } … | |
Ok, I'm new to asp, but not to visual studio(mainly c#). I have a webform that I want to put buttons, labels, etc on. What is the normal procedure for the layout? Do I create a bunch of divs on the form and use them? Also, when I have a … | |
Hello there, I am trying to create an application which will open once the associated file type is clicked. I have associated my application with the extension .agl, via Visual Studio. When I publish the application and install it, the file is associated properly with my application and when I … | |
Placing ComboxBox in DataGrid Cell is a task usually found in Invoicing application. Here is my version of same. | |
...here is the scenario...in my inventory system i have database and it's fields are "Item Number,Description,Last Week Stocks,Deliveries,Total Stocks,Total Withdrawal and Current Stock...this is my logic if adding new stock it will add to 'Current Stock' and to 'Total Stocks' and if withdrawing stocks 'it will add to 'Total Withdrawal' … | |
Is there any code that will enable me to click on portions of the form with the use of coordinates? I know most of you find it easier to just use controlname.click but it is not possible for my application. Hope someone can help. Thanks. | |
Hi, I am trying to output some data from sql db within excel to XML. I am updating the sql db from the excel worksheet and then outputting the records from the db to xml. I have used CDATA to parse html within xml but i can only get one … | |
i made report for invoice printing which contains 10 pages for single invoice, i want to Print Terms & condition on every next page it means my report will be of 20 Page.. please help me... thanks in advance | |
Hi all, thanks in advance for your help. Is it possible (and if so how:sad: ) in Excel (using VBA or whatever easiest) to have 2 worksheets A and B where worksheet B is atomatically updated. A bit more complicated tho!! I enter data into A, and B takes that … | |
Hey there!I'm doing this symbolic differentiation program,and i have some problem with the code.The code in the "main" is ok ,but i have problems in the "to_term" function.Can you help me out to find where my mistake is?Please if you have any idea reply me now Thanks. [CODE]#include <iostream> #include … | |
I'm a very new developer (if you could even call me that), and I'm killing myself here. Essentially here's what I'm trying to do. A user scans a series of documents which are sent through a program that places a .tif or .pdf of each document into a folder on … | |
Hello Guys!! NickName: RJ or you can call me starmax Age: 24 Location: CNMI Hobby: Hiking, mountaineering, playing guitar, mixing some music... well I'm just a simple person, I love to learn new things. actually I'm working as a Casino Dealer, for 2 years now, I'm having a part time … | |
How to Combine or Merge PDF files without using DLL in VB6 | |
Hi, I'm pretty new to C# but I'm very familiar with C++ and first off I wanted to know if anyone has a good website with some tutorials for C#. Other than that, I have a few basic questions regarding GUI programming. I suppose one question at a time is … | |
We installed SQL server 2008 on my workstation for testing SSRS 2008 and its performance over SSRS2005 But for some reason I am not able to access the reports from website or from visual studio 2008 the error I get is “The item '/CPPROD/UnprocessedInventory' cannot be found. (rsItemNotFound)” I think … |
The End.