Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    Visual Basic




Make Input Box ***ed


How do you set it so that the values being entered into an input box are able to have a certain character replacing them such as "*********"?




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Can You Make A Input Box Display...
I am trying to make a program that stores the username and password of someone. I want an 2 input boxes to come up.1 for username and 1 for password. I got all that running but i wanted to know is it possible to star out the text in the input box but still have the password save corectly

How To Make A File Using A Input Box?
Hi, all
I need hlep makeing a file using a input box?
Exp you Enter Your name as bob the file will be bob.pos

Make A Form (or Input Box)
I was wondering how to make something stay on top so that you can't click on the main form and ignore the popup. It is for a change password box and I don't want the user to be able to just get out and ignore it.
Thanks!

Make Your Own Input Device?
hello, i am interested in learning how to read the serial port in visual basic. I am already fluent in VB6/7. My objective is to create my own input device, read through the serial port, it will be a switch of some sort, have VB read the change of data flow through the serial port due to the switch being toggled, and have VB press a key on my keyboard (i think i know how to do that part), so i can use it for my flight simulator program.

I already have a device that plugs into my serial port and seperates the pins into individual wires, I just need to know what pin to send, how to do it (mscomm?), and how to have VB read when another pin has conductivity.

Thanks,
moeburn

How Do You; Make Input Boxes With Numbers Only
Hello again,

Not to be a bother again but can I please have some help. I'm making this Maths game for school and I want to allow the user to choose how many questions they want to do. I was trying to make it so when the form loads an input box appears and asks you how many questions you want to do. That was the easy part. But I'm trying to making it so you can only use numbers in it and best case scenario making a maximum amount of questions that you can choose. But that isn't really that important as I just want to make sure I can get rid of how it crashes when you use a letter.

Any help is appreciated.

How Make Variable From Combo Box Input?
I have a combo box with two selections:

Combo1.AddItem ("Physical")
Combo1.AddItem ("Logical")

I want to take the selection made and write it to a file. I know I can write to the file with

Open "c: est.txt" For Output As 1
Print #1, Var1
Close 1

My question is, How can I take the input choice of either Physiical or Logical and read either the word "physical" or "logical" into the variable Var1, so that I can write Var1 into the text file.

You can probably tell from my question I am a beginner with VB.

Thanks for the help..

...Mark

Make Textbox Only Input Number
I have this example:


Code:
Private Sub Text1_KeyPress(KeyAscii As Integer)
If Not IsNumeric(Chr(KeyAscii)) And KeyAscii <> 8 And KeyAscii <> Asc("-") Then KeyAscii = 0
End Sub



I know this KeyAscii represents the recently inputted character. But i don't get where it comes from.

Hmm... i'm not making any sense. Where does this keyascii come from and how does it work? All i'm asking about is the keyascii variable which i don't understand where it comes from and what it is.

UserForm Textbox, Make Input Be UPPERCASE Only?
If there's a will, there's a way, right?

Can a UserForm text box be made to only accept entries that are made with the Upper Case only?

if input is in lower case, then I'd need an error message box stating that the capslock is turned off, please turn on and make entry.

Thanks for everyone's attention to this question =)

Make A Text Box Grow To Accomodate Input
Hi team

I want a text box to grow dynamically in height as the user enters text. I have this working by counting the number of characters and dividing this by the typical number of characters that fit onto a line. However, some characters take up less space that others. 50 "i"s will cause it to create an new line when it does not need one, but 50 "W"s does not create a new line when one is needed. I want the user to be able to continue typing and have the text box elegantly grow to accomodate all the entered text.

One idea is to intercept the events that tell a scroll bar (if one existed, I don't want one) how much text there is and how long the scroll bar needs to be. I could then use these values to set the height. Does anyone know how to do this?

Has anyone got any other ideas?

Thanks FW

Make Textbox Display Dependent On Listbox Input
Hi All,

I have 2 fields, Language and Character in my table. Now i am designing a form for it. I am using a list box for all the language n a textbox for the character.

Wat i wan to achieve is as follows :

Whenever the user clicks on any of the language in the list box, its corresponding character will be displayed in the textbox. How can i achieve it? thks

FT

I Need I.e. Javascript Code To Make A Button And Input Box And Then Send The...
I need a example in javascript to display a button and input box on a webpage and then have the internet explorer navigate to a set webpage plus the contents of the input box. for example the user types in the word hello in the input box and then clicks the button. then the internet explorer goes to url http://www.flamewavetech.com/hello

how would i do this?

all help is appreciated.

Is It Possible To Make The Combo Box To Accept Input And Convert To The Requirement ! Help
Hai,

  I have attatch the picture of combo box. I am listing all PO Numbers in that combo (i.e) the Purchase OrderNumber. In Database this filed is a String. Almost all the PO Number are are like this. 00000221001.

The five zeroes is coming in all PO NUmbers, so when the user type in the combo box he need to type all the Five zeroes and then only the number is number is coming. Is it possible to give the matched recod by just typing only the numbers for example as below

If he type the bleow number and complete

221001


then the matching record for this should be in the combo box as below

00000221001

is it possible to do like that.

the user in Purchase department are enter like 00000221001 this only. so how could I solve this. Is it possible to do it. One guy suggested that it could be done in oracle by using the Lpad funtion. But my database is MsSql and I am devoloping in VB.6.
Kindly view the picture I have attach with it and suggest me.

Thank you very much,
Chock.
itchocks@rediffmail.com


<HTML>
<B><font color="#008000">HAVE A NICE DAY !</font></B>
<HTML>

Edited by - chs on 7/17/2003 7:04:21 AM

TextBox Wanting To Make Input Text In Currency Format
Ok I am wanting to make the text typed into the textbox to be in currency format.

What I am wanting specifcally is when the user inputs text like; 30,000 or 30000 to automatically change it to $30,000.00

So if they were to type 1 it would be $1.00 or 100 $100.00 ect ect ect

Can this be done?

Strange Input Behaviour File Input Output, Not Reading All Characters
Hi folks,

I have this file which consists of a few lines:

example:
Hello, how are you?

but when I use:

Input #1, line

the line variable only holds to the komma. So only "Hello".
I want it to read the whole line, how can I do this?

Solved: Line iput did the trick

Input Function (start Reading Input From Inside A Line)
How can I start reading input from the middle of a line?

strText2 = Input(LOF(2), 2)

This puts the entire contents of the file into the string strText2. Is there a way to put upper and lower bounds on the input function so itI can start reading input say at the 10th character to the end of the file?

something maybe like

strText2 = Input(10 to LOF(2), 2) ?

Ive searched around for quite awhile for the answer, and it seems odd that VB would not be able to do this (even though if it cant, im sure theres a good reason for it)

Thanks for any help

How To Input .CSV Database File Into VB, By Only Input The Selected Area
hi, i am a very beginner of VB, and having so much trouble, i have few question plz give me a help, or give me some example...
the case i am doing is to into the database file .csv into VB
1) how do i input my .csv file As file__name
2) if i need to compare the number from my csv file, such as, matching my input to the database file .csv in some Specaific area, do i need to input whole .csv file into vb? or just make a array or something?
3) in my .csv file, there are Date, Number 1, number 2, number 3
if i need to match the Number was inputed by Date, how can i do that
below is a example, plz give me a help to write the coding, thx.
best regards

my Input:

from date: 1/3/2001
to date: 5/5/2001
number input: 1, 5, 51

Data, from csv file

1/1/2001 5, 7, 11
5/1/2001 1, 3, 27
*15/4/2001 3, 25, 44
*25/4/2001 5, 31, 41
*5/5/2001 7, 21, 27
27/5/2001 8, 14, 19

ps. the *sign mean the number i need to compare in this case, which is given from my input, the data is tread by Date

in this case what will be the most easy way to complete the code. plz help me
thank you

How To Input .CSV Database File Into VB, By Only Input The Selected Area
hi, i am a very beginner of VB, and having so much trouble, i have few question plz give me a help, or give me some example...
the case i am doing is to into the database file .csv into VB
1) how do i input my .csv file As file__name
2) if i need to compare the number from my csv file, such as, matching my input to the database file .csv in some Specaific area, do i need to input whole .csv file into vb? or just make a array or something?
3) in my .csv file, there are Date, Number 1, number 2, number 3
if i need to match the Number was inputed by Date, how can i do that
below is a example, plz give me a help to write the coding, thx.
best regards

my Input:

from date: 1/3/2001
to date: 5/5/2001
number input: 1, 5, 51

Data, from csv file

1/1/2001 5, 7, 11
5/1/2001 1, 3, 27
*15/4/2001 3, 25, 44
*25/4/2001 5, 31, 41
*5/5/2001 7, 21, 27
27/5/2001 8, 14, 19

ps. the *sign mean the number i need to compare in this case, which is given from my input, the data is tread by Date

in this case what will be the most easy way to complete the code. plz help me
thank you

How To Format Textboxes (i.e For Numeric Input , Date Input)
hi,

i am new vb development & want to know how do i format textboxex i.e for numeric input , date input, right align , etc

please help

thanks

bye

pratik

HOW TO FILTER THE INPUT STRING In The Input Text Field
Hi,

I am trying to filter the string

STILL UNRESOLVED: NEED HELP - Simple Input Box With Multiple Input Lines
I am trying to use VBA to make an input box with multiple input lines. The inputs will all be integers, and they all need to be stored to their own specific variables OR AN ARRAY. So far I have only been able to figure out how to make an input box with one line, using the InputBox command. Can someone give me an idea, or an example of code, to do this? Thanks for any help. This is for work, so I will be very happy to get my code working right.



Edited by - Grant on 7/15/2003 12:12:45 PM

Input Title And Input Message To A Cell
Is it possible to set inputtitle and inputmessage to a cell like its done when adding a verification?

Code:
with Selection.Validation
.Add Type:=xlValidateTextLength, AlertStyle:=xlValidAlertStop, _
Operator:=xlBetween, Formula1:="0", Formula2:="100"
.InputTitle = "Title"
.InputMessage = "Message"
end with
The standard comment is so lame.
The reason I cant use verification is that somehow the format of the cell gets lost then.

Input Of Numbers And Denies Alphabets Input
How to make a textbox; where its code enable user to type in numbers only and if whenever an alphabet is input, it will prompt the user a msgbox 'Please enter a value"?

I tried using keyAscii but it do not seem to be working...


Code:
Private Sub Eage_keyPress(KeyAscii As Integer)
If KeyAscii <> 8 And (KeyAscii < Asc("65") Or KeyAscii > Asc("90")) Then
KeyAscii = 0
Else: MsgBox "Please enter in a value"

End If
End Sub

Let User Input IP And Limit It To Numeric Input?
I wanna let the user input an IP address..
I had search on the forum and found sth like this..


Quote:




Originally Posted by dglienna
Just use a textbox with a regular text field. You can't have a number with more than one period (dot) in it. You can even use a mask to put in the dots.






What is a mask and how can put it in my program?
and, is it possible to set this textbox for numeric input only ??
and set the max value = 255 (since it's IP address..)

Hope someone could help ~
thx..

Faster? Line Input Or Input?
Well, I have a simple question that I tried to solve for myself by simple means... the only problem is, I'm not getting the answer I want...

Is it faster to do Line Input on a .txt file or just Input?

I wanted to test this to see which was the best choice (not for any real reason, just for kicks). Mainly, I wanted to see which handled bigger .txt files better and which was better at smaller ones.

To test this, I set up a simple test:

Have two (2) timers that will bounce back and forth (interval = 10) until the Input or Line Input is done. This way, I can calculate the time taken to input the text from the .txt file. Well... the only problem I came across was... even with an interval of 10, the time came out to 0!

Now, I know what you're thinking: "Maybe you did it wrong?"... I just used a simple intCounter to calculate the time, adding 1 each time the timers were activated. I even checked to make sure the timers were firing right by using a simple "IF...THEN" statement to check if intCounter > 0 when they were allowed to continue even after the text was placed. They fired correctly and the number rose...

So, my problem is:
1. Which one is faster? Has it been proven?
-OR-
2. Is my code messed up?


Code:
Option Explicit
Private intFreefile As Integer
Private strText As String
Private intCount As Integer

Private Sub cmdTest_Click()
'Clear the text
Text1.Text = ""
strText = ""

'Start the counter!
Counter1.Enabled = True

'Input the file by line
Open "C:Documents and SettingsUserDesktop est1.txt" For Input As #intFreefile
Do Until EOF(intFreefile)
Line Input #intFreefile, strText
Text1.Text = Text1.Text & strText
Loop
Close #intFreefile

'Stop the counters after lines have been input till EOF
Counter1.Enabled = False
Counter2.Enabled = False

'Display counter
lblCounted.Caption = intCount
End Sub


Private Sub cmdNormal_Click()
'Clear the text
Text1.Text = ""
strText = ""

'Start the counter!
Counter1.Enabled = True

'Input the file as a whole
Open "C:Documents and SettingsUserDesktop est1.txt" For Input As #intFreefile
Input #intFreefile, strText
Text1.Text = strText
Close #intFreefile

'Stop the counters after the whole document has been input
Counter1.Enabled = False
Counter2.Enabled = False

'Display counter
lblCounted.Caption = intCount
End Sub

Private Sub Counter1_Timer()
'Up the counter by 1
intCount = intCount + 1

'Start 2
Counter2.Enabled = True
Counter1.Enabled = False
End Sub

Private Sub Counter2_Timer()
'Up the counter by 1
intCount = intCount + 1

'Start 1
Counter1.Enabled = True
Counter2.Enabled = False
End Sub

Private Sub Form_Load()
intFreefile = FreeFile
End Sub

Now... I don't know what's wrong with it, but if someone's willing to test it out... I'd appreciate it!

But it all comes down to: Line Input or Input (dependant on file size or is one just better than the other)?


=EDIT=
Oh, and when you input the file (both ways), the vertical bar goes unusable (like it's loading the file). So it should count SOMETHING, right? Even an interval of 1 didn't help...

Input As #1 And Removing Parts Of The Input
i have this :


Code:
shell "net view>C:123.txt"

now what i am going to do then is use that file in my program as input, where i will display all the computers within a local area (one room) and place them in a list box......... i have the output as:


Quote:




Server Name
--------------
\I1-01
\I1-02
\I1-03




i want to remove the "Server Name" and the line below it and just display the computer names......

how can this be done ???

thx

Getting Data From Line Input #1 To Input #1
Hello Any one
I am Trying To get data From Line Input# to Input#
using the same logic
but i am getting error Input Past End and sometime Subcript out of range
Pl help so that i retain the same logic using Input #1
I've put the codes so that it is easy to compare.

Code:
Private Sub Command1_Click()
Dim file1%, tmp$, fp&, Recs%
file1 = FreeFile
Open "h:Trial.Dat" For Input As #file1
Do While Not EOF(1)
Line Input #file1, tmp

fp = Seek(file1)
Do
Line Input #file1, tmp
Recs = Val(tmp)
Loop Until Recs > 0
Seek #file1, fp


For i = 1 To Recs
Line Input #file1, tmp
MsgBox tmp
Next i
Line Input #file1, tmp
Line Input #file1, tmp
Loop
Close #file1
End Sub


Private Sub Command1_Click()
Dim file1%, tmp$, fp&, Recs%
file1 = FreeFile
Open "h:Trial.Dat" For Input As #file1
Do until eof(1)
i% = i% +1
If i% > Ubound(a$) Then Redim Preserve a$(1 to i%)
If i% > Ubound(b$) Then Redim Preserve b$(1 to i%)
If i% > Ubound(c$) Then Redim Preserve c$(1 to i%)
If i% > Ubound(p$) Then Redim Preserve p$(1 to i%)
If i% > Ubound(q$) Then Redim Preserve q$(1 to i%)
Input #1, a$(i%)

fp = Seek(file1)
Do
Input #1, tmp -------> 'Getting Error Input Past End
Recs = Val(tmp)
Loop Until Recs > 0
Seek #file1, fp

For i = 1 To Recs
Input #1, b$(i%), c$(i%)
MsgBox b$(i%) + c$(i%)
Next i

Input #1, p$(i%), q$(i%)
Loop
Close #1
End Sub



Thanks

Sam F.

Input Data From File Using Input #
Hi,

I am working in VBA (in Access 2007) and am trying to input data from a CSV file. This file contains both string and numeric data. One of these fields is a field containing a person's name, but in a few of these, quotation marks (") are in the person's name - like: "White, Annye "Kate" L" The outer quotes are added by the program that creates the CSV file, but the inner quotes (around Kate) are typed in by whoever enters the data.

I am writing a program to read in this data, but when I use the INPUT # statement, it reads that piece of data as two seperate strings.

Does anyone have any ideas about how to read this data in besides going character by character and manually writing a loop to read it in based only on where the commas are in the CSV file?

From the VBA help file:
You should not write strings that contain embedded quotation marks, for example,

"1,2""X"

for use with the Input # statement: Input # parses this string as two complete and separate strings.

My problem is that the strings that my program will read already have the embedded quotes, and that can not be changed (since it is another program that outputs the data).

Any help will be greatly appreicated!
Thank you,
Corey

Input Box ( Input ) / Label Box (output) Help!
There are 2 forms frm1 and frm2

The user either picks the Eviction, or Rent option button and then can also place a check in the Print check box( on frm1 ) if they wish to print the results that are on frm2.

For instance if I pick the "eviction" option button an input box prompts me to enter in my name when i hit ok it displays my name in frm2 and sates Dear (my name) in one labelbox1 you have x amount of days to move out labelbox 2, reason: eviction in label box 3. Then if I placed a check in the print check box on frm1 then it prints out the results..


Code:

Private Sub optEviction_Click()
strName = InputBox("Enter Your Complete Name as follows: Title, First name, Last name[Example:Mr. John Smith]", "Type your Name")
frm2.lblBox1.Caption = "Dear " & strName
If strName = "" Then
MsgBox "Please enter your name", vbOKOnly, "Name Missing"

End If

If optEviction.Value = True Then frm2.lblBox4.Caption = "You have not paid your rent in several months. You have 10 days to vacate"

If optEviction.Value = True Then frm2.lblBox2.Caption = "Reason:Eviction"

End Sub

Private Sub optLate_Click()
strName = InputBox("Enter Your Complete Name as follows: Title, First name, Last name[Example:Mr. John Smith]", "Type your Name")
frm2.lblBox1.Caption = "Dear " & strName
If strName = "" Then
MsgBox "Please enter your name", vbOKOnly, "Name Missing"
End If

If optLate.Value = True Then frm2.lblBox4.Caption = "You are late on your rent please pay promptly "

If optLate.Value = True Then frm2.lblBox2.Caption = "Reason:Late Rent"

If chkYes.Value = True Then frm2.PrintForm


End Sub




When a user doesn't enter in data in the Input Box and hits Ok it loads some of the information into the second form.

( I want the message box( please enter your name ) to keep looping until they enter in data in the inputbox and I don't want any of the information to load in the 2nd form until text is entered in the input box as well )

+

When a person hits the checks the print check box on form 1 and hits the Evicition, or Late Rent button and enters in the text.. I want it to print the 2nd form results

Disable Input Except The Numeric Input
how to disable all input except numeric input???

Struggling To Make First Object - Make Class Property = To Combo Box On Form
I have an attachment that I would like someone to take a look at.
If you extract to C: it should create a folder named TEST with the Visual Basic code and a .mdb database.

Basically I've created a Class1 module and would like to make its Name property equal to whatever the Combo1's text comes up as (combo box) on Form1. At the end of the Form Load, it has a message box but it comes up blank. I'm pretty sure that I've got my Property Get sub commands correct in the class.

Depending on the default user initials that come up (gvntUser) then there are certain options allowed based on their profile. Some would be in a read-only category and only certain command buttons would be visible. An example of this is in the Class1 class. Class1.ReadOnly would store the property of true or false.

This of course is first of all based on the initial collection of pulling from orderentry.mdb database and then basing it on the Form1.Combo1.Text field as the Key. But I perceive something is not allowing this to happen as the Form is loaded...

This is just a test program that I'm learning through
On my real program, I have numerous combo boxes - some for salespeople, and some for types of orders.

Any suggestions is much appreciated. Thanks in advance for all of your replies.

Input Masks For Input Box
how do we do that . i.e. (###)-###-###
does the brackets get included as characters

Make Shortcut On Command Button-Make The Text Underlined
How to make Underline on text on command button??

Exit

??

How Can I Make A Program That Will Make It So That Windows Recognises A File-type?
can any1 help? i am making a program which uses *.pli files, and i want my system to recognise them instead of showing them up with the white icon with the windows system. I no i can do it by going into the folder options (I have windows 98 btw) but can u get vb to do it 4 u in a program? (This program is going to be distributed among lots of people who all use windows, but not necessarily windows 98, i dunno if that makes any diff.)
thanks

How To Make A Program Shareware And Make Provisions For Registering It With A Key
i wish to make my program shareware.
how do i program for provisioning for the registering by a key, till that the program should display a message saying it is unregistered?
the key should be unique for all the customers.

How Can I Make It So When I Start Up The Computer To Make Me Auto-connect?
Hello, i have a question about what kinda API call i should use or any other statement to make it so when i turn my computer on my ISP auto connects so i don't have to click on the connecting icon...if u know, please send me some infomration

Thanks for listening

How Do I Make My Program Make Text Files And Save Them?
I need to be able to save text files to file and access them later without using common dialogs, any code?

How Do I Make A HTTP (POST) Call To DLL To Make HTML?
In some applications you see a HTML page in the Web-browser call a DLL
instead of a .asp page.
The result is HTML presented in the browser.

I have seen this working for stand-alone apps as well (Internet Explorer
does the same)

== Questions
1) How does this work?
2) How do I set up the VB code inside the DLL to recieve and handle the
HTTP-call?
3) Is there any sample code available showing me the basics? (A VB project,
or "whitepapers")
4) Dou you recommend .NET or VB 6.0?

== Why?
I want create a small desktop application using HTML-pages to present data
and to present forms.
Via POST, data should be stored via the DLL into a database

== What for?
Applications to be distributed to desktops using Win 98, WinXP and Win2000

Thanks in advance.

Peter

How Can I Make A Game? I Wanna Make It Online!
[size=1][font=arial][color=crimson] please help me! i wanna make a game!!!PlEaSe!!!!

How To Make Clicking Anywhere Make A List Invisible
I'm writing a program with a lot of frame objects, text boxes, button, and all sorts of gizmos, all available to the user at any time.

One funciton that I'm trying to implement is a menu system that pops up when the user clicks a button (much like the start menu in windows, but with different items in them). I have it implemented using a set of listboxes that appear/disappear when different elements on the menu are selected, and that's working great.

The problem that I am having, is that I want the menu to disapear if the user clicks anywhere on the screen other than on the list box (that I'm using for menus). I've tried the form_click event, but that doesn't work if there's frames/text boxes/etc on the form on top of the backround. For some reason the lostfocus event doesn't always trigger when I click off of the list box (onto the form, or other frame object or whatever), although it does work when clicking into a text box or something.

Anyway, I've been plugging at this for a long time. Any help would be GREATLY appreciated.

-tom

How Do I Make My Program Make A Back Up Of The Registry?
How to I make my program to make a back up of the registry under the name I want it and in a folder I ask for it to go to??

for ex. You click on a button and it starts making a back up of the registry.

Thanks for your help again.

How Can I Like Make A Lighting In Vb Frawing It And Make It Animated?
How can i Like Make a Lighting in Vb frawing It And Make It Animated?

If I Where To Make A Game How Would I Make Each Level In A Dll Format??
if i where to make a game how would i make each level in a dll format?? and also where can i learn how to make a dll ??

How Can I Make A Macro That Will Make VB6 Press A Key.
I recently learned how to make VB macro leftclick using the mouse.
I was wondering what is the code that can make VB press the letter "n" on keyboard for example. If you post a code, no explanation is needed(although i will appreciate a little explanation if you have time)
Thanks everyone.
BTW i cant use the macro recorder.

Make Window In VB But Make Program In C/C++?
hi,

I heard a roomer that yoyu can have the nice and easy way of creating a window and buttons with VB but make the core of the program in C/C++. Is this true..and if so I'm very intrested in learning how...because making windows in C++ for quick programs is very time consuming

thanx in advance,
Boomba

How Do I Make Vb Make A .EXE File? And Split()
1) Using Split(), How would I make it so the user can enter aNY charecter, like if I split using "_", the thing is NAME_AGE_LOCATION, and I want to split that, but the user enters like Da_ve for name, itll split it to Da ve instead of Da_ve.

2) How would I make vb 'produce' a .exe file? Lets say, I want to make a command button, and when u run this and click it, I want vb to make a bin file in "C:" named biff.exe, and this file does whatever I want, Is it harder in VB than another language? (delphi?)

How To Make A Right-click Also Make Like Left?
I searched and found a nice litte snippet here:


Code:
Private Sub List1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = vbRightButton Then
PopupMenu mnuPop
End If
End Sub


But I need one more thing. I need my list box to also highlight the proper ListIndex (as if left-clicked) before the PopUp menu comes up.

Thank you and prease forgive broken engrish in subject.

Open File - Input$ - "Input Past End Of File"
I am trying to open a file useing the Input$ command, yet it is not working.


Code:
Open CD.FileName For Input As #1
If LOF(1) > 0 Then
sFile = Input$(LOF(1), 1)
End If

Close #1
CD is a command dialog, and i know that it is not empty when its at the line.

The LOF of the file i am opening is 749,568. Is that too big? Because i am going to be needing to open even bigger files then that.
"Run Time Error: 62"

Thanks

Make ListBox Background An Image Or Make Background Transparent?
Is there any way I can use the standard listbox and use some sort of bitblt or gdi stuff (i know nothing about those graphical functions) to put an image in the background of the listbox or if that's not possible if i could even make the background transparent and have the picture set as the form's picture?

Thanks in advance!

How Do I Make It So The User Can Select Certain Text And Make Only That Text A Differ
How do i make it so the user can select certain text and make only that text a differerent color with a atext box??????

Copyright 2005-08 www.BigResource.com, All rights reserved