248 Posted Topics

Member Avatar for gowans07

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 …

Member Avatar for hkdani
0
118
Member Avatar for hueikar

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 …

Member Avatar for hueikar
0
134
Member Avatar for daniwaber

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 …

Member Avatar for daniwaber
0
319
Member Avatar for prem.teamwork

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

Member Avatar for Denver Museka
0
629
Member Avatar for sythja

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]

Member Avatar for sythja
0
143
Member Avatar for taruna patil

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 …

Member Avatar for hkdani
0
393
Member Avatar for opspl_programme

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 …

Member Avatar for opspl_programme
0
333
Member Avatar for kheijhei

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 …

Member Avatar for SpiritualMadMan
0
1K
Member Avatar for kungfujam

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

Member Avatar for SpiritualMadMan
0
216
Member Avatar for vin24

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 …

Member Avatar for hkdani
0
296
Member Avatar for neiljohnmanuel

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

Member Avatar for hkdani
0
135
Member Avatar for Timroden

Υο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 …

Member Avatar for hkdani
0
540
Member Avatar for king_saqib

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

Member Avatar for debasisdas
0
300
Member Avatar for zela

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 …

Member Avatar for Deepak Shitole
0
812
Member Avatar for Coco Chanel
Member Avatar for Deepak Shitole
-1
97
Member Avatar for uselessninja

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

Member Avatar for uselessninja
0
166
Member Avatar for PM312

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 …

Member Avatar for hkdani
0
275
Member Avatar for eslenik

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

Member Avatar for hkdani
0
123
Member Avatar for martin11ph

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

Member Avatar for hkdani
0
1K
Member Avatar for xtianenikkian

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]

Member Avatar for AndreRet
0
1K
Member Avatar for abu taher

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

Member Avatar for abu taher
0
109
Member Avatar for gf_123

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]

Member Avatar for hkdani
0
145
Member Avatar for daniwaber

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

Member Avatar for AndreRet
0
284
Member Avatar for xtianenikkian

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

Member Avatar for xtianenikkian
0
221
Member Avatar for martin11ph

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]

Member Avatar for martin11ph
0
131
Member Avatar for Dealman

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 …

Member Avatar for AndreRet
0
189
Member Avatar for emongs

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.

Member Avatar for AndreRet
0
94
Member Avatar for amby

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

Member Avatar for glenndr_15
0
2K
Member Avatar for Neophyte08

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

Member Avatar for anrico
0
2K
Member Avatar for prashanth s j

[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

Member Avatar for prashanth s j
0
194
Member Avatar for flashkarni

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

Member Avatar for hkdani
0
370
Member Avatar for NickBomb

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?

Member Avatar for NickBomb
0
483
Member Avatar for neosonic

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

Member Avatar for hkdani
0
87
Member Avatar for timtalk

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

Member Avatar for timtalk
0
133
Member Avatar for Giffordw

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

Member Avatar for Giffordw
0
69
Member Avatar for aianne

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

Member Avatar for Top9ne
0
1K
Member Avatar for sudiptamondal

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 …

Member Avatar for hkdani
0
459
Member Avatar for aianne

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

Member Avatar for WaltP
0
152
Member Avatar for kavya_nayak7

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

Member Avatar for hkdani
0
83
Member Avatar for tquiva

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

Member Avatar for hkdani
0
167
Member Avatar for hkdani

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 …

Member Avatar for vb5prgrmr
0
376
Member Avatar for kashy!

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

Member Avatar for kinwang2009
0
1K
Member Avatar for bluefish601

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

Member Avatar for pramod.T.C
0
188
Member Avatar for nilay.sood

[QUOTE]have to connect a thumb imression device with my project[/QUOTE] What's the name of the device and model number?

Member Avatar for vb5prgrmr
0
105
Member Avatar for xairylle

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

Member Avatar for jireh
0
173
Member Avatar for Iam3R

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

Member Avatar for Tom Gunn
-4
136
Member Avatar for Soileau

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

Member Avatar for lipun4u
-1
225
Member Avatar for oscarresonable

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

Member Avatar for silmy
0
113
Member Avatar for abu taher

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.

Member Avatar for jhai_salvador
0
127
Member Avatar for Kecy

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

Member Avatar for Jupiter 2
0
124

The End.