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