|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Visual Basic General Discussionmicrosoft.public.vb.general.discussion
caver_dave -
12 May 2007 10:59 PM - 46 messages
I have been asked to create a self deleting exe, it has been a curious task that has proved fruitless I have searched in various places but to no avail, if anyone can help me I would be very grateful ...
johncrawshawlives -
12 May 2007 8:10 PM - 2 messages
Can anyone out there write me a small program...I would be prepared to pay for it. I need a program that can generate random questions from a text file. I have done the text file, I would need someone to do the rest. ...
johncrawshawlives -
12 May 2007 7:55 PM - 3 messages
Can anyone out there write me a small program...I would be prepared to pay for it. I need a program that can generate random questions from a text file. I have done the text file, I would need someone to do the rest. ...
jim evans -
12 May 2007 2:07 PM - 22 messages
I have a fairly extensive program i sell that depends on mscomm32.ocx. mscomm32.ocx does not work in Vista. Is there a substitute or do I throw my program in the trash? jim ...
Bob -
12 May 2007 1:45 PM - 2 messages
I have a VB app that i run from a service (The app run at winsta0\\default). The app runs under the localsystem account. In my app i have: Private WithEvents winShell As SHDocVw.ShellWindows and then in one of the functions: ...
Larry__Weiss -
11 May 2007 7:22 PM - 6 messages
Is there a way to set a global option to tell IsNumeric() to not match to scientific notation? In other words, treat any alpha characters as non-numeric characters. I suspect the majority of code that uses IsNumeric() does not expect ...
Dave -
11 May 2007 6:48 PM - 2 messages
Getting deeper into Scanners & MsComm.... This code produces only a 2 in the debugger window not a 1 2 as it should!!! ...
jonny -
11 May 2007 6:26 PM - 21 messages
I am trying to trim (remove) off leading zero's from a number in a text box. The number may be anything from 0001 to 0999. Is this possible? Your help is greatly appreciated. ...
Dave -
11 May 2007 6:15 PM - 7 messages
Getting deeper into VB & Scanners... This code creates only a 2 in the debugger window, not a 1 2 as it should: Private Sub MSComm1_OnComm() Dim strScan As String ...
Richard Eagle -
11 May 2007 4:33 PM - 9 messages
Yesterday I finally got Vista Home Premium installed on this PC. It's now in a dual-boot setup with XP Pro. I have a VB6 program that I'm working on and the stand-alone .exe runs fine in XP. Apparently I have all needed files ...
bt28 -
11 May 2007 3:24 PM - 4 messages
I would like to be able to do the following in visual basic. First of all let me say that before I start writing the visual basic program, I will know the full path name and file name of a file. ...
Wyne -
11 May 2007 3:18 PM - 4 messages
Hello, I have a VB6 application which works very well with Windows 98, 2000 and XP. It cantains a function that exports data to a Excel.Application object. The codes are listed below: ------------------------------------------------------------------ Public Function ExportDataToExcel( ) as Integer On Error goto NotInstalled ...
Mike Williams -
11 May 2007 7:46 AM - 13 messages
Hey, this Windows Vista is good! It's just popped up a box telling me: "Windows update might require an update before you can install updates for Windows" Nice. ...
Larry Rebich -
11 May 2007 4:06 AM - 2 messages
I have a requirement to have a VB6 application send and receive files stored on a Microsoft.SharePoint. Do you have an example or reference? Suggestion? Thanks Cheers, Larry Rebich ...
angelito tan -
11 May 2007 2:09 AM - 7 messages
this is tough,, and i guess i'm in the right site, i wonder is there somebdy here can help me about randomize encryption, like for example i input my name angelito and i press the encrypt so the output would ...
Lorin -
10 May 2007 11:46 PM - 4 messages
Is there a rule of thumb to determine the largest size a buffer should be? e.g 10% of available RAM. Does VB6 have a limit (say 2G max). I am reading a large file and looking a individual bytes within the buffer. ...
mike7411@gmail.com -
10 May 2007 11:37 PM - 3 messages
I was just wondering if it is okay to re-use ADODB.Connection and Recordset objects in Visual Basic 6. For instance, is this okay? Dim adoConn As New ADODB.Connection adoConn.ConnectionString = siteA adoConn.Open adoConn.Close adoConn.ConnectionString = siteB ...
Tony -
10 May 2007 11:15 PM - 6 messages
I am using the code below to transfer a file to an FTP site. I did not write the code, I got it from MS. This is also not the entire code. It works fine, except that I get no warning if I am about to overwrite a file already ...
Darhl Thomason -
10 May 2007 11:09 PM - 6 messages
I'm venturing back into the unknown for me, I currently use DataCombo's in my app, but it was suggested that I use regular ComboBox's instead. Of course, this means that I will have to write the code to update my db with ...
MP -
10 May 2007 10:01 PM - 3 messages
Hi Olaf, (or others who might know.) I'm wondering where I should be storing dhsqllite.dll, sqlite3_engine.dll, and dhSortedDictionary.dll for best results (guess question applies to any dlls that need registered in general but these are the ones i'm trying to use now) ...
Jack -
10 May 2007 9:11 PM - 2 messages
Does MsAccess uses similar automation as MsExcel does? Where can I read more about it? Thanks, Jack ...
GrandpaRay -
10 May 2007 8:41 PM - 5 messages
Is there a way to specify the "view details" option when opening a Common Dialog Box to show the user file modified dates, sizes , etc.? DialogCaption = "Select Your Meds File - " frmOpenDlg.dlgOpenFile.DialogTitle = DialogCaption ...
Randy Gardner -
10 May 2007 8:13 PM - 4 messages
I have some external hardware I'm collecting data from using a USB DIO-32 from Acessio. Since VB 6 does not support unsigned numbers the driver uses a Long variable: 4 bytes, bits 0-31. I'm trying to mask to 16 bits, 0-15 using the following: ...
Lorin -
10 May 2007 7:02 PM - 8 messages
Need to convert a Decimal(Variant) to two longs. Dim vNbr as Variant Dim vNbr1 as Variant Dim vNbr2 as Variant vNbr = CDec(0) vNbr1 = CDec(123456) ' e.g. vNbr2 = CDec(987654) vNbr = vNbr1 * vNbr2 ' Now I need the Decimal Variant broken into two Longs. ...
Frank -
10 May 2007 4:56 PM - 2 messages
I am using a form on Microsoft Outlook for a task. Is there any way to have the Subject field on page 1 (Task) auto-populated by a field that is entered on page 2? Thanks, Frank ...
Harvey Triana -
10 May 2007 3:38 PM - 5 messages
Hello... Private WithEvents MyTimer As VB.Timer Private Sub cmdCreateTimer_Click() Set MyTimer = Me.Controls.Add("VB.Timer", "tmrMyTimer", Me) MyTimer.Interval = 500 MyTimer.Enabled = True End Sub Private Sub cmdRemoveTimer_Click() MyTimer.Enabled = False ...
nadimpalli.pavan -
10 May 2007 3:29 PM - 4 messages
Hello Everyone, I am new to VB Scripting. So, please forgive me, if this is basics. I would like to write a script, which will take a text file as input, read line by line, replace any non-ASCII characters with '' and send ...
Mike D -
10 May 2007 3:24 PM - 2 messages
I've heard that mscomm32.ocx can be tweaked to enable up to 255 serial ports. Was 16 an arbitrary number for Microsoft? I think the Windows API can handle up to 255. Are there any disadvantages or performance ...
Phoenix -
10 May 2007 3:08 PM - 2 messages
Hi Masters :-) Could anyone of you please translate the following into Visual Basic 2005 Code ? I am new to this and tried every trick but failed to translate. Any help would be highly appreciated. I can't use Graphics.DrawIcon as I don't have a ...
Ed Wyche -
10 May 2007 2:35 PM - 7 messages
I am trying to to this link in a csv file Print #3, Chr(34) & "=Hyperlink(" & Chr(34) & "\\" & txtServerName & "\Users$\" & strUsername & Chr(34) & Chr(44) & Chr(34) & "Folder" & Chr(34) ...
Submit2s -
10 May 2007 1:59 PM - 5 messages
Hello, I'm trying to resolving a problem and new to data analysis. What are &H& numbers. ie I am looking at source code and not sure what the &H number represent. Public Enum enumFileDialog cdlOFNReadOnly = &H1 ...
Abhishek -
10 May 2007 10:12 AM - 16 messages
Next Version of VB Dubbed 'VBx' Paul Vick dishes on Microsoft's reboot of Visual Basic. [link] lol @ MS ...
kimiraikkonen -
10 May 2007 9:41 AM - 19 messages
Hi, I'm asking this because after installing Visual Studio 6 with saying "yes to all" to "overwrite existing files", made my Windows 2000 cannot be started and crashed. Is there anyone who uses Visual Studio or Basic 6 on W2k machine with ...
dpazza -
10 May 2007 4:34 AM - 4 messages
Hi, I'm creating a quiz on using a form in VB 2005 express. I have four sets of questions and answers (labels and radio buttons) and I change between which set of questions is currently shown on the form by changing the visible state of the radio buttons and labels ...
Les -
10 May 2007 4:14 AM - 42 messages
I have the following code snippet of a Gosub routine which has several individual loops but I am only showing 2 of them for the example.: TEST: Do ...... ...... ...... if answer=true then return endif ....... ....... Loop until count=5 ...
MP -
9 May 2007 11:29 PM - 29 messages
Hi, two part question part1 I have a simple app to search files Enter string in text box, pick commandbutton, it searches certain files for matching text. Now I thought to add a feature, Save list of previous searches change from textbox to combo box, combo loads with previous saved (somehow) ...
Néstor -
9 May 2007 10:31 PM - 4 messages
i have this code: Dim WSock as Object Set WSock = CreasteObject("MSWinSock.WinSock.1") i can to use the methods of the winsock control throught this form. but i have this other code: Dim RText as Object Set RText = CreateObject("RichText.RichTextCtrl.1") ...
Darhl Thomason -
9 May 2007 7:15 PM - 8 messages
I am using a recordset in a sub to populate a set of DataCombo's. If I close the recordset at the end of the sub, then the DataCombo's do not show all of the items in the list, they only show the current item that it is ...
Patrick Matthews -
9 May 2007 6:01 PM - 8 messages
On a button click I want to execute a DOS batch file, what is the easiest way doing this? ...
Wels Tuesta -
9 May 2007 5:52 PM - 7 messages
Hi everybody, Please, i have app in vb6, using ocx's or dll for sending mail with pop3, where send mail to hotmail, the mail is in folder junk mail..? why? i try with more ocx and dlls. Please helpme, any idea? ...
Jennifer W -
9 May 2007 3:13 PM - 3 messages
Hi, Me again. I'm running VB6, WinXP in French or German mode as set in Regional Settings. The comma is used where we would use a period in a number. I'm saving strings with the following code however, the periods are being ...
Jeff -
9 May 2007 2:30 PM - 3 messages
Watch a video tutorial from Mr.Bool! Looking for a easy way to learn! Look what Mr.Bool site offers for you! Here you can find articles, tips and tons of video tutorials. Totally Free! Watch a video tutorial now. ...
Darhl Thomason -
9 May 2007 2:02 PM - 6 messages
I am working on doing some code consolidation. Larry S helped me a little a few months ago, but I haven't been able to work on it 'til now (where does the time go?) I currently have this: ...
Rachana -
9 May 2007 1:31 PM - 2 messages
Hi, I am working in VB6. Need Enhanced Text box control which takes care of most of the validations. Req. it specially for dates, format & validation. Can anybody suggest me free download sites Thanks, Regards, Rachana ...
Bonzol -
9 May 2007 10:13 AM - 17 messages
Hello! Im using VB and I want to know if anyone can think of a good way using a for loop or sometihng in which I can create an array and fill it with this criteria programatically. I need to create Arrays which only contain 0 or 1 in each spot, and ...
Ridzuan -
9 May 2007 8:37 AM - 24 messages
What is the right syntax for if i want to write as below If TxtSheetNo > "A" OR "B" OR "C" OR........OR "Z" Then MsgBox ("Invalid Input") TxtSheetNo = Left(TxtSheetNo, 0) Else Call GetCoordinate End If ...
ReneMarxis -
9 May 2007 8:16 AM - 10 messages
Hello i have some problem with vb. I have some com-component that returns a variant. This variant can be a long or a string. My problem is i don't seem to find a way how to check if the variant ...
sarah -
9 May 2007 7:33 AM - 5 messages
Hello there I use Private Sub Command1_Click() MMCvawe.command="Open" MMCwave.FileName="c:\1.wav" MMcwave.command="play" End Sub in my program but when I run the program but when first time I press the key nothing happened but the second time it plays the sound. ...
Ridzuan -
9 May 2007 6:50 AM - 14 messages
If I had more than 1 user how to make the button in form only can be access by administrator or supervisor Button 1 : User, supervisor, administrtor Button 2 : Supervisor, administrtor ...
Ridzuan -
9 May 2007 6:39 AM - 2 messages
If i put picture in Picturebox, can i zoom-in/out at constant value? if can How? ...
Dale -
9 May 2007 5:03 AM - 3 messages
I have a need to load a web page and then read its text. Google led me to the code below (which I've modified a bit) and it seems to do exactly what I wanted. I've incorporated it into my program, and it seems to work ...
Webbiz -
9 May 2007 4:49 AM - 5 messages
Hello. I'm wondering if someone can help me with this little problem. I need to create a routine that will convert any value into one that is x numbers left of the decimal. For example, suppose the number is 1234.56 ...
Ganesh -
9 May 2007 4:08 AM - 2 messages
After migration when i compile the solution I get the following error. The item "obj\Debug\Pulse.Windows.UI.Common.resources" was specified more than once in the "Resources" parameter. Duplicate items are not supported by the "Resources" parameter. ...
Brian -
9 May 2007 3:45 AM - 18 messages
I've got a problem... I've got a collection of strings... the strings items can have two additional "properties" for lack of a better word. I would like to be able to sort the collection based on the property or grab ...
Rachana -
9 May 2007 3:31 AM - 2 messages
HI! I working in VB6-Crystal 8.5 Need help for following: In cross tab, 1st row-group is month. Whenever month changes it should start from new page. I haven't found any direct option. Thanks, Regards, Rachana ...
Ridzuan -
9 May 2007 3:08 AM - 5 messages
The situation is I make some application that can shows coordinate by entering sheetname in textbox. when user enter sheetname, the application interactively shows the coordinate. but the problem is when user typing 1st character, the cursor go back before the 1st character. the code as below ...
hurricane_number_one -
8 May 2007 9:56 PM - 4 messages
I have an app that needs to be run as administrator. After compiling my app in VB6, I check off the checkbox that says run as administrator in the properties window through windows. Then I build my setup in ...
Brian Shafer -
8 May 2007 9:31 PM - 3 messages
Hi, I thought I had done this in the past, but I fill a combobox with the data I want. I want the users to be able to select a different value from the list, but I don't want them to be able to modify any of the text in the list. ...
Gingre -
8 May 2007 7:28 PM - 5 messages
I've got two forms each with a listbox, which I want to behave identically (and they used to). I've meddled with the properties I think, because one of them (but not the other) highlights the current entry in grey. Each new ...
news-server.socal.rr.com -
8 May 2007 5:55 PM - 2 messages
I'm trying to set a files attributes to NOT (Read Only) like so: SetAttr sFile, GetAttr(sFile) And (Not vbReadOnly) When the line above is called, I get a "Run-time error '5': Invalid procedure call or argument" GetAttr(sFile) = 8224 ...
Ridzuan -
8 May 2007 4:02 PM - 3 messages
1. How to make keyboard cursor always right when typing in textbox? - The situation is I make some application that can shows coordinate by entering sheetname in textbox. when user enter sheetname, the application interactively shows the coordinate. but the problem is when user typing 1st ...
tlee -
8 May 2007 2:39 PM - 4 messages
Hello, Anyone can give me idea how to implement application communication via RS232 port i.e. reading data and sending data to the external device? I searched from Internet that using "mscomm". Have any detail inform for start coding step-by-step? ...
jliebman -
8 May 2007 2:04 PM - 12 messages
I have an old VB5 application running on a Win98 machine that needs to be ported to an XP machine running VB6. The original application is used to calibrate an industrial hardware product, and has 4 devices connected to the PC via RS232 serial ports. ...
Farhan -
8 May 2007 11:40 AM - 2 messages
When trying to send a document from my application through Outlook, the system first comes up with: A program is trying to access e-mail addresses you have stored in Outlook. Do you want to allow this? If this is unexpected, it may be a virus and you should choose "No". ...
Farhan -
8 May 2007 11:31 AM - 3 messages
When trying to send a document from my application through Outlook, the system first comes up with: A program is trying to access e-mail addresses you have stored in Outlook. Do you want to allow this? If this is unexpected, it may be a virus and you should choose "No". ...
kimiraikkonen -
8 May 2007 9:23 AM - 8 messages
I have Win2k+SP4 with no special hotfixes applied. Today i tried to install Visual Studio 6 from CD and i HAD to thick "update MS java VM" to contiune installation. After that i'm prompted to update existing files, and i said "yes" to all. ...
Ron -
8 May 2007 7:57 AM - 11 messages
Hi I am using Play,Pause and Stop to activate the code below, and Play and Stop work fine but I have not been able to insert the Pause, all my efforts have failed can anyone help me please? Private Function myPlaySound() ...
Jiao -
8 May 2007 3:10 AM - 9 messages
My PC has both VB6 and Vb2005 installed. When opening up VB6, windows installer always try to "prepare to install" and hang my PC. Does anyone know the solution for this? Thanks. ...
sk -
8 May 2007 12:35 AM - 4 messages
hello everybody is the GetSystemInfo the best solution for the following? I will install my software to the clients computer and I would like to prevent them to install this software on another computer with the similar configuration, but not the same? ...
Webbiz -
7 May 2007 8:57 PM - 5 messages
Hello. I've got a ListView control that I'm trying to use to display a list of strings. Only one column vertically is needed. Need it wide enough to display at least 50 characters per row. I'm using this control so that I can determine when someone clicks on one of ...
qaf -
7 May 2007 7:08 PM - 2 messages
I am looking for a good example of how to implement drag and drop in one of my programs. I can't seem to find examples using a Yahoo search. I have created a form with a picture box control. I want to be able to ...
Mark Cooney -
7 May 2007 6:57 PM - 2 messages
Ok easy one for someone i'm sure. I have an SqlDataSource called dsMain and I have a Interger called CatID I am trying to get the "fkCatID" value from my dsMain but I keep getting hit with New exception. The information is NOT being stored in a datagrid, but ...
Peter T -
7 May 2007 2:54 PM - 47 messages
The GradientFill API linearly splits differences of the RGB attributes between respective points. That's fine for some purposes except the eye does not perceive RGB colour differences linearly. There are various ways to accommodate, with single formula approximation to devising a subjective ...
PeterD -
7 May 2007 2:26 PM - 6 messages
I'm looking for a filename compare with wildcard capabilities. A function that called with two parameters a file name, and a wildcard string will return true if the wildcard would match that name, and false if it doesn't match. ...
Kristen -
7 May 2007 1:21 PM - 5 messages
I need some help here. I have a form, it used to be a MDI Child and it also had its own MDI Child form. I need to make the form modal - but it still needs to have another form embedded on it as a MDI Child. I thought it was working fine but ...
Ruslan -
7 May 2007 12:19 PM - 3 messages
Dear All, I use VB 6.0. I put CommonDialog1 on my Form. But when I try to run the programm it selects "CommongDialod1" in my code and shows error message ... "Variable not defied". What did I do wrong? Maybe I forgot to choose some reference in ...
Goerge Tikakis -
7 May 2007 11:44 AM - 8 messages
Hello I'm trying to develop a PDA restaurant application I will use the PDA to take orders from tables in restaurant and send them via bluetooth or wireless to a server appliation Is there any samples that i can use just to start? ...
Montezuma -
7 May 2007 8:44 AM - 3 messages
I have an image in a picturebox, in a VB6 project. When i click on the picturebox control, I am able to retrieve the mouse coordinates relative to the top left corner of the control with the MouseDown event. But i am having problems to get the coordinates relative to the image ...
Kevin Provance -
7 May 2007 3:19 AM - 17 messages
This might be slightly off topic, but I wanted to check in with some of you who may be familiar with the legalities of software law, specifically unfair competition. I googled some of this and I think I have my facts ...
konglingwei -
7 May 2007 2:52 AM - 4 messages
hi, guys for some reasons , i was told to fulfill some function in legacy VB6, how to manage WMI ( Windows Management Instrumentation ) in VB6 ? where i can find some sample code ? Does anybody know ? Could you plz give me some clues about it ? ...
César -
6 May 2007 5:59 PM - 87 messages
Could anyone tell me what am i doing bad? When i use the "MciSendString" always returns a big number instead 0 : What it says that there is an error, and so don't play the sound. Then direction of the sound .wav it's ok ...
albertleng -
6 May 2007 2:41 PM - 8 messages
Hi all. Is there a way which i can use VB6 to refresh a website, for eg. [link] I need to do this because my program needs to download a file from a webpage continuously in which the file will be updated constantly. We ...
C -
6 May 2007 12:34 PM - 3 messages
Has anyone found a reliable word document control that supports W2K/XP/2003 features? The VB OLE container only seems to support W97 features. I need to display and manipulate Word documents (or lookalikes) in a VB6 COM addin for Office/Word, as samples of what a document would look like if a ...
Ivar -
6 May 2007 7:44 AM - 11 messages
Hi all. I would like to be able to create my own version of a forms menu bar. After having a play I think I have everything sorted execpt the first step:-) So: A form has an existing menu bar (File Edit View etc). I can use the ...
Art -
6 May 2007 12:28 AM - 3 messages
Several years ago I have written an application in VB6.0 in Win98SE. The application had four .bas and 10 .frm files. Quite recently the user called me because he finally installed XP and said that the program doesn't run. ...
|
|||||||||||||||||||||||