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




Moving Things Into Tabs


i have a bunch of labels and text boxes that are in a form. i just discovered the tab function and when i try to move them into the tab they just end up going underneith. how do u get them to go on the tab?




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.

Moving Things*
Ok, i have a shape that moves across the form (looping)

i have a timer that subtracts 10 out of the shape.left every 1 sec. from time to time i want to change the speed of this, like (-20) (-30)
etc......
so far i tried the following

Yellow1.Left = Yellow1.Left & Text1.Text

Obviously this did Not work, lol.
Does anyone have any better suggestions on accomplishing this? Thanks

Moving Things Between Frames
How do i move for instance a label between 2 frames? i tried with label1.container but that didnt work very well, so i guess thats not what its used for or im doing something else wrong.

Help With Moving Things In Arrays
Hey people.

Here is my problem.

I have an array of a size 10. Anyway i want to know how to delete and item in the array and move every item in the array down one so that it fills the empty space. So that I have no empty spaces in the middle of my array only at the end of it.

I have puzzled on it for ages.

Any help would be aprreciated.

Moving Things From One Listview To Another
Hey guys I have one listview called report on a form call antivirus. This listview has checkboxes.

I have another listview with no check boxes on a form call resuls.

What I would like to do is when an item or items is checked, whatever is in the first column of the report listview on the antivirus form goes in the results listview on the resuls form. The same as the second column, I would like that repeated as well.

But the twist is if the user checks a problem and then presses the delete button. I would like the 3rd column of the results listview on the resuls form to say "Deleted" for that checked item.

OR if the user checks a problem and presses ignore then it would just say Ignored by the item in the 3rd column.


Can anyone tell me how I could do all that?

Thanks!

Need Help With Timers And Moving Things
I'm trying to use a timer that every time it refreshes, it will move the image up a little till a certian point then move it back this is the basic part if some one can answer this for me then i'll ask my next question.

Moving Things From A Listview To A Textbox?
Hey guys I have a listview called report and it has check boxes. I have another form called form2 with a text2.text.

Is there a way when I check one item and press a button that checked item goes in the text2 of the form2?

Its just the item from the first column of the report listivew.

Thanks!

Cool Things~Any Body Teach Me How To Control The Mouse Moving By Typing The X And Y?
I would like to know if anybody know how to controal over a mouse by using typing the x and y it will automatic go to the direction and i press cmdleft
button it will click on the define object and i press cmdright it will also will virtual what the mouse do with the right click.
x and y is the destination.

Link Tabs To Command Boxes Simultaneously Update Each Tabs Info
I have about 3 tabs with labels and corresponding text boxes for each tab. On the main part of the form, which is the part that doesn't change when i click on different tabs i have an import, modify, update button.
The import button imports information from Excel into each textbox for one tab but how do i get it to import to the other tabs at the same time?
the information that i need to import is in one file in one column but it needs to span through to 3 tabs. ( i don't want to put all the information from the 3 tabs into one tab.)

I've used a control array and a for next loop to import the info to tab 1 but how do i simultaneously update the other 2 tabs with the rest of the info from the file?

Code For Moving To The First Blank Cell In A Worksheet; Moving Left,right,up Or Down
I have created an application form as a userform in Excel. I need to send the data entered into my text boxes when the program runs to separate excel cells in a worksheet.

My problem is I can use code that will send the textbox entry to a specific cell eg. If my textbox is named Surname I can say

range("a5").value = surname but if I do that when I run the programme to enter the next record for someone else the first record will be overwritten.

I NEED A CODE LINE THAT WILL TAKE ME TO THE FIRST EMPTY CELL AND ALLOW ME TO MOVE DOWN OR TO THE LEFT OR TO THE RIGHT

Moving Balls To Moving Images??
Please take a look at this as it is related to my question
Thread

is it possible for the create images to be an image type that is already drawn?

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?

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?

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!

How Do U Log Things?
i use a plain txt file to log errors that may occur... could u use that?

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

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