12,155 Topics
Hi, My requirement I need to edit or replace content in the word document every time and save it to another location. What I wanted is I want to simplify this through vb.net but stuck in somewhere I am doing mistake in the code itself (I am completly newbie). I …
I'm new to this site so please excuse any errors in etiquette or format. I have Visual Basic 4.0 (Please don't laugh!). It works fine on my desktop but when I installed it onto my new laptop running Windows Vista I get an error message " 'olepro32.dll' could not be …
I installed Windows 7. After installation of Visual Basic 5 I cannot manage to add components like the Microsoft Data Bound Grid Control (DBGRID32.ocx) and all the rest of the .ocx type controls. The error message is either "Permission denied" or "error accessing the register". Has anyone a solution other …
I am recently developing a software(using Visual Basic 2010 Express) that has a feature that would store image on the database(MS Access 2007).. My problem is, how can i store image on msAccess and then retrieve it again on my application
I've been coding since 1966 and have seen a number of languages come and go and also held up as "THE" language. When Microsoft came out with Visual Basic 3/4/5/6 (Classic NOT Net), and with VBA as part of their office suite, I jumped on it and never looked back …
I'm making a game for class, and I don't know how to go about it for this part of the game... How do I make the program detect the command buttons around it? The game is a 8x8 board that looks like this: http://s27.postimg.o...shovn/image.png When it is a player's turn …
Hello I have a maskedbox and I will when I press OK button it will generate a new number in the maskedbox.
hi .. I have done coding for calculation ... but the results obtained (eg.13.9484736273928) .. how can I get the results in 2 decimal point (eg 13.95)? Your help is greatly appreciated Private Sub tx_kh2_Change() Text2.Text = Now() Dim x As Integer x = DateTime.DateDiff("s", Text1.Text, Text2.Text) Text3.Text = x …
Hello, I am trying to create a simple application for personal use for Twitter marketing. This is my first time trying to interact with REST APIs through VB and I have been going around and round getting various different errors. Here is my current code and I get a '401 …
I have this routine that works in outlook 2010 but not in outlook 2013 (365). ` Public Sub readTextFile(oFolder As eFolder) If oFolder = NotSupported Then Exit Sub If oFolder = Inbox Then ActiveExplorer.CurrentView = Application.GetNamespace("MAPI").GetDefaultFolder(olFolderInbox).Views("MgInbox") Else ActiveExplorer.CurrentView = Application.GetNamespace("MAPI").GetDefaultFolder(olFolderSentMail).Views("MgSentMail") End If Dim oTV As Outlook.TableView Set oTV = ActiveExplorer.CurrentView …
Salam... I have SQl Database...And i am using visual basic 2010 i have a problem with Null values.When in my database data have some null values then data not showing in my crystal report ...crystal report showing blank..I want '0' when data is null..for example my table name is (meetings …
it posible to save multiple file directory using listbox?how would i do it?
Hello Anyone could you help i have got a strange problem when i update any record i get an error 2147467259 -(8000405) Insert Field failed. Where as on the same application i can add a new record. Please see below the code i have used dont know where am going …
Hi Group! I'm curious to know, is it is possible to build a custom control in Visual Basic? Specifically, I want to build a control that would be similar that would be similar to a ListView (in the Detail "view"). However the difference would be in how it actually displays. …
vb color commondialog box return color if i am selecting cancel in color dialog box.how we can handle this. commondlg.showcolor lblcolor.forecolor=commondlg.color
Hello.. i just want to know..how i copy or transfer all data record from datagrid1 to datagrid2 ..Thanks
Hi All, How can i get mac address from other computers with input ip address? Please helps Best Regards...
HI, my code for search is rec.Open "select * from Body_Markings_new where Part Number like '%" & txtsearch.Text & "%' ", conn, adOpenDynamic, adLockOptimistic after compiling this code getting an error saying syntax error (missing operator) in query expression 'part number like' %1%" please help me I not able to …
Hello how to connect Sql form to save and read information from Ini File?
below is the code which select value from the database and increase it by 2 and update the database with the new value. how do I lock or prevent multiple read and update at the same time? please help Dim query2 As String = "select * from " + usern …
Gud day to everyone!!! Hi, I really need your help guyz, i want to connect my system and database to 2 or more computer, just like the server and client. how could it be possible?? and what you shuold i do for this project?? i hope you can help me …
hi to all, i am new in vb6 and im trying to make a project. Can you help me guyz, i want to populate the textbox in datagrid. im don't have the idea on how to do it. this is what i want to try , when i am inputing …
im using access 2007...when i open database in vb6.0 it is throwing an error 3343 unrecognised database format..i m using latest reference. help me out
can anyone how to disable process such as explorer.exe at startup windows7 until i was true entering password? i want make log in display as my style.. thanks before.
I don't know what i doing wrong. I have been on several forums trying to figure out how to sort a table in visual basic. I have treid with and with out a dataview, but noting seams to work. I have a logg that the user can do new inserts …
hi, I need a help.how can i SEARCH a record in a database using listbox and display the results?? For an example: if i select a destination on the listbox and it will look for the records on database and display it. im using ms access and adodb connection.Below is …
Hi, i would like to know how to retrieve an image in an access database to vb6. Thanks in advance.
Friends , Is there any way for data alignment in the list box. My code is given below Private Sub TxtFdt_KeyPress(KeyAscii As Integer) Dim L, L1, L2, L3, L4, L5 As Integer Select Case KeyAscii Case vbKeyReturn If TRS.State = adStateOpen Then TRS.Close TRS.Open "SELECT * FROM Tran WHERE Ac …
i want to create a table and fill the data inside. i have crated table manully using loop now i want to fill data inside it... how we can fill plz help Dim tmpcounter As Integer tmpcounter = pageLeft + Printer.CurrentY For x1 = pageLeft To 2036 Step 200 Printer.Line …
Hello, I have my own mail template in vb6.0. when i click on send button it creates a new outlook 2007 window. all information passes to it except subject message. on my local machine it is working but on client side not. Tanks, krunal
i have problems with the application that i currently develop. I use tab control, and to access tab pages(page 1 , page 2, etc) i use link label. Now my question is, how can i remove the WHITE BORDER of my tab control?? I tried using panel to hide the …
Hey, I never use any CSS file in VB...just wanna ask is that posibble? And for what i've found, in order to implement the css call we need to declare it in the master or content page rite?? well my badluck i dont have any of it..the project that with …
Hello daniweb, I would like to us if it possible to search using two boxes from listview in vb6… First text box is for company name then the second box is for Number…the idea is that search first in the first textbox(companyname) then the second textbox (number)will search based on …
hi... how to calculate the difference between time 1 and time 2 ... and how to get the current time without moving "second" coding that I do now makes a ticking time and can not do subtraction between the time ... I really appreciate your help Private Sub Command1_Click() Timer1.Enabled …
Im thinking of proper ways to validate dates. Which months have 30 or 31, feb when it has 28, etc. Since Im doing this in VBScript and there is no forum for that here, I thought of making this thread for a pseudocode method of doing it correctly universally. No …
I'm trying to make a hit counter. I have it working but when I add it to my website, I get a web config. error... <%@ Page Title="Home Page" Language="VB" MasterPageFile="~/Site.Master" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %> <%@ Import Namespace="System.IO" %> <script language="VB" runat="server"> Private Sub Page_Load(ByVal sender As System.Object, ByVal e …
I'm trying to open a text file in a rich text box, but when I use the OpenFileDialog.ShowDialog() function it says: "refrance to a non shared member requires a object refrance" even though I've uesd imports system.IO if I sound like an idiot, Its because I'm learning. My code so …
Hey, everyone. I am writing a batch script (.bat program) to automate some tasks. And when that certain task is complete, I would like it to send an email to the admin saying if the task was completed successfully or it failed. It will figure out if the task was …
I've already succedd to dial a number via modem using mscomm control, but i want to actually be able to speack with that person i'm calling, how can i do it, or if you have some modem dialer examples in zip files, please let me know, i'll apriciate it.
'======================================================================================================= If rs.State = adStateOpen Then rs.Close rs.Open "select ActvID from activity_id where ProjectNo = '" & ProjectNo1 & " ' ", db, adOpenDynamic, adLockReadOnly If Not rs.EOF Then rs.MoveLast While Not rs.BOF ActvID.AddItem rs(0) rs.MovePrevious Wend Set rs = Nothing i need to add items without using While plz
I had created a window application, finish debug and it work perfectly in my computer. I then copy a whole folder includes the .exe file to another computer which doesn't installed vb. When i run the .exe files, it doesn't work and pop out the statement below: *********************************************************************************** See the …
Hello All, I am working on an Access 2010 application. I would like to click on a command button and open a Adobe PDF document. The code for the On-Click event is: Set shell = CreateObject("WScript.Shell") shell.Run """C:\Program Files (x86)\Adobe\Reader 11.0\Reader\acrord32.exe"" SourceFile" When the Shell.Run line executes, Acrobat returns an …
Hello, how to programatically close outlook model pop up in vb6.0? Thanks
All, What is the most efficient way of writing several lines of data to a *.txt file? Currently, I store the required text in memory then write it all to a user-specified text file at the end, similar to the following; Dim text As String = "" text = text …
` How can I print a watermark in the middle of a word document then return to the top of the doc and start to print whatever text I want to? Here's my code: Set oWord = CreateObject("Word.Application") oWord.Visible = True 'Add a new, blank document Set oDoc = oWord.Documents.Add …
i'm using the data control with mask edit box control. when i click on next button, the mask edit box isn't updated. but why show us the 1st element from data?
Please help. How to connect vb6 to mysql. What are the codes? Thanks.!
I am writing an application in Visual Basic 5.0 that calls Crystal Reports 4.6. I used to be able to do this on my old PC which ran Windows XP, but now when I try to do it on my new PC which is running Windows 7 (64-bit), I can't …
For the life of me, I can't get this to work.... What am I doing wrong? Any help is greatly appreciated!! [CODE] Private Sub webBrowser1_ProgressChange(ByVal Progress As Long, ByVal ProgressMax As Long) On Error Resume Next If Progress = -1 Then ProgressBar1.Value = 100 lbl1.Text = "Done" ProgressBar1.Visible = False …
The End.