Rookie Question... Graying...
can someone tell me how to make text boxes and combo drop downs "grayed"? Or if it's possible? I've looked and found no help so far...
I know i can disable them, but the request is to have several of these controls visible, but in a "grayed out" state.
help?
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Graying Checkboxes
Is is possible to have a checkbox that can be grayed out i.e the background colour of the actual checkbox not the whole control e.g. label etc... without having to disable to the control.
Disabling A Control Without Graying It Out
Hey there. Is it possible to stop the user from playing with a control, ie a checkbox in my case without graying that control out? When the control is grayed out, it's hard to read, and so I would like it be in it's normal enabled form, but be unenabled. Is there any way to do this?
Graying Out A Combo Box Item
HI, I'm looking for a way to gray out an item in a combo box so the user cannot select it but be still visible.
The Scenario is:
A time specified item that the user can select from a combo box which in time will be deactivated(grayed out) so the user cannot select the item.
Graying Elements Of A Listbox
I have forgotten how you do this.
I want to have a number of entries in a listbox displayed in gray
-e.g. RGB(127,127,127)- to visually indicate they are not "enabled" but the forecolour property makes ALL entries the same colour.
Disabling AND Graying Out Controls On A Frame
Hi,
I have a frame and few controls on it (combos, labels etc.). I know that when I disable the frame, the controls that are on it get disabled too... but they they're not grayed out automatically.
Is there a way to gray them out when disabling the frame or do I have to use:
'control.Enabled = False'
to all of them?
Is there a better way to gray out a number of controls atatched to a frame?
Thanks
Help For VB Rookie!
Hello,
Im a VB rookie, means im still in school and this is the first VB course im taking. Anyways, working on my last project involving using sequential access file, .txt, and display info on a VB program. Tried to attach the file, hopefully someone can help me. Appreciate it.
Edit: Attachment deleted. Please no exe's in zipped attachments, just the source please.
Rookie Help
ok, im a total rookie at this sort of thing, so this problem mite seem a bit basic.
anyway, i have a vb assignment for college and have nearly finished it. the program is designed for a school games competition and allows you to enter which students won what games, it then works out which team had the most winning players and then adds them up and names the winning team [either green or yellow]
the problem is, i cant figure out how the program will count up the results to name the winning team. in short, i need to type the code for the big 'name winner' button.
ive included my program as an attatchment so you know what i mean
thanx for any help.
Rookie
Hi everyone, this is my first post in this forum. I'm an enthusiastic programmer in Office Xp VBA, and I want to "upgrade" to VB 6.0.
I already got the compiler, what's next ?
VB Rookie Needs Help.
I'm making a VB program for the very first time, and I'm confused about how Option Explicit works. What does it do exactly? Part of my program worked without it but when I did use it, it crashed. My program is almost done except a couple of glitches which I'm struggling with and am hoping that someone can be kind enough to take a look at it and help me out. Thanks so much
Can Somebody Help A Rookie Out
Private Sub pro_Click()
intlevel = 40
From Form1 -> Form2.Show
End Sub
can any one show me
how to load it from a control botton
VBA Rookie - 2 Questions
Hello
1) My understanding is that when you place VB/VBScript code into
Access, that is considered "VBA" Is this true?
2) I have managed manipulate Access controls by using VB code
inside an Access object's event procedure. But truthfully,
it was all trial and error and I didn't in theory, know what I was doing. Can someone please give me an easy, basic & common example of VBA as it is used with MS Access?
Thx!
Rookie Needs Assistance
Its been over 8 years since I have touched programming and now need to make a small program for work.
I am using a picture... specifically a map... as the background for a form. I somehow want to enable either a mouseover or click command for sections of the map. Is there someway to place picture boxes or another item over the sections of the map, while leaving the object perfectly transparent?
Any suggestions would be greatly appreciated.
Thanks. EB
Rookie Question
I have noticed that my projects folder is full of .TMP files. I have no idea where they came from, if they are important to keep around or how to keep them from appearing. Many of them (if not all) are empty.
Anyone? Thanks much!
Rookie Question
How can i determine when combobox has list open and how can add more than 8 fields to combobox ?
Regards
Rookie Questions
I am a new student. What happens when the Multiline property is set to zero ? Can text be displayed ?
VB Functions For Rookie
Hi guys.
From a C++ background and various literature on VB isn't helping me much so forgive me for this basic question.
I want to return a custom class type from a function...but how?
I tried this:
Code:
Public Function DoSomething(fakeone as Integer) as MyEscapade
Dim pleasure as New MyEscapade
' Do stuff for pleasure
DoSomething = pleasure
End Function
VB won't assign DoSomething = pleasure...it just throws a runtime error saying object not set when it exits the function
How is this s'posed to be done?
Rookie Questions
Ok i have currently started to learn VB 6 i have a couple of questions...
1.I Understand variables,Bools n the basics what should i move onto i cannot find any links to good tutorials
2.Should i start off by learning VB6 or should i reinstall VB.NET and start with that version
if someone could help me out with those 2 questions id appreciate it thx
Help Needed 4 A Rookie Plz
hi is it possible to send text from one of the text boxes to a text document by pushing a command button
for eg
could i type "the quick brown fox jumps ova the lazy dog" in a text box then push a command button that will send the infomation to maybe a text doc or word file or sometihng like that, so i can read it
if possible plz tell me
many thanx
Rookie Question
Hi there,
I have a text file that contains teacher timetable information. I'd like to
open the text file, wait for input in a text box on the form (a teacher
name), then have that teacher's timetable autofill into label controls on
the form. Can someone point me in the right direction or provide advice?
Thanks
essay(_)help@rogers.com (remove parentheses)
A Rookie's Dilemma
Hi Everybody,
I've just discovered that any APP that I build with VB6 is gong to need to load and manage data that would be specific to each terminal using the APP. Things as simple as the name and address of the company that might be using it... etc etc etc. There are probably lots of data that needs to ba managed.
I am new to working with "Windows" as opposed to the old DOS style so I am looking at using "INI" files or using the "Registry". It seems that current thinking would be to use the "Registry", but I have no idea which path to follow.
Can someone, not only advise me of what path to follow but also point me to a tutorial that has a working example that I can follow and begin to understand.
Many thanks
Paul
Another ROOKIE Dilemma
Hello everybody,
I hope someone will advise me on this
I've been working this for several weeks, and every solution "I" come up with seems to dig me deeper into this mud called bad-programming.
I want to have a "Display-Only" view on a form, as well as provide for "Add/Edit" capabilities. ( So far I am using a single form )
The thing is that to do both on one form... the form is getting real crowded with simple display controls like text boxes; and "Add/Edit" controls like Date-Pickers; MaskEdit boxes. It gets even more confusing when the backcolours, borders, and forecolors change to reflect the "View" or "Edit" intentions.
How do you folks address this? ( Create new forms for each different task or manage controls on one form )
Many thanks,
Paul
SQL Query Problem-(rookie)
I have a table with 2 fields,Price and Code. The code field holds the letter a,b or c and the other field has a certain price.
To find the average price for all rows that have an 'a' in it i code:
Code:
select avg(price) from mytable where code='a'
I need to find the average price for rows that have a "b" or "c"
in it to. i thought i could just code;
Code:
select avg(price) from mytable where code='a'
select avg(price) from mytable where code='b'
select avg(price) from mytable where code='c'
but that doesnt work
thanx
trin
A Rookie In Need Of Help - Random Numbers
Hello everyone Im new here and Im in need of some assistance. I keep trying to print a random number in a label but it keeps being output as 71. My code is as follows:
Code:
'Define all variables
Option Explicit
Dim randnum As Integer
Private Sub cmdExit_Click()
End
End Sub
Private Sub cmdGuess_Click()
lblOutput.Caption = randnum
End Sub
Private Sub Form_Load()
randnum = Int(Rnd * 100) + 1
End Sub
What am I doing wrong here? Sorry if this is a dumb question but I just started learning VB a few weeks ago and its quite a bit different than anything Ive dont before (seriously I find this alot harder than c++) Im using VB6.
Thank for the help
EDIT* sorry if this is in the wrong section, but I had no idea where else to put it
I'm A Rookie... Can't Create A Cookie...
I just started using IIS with Windows XP. For some reason, when I run an ASP Script on my Localhost, I can't create cookies. The script that I am running worked fine on my old 98 machine using PWS, but it doesn't now.
I set the option in my browser to prompt me when a cookie is created, but none are. I suspect that I don't have something set up right in IIS, but I can't seem to find out what it is.
Any suggestions?
Rookie Coding Question
I'm trying to find the maximum value for a sequence of 5 numbers
I understand for two numbers I just need to say:
if (a > b) then
max = a
else
max = b
end if
However, when i try to add more numbers, the application will work for the first run through, but then it will only compare the final two numbers in my 5 number sequence.
Why?
Please Help This Very 'green' Programming Rookie!
This is probably a no-brainer for you guys, but I've only been taking classes a little over a month and am new at this. Question is: how can I get a number to accumulate? (I want to input the number of items and keep track of the total number inputted). I'm using two label boxes.
Thanks,
Lori P
Veteran Asking Rookie Question.
I have a strange problem in a DropDown Combo Box (Editable).
1st - elements are stored with a 5 digits code plus a "-" and a description.
Ex.
00001 - First Element
00002 - First Element
00003 - First Element
00004 - First Element
More...
So when the user writes inside the combo I automatically select an item via this code:
Code:
Private Sub Combo_Change()
Dim i As Long
' Check if he entered a code of 5 chars
If Len(Combo.Text) = 5 Then
For i = 0 To Combo.ListCount - 1
If Left(Combo.List(i), 5) = Combo.Text Then
Combo.ListIndex = i ' Select the item
Exit Sub
End If
Next i
End If
End Sub
before the exit sub the value of ListIndex is correct, but in further functions (I assure I don't change the value in any direct or indirect way) the ListIndex is resetted to -1.
Why?
Rookie, Local Html Files
I am writting "almost" my first vb app :-) I have a series of web (html) pages that I want to include in the project. I have figured out how to load them in the "web browser control" during testing/design, and navigate to/from them with no problem. They are LOCAL html files, that will NOT be put on "the web". How can I make sure these files are "installed" on a machine when I build a setup project? I have tried "including" them, the project installs good, but "can't find" html files????
I don't want the user to be able to "remove" these files from their machine withour removing the "program", isn't that what "including files" is all about?
Hope this makes sense
Thanks in advance
David
Timer Control, Rookie Question
Hi,
How do I make a button not visible for 1 second when the button moves over it using the timer control? For example..
VB Code:
Private Sub Image1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)Image1.Visible = FalseTimer1.EnabledImage1.Visible = TrueEnd Sub
Rookie Needs Help With Crystal 8.5 And Date Ranges
I was asked to extract a report based on some certain criteria on all our outstanding loans. I managed to get this far:
{loan.code} in ["B80", "B81", "B82", "M60", "M61", "M65", "M66", "M70", "M71", "M75", "M79"] and
{loan.status} = "active" and
{loan.opened} in "1900/01/01 00:00:00.00" to "1995/07/20 00:00:00.00"
What I need is the loans summarized for everything opened within the previous 2 years, everything between 2 and five years and everything opened older than 5 years. What do I need to do next.
Stuck
Rookie Needing Help With DAO In Relation To Fields
First off, let me state this is my first time posting so i may of
picked the wrong group to field this question, if so please let
me know.
I have a program i made in Microsoft Access which i am now making
in Visual Basic 6.0 as an EXE. I am running into a problem from
converting my code from DLOOKUP to DAO, i have my code listed
below for reference, the line that i am at a loss on how to
complete is
rsQuickpad!"[Line " & varLine & "]"
I know the above wont work even when i wrote it but it
illustrates what i am trying to do. The table i am grabbing from
has 16 fields named Line 1 -> Line 16, so to grab the
information i need it would be rsQuickpad![Line 1]. The problem
is i need to do a loop, and have a counter pick the field based
on increments to the number, but i cannot find a way to fit the
variable into the field name.
Any help on this would be greatly appreciated, Thank You.
Simple Logical Statement Problem (I'm A Rookie To VB)
Ok this question is lame. But I searching for the answer on MSDN Online has turned up NADA. So I come to the benevolent souls on this message board.
Ok... I don't know how to use AND and OR statements in VB. Here is my code snipit. If figured it has something to do with the parenthesis and the "&". Maybe someone can help a brotha' out.
Do While ((currentArrayLocation < 10) & (inTopTen = False))
If (Worksheets("Sheet5").Range("H" & rangeInt).Value >= currentArray(currentArrayLocation).clicks) Then
inTopTen = True
Else
currentArrayLocation = currentArrayLocation + 1
End If
Loop
Thanks in advance,
cLocKwOrk
A Rookie Requesting Help.......... {VB Code To Exe, And Exe To VB Code}
I had someone at work create me a pensions calculator in VB. This person has created this and saved it as an .exe application.
Does anyone know how to open this application so I can see the code used.
I also need to create another similar calculator but with different features and I need to know how do you save a VB program to a .exe application.
If anyone has no idea what I am trying to say, please just say. (I tend to talk in my own little language)
Thanks
|