[RESOLVED] GetShortPathName not working, help!
Hi guys, I'm experiencing some trouble with 64-bit machines, where our app is installed in C:\program files(x86). The problem is that GetShortPathName API function is not working anymore, where there...
View ArticleFind the tab stop position
I'm sending output to a text file and to make this file more readable, I indent some lines by placing one or more vbTab characters at the beginning. In some of these lines, I'd like to add a specific...
View ArticleVB6 How to declare an array as global.
Hi guys! I want to declare a dim as global. But VB6 clearly warns me arrays cannot be declared as Public. Any trick to overcome this problem? Thanks a lot!
View ArticleShow Text in ComboBox When Set as Dropdown List?
Hi, Is there a way I can set a ComboBox as a Dropdown List but still have the text property available? For example, I have a ComboBox that I want to restrict so users can only choose what is in the...
View Articlemshflexgrid problem
i would like to format the passwords in the grid...i really dont know how beacause its in string format.. Private Sub LoadUsers(grd As MSHFlexGrid) If rs.State = 1 Then rs.Close sql = "SELECT * FROM...
View Article[RESOLVED] Dynamic array related question
Hi folks! I know how to work with fixed arrays, but I would like to make it more clear and ask a question regarding fixed arrays. For example, what's the difference when declaring: Code: Dim str(0 to...
View ArticleHelp with WHILE (# AND #) command
Hi, I have a code I've been trying to dechipher and I got stuck with one command... It's simple. WHILE (INP(&H3BD) AND 8) = UPVAL So I know WHILE, I also know INP for input and then &H3BD would...
View Articledropping text
How do i make the code drop the first 10 characters from each line of the source txt? Code: Open "source.txt" For Input As #1 Open "destination.txt" For Output As #2 Do While Not EOF(1) Line Input...
View ArticleData grid
I am using VB5 and have a data grid on my form. The grid has 3 columns- name, id, test. The number of rows in the grid changes according to the information in the form before it so it does not have a...
View ArticleError prompt
My program reads file from a floppy (old school i know) how do I have the program notify the user that the floppy needs to be inserted if its not instead of the program just crashing?
View ArticleSorting arrays alphabetically
Hi guys! This is a very diffifult task for me so if you have a suggestion, please try to give solution examples insted of explainations. I need something very fantastic. I have three arrays of String,...
View ArticleDoes anybody know what control this is?
Attachment 95653 seeking help if anyone know what data control is this in VB6? please help how to find the data components. thanks Attached Images
View ArticleHow do you connect to a remote PC?
Hey guys, How do you connect to a remote PC in MS ACCESS? I am trying to write a program where I can input a computers name that is on the network in a form, and have it pull that computer up. Not...
View Articlehow to detect and eject removable device
I have managed to google on how to detect and eject usb device but when I tried to plug in my removable usb hard drive, it is detected but not ejected. Is there a way to automatically detect and eject...
View ArticleHow do I clear a textbox by just clicking on it? Also, a database(?) related...
Hello! It's my first time to post on this forum, and I'm looking forward to post more as time passes. :) But for now, I would like to ask a couple of questions... First, how do I clear the contents of...
View ArticleImage List - Why can't I upload certain .ico files?
I have an image list control in VB6 which I am trying to upload some vista-style icons to it but it keeps saying "Invalid Picture" although the files are .ico !! I tried another old icon files I had,...
View ArticleWebcam stopped working after VB6 program
Hi all, This is my first post, so hello all. I ran a VB6 Program that switched on my Dell E6320 internal webcam, it seemed to work fine until I closed the program and tried to start the program again....
View Articlememofield in datagrid
I am trying to populate a VB6 datagrid with a access-memofield but the memofield isn't visible in the datagrid. Does anyone has a workaround to make my memofield visible in the datagrid. Thanks in...
View ArticleHelp surrounding a VB program to develop.
Ok, so here's my brief that I've been given for a VB6 project: "Construct a VB program that will allow the creation of a list of 12 monthly electricity readings (the number of units used). The user...
View Articlehow to load diffrent image from one to another form
i m making a project . Private Sub Form_Load() Picture1.Picture = LoadPicture("C:\Documents and Settings\MASTER\Desktop\s3.jpg") cbomodel.AddItem "100" cbomodel.AddItem 101 cbosolution.AddItem "Ringer"...
View Article