Posts
 
Reputation
Joined
Last Seen
Ranked #592
Strength to Increase Rep
+7
Strength to Decrease Rep
-1
68% Quality Score
Upvotes Received
22
Posts with Upvotes
22
Upvoting Members
20
Downvotes Received
16
Posts with Downvotes
11
Downvoting Members
8
16 Commented Posts
6 Endorsements
Ranked #299
Ranked #355
~134.70K People Reached
Favorite Tags

248 Posted Topics

Member Avatar for happygeek

To say the internet is evil would be the equivalent of saying, "Guns are evil." However, society is bound to enforce the evil use of guns. Murder is wrong and should be punished in a civilized society. And likewise, Pornography is wrong and it's spread and use should not be …

Member Avatar for happygeek
0
1K
Member Avatar for neosonic

[QUOTE=neosonic;1171575]thanks for the info. Anything will do. I don't need to do anything with the picture. I just need to use it in "loadpicture" picture function and display it. Which way do you thing is the easiest? thanks a lot, it's relieve to know that it is possible[/QUOTE] [QUOTE]Graphics formats …

Member Avatar for Giuseppe_1
0
5K
Member Avatar for hkdani

Using tasm32. GetStdHandle returns INVALID_HANDLE_VALUE in eax register. .386 .model flat extrn GetStdHandle:PROC extrn ExitProcess:PROC .data .code start: push -11 call GetStdHandle push 0 call ExitProcess end start Other APIs work fine. just having problems with GetStdHandle. Any ideas?

Member Avatar for hkdani
0
374
Member Avatar for opspl_programme

[QUOTE]But I'm not able to print one bold line. Will someone please help out?[/QUOTE] I would suggest not using escape sequences and LPT1. Instead I would load a driver for the printer and print using the following: [code]Printer.Print[/code] I've seen code like you mentioned and I believe the easier way …

Member Avatar for AndreRet
0
4K
Member Avatar for hkdani

Wouldn't it be nice to have a sizable command button in VB6? Face it. In the hidden recesses of your mind you have always wanted to be able to resize that command button in VB6--after the program is running that is. It's just that VB6 has not provided you with …

Member Avatar for hefaz
1
803
Member Avatar for wargamer2004

[QUOTE]v[/QUOTE] Use the KeyPress Event. The barcode scanner acts like a keyboard so use the KeyPress Event in the form. Usually, these scanners have a few characters at the start that identify it as a barcode scan. You can evaluate the ASCII value in the keyPress event to determine if …

Member Avatar for dahiya309
0
881
Member Avatar for maybnxtseasn

Check your defines for _WIN32_IE? Needs to be defined >= 0x0400 for TBSTYLE_SEP TBSTYLE_BUTTON You can do this in your Resource.h file #define _WIN32_IE >= 0x0400 Also, Microsoft recommends using the [I]CreateWindowEx[/I] over using the deprecated [I]CreateToolbarEx[/I]. Use TOOLBARCLASSNAME in the second parameter with CreateWindowEx

Member Avatar for alfgaar
0
877
Member Avatar for Ravi Kant

You could use the MonthView Control. The Week Property of that control returns that particular day's week number in relation to the current year. For example [code] Dim intWeek as integer intWeek = MonthView1.week [/code] intWeek should return the week number for the particular day selected in the MonthView Control. …

Member Avatar for iluvchubs
-1
2K
Member Avatar for stan yost

[QUOTE]it's easier first off, to reference the object hierarchy ,and beyond that, why would you want to use memory space (a variable) to contain information that's ALREADY stored somewhere? That will slow down the program (more processing, and memory usage) and make code a bit more difficult to read....[/QUOTE] That's …

Member Avatar for Alyssa_1
0
3K
Member Avatar for ImranQureshi

[QUOTE=ImranQureshi;1676038]how to create a text file and to write into it[/QUOTE] I've worked with these before. And from looking at the specs of your scanner all you have to do is scan the barcode, the barcode scanner will decode the symbols and translate them into ASCII characters that can be …

Member Avatar for matcooper
0
3K
Member Avatar for Ole Raptor

[QUOTE]I can re-size the UserControl but the controls on the UserControl are not resizing.[/QUOTE] The User Control has its own resize event. You could write could in that event to resize the controls inside that control. That would be the most logical place to try. [CODE="vb6"] Private Sub UserControl_Resize() Dim …

Member Avatar for WordTickler
0
2K
Member Avatar for dwiniers

[QUOTE]I cannot be found in the collection corresponding to the requested name or ordinal... [/QUOTE] I would agree with BitBlt. I've seen that error popup when I misspelled the field name. In other words, the requested name does not exist because of my spelling error. Sometimes I err on the …

Member Avatar for AndreRet
0
2K
Member Avatar for mc1202bc0077

> i tried to change the location of the access within the codes, but i failed. As mentioned previously, don't hardcode locations of filenames. Your application should normally store its data in the Application Data folder. Microsoft has given a name to this location for each user: %APPDATA% So, an …

Member Avatar for abelingaw
0
2K
Member Avatar for ram_kumar8970

> I want to pass multipule arguments of different datatypes. Everything is identified as a string in VB6 with the Command() command. It's the responsibiilty of the programmer to test and categorize the string data to determine if it can be classified as numeric: e.g. textvb6.exe seven 6 horses could …

Member Avatar for hkdani
0
134
Member Avatar for PM312

You should use an installer program to install your program on another computer. Your development environment has met all the dependencies; otherwise, your program would not run. Use the ***Package and Deployment*** wizard. This should pick up all the dependencies and install the appropriate files needed for your program and …

Member Avatar for hkdani
0
394
Member Avatar for jean1234

You just need to build a string to enter in the first parametere of the Visual Basic Shell function. If you have two text boxes, and the user has entered the appropriate numbers, just use the entered values to build your string for the first parameter of the Shell function. …

Member Avatar for AndreRet
0
312
Member Avatar for v_janssens
Member Avatar for jean1234
0
364
Member Avatar for locsin

scrrun.dll That's the exact name of the dynamic link library (dll). In that library of functions, the file system object can be referenced and used. To add a reference to your project, simply click on the the Projects menu, click on the References Menu, and a form should show up …

Member Avatar for ritesh9nair
0
354
Member Avatar for LFCDay123

Again, if you want help, post the code that you have already tried. The guidelines explicitly say that you are to submit a request with your attempts at writing code. That being said you could use the hide and show methods for currently active forms: [CODE]frmFirst.Hide frmSecond.Show[/CODE]

Member Avatar for razamughal67
0
199
Member Avatar for mb01a

[icode]Function retassoc(fn As String, fpath As String) As String[/icode] You might want to include ByVal in front of your variable parameters. By default, if you leave ByVal or ByRef out of the parameter declaration, the function will be looking for a variable. Sometimes functions intend to change the variables that …

Member Avatar for deades
1
1K
Member Avatar for alapeh

That error just means that the Type WAVEHDR has not been previously defined or declared in the VB6 environment by the user. WAVEHDR could be anything the user wants to declare it as, for example: [code=vb6]Private Type WAVEHDR intWaveLength as Integer dtChanged as Date dtCreated as Date WaveName as String …

Member Avatar for alapeh
0
123
Member Avatar for moe0

First of all, you're to be commended for following the guidelines and submitting your code along with the request. The ability to follow instructions is a good indicator of future success! [QUOTE]when the input is 12 years and 6 months I want the program to print teenager I'm not sure …

Member Avatar for skatamatic
0
304
Member Avatar for EkoX

[QUOTE]How i can split a sentences into words and add splitted words into listbox.[/QUOTE] You could try writing some code as is suggested for submitting requests in the guidelines. But you could use the [B]Mid[/B] function as indicated or you could use the [B]Instr[/B] function. Search for the space character …

Member Avatar for EkoX
0
279
Member Avatar for mayzebra

[QUOTE]However now I'm in a position where I need to call a C# dll from VB6 and I need it yesterday.[/QUOTE] That would be nice, if it were possible. I know you can use a VB6 ActiveX component in .NET, but I really doubt you can go the other way. …

Member Avatar for nirdeshdabas
0
3K
Member Avatar for crimson08

[QUOTE]how to save a visual basic form in any file format such a jpeg?[/QUOTE] A Visual Basic Form is not a picture form. It's a container for other objects. In that sense, you can save the form with the picture on it. There are other contols that you can use …

Member Avatar for deepakx250
-1
1K
Member Avatar for rucci

DebAsisdas gave a useful suggestion. I've never done it that way. Here's some further information along those lines from the MSDN documentation. [QUOTE]Creating a Front-end Database Application with Minimal Code It's possible to create a database application using a minimum of code by setting a few properties at design time. …

Member Avatar for AndreRet
0
1K
Member Avatar for Boshra Nour

[LIST=1] [*]You'll need to use the list Property of the list box control. [*]You'll need to use some kind of loop to search through the values of the list. [*]You'll use your code to match the value of the text box to the value of the item in the List …

Member Avatar for Jx_Man
0
3K
Member Avatar for goodi

You can add an Acrobat Control Component to your form. One of the functions of the control will be to print a PDF document. You probably need to do some investigation on how to use the control. But you can go to Adobe's website. They do have an SDK you …

Member Avatar for hkdani
0
169
Member Avatar for newbie26

You need to have the user select the week and then you need to use that week in a SQL Query statement. If you're using an ADODB recordset, it shouldn't matter what database engine you're using.

Member Avatar for newbie26
0
130
Member Avatar for nfowomola2

You create a query statement based on the dates you want to report on. You must input that data using some type of date control--which would probably be best. Or you can have the user type in the date he wishes to query. But that leaves you open to date …

Member Avatar for ChrisPadgham
0
123
Member Avatar for violette

Some database fields require input for each field: even if you don't have a value to input. So if you're using numbers, you might supply the number zero where a null field would show up. But sometimes the field requires input, but it requires a string value. So, you provide …

Member Avatar for dspnhn
0
895
Member Avatar for aileengrace03

Format your code. You're using adOpenStatic for a SQL statement. I usually use a an adOpenDynamic when working with SQL statements. And adOpenStatic with Table Searches. But if you're getting that error, you probably should put a stop point after opening up the recordset and then checking in the command …

Member Avatar for BitBlt
0
214
Member Avatar for Abzz

[code] Public Sub CalculateEquation (ByVal X as Integer, ByVal Y as Integer) Form2.label1.Caption = X * Y End Sub[/code]

Member Avatar for hkdani
0
61
Member Avatar for ykbks

This is not really a VB question. You're in the wrong forum. Unless you want to use vb to change the registry, etc. But in Windows Explorer choose the Tools menu>FolderOptions>File Types. Associate the extension with a program. And that's it.

Member Avatar for hkdani
-1
7K
Member Avatar for Patrick Gondwe

[URL="http://www.daniweb.com/software-development/visual-basic-4-5-6/tutorials/355095"]http://www.daniweb.com/software-development/visual-basic-4-5-6/tutorials/355095[/URL] Use your eyes. Use a little bit more effort.

Member Avatar for hkdani
0
76
Member Avatar for datanetw
Member Avatar for hkdani
0
392
Member Avatar for puneet2

I tried to format what you had. But it was an exercise in aggravation. Here's one thing to avoid doing: Don't Use a With, End With statement in the middle of a series of For Next Statements. It may work: but it's murder trying to decipher. Don't forget to use …

Member Avatar for hkdani
0
249
Member Avatar for kanyonb38

Yes, but you need to use the following Windows API to do that. [QUOTE]BOOL SetWindowPos( [INDENT]HWND hWnd, // handle to window HWND hWndInsertAfter, // placement-order handle int X, // horizontal position int Y, // vertical position int cx, // width int cy, // height UINT uFlags[/INDENT] // window-positioning flags ); …

Member Avatar for hkdani
0
232
Member Avatar for dhnayak

Try using monospaced fonts or fonts that are not proportional such as True Type Fonts (TTF). If your printer switches the font from a font that is used on your form, and it switches to a monospace font, then the spacing will be off. Sometimes your printer will supply fonts …

Member Avatar for hkdani
0
3K
Member Avatar for kiki256

[QUOTE]If I had txtWord, txtLetter, txtReplace, lblAnswer, cmdNew where would i put it in the code[/QUOTE] Enter your code in the cmdNew sub [CODE]Private Sub cmdNew_Click() Dim intLen As Integer, intPos As Integer, intCounter As Integer Dim strNew As String, strBuild As String intLen = Len(txtWord) lblAnswer.Caption = "" intPos …

Member Avatar for kiki256
0
2K
Member Avatar for dlayante

Good grief. You're using a C# .NET DLL and trying to place it in VB6? Maybe you're really trying to place a C or C++ .NET DLL and place it a Visual Basic 6 project? In which case, you're in the wrong forum. Go to the Visual Basic .NET forum. …

Member Avatar for hkdani
0
7K
Member Avatar for newbie26

You need to read the text file using the Microsoft Scripting Runtime Libary or just use the older file function [I][U]Line Input[/U][/I] to loop through the lines of the text file. If you use the Scripting Runtime Library, then you'll need to use the TextStream Object using its ReadLine function …

Member Avatar for hkdani
0
124
Member Avatar for kbj123

Office 2007 uses a different library. Someone had posted a similar problem a few months ago. I believe the Office 2007 Access uses a different database engine than the Jet engine (versions 2.x, 3.51, 4.0, etc.). But use the following reference library from the Project/References menu: [B][I]Microsoft Office 12.0 Access …

Member Avatar for hkdani
0
265
Member Avatar for horsetamer
Member Avatar for Rizvi404
Member Avatar for hkdani
0
139
Member Avatar for SmokeyCannon71

[QUOTE]I'm making a program like Notepad but better! But i don't know the code for the Open and Save buttons! Can someone please tell me the code? (I'm using VB6)[/QUOTE] Try using the Common Dialog Control. Add the Common Dialog Control Component to your form. Right Click on the Toolbar …

Member Avatar for SmokeyCannon71
0
149
Member Avatar for uhgarrett24

[I]I have an array of size 6 called apparray(6).[/I] That by default is an array of size 7. Visual Basic 6 uses a Zero Based Index for arrays unless specifically told that the index starts with 1. [I]I have stored several strings into this array from textboxes. Two of the …

Member Avatar for hkdani
0
94
Member Avatar for Mac Mac Gregor

[QUOTE]The system selects passages from the text passages and build the output MSWord RTF document.[/QUOTE] That's probably the source of your problem. You're converting from varying formats. If you just want to preserve the text, convert the RTF source texts to plain text before building your final RTF document. If …

Member Avatar for hkdani
0
130
Member Avatar for pratik sagar

You can use the File System Object with its Drives collection object to find the serial number of a hard drive. Finding serial numbers on RAM and Motherboards is more complicated and involves being able to access the BIOS and accessing different areas of memory not normally accessible through visual …

Member Avatar for hkdani
0
193
Member Avatar for mccarthy.den

This is a tough one: but this should work. You'll have to change it around, if you want to use the clrscr function. You need to break out of the nested do loop and you have to be able to exit out of the main do loop for what you …

Member Avatar for WaltP
0
135

The End.