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




Stop Txt Moving


can any1 tell me how u stop txt that is in side a pic box moving ever thing u click in the box




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Pic Box, Object To Stop Moving
what im trying to do is make it so that i have one bit picture box and a pong design interface inside it(this is a final assignment im making a variation of pong) anywho what im trying to do(and tryed everything i've thought of) is to get it so that when you drag the padel down it cannot pass the line at the top or the bottom, and both these lines are drawn, not made at runtime. thanks for help

also after you hit the line you cannot go down or up further then the line, and you can continue moving inside the two lines

Trying To Stop A Form Moving
hi, i am making a program that has docking forms onto the main mdi form. I am trying to make it so that the forms can be docked and undocked. I have so far made a timer that keeps a form in its position all the time but when the user tries to drag the form it flashes and such and then returns to the position wheras i don't want it to move at all, is there any way i can subclass it to stop it moving?

How Do I Make A Shape Stop Moving?
I have a shape(Shape1) that you can move with the arrow keys....how do i make the Shape1 cease to move when a certain event happens, even though the arrow keys are still pressed?


thanks for any help!

ListView - Stop Icons Moving
Hi,
I'm using a listview control in the Icon mode, to display a control panel for my application. The only problem is that when a user clicks an icon, when you move the mouse it moves the icon as well.

Is there any way to stop the user moving the icon?

Stop Maximized Form From Moving
I am using a picturebox as a container to act as a mdiparent because only 1 midparent is allowed when I need 2. When I maximize a "child" form, the title bar is still visible which enable the user to move the max form. I get an error when I set moveable=false during runtime. Is there any way to stop the maxed form from moving? Thanks.

How Do I Stop Flickering In Moving Graphics?
I haven't dealt with graphics in vb before, but I know of a common graphics method to reduce/eliminate flicker in animations called double-buffering.

The flicker is caused from clearing the old frame before drawing the new one. To counter this problem you actually would have 2 picture boxes (or whatever you're using) the first one is the visible one that will display the animation. On the second buffer, you do the calculations for the next frame and place all the objects there, then once the frame is ready for display you change the image on the visible buffer to that of the second buffer.

Since I haven't done this in vb before I'm not to helpful in the code department, but hopefully you'll find this method usefull.

Trying To Stop Moving Past Last Record
I am writing a database with a number of tables with forms atttached to each table. I have placed navigation buttons on each form to move to first, last, next, previous. I have set up the code associated with the buttons as "public sub" so it is available for each form to use.

This was working OK except that when I used the NEXT button at the last record it would open a new blank record & keep opening a new blnak record on each click.

To over overcome this I put in an If statement to check if it had moved to a new record. To do this I used the following:

If Me!NewRecord Then ..... etc

Now I get an error "Invalid use of Me key word" I suspect it is because I am using ME in a public sub

How do I overcome the problem of moving passed the last record and still have the coding available to all forms?


The Code is below.

Thnaks for any help.


Public Sub Next_Record_Click()
On Error GoTo Err_Next_Record_Click

    DoCmd.GoToRecord , , acNext

If Me!NewRecord Then
    ' If new record move back to previous
    DoCmd.GoToRecord , , acNext
    ' Send message
    MsgBox "This is the last record", , "No More Records"
    
End If


Exit_Next_Record_Click:
    Exit Sub

Err_Next_Record_Click:
    MsgBox Err.Description
    Resume Exit_Next_Record_Click
    
End Sub

Stop User Moving The Chart Around In MsChart
VB6 SP6

I am using MsChart. I need to allow selections but when this is set to True users can click on the chart and move the plot area around the unplotted area.

Anybody know a way to avoid this

Thanks

Stop Item Dragging/moving In ListView
Is there any way you can stop the user from moving the item position in a listview?? I need them to stay the same as i added them first by code, with them being fixed for the user and not allowing any movement of item position!

thanks!

Stop A Moving Image Drawing Over Other Lines...
I have the following code which moves a little image control across the form, but what happens when it moves across slowly is it sort of half draws over lines that I have on the form....how can i get it so that it doesnt draw over the other lines and leaves them intact....so that it doesnt leave this kind of trail.....


VB Code:
Private Sub Timer1_Timer()If Image2.Left < 9240 Then Image2.Left = Image2.Left + 1'only move the picture one space over if it isnt alreadt at the desired locationEnd IfEnd Sub

How To Stop Cursor Keys Moving Focus ?
I am writing a program where an object can be moved round the screen.  I first did this using command buttons and then wanted to add the option of using the keyboard cursor keys.

KeyAscii and/or KeyCode worked for most keys but not the cursor keys which didn't seem to generate any events.  I got something working using an API call (GetAsyncKeyState).

The bit which still bugs me is that when the user presses the cursor keys, as well as moving the on-screen object, it also moves focus round the various command buttons.

Can anyone suggest how to stop this happening ?



Making A Label Stop Moving When It Hits A Certain Point[solved]
I have a long Label, it shows text, I want it to scroll slowly, but how do I make it stop at a certain point, If I do


VB Code:
Private Sub tmrAbout2_Timer()        DoEvents        LblAbout.Top = LblAbout.Top - 10        DoEventsIf LblAbout.Top <= 0 Then tmrAbout2.Enabled = FalseEnd Sub


Then it stops when the top of the label hits the top of the form/frame, I want it to scroll through the top of the frame, Its fine if I dont put an If then but it keeps going forever.

Stop Code From Moving On If "IF" Statements False [Solved]
hi, i want to verifi the first two boxes before it moves onto the rest of the code so if any of the first two if statements are false it doesnt move onto the rest of the code, any 1 have any ideas?

thx much appreachiated


Private Sub cmdcal_Click()

If cboCars = "" Then MsgBox "Error Msg Here"
If txtdays = "" Then MsgBox "Error Msg Here"

lbltotal = lblPrice * txtdays
lbldeposit = (lbltotal / 100) * 20
lblPay = lbltotal - lbldeposit

End Sub

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?

Stop Error? Or I Will Stop You!
Oh the title i just wanted to get your attention. it looks like it worked though.

So now to the real problem, How do you make an easy error handler for a for next loop that sets or reads the properties of controls. and it tries to read a "timer.width".

I don't want ot know a way to avoid the error just a way to handle it.

Regards
E.P.

Stop IE Until It's Done
Hi!
I made a web translator in VB. I capture IE events so when a website is opened and browsed I will get IE document.body.innerhtml translate it and the navigate "mydir ranslated.html"
The app works fine but I want to know if there is any way to do this:
The the user enters the url or clicks on an hyperlink I want to pause internet explorer, send the url clicked or entered to a webbrowser control in my app, navigate the url, get the html, translate it and then send the navigate command to the IE window. I know i can send the navigate command, i can get the clicked url, get the HTML, but i dont know how to pause IE or if it can be done...
Is there anyway to do this?
Tnx!

How Do I Stop This?
Hello! I have created the beginings of Wolf3D like Direct3D application.
So far so good. I have the basic level geometry code and the
visibility testing coded and I get an adverage of 49 FPS on my P3
550 MHz with a GeForce2 MX 400 and I was wondering..
Everything I am satisfied with everything so far but one thing.
Some video card drivers force the textures to be filtered.
How can I stop this? Thanks!

Using One Sub To Stop Another
Hi,
Can anyone tell me if this is even possible:

The best way I can illustrate my concept would be with a slot machine.

Let's say I wrote a sub so that when I click on a [Spin] button, my panel would start cycling images. The cycling takes place as a result of a For...Next Loop and I also would invoke the Sleep API so I can alter the speed at which it cycles.

Now under the panel I would have a seperate button that I would like to stop that single image from cycling in the middle of the loop.

Is this possible, and if so how would I approach it?

This isn't exactly what I am trying to do, but I have encountered this road block many times in the past. I would appreciate any thoughts on this topic. Thanks!

Run And Stop
http://www.xtremevbtalk.com/newt...newthread&f=7#
Confused
how to make a program that always looping.. and stoped if we press "stop" and can continue running again if we press "run"?
i would be thankfull if you can give me the coding.

I Can't Get It To STOP!!
Hey there, I'm having problems getting my program to end.

Here's the code:


Code:
Dim NextTorrent As Boolean
Private boComplete As Boolean
Private boState As Boolean
Dim FORCEquit As Boolean

Private Sub UploadMeganova()
If FORCEquit = True Then
Exit Sub
Else
On Error Resume Next
NextTorrent = False
If WebPageContains("The page cannot be found") = True Then
boComplete = True
Else
wb.Document.All("file").Click
wb.Document.All("name").Value = Title.Text
If Music.Value = True Then
wb.Document.All("cat").Value = "11"
End If
If Movie.Value = True Then
wb.Document.All("cat").Value = "34"
End If
If eBook.Value = True Then
wb.Document.All("cat").Value = "24"
End If
If Other.Value = True Then
wb.Document.All("cat").Value = "21"
End If
If TVShow.Value = True Then
wb.Document.All("cat").Value = "7"
End If
If Software.Value = True Then
wb.Document.All("cat").Value = "17"
End If
wb.Document.All("description").Value = Description.Text
wb.Document.All("submit").Click
End If
End If
End Sub

Private Sub Command1_Click()
FORCEquit = True
Unload Me
End Sub

Private Sub Form_Terminate()
FORCEquit = True
Unload Me
End Sub

Private Sub Form_Unload(Cancel As Integer)
FORCEquit = True
Unload Me
End Sub

Private Sub Start_Click()
Do Until FORCEquit = True
Start.Enabled = False
NextButton.Enabled = True
NextTorrent = False
boState = False
boComplete = False
wb.Navigate "http://www.mininova.org/upload"
Do Until boComplete = True Or FORCEquit = True
DoEvents
Loop
boComplete = False
Call UploadMiniNova
Do Until boComplete = True Or FORCEquit = True
DoEvents
Loop
boComplete = False


Loop
End Sub
For some weird reason, if the user exits out via the Command1 button, or if they exit out via the little x in the top right, the program still runs in the Processes window.

How can I have the program TERMINATE if they user exits the program?

I'm a bit confused.....

Stop Next N
I'm trying to paste only one time once Excel recognizes that it has found a blank cell. Then I want to compare date differences. How can I command it to ignore next n for this situation. Also, I realize 1 to 999 is not good paractice, any suggestion?

n = 1
For n = 1 To 999

Cells(n, 1).Select
If (Cells(n, 1)) = "" Then
Selection.PasteSpecial paste:=xlPasteValuesAndNumberFormats, Operation:= _
xlNone, SkipBlanks:=False, Transpose:=False

End If

Next n


If DateDiff("d", Cells(n, 5), Cells(n - 1, 5)) = 0 Then

Tab Stop
Tab Stop prevents that an object gets focus.
But, how to prevent the object lost its focus.
I have a text box, I want that when it gets focus by mouse, it does not lost its focus by pressing tab !
Is it possible ?

Stop Everything
Is there a way when A message box comes up that the only thing the user can do is click on the message box. I know that there is system modal, but the user can still do things even with this. I need something that will stop everything runing on the computer except what is needed to say answer message box.

Stop Ras From VB
Hi,

I want to be able to start and stop the remote access service from within a vb program.

Its a simple command in dos

net start RemoteAccess

How do I run this command in VB, is it possible to run the command at a certain time.

I`m using vb 6.0.

Thanks in advance.

jono

How To Stop
Code:
Private Sub Timer4_Timer()
SetCursorPos CLng(Text13.Text), CLng(Text14.Text)
mouse_event MOUSEEVENTF_LEFTDOWN Or MOUSEEVENTF_LEFTUP, 0&, 0&, cButt, dwEI
DoEvents
Sleep 1000
SetCursorPos CLng(Text13.Text), CLng(Text14.Text) - 60
mouse_event MOUSEEVENTF_LEFTDOWN Or MOUSEEVENTF_LEFTUP, 0&, 0&, cButt, dwEI
DoEvents
Dim TimeToWait As Single
TimeToWait = 300 + Timer ' 300 seconds
Do While Timer - TimeToWait <= 0
DoEvents
Loop
SetCursorPos CLng(Text13.Text), CLng(Text14.Text)
mouse_event MOUSEEVENTF_LEFTDOWN Or MOUSEEVENTF_LEFTUP, 0&, 0&, cButt, dwEI
DoEvents
Sleep 1000
SetCursorPos CLng(Text13.Text), CLng(Text14.Text) - 60
mouse_event MOUSEEVENTF_LEFTDOWN Or MOUSEEVENTF_LEFTUP, 0&, 0&, cButt, dwEI
DoEvents
TimeToWait = 20 + Timer ' 20 seconds
Do While Timer - TimeToWait <= 0
DoEvents
Loop
End Sub
How do i stop this timer. I tries timer4.enabled = False but it wont stop ot it will then it wont stop how would i stop it. Is there a stop loop control.

Stop Until Done
I have a script which restarts the computer after it has backupped my recent changed files.

But the computer isn't shuting down completely, it shows the "U can shutdown your computer now"screen. but i have tu press the shut down button manually.

the code i am using is :

Code:
Private Type LUID
UsedPart As Long
IgnoredForNowHigh32BitPart As Long
End Type

Private Type TOKEN_PRIVILEGES
PrivilegeCount As Long
TheLuid As LUID
Attributes As Long
End Type

Private Const EWX_SHUTDOWN As Long = 1
Private Const EWX_FORCE As Long = 4
Private Const EWX_REBOOT = 2

Private Declare Function ExitWindowsEx Lib "user32" (ByVal _
dwOptions As Long, ByVal dwReserved As Long) As Long

Private Declare Function GetCurrentProcess Lib "kernel32" () As Long
Private Declare Function OpenProcessToken Lib "advapi32" (ByVal _
ProcessHandle As Long, _
ByVal DesiredAccess As Long, TokenHandle As Long) As Long
Private Declare Function LookupPrivilegeValue Lib "advapi32" _
Alias "LookupPrivilegeValueA" _
(ByVal lpSystemName As String, ByVal lpName As String, lpLuid _
As LUID) As Long
Private Declare Function AdjustTokenPrivileges Lib "advapi32" _
(ByVal TokenHandle As Long, _
ByVal DisableAllPrivileges As Long, NewState As TOKEN_PRIVILEGES _
, ByVal BufferLength As Long, _
PreviousState As TOKEN_PRIVILEGES, ReturnLength As Long) As Long

Private Sub AdjustToken()
Const TOKEN_ADJUST_PRIVILEGES = &H20
Const TOKEN_QUERY = &H8
Const SE_PRIVILEGE_ENABLED = &H2
Dim hdlProcessHandle As Long
Dim hdlTokenHandle As Long
Dim tmpLuid As LUID
Dim tkp As TOKEN_PRIVILEGES
Dim tkpNewButIgnored As TOKEN_PRIVILEGES
Dim lBufferNeeded As Long

hdlProcessHandle = GetCurrentProcess()
OpenProcessToken hdlProcessHandle, (TOKEN_ADJUST_PRIVILEGES Or _
TOKEN_QUERY), hdlTokenHandle

' Get the LUID for shutdown privilege.
LookupPrivilegeValue "", "SeShutdownPrivilege", tmpLuid

tkp.PrivilegeCount = 1 ' One privilege to set
tkp.TheLuid = tmpLuid
tkp.Attributes = SE_PRIVILEGE_ENABLED

' Enable the shutdown privilege in the access token of this process.
AdjustTokenPrivileges hdlTokenHandle, False, _
tkp, Len(tkpNewButIgnored), tkpNewButIgnored, lBufferNeeded

End Sub

ExitWindowsEx (EWX_SHUTDOWN), &HFFFF

this is an standard windows api. why o why?

Stop
I am in the middle of creating a program and I hit the play button to try it out, my code containts a msgbox and it keeps popping up, when i press ok another one comes. How can i stop running my program?

Thx

Im not asking for help with my code, just the keyboard shortcut to stop


CTRL + ALT + BREAK

How To Stop Vb6.exe
hey how do you stop the exe file at run time? i have an exit button with unload me as the code but all it does is closes and it never really stops. is there like a system.close for vb?

Stop When Value = ?
Is there a way to make the code stop when a variable goes say to -88000. I need to find out where it is going deep into the negatives and there are so many goto statements im lost in the forest. (im translating a government fortran program to vb (goto was the thing back then) and the translater program didnt think to remove them. How kind right?) So my value has a general range of 9600ish and then all of a sudden goes to -88000 and I cant find where it does this.

Is there some kind of neat trick you can do to zoom to the code that makes a variable change past a certain number? The break points only work so well, b/c the variables switch names several times so im slowing tracking down how it changes to -88000. Any help would be incredibly appreciated.

Tab Stop
I have a screen with a lot of stuff on it. Grids, frames, tabs, etc. I'm trying to turn off all the tab stops except one. I was able to get all of them off except the one I want off and one other one I can't seem to find.

Is there a easier way to find what is still on? Thanks!

Stop.
hey, how do you stop a module from carrying on? in my form load i run many private subs, but i want it to stop it from running the next one if something is not correct with the first

Get PID And Stop App
I've been trying to see how I can close down a app safetly.

I know that I've got to get the PID of the app and then stop.

Anyone got any ideas for this?

Thanks

Net Stop
Hi there,im working on a project like a tweak and it will be doin a number of things enable/disbleing stuff!,and i want to know how to disble xp firewall with net stop this command wont work shell net stop "Internet Connection Firewall (ICF) / Internet Connection Sharing (ICS)"

any way around it to disble the firewall and enable,thanks

*ps you could pm me and tell me to stop its from misc use but thats up to you thanks*

Stop Asking Me MS!
Im using VB with Excel object model to interface with some excel files...A lot of times I make changes to the excel file via the vb gui . And then I simply use the excel object:
objExcel.Save
objExcel.Close...
etc

To save and close the object...but windows always asks me if I want to overwrite the previous file. Is there any way to suppress that so that it just overwrites?

Jon

Is There Some Way To Stop This????
When writing programs to go through the MAPI, specifically when sending an email, is there a way to stop the whole "a program is trying to send an email, should it be allowed?" thing that Microsoft goes through?

It's very annoying!!! My application works, and sends me the data that I need, but I get all of these windows popping up asking me for this and that.

Thanks all,

10kman

How Can I Stop This?
I am still trying to do that slot machine type game. I have everything down except... everytime the money goes up 1... it goes back down on the next click, here is my code:

Private Sub Command1_Click()
Dim money
money = 1
Text1.Text = Int(Rnd * 3)
Text2.Text = Int(Rnd * 3)
Text3.Text = Int(Rnd * 3)
text4.Text = money

If Text3 = Text1 And Text2 = Text1 And Text3 = Text2 Then money = money + 1
text4.Text = money
End Sub

I don't know whats wrong, please tell me.

Stop / Run
You know how you can use Stop to stop the application at specific code. Well how do I get it to re-run (programatically, i.e. User doesn't have to use F5 or play icon)?

To Stop A My VB App?
Hi guys

I would like to know.. How do I stop my VB App.

I know u can use the unload me , or even END command.

But I only have one form doing a SQL query, but when I enter
Unload me it doesn't quit the app.

I have to use END.

What is wrong? Why doesn't my app end if I use Unload Me?

Thanks

Stop App
He everyone,

Is there a way to complete stop a application. Every Event must be stopped (if possible).

I kind of emergency brake...

Grtz,

Bloged

Stop Them
How can I stop people resixing my forms??


Regards

Matt

How Can I Stop...
how can i stop a javascript from loading in a webbrowser. I know the scripts name and url. can i make it so that script never loads ?

ASP.STOP?
I'm trying to understand some codes which some genius left. Then I found words -" ASP.STOP" and " ASP.Navigate". Does anyone know about those? Is "ASP" a method? or a component? or is it an original thing?

I cheked MSDN libraly, but couldn't find those.

Please help.

Stop Sub
Hey I have a program and a sub that restarts the computer but now i want to beable to stop it by pressing F1. please help this newbie

Stop
Is there any way to stop a button's action once it has started? Thanks.

Stop The Sub
how can i stop the sub() if certain condition appears?
ex:
sub trying()
<>
<>
if [condition] then
stop? end sub? help!
end if
<>
<>
<>
end sub

Stop One Sub From Another?
Hi List

I startet two Subs. One of these Subs should stop the ohter Sub when a special sittuation exist.
How can I do that.

I tried it with

Sub firstsub()
code..
Exit Sub secondsub
End


but it doesn't work

any idea?

macloy

Stop-clock
Hi, im trying to make an analogue stop-clock, but i have no idea how to do the orientations for it. I just want to click a command button and one hand on the clock face turns for 60 seconds.

Any help is appreciated, thank you

Stop Minimizing
Hi,
i need to block users of my software from minimizing it (it has no border and it is full-screen), switching to another program via alt-tab or launching the start menu via the windows key. Is it possible?

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