- Strength to Increase Rep
- +7
- Strength to Decrease Rep
- -1
- Upvotes Received
- 22
- Posts with Upvotes
- 22
- Upvoting Members
- 20
- Downvotes Received
- 16
- Posts with Downvotes
- 11
- Downvoting Members
- 8
248 Posted Topics
Re: 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 … | |
Re: [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 … | |
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? | |
Re: [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 … | |
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 … | |
Re: [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 … | |
Re: 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 | |
Re: 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. … | |
Re: [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 … | |
Re: [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 … | |
Re: [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 … | |
Re: [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 … | |
Re: > 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 … | |
Re: > 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 … | |
Re: 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 … | |
Re: 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. … | |
Re: [code=vb6]Dim lngReturn As Long lngReturn = Shell("c:\MyProgams\cfile.exe", vbNormalFocus)[/code] | |
Re: 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 … | |
Re: 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] | |
Re: [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 … | |
Re: 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 … | |
Re: 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 … | |
Re: [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 … | |
Re: [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. … | |
Re: [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 … | |
Re: 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. … | |
Re: [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 … | |
Re: 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 … | |
Re: 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. | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: [code] Public Sub CalculateEquation (ByVal X as Integer, ByVal Y as Integer) Form2.label1.Caption = X * Y End Sub[/code] | |
Re: 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. | |
Re: [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. | |
Re: Step through the code and then tell us at what line the exception is raised. | |
Re: 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 … | |
Re: 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 ); … | |
Re: 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 … | |
Re: [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 … | |
Re: 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. … | |
Re: 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 … | |
Re: 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 … | |
Re: I still have no idea what you're saying. And I can read between the lines. | |
Re: [CODE=vb6] Dim tmData as Date tmData = format (DatePicker1.Value, "Short Time") [/CODE] | |
Re: [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 … | |
Re: [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 … | |
Re: [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 … | |
Re: 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 … | |
Re: 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 … |
The End.