User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
DaniWeb is a massive community of 426,097 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 1,766 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Showing results 1 to 32 of 32
Search took 0.01 seconds.
Posts Made By: MrConfused
Forum: Visual Basic 4 / 5 / 6 Aug 23rd, 2005
Replies: 4
Views: 1,476
Posted By MrConfused
Re: Font widths question

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,476
Posted By MrConfused
Font widths question

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: 33,636
Posted By MrConfused
Re: Windows XP & QBASIC

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: 4,605
Posted By MrConfused
Re: Problem formating VB string for clipboard

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,507
Posted By MrConfused
Formating text to send to spreadsheet.....

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: 4,605
Posted By MrConfused
Re: Problem formating VB string for clipboard

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: 4,605
Posted By MrConfused
Re: Problem formating VB string for clipboard

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: 4,605
Posted By MrConfused
Re: Problem formating VB string for clipboard

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 need...
Forum: Visual Basic 4 / 5 / 6 Aug 8th, 2005
Replies: 6
Views: 4,605
Posted By MrConfused
Problem formating VB string for clipboard

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,148
Posted By MrConfused
Re: Formatting clipboard text for spreadsheets

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,148
Posted By MrConfused
Re: Formatting clipboard text for spreadsheets

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,148
Posted By MrConfused
Formatting clipboard text for spreadsheets

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: 33,636
Posted By MrConfused
Re: Windows XP & QBASIC

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: 1,829
Posted By MrConfused
Random shared file access details.......

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: 11,878
Posted By MrConfused
Re: runtime error#58

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: 5,080
Posted By MrConfused
Re: Max number of controls per form......

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: 5,080
Posted By MrConfused
Re: Max number of controls per form......

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: 1,672
Posted By MrConfused
VB5 .EXE files/shortcuts & RAM....

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: 5,080
Posted By MrConfused
Max number of controls per form......

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: 14,718
Posted By MrConfused
Re: Coverting a string to a byte array

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: 14,718
Posted By MrConfused
Coverting a string to a byte array

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: 22,723
Posted By MrConfused
Re: Run-Time Error 424

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: 22,723
Posted By MrConfused
Re: Run-Time Error 424

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: 2,531
Posted By MrConfused
O/T. HTML printing problem..........

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: 1,690
Posted By MrConfused
Anti-piracy systems.......

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: 22,723
Posted By MrConfused
Re: Run-Time Error 424

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: 15,347
Posted By MrConfused
Re: ComboBox Events

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: 5,589
Posted By MrConfused
Re: Need real time in XP

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: 47,877
Posted By MrConfused
Re: Quick Basic On Windows XP

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: 5,568
Posted By MrConfused
Re: Setting the command buttons Forecolor

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: 5,568
Posted By MrConfused
Re: Setting the command buttons Forecolor

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: 5,568
Posted By MrConfused
Setting the command buttons Forecolor

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...
Showing results 1 to 32 of 32

 
All times are GMT -4. The time now is 3:39 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC