About Some Things...
Hello, again my post got deleted or something, im making a shape shootout game with of corse shapes. i have two squares that are going to shoot lines at eachother, its really basic. but now to my question, i want to know how to make it so if the red line touches the shape in anyway then the shape is no longer able to move and it dissapears. can you help?
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Moving Things And Deselecting Things.
Okay, I have two questions. First I'll give you the noobish one. How do you deselect something like a command button so it's not highlighted? I also have a problem with my end of the year project I asked for help with a while ago. I'm trying to make it so that when you click a button, the notes on a measure (of music) move down to the next set of lines instead of going to the right off the screen. It's hard to explain, but here's the code for the command button:
VB Code:
Private Sub Command1_Click()intOMG = intOMG + 1If intOMG > 8 Then Command1.Enabled = FalseEnd IfLine1(Line1.lbound + intOMG).Visible = TrueLine2(Line2.lbound + intOMG).Visible = TrueLine3(Line3.lbound + intOMG).Visible = TrueLine4(Line4.lbound + intOMG).Visible = TrueLine5(Line5.lbound + intOMG).Visible = True End Sub
Here's a picture of the form, which is probably the best way I can show you:
http://img.photobucket.com/albums/v6...r/untitled.jpg
Also, how can I make that scrollbar work? This should be my last question about my project (seeing as it's due tomorrow), so thanks to those who help.
2 Things
Didn't want to make two posts, but I have 2 questions:
How do I make my program check for a certain file, create it if it isn't there, if it is then add the specified text to the bottom?
Second question:
How do I make tabbed panels?
Thanks in advance
All The Things...
hi, i'm new to vb and i'm new here too.. :-)
i know some questions a lot of people are asking, but i'm asking too.. lol lol, so here goes, i know you all !experts! out will help
Custom-Shaped:
1) How do I make 'Not only it is custom-shaped form' but the edges are
smooth? Is it something like Anti-Aliasing? I saw Winamp3 with this feature.
2) So i mean 'not only it is custom-shaped' but the edges are 'smooth', is it doned by using PNG-24?
Flash:
1) How to integrate Flash into VB?
Others:
1) How does DirectX helps with transparency?
2) How do i deal with animation? Something like 'Ashampoo Media Player' where the 'blue liquid' just flows.. (i think)
I'm not good at VB so i hope everyone can help! :-) Thnx and much thnx!
Two Things At Once?
I have my game loop set out something like this.
Code:
While brunning
DoEvents
Cls
Call Draw_Screen(Me)
Call Artificial_Intelligence(Me)
Call Collision_Detection(Me)
Call Update_Positions(Me)
Wend
and within my AI sub i have these.
Code:
Call AILongVision(FrmUser)
Call AIThreat(FrmUser)
Call AIShortVision(FrmUser)
Call AIWorkPath(FrmUser)
and within my AILongVision sub i have the code that works out my AI's long vision and all that stuff. and when something within the sub is triggered it calls another sub which draws some stuff on the screen using a while loop.
the problem is that when this loop gets called the whole program freezes until this loop finishes. how do i let it keep rendering my game while doing this loop?
Using My Db For Other Things
Hi everybody,
I''m making a program in which you can print document but some documents require to be printen with Word. My Database (an access file)
is used with this. The word document requires data from the database how can i open my word file in word with al the data filled in ?
The Best Way To Do Things?
Alright first thanks to everyone who has chosen to help me on my quest to make things more simple K.I.S.S. Anyway, This is a question I hope to dialog on. I'm trying to speed up a proposal process by adding access database support to an excel template. I need to dump some data across several cells depending on the criteria selected in one of two dropdowns in excel. So far I'm querying the DB with ADO and dumping the results into a xlVeryhidden sheet. My logic so far is to have two tables tblBrand and tblProduct. Table brand looks like this:
brand_ID, brand_name
1.............BrandX
2.............BrandY
3.............BrandZ
4................
Table Products looks lilke this:
product_id, brand_ID, prod_model, prod_desc, prod_price, prod_retail
1...............2.............ABC123.......cool.........$1500........$ 2200
2...............2.............ABC333.......cooler......$1800........$2 500
3...............1.............XYZ454.......Sweet......$2000........$30 00
4...............4...................
I'm going to populate the first dropdown with the info from tblBrand. This info is being dumped into the hidden sheet everytime the template is opened to avoid having to worry about an inaccurate DB population. I hope to use the dump to fill the dropdown. If the person choses brandX from the dropdown I would like to requery the DB to select all the products with the corresponding Brand_ID like this:
Code:
dim Sql as string
dim BrandID as integer
BrandID = 'First dropdown brand_id value
Sql = "SELECT * FROM tblProducts WHERE brand_ID = "' & BrandID & '""
Hope this Makes sense so far. I program in PHP originally and can do this kind of thing in PHP any day of the week but I don't know VB/VBA that well So... First Question Is this possible?Second Question Assuming first question works. Am I on track with my thought? How would you do it?
Not Sure How To Set Things...
Okay, here's what's going down.... I want to set a small box down into my
DirectDraw screen at 1024x768, and I can't seem to get this done... I have the "FullScreen" initialization and I want it to display, something.... maybe a box rotating 360-Degrees... If you can help, please do... Thanx!!!
Little Things In VBA :)
Hi all! While working with VBA I stumbled on couple things that I didnt like and couldnt figure way around
1. I created an application in VBA... so when I start it, the Exel workbook loads my first userform. My problem is that this workbook is always in background... its not like workbook has a .Hide method How do I hide it?
2. Is there an elegant way to add 1 to variable? (like i++ in C/C++)
3. Is there any way to export VBA application into independant .exe file?
4. How to get out from While ... Wend?
I cant think of anything else right now... maybe ill remember later
Any help is always greatly appritiated. You guys are real pro's
Two Things
1) Is there any way to change the caption of a command button or is putting a border on a label the only way?
2) How can I take away the top bar, or more importantly, the minimize, restore, and exit buttons in the top right hand corner? The exit button at the top doesn't fully exit my form, mazimizing it makes the program look all weird, and the minimize isn't needed for me.
Thanks!
2 Things...
I'm sure the answers to these questions are here somewhere, but I can't find them... So Here Goes.
How do I make a Cancel Button interrupt a program, while it is querying a remote machine?
And
How can I make the Return Key action the program after entering text in a field? I have to click a button and would love the Return key to do this.
Thanks.
2 Things
OK, 2 things,
1 How do you use the Rnd funtion?
2 How do you create global variables?
3 Things
I am nearly at the end of my current project now, however i have a few remaining problems that i just cant work out.
1. Multiline textboxes - IF i have a scrollbar, they always seem to stay scrolled to the top whenever the text changes. Is there a way to keep the text box scrolled down to show the last entry into it?
2. Automatically detecting if they have disconnected from the internet- Is this possible?
3. An annoying little problem using the shell command. -
My app is a program that runs along side a game, however if i use thr shell command then in the game some things (like key mapping, mouse sensitivity etc) are reset to the default.
Im sure its a prob with using shell() because if i run the game manually by clicking the exe there is no problem - even when the app is running. Any possible ideas to this?
Once again thanks in advance.. im so close to finishing yet cant release it until these little niggles are sorted out.
David
Few Things
how can i make a button open internet explorer?
how can i put the lines in the menu editor like there is in internet explore file thing between save as and page setup
how can i make a *.cur or a *.ico to use as an icon for my program - what program and where can i get it
Two Things.
When I double click on a label, I want to save the name of the label to a variable.
Then I want to use this variable to change several properties of the label, such as caption and background color.
Essentially I'm trying to develop one piece of looping code, instead of pasting and changing the code 42 times for each label and combo box. I declared the variables as label, but I don't know how to get the name from the program.
I tried setting the variable to the label name, just to test the rest of my code...but that wouldn't even work. It said "with object variable or block variable not set" I tried changing the variable type to a string, and it said "invalid qualifier" when I tried to use it as a control name.
Any ideas?
Few Things
Im Pretty New To VB, I have been reading tons of stuff on it and reading this forum has been helpful, but i would like to know a few things.
Im trying to make a unique key for a system that will be unique to that system, so i figured i would encrypt the computer name... but i dont know how to identify the computer name if somebody could help me with that.
And something that may be simple im not sure, how to return a random letter, i know about numbers but not sure about letters.
Any help would be appreciated.
A Few Things I Could Use Some Help With >>;
Well i have a few questions...
I want to have my form/program hold down a key when a check box was ticked. then it would stop when Un-ticked.
Then,
How would I make it so when you click on a menu item it opens up a webpage or an email application to email something/view a website?
Thanks,
Daerd.
How Can I Do These 2 Things...
Totally unrelated but how can i do them...
1. Let my program connect up to the internet and save a file on the site so then they can load it later? This would probably have to include an accounts system.
2. Make it work with a webcam so maybe like one of those webcam games where you can move and then virtual things can bounce off you?
A Few Dll Things...
Gwah... well... im trying to make an anti-software cracking system sorta thinger...
I've got my DLL written with all of its functions... and i was wondering if i could inject the dll into another process (lets say explorer) and then call a function from it? the main thing that i want to see is if its even possible O_o
thanks =]
A Few Things
Ok, I have a few questions, I thought this is the best place to ask, since this place rocks!
Ok, well, First i seen another post like this, bu not sure it it would work, but first I want when my program (Radio program again) opens, It checks right away if theres a connection to the host, If so then it leaves the program be, if it returns that it cant, give a message saying that well it cant like " Sorry, no DJ at this time "
Second, i am going to search the forums and try this one on my own, but if its ewasy tell me, its for adding items to a combo box.
That will about it untill I get this little bit done.
How Can I Do The Following Things
Hello Everybody :
I am a new member here and I really found many important codes and DLL(s) here but I have some questions that I hope I can find the answers of it Here :
Note : I ve searched before writing my topic so please forgive me if I couldnt
find the answers while I was searching :
1 - How can I Insert a PNG Image in VB 6 ? Is there any ocx , code , dll allows me that because
We are all knows that the PNG Image is not available to add in VB 6 ?
2 - Is there any .DLL that allows me to save with all images extensions ?
3 - How can I search for a word in the text in the RichTextFile and make a replace ?
Soooorry for the long questions but i really need the answers
Regards
Black Wolf
Am I Doing Things Right?
Hi fellow VB Gurus,
I'm very new to VB6, but at my new job I have to use it. I'm just wondering if I'm doing things right:
The project I'm working on consists of several subprojects with selfmade ActiveX controls (ocx) or ActiveX exe's. The way my business partners build the whole project is by compiling the changed components and compiling all the components or projects that depend on those components, MANUALLY !?!. My problem is I'm very lazy and I want to make some kind of build script that make the right references automatically so I can compile the project and all subprojects unattended. Is there anybody here who had to build such big projects b4 and who knows a good way to do it nice and quickly? I already know about the command line compilation with the /MAKE argument, but that's all so far. Does VB6 automatically reference the latest version of the ActiveX components? Any other information you can give me?
Thx in advance,
RaKKeR
Its The Little Things That Bug Me !
I've compiled a project that has a magnifying glass as its icon.
The project contains 2 icons (in a resource file), a house and a magnifying glass.
When I go into Project Properties the house icon is displayed ... which is good.
When I compile the project the icon for the .EXE becomes the hourglass icon ... which is bad.
I tried deleting the .EXE and recompiling, thinking it may inherit something ... but no.
I know this is petty .. but its bugging me ....
Why Do M$ Do Things Like This?
Versions 8 ('97) and 9 (2000) of Excel allow the custom number format 0.0kg but in version 10 (2002/XP) you have to format it as 0.0"kg" - why on earth would they change a thing like this, and doesn anyone know a sensible workaround for my VB app that uses Excel objects?
Help With Few Things Please
Hey,there as you can i see im new here,well im making a big prog were you can do afew things, and id like to see the codes for few things!,thanks in advanced
1.changing clock time
2.setting C:/ as a ftp
thanks ppl
3 Things Together
Ok I have 3 text boxes and if any 1 of them at all is blank I want a message box to pop up but how do I make all 3 go together... I tried If Text1.Text & Text2.Text & Text3.Text ="" Then MsgBox but it has to many &'s in it so how do I put them all together for this to work? Thanks for the help guys
<> Two Things
How do I check to see if a variable is not equal to two things, ie:
If xyz <> WhatGoesHere AndHere Then
blah
End If
Thanks
- Jake
2 Things
Do I need the change this (it localisesd menus)?:
Code:
Private Sub Combo1_Change()
Form11.mnufile.Caption = "Le Dossier"
Form11.mnued.Caption = "Éditent"
Form11.mnuhlp.Caption "L'aide"
End Sub
and how would I make theese to codeopieces work on xp, and how do I include xp style controls with a .manifest file, please provide good detailed instructions?
Code:
Private Sub Command10_Click()
Dim notepadexe As Variant
notepadexe = Shell("pbrush.exe")
End Sub
Private Sub Command5_Click()
Dim notepadexe As Variant
notepadexe = Shell("write.exe")
Things With MP3's
I have a program, and when it starts, i want it to play an MP3... Well, at a certain point in the program, i want it to fade out the song in 5 seconds, and at the same time fade in another MP3...
The MP3 wont be finished playing, so i wanna fade out the sound and stop it, but while its fading out i want the other MP3 to fade in while the first one is fading out....
Anybody know how to do this?
Just 2 Things
1. Is there a way of making your program (once an exe file) open when some1 opens a different file?
2. Can you close my documents by clicking a button on the program?
thanx 4 any help
Two VERY Tiy Things
number 1:
how can i make it so when the X in the top right corner is clicked, it HIDES instead of closes?
number 2:
i have an icon in the task bar. how can i make amenu appear when it has been RIGHT CLICKED on.. thanks!
2 Or More Things
ok if i have like a file box and a list box, and if i select a file on the file box the size will be selected in the list box(i aready have that done). now i want to make it where i can holde like Shift or Ctrl and I will be able to selsect 2 or more things at once.
Can You Do 2 Things At Once?
I have a program the opens excel spreadsheets
searches for key works and when it finds the key
word, it enters the pathname and worksheet name
into a listbox
Problem is its slow.
Can I open a few spreadsheet at the same time its searching??
In otherwords.. multitask?
SeaHag
Help With 2 Things
1:-) how would i use " in a string. t = " "hello" " wont work, i wana know how to use them in somting like that
2:-) if my app has a ref to a dll and it cant find it, how can i tell my app to search the drive for a nother dll to ref andload the stuff from?
2 Things...
sup? i'm building a browser:
1) how can i do a button that will show me the properties of the page the user is viewing?(to click a button instead of doing right mouse button and then properties.)
2) how can i do a button that will print the page the user is viewing?
plz give a command examples
Three Things
First of all I have a dao datasource which is connected to an Access Database.
When I use rs.RecordCount - it doesn't give me the full count until I navigate to the end of the recordset. Why.
I have tried things such as moving to the end of the recordset then taking the count and then returning to first record.
Secondly, I have noticed that when my program starts for the first time it takes a while to come up and after that it is ok.
How can I use a progress bar to measure the events of my program being populated (or my databound grid) by the database.
Thirdly (and lastly), I have been using API calls to help with the PrevInstance scenario, but when I try and start another instance of the program I receive an error regarding the database and not being able to find it.
Any Help would be greatly appreciated.
Thanks
Matt.
2 Things
I know it is easy, as i have done it before, but how do you make a commondialog open box open more than one file? I have this code, but want to make it list more files in the All Webfiles box:
Main.CommonDialog1.Filter = "HTML Files (*.htm, *.html)|*.htm*|PHP Files (*.php, *.php3)|*.php*|Cascading Style Sheet Pages (*.css)|*.css|All Webfiles (*.htm, *.html, *.*.php, *.css)|What goes in here to list all the file types?|Text Files (*.txt)|*.txt|All Files (*.*)|*.*"
Also, how do you print the contents of a textbox?
Any help appreciated.
Richard Thomson
Many Things - Sure U Can Help
Hiyaaaaaa,
Well me trying many things again, i love the web thus made a vb web server. It works fine except if internet explorer requests too many files at once half the requests dont get through thus the page does not load properly. The server has loads of features, yet it does not work. And so i was looking on p-s-c.com and noticed the multithreading demos.
I decided this is what is messing my app up and am wondering if it is a good idea to create a new thread for each connection or not ? (Question 1).
Secondly can C++ multithread anyway thus my server would be better in C++ ? (Question 2).
Thirdly in my Mail Server (Duh another un-finished app) the menus i created keep flickering (home done active x controls) because there is a timer which keeps checking the moue state and then drawing the button depending on the state. I was wondering if i can stop the flickering ? (Question 4).
Lastly can i stop my form being made smaller than i want it to be, say 6000 twips ? (Question 5).
Doh, so many questions , any answers ? (doh another question.)
Please Please
Several Things...
First of all, anyone know how to get the username of the currently logged on user?
Second of all, how can i tell how long the pc has been idle, no mouse movement and no keyboard movement?
Thirdly, regarding access databases being used through vb, if i have several the same on several servers, how do i go about syncing them at the end of the days work?
Thanks
Two Things
1. How do you test to see if a document is open on an MDI form ?
2.File association, i know which bits in the reg to edit but they have to be the parts of the reg that are normally called 'default' and i cannot write to them using vb. it just creates a new bit.
Why Are Things The Way They Are?
I've noticed that the text boxes provided with VB are insert-only. So they won't go into overwrite mode when the user toggles the insert key. To make a decent workaround, you have to use api calls to find the status of the insert key, and pull little tricks to make the box act like it's in overwrite mode.
It just strikes me as odd how such a common piece of functionality was simply left out. Is there some easier way that I'm just missing? Might there be some other text box control out there that will handle this ability? Or will I just be stuck doing crazy workarounds to all of my text boxes just to get some simple functionality?
Please give me your input on this.
2 Things
I want to make it so that make it so that when you click a command button it will save the embedded file into the directory of your choice.
and another thing. I want to make it so that I can have it that when the click a command button it will delete the file. (different program from first)
Need Some Things!
I need highly customizable GUI controls, for my program, but have been unable to find these control as such:
- A control like sstab (tabbed dialog)
- Toolbar
- Statusbar
Thanks!
Twisted|Soul
Transcending even the highest forms of digital spirituality.
2 Things
Hello, me again
okay - the first thing:
Right, i have a VB application that i am creating. and it uses a database to store info [ a DB that stores info!!!??? - lol]
anyway - i have a form which allows a user to Add, Edit and Delete Records.
When they have entered the info they click update. my problem is, behind the command button for update is Adodc.Recordset.Update
but as i found, this isnt really needed - because as soon as you enter anything new - it saves it itself!! as you can imagine this can cause a problem if someone puts the wrong values in and has t delete/edit the whole thing all over again to correct it.
so, my question is, how do I prevent values added into the fields on my forms updating in the database until they click Update??
i hope all that made sense....
The second thing...
I feel i have been quite rude to all those who have helped by not saying thankyou.
so - THANK YOU!!!!
That is, those who have helped me with previous questions - i still need help with the above - lol
The Styx
Writing's Powerful Message
There was once a young man who, in his youth, professed a desire to become a "great" writer.
When asked to define "great" he said "I want to write stuff that the whole world will read, stuff that people will react to on a truly emotional level, stuff that will make them scream, cry, wail, howl in pain, desperation, and anger!"
He now works for Microsoft writing error messages.
These Little Things!
A list box. Mine should contain the following items:
Toshiba
Intell
Mercury
Dell
How do I go about this in the code window?
Things You Don't Want To Do
Create a temporary folder on Win 2000 (Adv srv) through your app using FileSystemObjects.
Then mess with the security to this folder at the server console and accidentally remove all permission objects. Now Administrator can't even access it, delete it or anything to it. Hum...
whg
On Top Of Things
Is there any code to make a form always appear on top of other programs running (ex. Program A is on top of Internet Explorer even after you click Explorer).
Help With Two Things....
I have a very small program that opens up internet explorer (here it is):
Private Sub Form_Load()
Page$ = "d:myfile.html"
ShellX = Shell("explorer.exe " + Page$)
End Sub
There are two things I would like to do with thism but I have no clue how to do it.
1) I am using Form_OnLoad which automatically launches IE once the program is activated. The problem, however, is the form actually pops up too. I would like the program to just run and have IE start but do not have the form from my program to show up.
2) This program will be located on a CD Rom and I want it to open a .html file that will be on this CD Rom. The problem, however, is that I cannot hard code the pathway for the CD rom because the CD Rom will be different from machine to machine.
How can I set Page$ = "d:myfile.html" so that it will open myfile no matter what drive it is on?
Can someone please help? I have no clue how to do either of these.
Thanks,
Master Incubus
Some Questions About Various Things
1) I'm working with DX8, rendering in a picbox (window mode): i still have to find a way to refresh that picbox when the form goes under some other form. The form paint event is raised, but even if i call a full rendrer from there nothing happens. How should i refresh the picturebox?
2) This is perhaps much more a math question than a DX question, i don't know if DX have helpers functions to do that:
I move my camera with 2 angles and a distance:
If you imagine the "rope" that join the camera to the camera target (wich is the Distance) you can visualize 2 angle: one between the "rope" and the Z axis,flat on the xy plane, and a perpendicular one between the rope and the xy plane.
My problem is the "reverse" formula: having the XYZ of the camera and of the Target, what's the best (fast) method to find the 2 angles and the distance?
3) I've found somewhere in the web that moving the camera is much time consuming than moving "the world": is it true?
I have a fixed scene to render, but the scene itself is really heavy (nothing moves in my world, you can think at a Lego brick viewer: i load a dozen of "lego brick" meshes an i place a thousand of them one on another).
So when i move the camera to look the final "object" the rendering is very slow. I know that i should "build" an unique mesh to be fast, but is a lot far from my knowledge, so i'm searching for a better, faster way to "fly" around my scene.
|