16,916 Topics

Member Avatar for
Member Avatar for taylby

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 …

Member Avatar for taylby
0
152
Member Avatar for masterfact18

[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 …

Member Avatar for AndreRet
1
95
Member Avatar for uchiha203

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 …

Member Avatar for uchiha203
0
173
Member Avatar for karlosekevin

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.. …

Member Avatar for sapan gupta
0
116
Member Avatar for dre-logics

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 …

0
92
Member Avatar for danibootstrap

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 …

0
93
Member Avatar for MasterGberry

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 …

Member Avatar for MasterGberry
0
190
Member Avatar for plusplus
Member Avatar for weasel7711

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 …

Member Avatar for weasel7711
0
253
Member Avatar for realproskater

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 …

Member Avatar for realproskater
0
247
Member Avatar for PM312

How can i add treeview control to my project. I cannot find this in components.

Member Avatar for AndreRet
0
222
Member Avatar for masterfact18

[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 …

Member Avatar for AndreRet
0
193
Member Avatar for pucivogel

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]; …

Member Avatar for alaa sam
0
149
Member Avatar for docfnt

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 …

Member Avatar for GeekByChoiCe
0
172
Member Avatar for Senefelder

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 …

Member Avatar for AndreRet
0
134
Member Avatar for starmax

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 …

Member Avatar for starmax
0
875
Member Avatar for seenivasaperuma

i want code for search in vb6.if i give see it will search seeni,seenivasan,seetha,mooseetha,etc

Member Avatar for AndreRet
0
57
Member Avatar for track&price

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 …

Member Avatar for Pgmer
0
113
Member Avatar for BEHZADnr

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

Member Avatar for BEHZADnr
0
102
Member Avatar for GrexP

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 …

0
113
Member Avatar for angele18

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 …

Member Avatar for smantscheff
0
68
Member Avatar for masterfact18

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...

Member Avatar for masterfact18
0
165
Member Avatar for martin11ph

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 …

Member Avatar for AndreRet
0
2K
Member Avatar for emongs
Member Avatar for masterfact18

[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 …

Member Avatar for AndreRet
0
172
Member Avatar for Danny1994

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 …

Member Avatar for Ancient Dragon
0
183
Member Avatar for daniwaber

Hi, Can anybody help. How to scroll data in DataList by using mouse scroll. DataList have no Scroll method.

Member Avatar for AndreRet
0
1K
Member Avatar for AWPROGRAMMER

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 …

Member Avatar for AndreRet
0
158
Member Avatar for abelingaw

[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 & …

Member Avatar for AndreRet
1
146
Member Avatar for doremon89

i want to convert a fie(document,excel,picture) to binary format using VB.Please how can i achieve this

Member Avatar for AndreRet
0
212
Member Avatar for aquamarine_kath

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 …

Member Avatar for AndreRet
0
796
Member Avatar for p90pts

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 …

Member Avatar for Ketsuekiame
0
107
Member Avatar for vasaviam

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.

Member Avatar for VBzambo
0
2K
Member Avatar for PinoyDev

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 …

Member Avatar for PinoyDev
0
106
Member Avatar for cavern

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.

Member Avatar for ChrisPadgham
0
87
Member Avatar for pucivogel

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; } …

Member Avatar for arkoenig
0
217
Member Avatar for Bandit390

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 …

Member Avatar for Fortinbra
0
189
Member Avatar for stelman

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 …

Member Avatar for stelman
0
236
Member Avatar for Shalvin
Member Avatar for debashishm
0
146
Member Avatar for masterfact18

...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' …

Member Avatar for AndreRet
0
544
Member Avatar for martin11ph

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.

Member Avatar for AndreRet
0
2K
Member Avatar for sam1

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 …

Member Avatar for AndreRet
0
187
Member Avatar for piyushdhamecha

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

Member Avatar for AndreRet
0
417
Member Avatar for RichIT

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 …

Member Avatar for faizshafie
0
138
Member Avatar for pucivogel

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 …

Member Avatar for pucivogel
0
154
Member Avatar for ayarton

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 …

Member Avatar for ayarton
0
210
Member Avatar for starmax

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 …

Member Avatar for starmax
0
312
Member Avatar for piyushdhamecha
Member Avatar for tjm6f4

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 …

Member Avatar for Ketsuekiame
0
159
Member Avatar for anishps

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 …

0
46

The End.