248 Posted Topics
![]() | Re: You can dynamically load a label, but you must have at least one on the form to begin with. What you probably want to do is load the values into your combo box and assign the label value at the same time within your given Do loop. You will also … |
![]() | Re: The text property of the combo box returns the current value of the edit box according to MSDN documentation. So, you must validate your data through code before saving it into your database. In other words, if the text in the edit box has been changed, your program must make … ![]() |
Re: You can use a Common Dialog Control. Add the Microsoft Common Dialog Control component to your project. This control will return a Path to a file. Or you can use API's to do same. Little bit more flexibility. But really. What you're requesting is not very clear at all. And … | |
Re: [QUOTE=prem.teamwork;796550]Hi Everybody, I don't know how to embed this.. Could anybody help me please... Thanks.[/QUOTE] You're looking at using the OLEDB capabilities of VB. You should add a Microsoft Power Point Slide component into your project. Go to the Project Menu and click on Components. Click on the Insertable Objects … | |
Re: Just use the SavePicture method [icode]SavePicture Picture, FileName[/icode] For the picture parameter, you probably have to use the object with the picture property. [icode]SavePicture Picture1.Picture, "MyPicture.bmp"[/icode] | |
Re: This code has problems. It should be simplified: creating objects in arcane and roundabout ways, too many lines of code to do a simple operation, etc. MoveFile is also a Win32 API kernel32 function. It returns a boolean value . Looks like whoever wrote this VB MoveFile function is trying … | |
Re: You should have two codes listed in the Product Information Tab of the Properties Menu for your program: (1) the Product Code, and (2) the Upgrade Code. Microsoft says that you should change the product code, but leave the Upgrade Code the same. This allows newer versions of the MSI … | |
Re: The Timer control has a few important properties. They are pretty simple to use. But you must understand a few things: (1) You must set the enabled property to True, before they start. [icode]Timer1.enabled = True[/icode] You can do this with a command button or have the property enabled at … | |
Re: Whenever your working an object try to use the With statement and include as many properties as possible. [CODE]For Each rCell In Range("S2:S462") If rCell.Offset(0, 3).Value = 1 Then rCell.Value = "CLICK" ElseIf rCell.Offset(0, 1).Value = 1 Then rCell.Value = "OPEN" ElseIf rCell.Offset(0, 2).Value = 1 Then rCell.Value = "BOUNCE" … | |
Re: The easiest way to make a client server is to use a Microsoft Jet Database. The Jet Database engine has client and server capabilities built in. So, just have a server up and running and share the Access .mdb file on a shared folder on the server. There are other … | |
Re: As long as the fields are in the same rowset, you shouldn't have a problem. So if your recordset, for example, is the Customer Table and that table has Age and Allowance fields, then you can bind the combo box and the textbox to a data control. Here's the procedure: … | |
Re: Υοu'll have to do what is called subclassing in VB6. No vb6 form by default deals with all the Windows Messages generated by the Windows Operating System. VB6 deals with a limited set of Windows Messages in its Main Window: the rest are ignored. So you add a subclass that … | |
Re: [QUOTE=king_saqib;1628494]Asalam to every one im a begnner in programming hoew can i send an email through vb exe please help me in under standing:([/QUOTE] Use mapisession control and the mapimessage control. Use the mapisession to sign on and mapimessage to send and receive messages. It should work in conjunction with … | |
Re: When doing resizing in VB6 you need to be careful to include an On Error statement. The following example illustrates how to resize a text box to correspond with the size of the form as it resizes. You need to do similar coding to deal with height. The principles shown … | |
Re: [icode]Printer.Print "This is what I want to print." [/icode] | |
Re: [URL="http://www.connectionstrings.com/sql-server#p6"]http://www.connectionstrings.com/sql-server#p6[/URL] Probably the SQL OLEDB string is probably what you're looking for. Get your SQL Server up and running first. Add a reference to the Microsoft ActiveX Recordset 2.x library in your project. Instantiate your ActiveX Database Objects (ADODB) as follows: [code=vb6]Private rst as ADODB.Recordset Private cn as ADODB.Connection Private … | |
Re: You use the Set Printer = Printer(Index) to set a particular printer in an application to be used. You need to do this before setting the other properties. And, of course, before printing. You'll need a listbox, and a command button to use this example. [CODE]Private PrinterNames(10) As String Private … | |
Re: [QUOTE=eslenik;1626538]Hi everybody, i am trying to get IPs from a switch with vbs through telnet. i am recording that IPs to excel sheet. the problem is when i try to read that IP data vbs copy or paste it as a string. so telnet can not recognize string as a … | |
Re: Try running this outside the VB6 environment by isolating the web function with a call to the ShellExecute function. If the problem persists, the problem should stem from the VB6 environment. Make sure you have service pack 6 installed. [CODE]Option Explicit ' Windows Function ShellExecute ' Windows C Language Function, … | |
Re: You need to write code to move to the next row in the database: [CODE]Adodc1.Recordset.MoveNext[/CODE] or [CODE]Adodc1.Recordset.MovePrev[/CODE] depending on what you're doing. If you want to get fancy, you can seek a particular row: [CODE]Adodc1.Recordset.seek ...[/CODE] | |
Re: [code="VB"] ' Use the Change Event of the text box Private Sub txtDateChange_Change() Dim strText, vNewDate As Variant, intEntered As Integer strText = txtDateChange If IsNumeric(strText) Then intEntered = CInt(strText) vNewDate = DateAdd("m", intEntered, CDate(txtDate1)) txtDate1 = Format(vNewDate, "Short Date") End if End Sub [/code] | |
Re: You want to write this in C. That's fine. Use a while statement. [CODE]While (expression) // { statements ; // statements to test for the state you are seeking }[/CODE] | |
Re: [QUOTE=daniwaber;1445322]Hi:) How can I scroll the report in runtime by mousewheel. I am using VB6 (SP6) and for reports I am using VB report control.[/QUOTE] Which Report Control? The Data Report Control? Be specific and use the exact terms given in the VB6 environment. To scroll a report control in … | |
Re: [QUOTE]"Item cannot be found in the collection corresponding to the requested name or ordinal"[/QUOTE] That usually shows up because the field name isn't spelled right or does not exist in the field names of the recordset. | |
Re: Try using something like the following for loading the control without a popup. It works for password protected ftp sites: e.g. [url]ftp://username:password@ftp.website.com[/url] [url]http://username:password@webaddress[/url] | |
Re: Here's some basic suggestions. You'll have to figure out how to enter the correct variable values for the text and search strings. And you'll need to load the Windows Scripting Runtime from the Projects/reference menu. [CODE]Option Explicit Dim fso As FileSystemObject Dim strSearch As String Private Sub cmdFind_Click() Dim fil … | |
Re: No easy code exists. The PictureBox does not support a rotate function. You will have to use some of the Win32 APIs from the Software Development Kit to deal with rotating a picture. | |
Re: [QUOTE=amby;485365]hey can anybody help me.. i want to interface my hardware with the PC through usb port.... and my application program is written in vb6.0...so do i need WIN DRIVER type software for low level programming and then call win driver libraries in vb 6.0 or else? can somebody send … | |
Re: [QUOTE]dim objForm as form dim sValue as string sValue="frmXXX" set objForm=sValue objForm.show This is what the code looks like... i need to convert the variable string to form object thanks a lot.[/QUOTE] If you already have the forms made, that really shouldn't be a problem. Use a Select CASE statement. … | |
Re: [QUOTE]What is the bug in the code?[/QUOTE] [icode]#include <winsock.h>[/icode]? Shouldn't you include <winsock.h> in your header? That's where ntohs is found. What compiler are you using? Compiles fine with Borland 5.51 with winsock.h but generates an error when leaving out the winsock header. Hank | |
Re: [QUOTE]# ' Command object: # Dim check As New ADODB.command # # ' Create a connection object. and connect: # Dim ConDB As ADODB.connection # Set ConDB = New ADODB.connection # Dim strConn As String # strConn = "PROVIDER=SQLOLEDB;" # strConn = strConn & "DATA SOURCE=LENOVO-325FBA33\SQLEXPRESS;INITIAL CATALOG=StagingArena;" # strConn = … | |
Re: IT would help if you would identify on which OS you are trying to delete these 'symlinks.' Different operating systems on windows have different support for linking files. And how do you know these are symbolic links? How are they listed? | |
Re: [QUOTE]I want to be able to rotate it.[/QUOTE] What do you mean rotate? That's kind of vague. Rotate it like an airplane propeller? Rotate it like a Marquee on a scoreboard? Please, clarify. You need to clarify what 'it' is. I'm guessing you want to rotate the picture and the … | |
Re: [QUOTE]" language="javascript" id="ddModel"[/QUOTE] Shouldn't you be using vbscript to be requesting help on this forum? And what enviroment or IDE are you using to write your code? InterDEV 6.0? I know with InterDEV you can step through the code to debug it to see what's actually happening. | |
Re: [QUOTE=Giffordw;1171767]I'll try ODBC Direct and see where it takes me. Thanks.[/QUOTE] Access97 uses Microsoft DAO 3.51 Object Library as opposed to the 3.6 Object library used by AccessOffice 2002 Your problem probably arises from the fact that you have loaded the a DAO Object Library that will not support the … | |
Re: [QUOTE=aianne;1164018]Hi! I need help to my Turbo C program.. I need to create a program that will ask the "Starting X:", "Starting Y:", Ending X:", and Ending Y:" on different shapes.. this is how the program should be: [CODE]SQUARE: starting X: starting Y: ending X: ending Y: CIRCLE: Starting X: … | |
Re: I believe the answer to this problem was mentioned in another thread. With the TurboC++ 3.x compiler you need to enable the Graphics Library in the [I]Options->Linker->Libraries[/I] Menu in order for the graphics functions to compile correctly. The code looks fine. Just lacks the check box in the drop down … | |
Re: [QUOTE=aianne;1164614]------------------ Windows.. I'm using borland turbo C++.. do u have any idea about this problem.? i'm so desperately need some example of it.. :'([/QUOTE] Using the Free Borland 5.5 command line compiler? Which version? Using Borland C++ Builder? | |
Re: [QUOTE=kavya_nayak7;1169222]hii.i want to implement movable images in my project like from left to right or top to bottom..please do help me out..if possible just give an illustration.........waiting for reply..thnx in advance[/QUOTE] [CODE=vb] Private Sub Timer1_Timer() Dim lngFormEdge As Long lngFormEdge = Width With Image1 If .Left + .Width < lngFormEdge … | |
Re: [QUOTE]Is there any other way of doing it without the use of arrays? [/QUOTE] In the context you've mentioned a word is an array of characters. And since you're dealing with an array of characters--i.e. a word as you put it--you must deal with the 'word' as an array. There … | |
Trying to raise an event in an ActiveX control from a module (.bas file). Been trying to create a timer control that will go past the 1 minute limit of the vb6 timer.ocx. The Windows API SetTimer will do this. But wanted to create an Active X timer control that … | |
Re: [QUOTE=kashy!;1162275]I found another very good thing, Its VideoOcx and WebCamOcx but I cant use it very well, If some onr knows about it[/QUOTE] Well, I would say the first step should be to pick out a web cam that has some software available to use. I would suggest a low … | |
Re: [QUOTE]what i need to know is the code for manipulating the bit because as u all knows that LSB insertion plays with all the bits stuff..[/QUOTE] Two things would be helpful: 1. Give us some example of data that you want to work with. 2. What expected outcome you wish … | |
Re: [QUOTE]have to connect a thumb imression device with my project[/QUOTE] What's the name of the device and model number? | |
Re: [QUOTE]Set mydb1 = OpenDatabase(App.Path & "\parlordb.mdb") Set myrs1 = mydb1.OpenRecordset("parlordb") myrs1.Open ("select * from parlordb where custname=searchname")[/QUOTE] Your mistake is in your syntax. You have a variable inside a quotation mark. [CODE] myrs1.Open("Select * from parlordb where custname=" & searchname) [/CODE] | |
Re: [URL="http://www.iu.hio.no/~mark/CTutorial/CTutorial.html"]http://www.iu.hio.no/~mark/CTutorial/CTutorial.html[/URL] This is a good link to a free tutorial. Gives you the basics. | |
Re: [code=c] int main(int argc, char *Name[]) { /* char *Name = "Josh"; */ printf("%d",myatoi(Name)); return 0; } [/code] One problem here is you're not using the proper value for your function: myatoi(Name). If you have one argument after your executable, the proper format would be the following: myatoi(Name[1]) The second … | |
Re: [QUOTE]How can I send a string into my POS POLE Display...??? [/QUOTE] A pole display is like any other device. Printer.Print MsgBox "Hello, World" You need to have an object that has methods, properties, and or events. A pole display is an object. But VB6 has no built in code … | |
Re: I would say that your problem stems from [icode] .rsCommand1.State <> 0[/icode] Not every property and method is supported by every type of Database: In your case an Access database. It looks like the [I]State[/I] property is not supported. | |
Re: [QUOTE]it gives me a runtime error("Run-time error '91': Object variable or with block variable not set"). [/QUOTE] It doesn't look like you instantiated your ranges. Don't know. [code] Set rnge = new Range[/code] Also, you should be careful in your declaration of variables. VB6 is not like C. [code] Dim … |
The End.