Forum: Visual Basic 4 / 5 / 6 Aug 23rd, 2005 |
| Replies: 4 Views: 1,885 Yes, TextWidth is the one! Thanks. I should have searched VB help a bit more before posting the question. Oh well....... |
Forum: Visual Basic 4 / 5 / 6 Aug 23rd, 2005 |
| Replies: 4 Views: 1,885 Thus far I have always chosen the font Courier New because all letters are the same width. Is there any way of determining how "long" a string will be when using other fonts? I would like a way of... |
Forum: Legacy and Other Languages Aug 14th, 2005 |
| Replies: 15 Views: 37,236 QBasic is o.k for learning most of the modern VB code, but the help side is rubbish. Quickbasic 4.5 is better by far because of the fantastic syntax and other help. In fact in my opinion it was far... |
Forum: Visual Basic 4 / 5 / 6 Aug 10th, 2005 |
| Replies: 6 Views: 6,115 I don't have Excel. However the jumping columns problem is solved by putting chr$(34) before each line of text (that is when sending the text to MSWorks spreadsheet). Whether that is true for Excel I... |
Forum: Visual Basic 4 / 5 / 6 Aug 9th, 2005 |
| Replies: 2 Views: 1,867 I have a program that produces various reports. I need a way to send the reports to MSWorks/MSExcel. At the moment the reports are sent to a locked scrollable text box on-screen. This allows you to... |
Forum: Visual Basic 4 / 5 / 6 Aug 8th, 2005 |
| Replies: 6 Views: 6,115 I'm starting to get annoyed :mad: . I've finally got one of my reports to go to the clipboard. All seemed o.k until I read down the report (now in MSWorks spreadsheet) and parts of some of the lines... |
Forum: Visual Basic 4 / 5 / 6 Aug 8th, 2005 |
| Replies: 6 Views: 6,115 Another problem. It seems that if the new line in the string you put in the clipboard and then paste into works spreadsheet is numerical (i.e it is a string, but just cosists of numbers (with no... |
Forum: Visual Basic 4 / 5 / 6 Aug 8th, 2005 |
| Replies: 6 Views: 6,115 I have found the answer. Seems you need the " character first:-
CString$ = CString$ + Chr$(13)
CString$ = CString$ + """" + Space$(25)
CString$ = CString$ + String$(12, "=")
...quite why you... |
Forum: Visual Basic 4 / 5 / 6 Aug 8th, 2005 |
| Replies: 6 Views: 6,115 I am trying to put together a string that can be sent to the clipboard and then pasted into a spreadsheet (in this case a works spreadsheet). The problem I have is the space characted seems to be... |
Forum: Visual Basic 4 / 5 / 6 Aug 7th, 2005 |
| Replies: 3 Views: 2,654 Yes, It appears that each time you send text to the clipboard (clipboard.settext Astring$) the previous text is deleted, so adding to it line by line would only leave the last line there! Seems that... |
Forum: Visual Basic 4 / 5 / 6 Aug 5th, 2005 |
| Replies: 3 Views: 2,654 Hello, I have found out the answer to my first question. You put chr$(9) in the string, then the next bit of the string appears in the next column. CHR$(9) is the tab character. Anyone able to answer... |
Forum: Visual Basic 4 / 5 / 6 Aug 5th, 2005 |
| Replies: 3 Views: 2,654 I have a VB program that produces reports by sending text to various list boxes.
I want to add the option to have the reports sent to the clipboard. I imagion most users would then want to paste the... |
Forum: Legacy and Other Languages Jul 10th, 2005 |
| Replies: 15 Views: 37,236 Quickbasic 4.5 for MSDOS was rather good - made me a lot of £. Hmm. I don't have any progs that won't run on my Windows XP home edition, though qbasic is even older. Qbasic was before Mr gates (who... |
Forum: Visual Basic 4 / 5 / 6 Jul 3rd, 2005 |
| Replies: 0 Views: 2,350 I always open a file just before it it written to, then close it as soon as practical. I have always wondered what would happen in this scenario:-
Your program is on a server and two people use a... |
Forum: Visual Basic 4 / 5 / 6 Jun 29th, 2005 |
| Replies: 15 Views: 14,682 Runtime error 58 occurs when you try to rename a file with a name that already exists (in the same folder), or you try to save a new file with the same name as one that already exists (in the same... |
Forum: Visual Basic 4 / 5 / 6 May 17th, 2005 |
| Replies: 5 Views: 7,148 I just tried your idea. I created 253 Label controls. Then I created a frame taking the total to 254. I tried to add a label in the frame. No go. Worth checking out though. I don't know what a tabbed... |
Forum: Visual Basic 4 / 5 / 6 May 17th, 2005 |
| Replies: 5 Views: 7,148 Thanks. I'm surprised it was not increased. It seems a lot when you start, but I want the user to be able to do as many things as possible whilst in the one form. There are many ways to tackle the... |
Forum: Visual Basic 4 / 5 / 6 May 17th, 2005 |
| Replies: 1 Views: 2,378 1. With VB5 you can either create an EXE file while you are running VB, or use the separate setupwiz utility to create a .EXE file. The setupwiz way results in a smaller EXE file. Is this the only... |
Forum: Visual Basic 4 / 5 / 6 May 13th, 2005 |
| Replies: 5 Views: 7,148 I use VB5 and I have a form which has very close to VB 5's limit of 255 controls per form which is starting to concern me. Can someone tell me if the limit for VB6 was increased and let's not forget... |
Forum: Visual Basic 4 / 5 / 6 Apr 24th, 2005 |
| Replies: 3 Views: 20,844 I have figured out the syntax was wrong. The following seems o.k.
Public Function StringToDataQuery(QueryStr As String, QueryLength As Integer) As DATAQUERY
'This converts the query string to a... |
Forum: Visual Basic 4 / 5 / 6 Apr 23rd, 2005 |
| Replies: 3 Views: 20,844 I have been given the following code to convert a string to a "byte array" (which is then passed to other software) but it does not appear to work. I have practically never needed to use a function... |
Forum: Visual Basic 4 / 5 / 6 Apr 17th, 2005 |
| Replies: 7 Views: 37,671 Referencing the sheet name (i.e form) re-loads the form putting the command button in memory. The command button's form was not in memory therefore the button was not there as far as vb could find.... |
Forum: Visual Basic 4 / 5 / 6 Apr 14th, 2005 |
| Replies: 7 Views: 37,671 Hello again,
No offence but I don't download anything to my computer unless I have to. However run time error 424 on my version of VB says "form not found". Please check the form that has the... |
Forum: HTML and CSS Apr 13th, 2005 |
| Replies: 2 Views: 3,202 I have uploaded an HTML document to my WEB site. It looks fine on screen. However if I print it out (via explorer) the font size increases vastly and it looks a mess. I suspect this is a well known... |
Forum: Visual Basic 4 / 5 / 6 Apr 13th, 2005 |
| Replies: 3 Views: 2,159 I have a program I need to protect from piracy. Has anyone got any suggestions as to the best way to go about this. Presumably some sort of "dongle" system is the way to go?
Thanks. |
Forum: Visual Basic 4 / 5 / 6 Apr 9th, 2005 |
| Replies: 7 Views: 37,671 I agree with Comatose. VB can't find a command button named "cmdDeptStoresMC". Either the command button name is mis-spelt, or the form which contains it is not loaded in memory. |
Forum: VB.NET Mar 30th, 2005 |
| Replies: 10 Views: 19,169 I think you need to explain the problem in more detail; I don't understand the question. |
Forum: Visual Basic 4 / 5 / 6 Mar 27th, 2005 |
| Replies: 11 Views: 7,142 The only thing I can help you with there is with the printing.
Currently you can still buy some printers that are MSDOS compatible. But be carefull. You need a printer that has a parallel printer... |
Forum: Legacy and Other Languages Mar 27th, 2005 |
| Replies: 27 Views: 63,179 Quickbasic 4.5 will run under Windows XP home edition as it is on my machine and does run o.k. I don't use it anymore though. The problem with the old DOS programs is the memory restriction (just the... |
Forum: Visual Basic 4 / 5 / 6 Mar 27th, 2005 |
| Replies: 6 Views: 8,497 Thanks. Is this a limitation put on VB5 learning edition only, or does the same apply for the other versions? Also do you know if VB6 is still available?
Thanks. |
Forum: Visual Basic 4 / 5 / 6 Mar 27th, 2005 |
| Replies: 6 Views: 8,497 Yes. The color of the caption on the command button, believe it or not! |
Forum: Visual Basic 4 / 5 / 6 Mar 26th, 2005 |
| Replies: 6 Views: 8,497 I have VB 5 learning edition which has suited me fine thus far believe it or not!
One thing has really been annoying me for quite some time. I can't find how to set the command buttons forecolor (at... |