12,155 Topics
I have created a DLL files using C#.... How can i use it in Visual Basic 6.0? Please help me with this project...can you give me codes for it or step by step procedure THANK YOU!!!!!!!!!!!!
hey.. can someone help me here?? how can i get the second to the last and the last record in the notepad?? then, i will subtract those values and insert into the database. tnx. im using vb6 and mysql.
am using vb6 and ms office 2007 on Windows 7 professional platform i wrote code as below dim db as database dim rs as recordset dim ws as workspace Private Sub Form_Load() Set db = OpenDatabase(app.path & "\Contacts.mdb") Set rs = db.OpenRecordset("Info", dbOpenTable) End Sub Now, when i run my …
Hello guys, I am new to vb programming. Can anyone tell me how to access command button of one form onto another? I have one mdiParent form on which i have command button "PRINT" and "Add New Client", I want to disable Print button, when i clicked on "Add New …
I have been fighting with this all day and looked at so much documentation and other posts I think I am going blind. I can't find an answer that works. I am trying to read through a set of records until the reference number changes and then return to the …
HI TO EVERY HELP ME! HOW CAN I CAPTURE DISPLAT (PRINT SVREEN IN VB BY USING VB CODE AND HOW I CAN SAVE I AS .png FORMATE PLEASE PLEASE HELP ME I WILL BE VERY THANKFUL OF YOU
I am preparing a Business Management System, in which the user enters the details of purchase and sale, where item number identifies the stock availability. Suppose i purchased item1 as Business Stock, it was not in the stock, it is updated in table 4. But if it exists, i gave …
Hello guys, I am new to programming. I've recently started working on vb6. Guys, can you tell me what are .dll files and what is the use of them???
All right, the solution for this question might be awkwardly simple, but I'm totally lost and confused on this. I have created a Windows Form Application in Visual C++ 2010 Ultimate and included some resource files (BMP Images) in Form1.resX. For example, one of them is picture1.bmp. I have a …
Hi daniweb first of all, sry my english. I have a problem with at update code, I was hoping that U can help me, im new to this. i have a code where i get an id from another page, from update.aspx?id=1 up to 6 ATM. my code works fine …
Hi Again All, I have a Datasource which I query, works fine but when I package the application it can't find the datasource (which is an mdb file) how do I set the datasource to always look in the application path. I have tried [ICODE]str = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source= App.Path + …
here i have 2 listbox i already have the code for the selected item moving right and moving left but i don't know how to move all of the listbox1 to listbox2 by just click >> or listbox2 to listbox1 <<
Hi All, I have two excel sheets "A" and "B" In "A" I have list of sheets present in B When i click on a cell(where worksheet name is present) I have to navigated to the particular sheet. I have done code, but when the workbook is already open, it …
Alright, so I'm making a blackjack game, and I forgot how to make it randomly display a card. I know what it is in VB so I tried something like that, I also tried something else, but it didn't work either. When the form loads I have this so it …
I'm looking for a line (or more) of VBA that would tell me how to set the "required" property of a field to "No" instead of "Yes" Just so you have the context, I'm helping someone write a module that imports data into an Access database. Of course, sometimes a …
Hi, I have a simple query I've used again and again previously, but in this case it's telling me that it is too complex. I've output this sql string into a message and cannot see any problems with the syntax, I'm completely baffled with this one so any help would …
Hello everyone. Am designing a web application based on human resources. I need to perform a search which would give results as a dropdown as the searchstring is being typed( as seen in photo one) to include the photo/image of the person and little detailed description like the Name, Department …
Hey all. Im just learning VB and i want to make a login screen for my program. there will be two textboxes and a command button. When you click the command button it checks the information with whats in the database and if its correct loads the next form and …
I'm having some trouble sharing my application to other PC users. I have tried to Build my application and Publish my application into a folder, zip it, and put it on my website for people to download, but when they try to run the setup file it gives an error …
Hey, I am very stuck on a vb assignment. It entails basic image processing, multiple forms and arrays. If you can do this kind of stuff, please could I send you whats needed and get some help on this.
Alright, I am having a problem with an error message that comes up, i am pretty sure the code is alright, but it might be the code, i have tried re-installing VB (Visual Basic 2010). i have tried a few things on the web and nothing. here is the error …
Hello I am having some trouble here, I created a Microsoft Access dataset (.accdb) It is being used with some listboxes, comboboxes etc. The problem is when I publish the whole thing the datasets do not publish along with it and my program opens but there are not values. Anyone …
I have the following classes for a bank account. I am hoping someone can point me to where the problems in my code are. When I run the program my output is: account1 Inheritance_Part1.SavingsAccount Interest rate: 0.00% Interest earned: $25.00 Balance: $25.00 account2 Inheritance_Part1.CheckingAccount Transaction fee: $1.00 Balance: $80.00 Attempting …
I use Visual Basic 2008 with Mysql I have a table article with the following data : Articlenb - Productcode - amount 1 - XXL - 1 2 - 12 - 1 3 - 10 - 1 4 - 1.5 - 1 5 - 7 - 1 6 - 4 …
one from a datetime picker n the other is a text field.. Am using this query.. dim arrtime as datetime arrtime = (Ccur(txttime.value)+( Ccur(txtdot.text)).. It shows type mismatch error...
Anybody help me please, how can i run bat file code in vb6. can i run it. thanks,for read
(This code returns ERROR_INVALID_PARAMETER) Option Explicit Private Type DISPLAY_DEVICE cb As Long DeviceName As String * 32 DeviceString As String * 128 StateFlags As Long DeviceID As String * 128 DeviceKey As String * 128 End Type Private Type POINTL x As Long y As Long End Type Private Enum …
Hi i'm a VB beginner. I'm creating a Restaurant Ordering System using VB8. I'm using a check box, buttons, and a text box. This system work when the customers check the desired menu. The first button is "Calculate" button, which is used to calculate all the check menu and displayed …
Using microsoft visual c++ 2010. Everything is screwing up. I want to take an input file, write to an output file, and use the lines of the input file as strings. But... On previous run, I didn't have that last printf line. So everytime I run it, it just prints …
Greeting fellow Humans, I'm trying to "[I]comb merge[/I]" (if any thing as such) bunch of Excel files. There are 2 type of Excel workbook: A & B Both has a column called : [I]Location ID[/I] [U]These are the step I think the prog should do [/U]: Promp user to select …
Hi, guys. I am working on vb project, which will save client database. I've done the coding of ADD, NEW, SAVE, EDIT button. Now, I am stuck at DELETE button. When I delete any particular client then I want my client_id (it's a column in my access database) should get …
Hello everyone, I've been coding small demos to improve my programming skills, and I've run into a problem getting indices of list items which I have been unable to figure out. I'm using C# 4.0, and Visual Studio Express 2010. I've tried to use the IndexOf(T) method, but intellisense doesn't …
Hi, I have to create an executable to put in windows task bar to read foxpro dbf file and update mysql table in the web server by checking new records in the dbf file comparing the unique key in both table whenever the internet connection is available in the desktop …
I am unable to run batch file that is located in mapped network drive using System.Diagnostics.Process in VB.Net. I get: [CODE]'<batchfilename>.bat' is not recognized as an internal or external command, operable program or batch file. Press any key to continue... [/CODE] I get the same error when navigate to the …
Hi Guys, I have written a macro, when i try to save it is asking me to save it in different format (my excel file is in xlsx format). Is there any way i can save my excel file in xls or xlsx along with macro.. in xlsm format macro …
I'm creating an Excel spreadsheet from within Microsoft Access. This is declared at the top: [CODE] Public OpenExcel As Object Public OpenSheet As Object [/CODE] This is in my sub-routine: [CODE] Set OpenExcel = CreateObject("Excel.Application") OpenExcel.Visible = False With OpenExcel .Application.DisplayAlerts = False .Workbooks.Add .ActiveWindow.DisplayGridlines = False .ActiveWorkbook.SaveAs FileName:="" & …
What is a good code for adding data in adodb, wherein if a particular data is already present , for example in a text-box,it would give a warning like dulpicate data
Hey, I dont know much about macros or about scripting, but I've got a project to do for work and I looked up some codes and spliced them togeather to fit my specific purpose. I'm pulling pictures out of folders and sticking them in an excel file. You'll understand what …
hi am a newbie in programming please can someone help me with how i can search a datagridview with datetimepicker using the .value property.tanks.am using access 2007 as databse
Am using date time picker control in vb 6 to show time but when i try to store that in a access database it stores the default can somebody help me make it modify to store only time...
Hi everyone, sorry to bother. I am new in Visual Basic and I am using this in my final year project as a GUI. My system is an attendance tracking system which requires student to scan their rfid tags to make sure their attendance is taken. A lecturer can view …
With rstp If NewRecord = True Then .AddNew !slno_ID = txtslno.Text !DepartureDate = txtdate.Value !Departuretime = txttime.Text !PlaceofVisit = cmbpov.Text !ApproximateDistance = txtdistance.Text !NoofDaysofStay = Txtstay.Text !BusinessExpected = txtbusiness.Text !Remarks = txtremarks.Text .Update .Requery End With arrtime = (CCur(txttime.Text) + CCur(txtdot.Text)) fm = (CCur(txtdistance.Text) * CCur(txtmr.Text)) arrtime1 = arrtime + …
My boss asked me to write a PID class to control a motor today. No big deal, except that the deadline is tommorow evening. My calculus is rusty, and my vb6 is probably worse (which is the language I am to use). Anyone have a good understanding of a PID …
I was given a task of creating a lucky draw program. 1.Total numbers of accounts are 00001 to 99999. 2.But only 131 accounts will be chosen. 3.3 sections - 1 account for 1 car, 20 accounts for 20 iPhone, 10 accounts for 10 Samsung 4.Galaxy & 100 accounts for $100 …
Need help about elevator sumulation for vb 6
Hello Daniweb, I am writing a program to execute the command prompt command "getmac /v >> MACLIST.txt" using a Visual Basic form, including: 2 buttons(getmac and filter the text file) , 2 textboxes (alternate text file name and user name), and two radiobuttons (default text file name or custom name). …
I've designed a C# game that makes use of an Access .mdb database file to store variables. The basic idea is that one of the players will 'host' a game, and the other player will join said game, by connecting to the database, reading and writing items into the database. …
Hello Folks, I am trying to create a Crystal report using data from two Access 2007 tables but it only displays the data from the first table only. when I do same with Access 2003, I am successful but it does not work in access 2007. Please help me to …
Alright, I have a Textbox which I want to display some text, but when the user clicks on it, it should clear so he can write what he wants.
I have five sheets named 'Yearly,Q1,Q2,Q3,Q4'. currently my code only update one worksheet at one time into the mySql database. i want it to get all worksheets to be done at one go. i've tried to implement 'For loop' but it just run on the active worksheet only. is there …
The End.