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




Sending Shape To Back During Run Time?!


In my program, when an option button is clicked, a shape is drawn and a lable goes ontop of it. When I desighn the form, I can set the label to transparent background, and all you see is the text and the shape behind it. In my code however, when I try to get the same effect, it doesn't show the text, no matter if I put the text on the from first, or after I draw the shape, all you see is the shape. I need help please, any would be great!




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Moving Shape Back And Forth
For some reason I am not getting this today. I need my shape to move left + 12 then when it reaches 3756 move backwards. Here is the code I have so far what am I missing?

[vb]
Private Sub Timer1_Timer()

S_Ball.Left = S_Ball.Left + 12

If S_Ball.Left >= 3756 Then
     Do Until S_Ball.Left = 12
          S_Ball.Left = S_Ball.Left - 12
     Loop
End If

End Sub
[/vb]

Sending To Back?
Im new to this and tring to get my head around somethings, ive noticed that images stack on top of each other in order that you add them to the form, is there a way to send an image to the back of the form so a previous image will show up ontop of it?

Sending Data Back And Forth With Php
Does anyone have a clue as to how I could send data between a VB program and a PHP script. I have an idea about the PHP script but I dont know how to send and recieve data from the web into VB.

Sending Back And Forth To Forum
Hi. I've recently been working on a program that supports a forum. It does a load of stuff to help users there. Anyway, it was put to me about pulling off the following situation.

A user hits Reply to Thread on the internet. On that page is the usual post screen, along with a link that opens up my program. In my program they can type up their post, do markup validation and preview or whatever they like. Then, they would hit a button which would send the post content back to the original Reply to Thread screen, so they can happily hit Send knowing everything is OK.

I'm not asking for a full explaination, just some direction on what I might need to use, and specifically the location of some FAQs that I could read up to learn more about this stuff.

I've never done anything involving the internet with vb, so be kind.

Sending Active-X To The Back
I am using an active-x control on a form and want to put a shape control on top. Is there anyway to send an active-x to the back? Zorder and right-click / send-to-back do not work with active-x controls.

Thank You
Ron Robertson

Sending All Command Buttons On Top To Back
I have a form with command buttons on top of each other. When a user presses a button, I would like each command button on top of another to be sent to the back. I have to use for each statements becuase the total number of command buttons is unknown, as the user can move stuff around and put stuff on top of other buttons. I tried a bunch of things with zOrder, but nothing seems to work. Anyone with a basic idea of how to do this please help! Thanks in advance!

CGI Programs - Sending Back Pictures
I'm using CGI4VB.bas by Kevin O'brien to make a kind of custom indexing page for a folder.

I'm using
Code:
Dim bytArr() As Byte
bytArr = LoadResData(101, "CUSTOM")
to load a gif picture from a RES file into a byte array and then I want to send it back to the browser with the "SendB" function in the above-mentioned module...how?

------------------
Matthew Ralston
E-Mail: m.ralston@mediavault.co.uk
ICQ:31422892
Web Sites:The Blue Link My Home Page (Not up at the moment!)


[This message has been edited by matthewralston (edited 01-10-2000).]

Sending A Response Back To ASP Listener
I'm writing an app that will send a response back to the ASP listener page for the XML file that it sent to me earlier. Does anyone know how to do that?


enigmaos@yahoo.com

DHTML App; Sending File Back To Server
Hi there,
I've created a DHTML app (an application) whose *.dll is going to output all the values from the fields of the webpage to a comma-delimited text file.

I have a module handling all the writing of the text file...my only problem is I don't understand enough to get the text file to write back to the server. I've gotten it to write locally to the end-users machine but I need to text file back on the server.

I'd use ASP for somthing like this but management is insistent on using DHTML with a VB backend.

Any ideas?

Thanks
stew

Operating Two Forms Simultaneously Without Sending Back Any Form
Hi

I have two forms in my VB project. I am loading second form on a commad click of first form which is loaded. Now i should be able to switch ovr from one form to another form without unloading or hiding any form. Wen i am clicking on second form the and then first form the second formis going back. I cant disable the form since i got to acess simultaneousy. Like property form.
Any body help me out this



thnx in advance
Prakash Menon
Get more from the Web. FREE MSN Explorer download : http://explorer.ms.com

Converting A Picture To Binairi For Sending Throuhg Winsocket And Back
how to do the converting part? :S and back again?

Creating A Shape During Run Time
Well, i need to be able to create a shape when i click on a command button, the shape is = to my mouse and y co-ordinates until i click then the shape will be placed or "dropped" there. this needs to be a dynamic array as I'm not sure how many shapes i will be using, is this even possible?

In VB6, Can A Shape Have 2 Colors At The Same Time ?
In VB6, is it possible to have to colors at the same time (ie half black, half white), or some other proportion of 2 colors ?




thanks

Adding A Shape At Run Time(resolved Twice Thnx Penagate)
Hey All,
I've been out of VB6 for sometime now and seem to have a need to relearn it
Anyway, I need to create shapre at runtime and set their properties, then assign the new shape to a member of a structure. Something like this


VB Code:
dim NewShape as Shapewith NewShape      .Shape =             .left =       .right = end with MyStructure.Shape = NewShape

Any help?
thanks
kevin

How To Make VB Go Back In Time??
When in debug mode, and stepping through the code line by line, how do you make it go back up a line please?

I saw this used by an instructer in a course, but can't remember what he did!

Cheers!

Paul.

How Do I Set The Time Back To Midnight?
I am writing some SQL scripts in SQL SERVER7.

Having used Oracle PL/SQL for my entire career, I am in the process of having to learn quickly.

I've done okay, but I can't figure out how to set the time component of a datetime to midnight (that would be 00:00:00.00 right?).

What I want to do is specify a date (for example GETDATE() or GETDATE() - 1), BUT I need the time to be midnight so that I can then add or subtract time from there.

Can someone write me a sample line that I could try out.

I'm really at my wits end......

Thanks,
dina

Back Ground Change On Run Time
Mambo vipi jamani? I've a image component of my form, what i want to do is, be able to change the background while the form is on run time. If possible, using a commondialog box to open the image files(.jpg, bitmap and all suported files.)

How Can I Save In Run Time Back To Access?
hola gurus

i have my program working now:
got the form + an ado connection to open
the user can pick something from datacombo1 - that filters datacombo2
then pick from datacombo2 - that filters the datagrid
the correct fields are displayed on the datagrid

i've switched all the edit commands on for the datagrid + the user can change cell values at run time.
i dont know how to save them in run time back into the database though.
the program uses the cell values for calculations and if these are not updated then there's no point in having a datagrid!
i have an "ok" command button on my form for when the user is done editing the cell values... does anyone know how to save the edited information back into access? (i have only two tables on my database but they are related, if that has anything to do with anything)

thanx a bunch

- stacey xx

Converting Double Back To Time Format
Hi I would like to find out how i can convert a double back to time format. I know how to convert time to a double.
When i convert 01:00 to a double it gives me this answer: 4.16666666666667E-02 When i try to reverse it suddenly a 01:00 becomes a 01:10

The formula i use to convert the time is
((Hours * 3600) + (Minutes * 60)) / 86400

pleas help?!?

How Can I Clear All Val. In A Form So Next Time It Opens All Values Are Set Back To 0
I have an order screen that is on a from but I want it to be able to close after an order is taken and when it opens back up to have everything cleared and set back to 0 or "".

I know I can do that by doing a form.hide and form.show and setting all my textbox's back to "" and clearing my listboxes...
But I was hoping there would be any easy or better way to do this since I have about 30 things in it that will need to be cleared...

It's an MDI Child fom if that helps called frmOrder

Is There A Way I Can Time A DesignMode Session, To Revert Back To NORM, In 5 Minutes?
Is there away that I can execute a timer when I switch to the design mode and have the timer set for 5 minutes to revert back to the regular Mode? I'm going to have the macro attached to a tool bar button. I've written such a code before, but can't find it. I remember how to do most all of that, including switching back to normal mode, but I NEED THE CODE, to switch to Design Mode.. My way of getting back to norm, is not real pretty, to think about, but it works just fine. - As I said, I just need to know how to get in, with code. - It is fine with me, to switch to the design Mode, with the DesignMode tool bar button, if you know of a way to have a timed return to normal, that is triggered by that action. I know how to run a timer as a seperate action, that will revert me back, but the problem with that is, I might forget to trigger that proceedure, as I won't be forced to.

The resaon that I need this, is so when I make a quick code modification to a users workstation, I won't have the possibility of getting caught in a DOWN MODE, cued by me forgeting to switch back to the normal mode. - instructing my user's on how to, is not full proof, as a few tend to forget how, and end up loosing considerable time with their tasks. (stuck in a mode(ha, ha) of being too embarrassed to ask for help.

Thanks from: TboltFrank, for any and all Knowledge and/or ideas(-:

Form "sending To Back" Without Me Telling It To
I have a problem I can't figure out. Sometimes when I click certain buttons, all of a sudden the form I am working on will be sent to the back of all other programs on the screen. I don't even know the function to do this, so I doubt I'm specifically telling it to do this. Any idea why a form would lose the focus/be sent to the back without telling it to?

Thanks,
Dallin

Form "Sending To Back" Without Me Telling It To
I have a problem I can't figure out. Sometimes when I click certain buttons, all of a sudden the form I am working on will be sent to the back of all other programs on the screen. I don't even know the function to do this, so I doubt I'm specifically telling it to do this. Any idea why a form would lose the focus/be sent to the back without telling it to?

Thanks,
Dallin

Shape Objects Orbiting Around Single Shape Object
Im trying to create a program that has many circle shape controls that orbit around a single circle shape (Sun), im trying to create our solar system using BitBlt, i just need to know how to generate the shapes to orbit around 1 shape, all help would be appreciated - Cheers

How To Stop The Shape From Flickering(A Shape Control Is Used)
Hello Every1,
I have a peuliar problem for u guys. Follow closely the code given below......

Dim x1 As Single, y1 As Single
Dim draw As Boolean
Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
x1 = X
y1 = Y
draw = True
End Sub

Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
If draw = True Then
Shape1.Left = x1
Shape1.Top = y1
Shape1.Width = X - x1
Shape1.Height = Y - y1
End If
End Sub

Private Sub Form_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
draw = False
End Sub

The shape sizes according to our mouse, the only problem is the shape flickers. Can any1 stop that flickering. I'll be really happy if any1 can do it for me. Thank u...

PS: I have tried changing the AutoRedraw & ClipControl options on & off. They dont help...

How Can I Change My Form Shape To Custom Shape
How Can I Change My Form's Shape To Custom Shape when This Shape Is Not Circle,Rectangle Or Othere Standard Shape
For Example One Shape Like "Wndows Media Player XP" When Mouse Is Not On It

please Help Me And Send Answer To This email
Banifatemi@Nicico.com

Sending A Time Expression In Sql
I get a syntax error on this sql statment:

Quote:




MyConn.Execute "Update in_state set departure_time='" & Text1.Text & "' and ticket_price=" & CInt(Text2.Text) & " where flightID=" & CInt(f_num) & ""




Text1.text is a time expression (for example - 13:30) and I am trying to send it to a date ime field in MS Access

Sending Date And Time To Registry
Hi,

I was wondering if anyone knew where I could find a tutorial on how to Send the date and time to the registry and then everytime the program opens to read it again. This would be used as if I am making a Trial program and after 30 days it stops working. If anyone knows how to do this could you please post it. Thanks

Wes

Making A Server; Sending On Time??
Ok, I am making a server, and I want to PING a client every 5 minutes if they havnt already send data witin that time frame. I have 300 set as seconds to send because 300 seconds is 5 minutes. The code I'm about to paste below doesnt work right. I had it almost working and then I let my friend mess with it and he added a listbox (which I dont want there). Anywyas, this only sends PING after like 4 and a half minutes, not 5, the timer interval's are 1000 and there is also a Timepout timer there to close the connection if the client doesnt respond to PING.






Code:
Private Sub tmrPing_Timer()
On Error GoTo EndError
Dim intCount&

For intCount = 1 To wsk.ubound
List1.Text = intCount
If List1.ListIndex <> -1 Then GoTo EndError

If Val(Format(Now, "MMDDYYHHMMSS")) - Val(wsk(intCount).Tag) >= 300 Then

List1.AddItem intCount
wsk(intCount).SendData "PING" & strPacketEnder
AddToLog "Server sent PING To " & wsk(intCount).RemoteHostIP
End If
EndError:
Next intCount

End Sub

Private Sub tmrTimeout_Timer()
On Error GoTo EndError
Dim intCount As Integer
For intCount = 1 To wsk.ubound
If Val(Format(Now, "MMDDYYHHMMSS")) - Val(wsk(intCount).Tag) >= 360 Then
wsk(intCount).Close
AddToLog wsk(intCount).RemoteHostIP & " has timed out. Socket closed"
Unload wsk(intCount)
Else
End If
EndError:
Next intCount
End Sub




And this is where I remove from list if data is recieved (I still dont like my friends lsit idea, I think it cna be done with just the wsk's tag):


Code:
List1.Text = Index
List1.RemoveItem List1.ListIndex
wsk(Index).Tag = Format(Now, "MMDDYYHHMMSS")

Set A Time Out On Sending A Message (Resolved)
Hi all,

I have some code that sends messages over the network for me. It works great but when it trys to send a message to a computer not on the lan it hangs for a couple of mins. Is there a way I can get it to only look for that pc for a set time?For example about 5 seconds. The code is below.

Code:
Public Function BroadcastMessage() As Boolean
'sends instant message and returns if sent or not
   Dim yToName() As Byte
   Dim yFromName() As Byte
   Dim yMsg() As Byte
   Dim l As Long

   yToName = Recipient & vbNullChar
   yFromName = vbNullChar
   yMsg = StrMessage & vbNullChar

   If NetMessageBufferSend(ByVal 0&, yToName(0), ByVal 0&, _
        yMsg(0), UBound(yMsg)) = NERR_Success Then
  
     BroadcastMessage = True

   End If

End Function

'Requests message to be sent
Private Sub SndMsg()
   Dim x As Boolean

   x = BroadcastMessage
   If x Then
      'MsgBox "Message Sent"
      MessageSent = True
   Else
      'MsgBox "Message Not Sent"
      MessageSent = False
   End If

End Sub


Thanks,

Ben



Edited by - Ben Lee on 6/28/2005 6:18:26 PM

Sending Fax Run Time Error 5663
i have used this link
sending fax on vbcity
to send a fax
when i tried it i got a message error
Quote:run time error 5663 microsoft mail local fax not installed
i am trying it out on winxp+office 2003+the fax service is installed (i have the fxscom.dll on the pc)
where can be the problem?
thansk i nadvance
peleg

Israel - the best place to live in after heaven, but no one want's to go there so fast.

http://www.networked-toys.com/
http://www.nirlat.com/home_page.asp

Network Game, Real Time Sending
How do I send the "REAL" (possibly a time since the game was loaded) time that an event is triggered over an LAN network so as to update a score and see who triggered the event first?

Game Explaination:
A circle image shows on screen, the one to click it first wins a point. Sad, yes, but it is my first network game and I don't want it to be complicated.

Shed Some Light - I Will Give You A Whack On The Back, I Mean A Pat On The Back.
I was about to edit one of my posting but it said tread has been close. Anyone knows why?

Sending File Chunks And Chat Messages At The Same Time
Hi,

Is it possible to send file chunks and chat messages at the same time over a single winsock connection?

I was thinking that I could add a specific label before each file chunk or chat message before it is sent, so the receiving program could use the split function to get the label and determine what to do with the data depending on the label. For example, a file chunk would look like "CHUNK" & "|" & chunk. While a chat message would look like "MESSAGE" & "|" & strMessage. While a program is repeatedly sending file chunks to another computer, how would I send a chat message string in between the time a chunk isn't being sent?

Are there any other methods of sending file chunks and chat messages at the same time over a single winsock connection?

Sending Update For Time Field To Access 2000
Hi

I have a database in Access 2000 that has a field for hour (type is Date/Time). When I read this field, all is well but when I try to update a line or to enter a new line, the field gets the time 00:00. Even if I don't change anything, it still happens. This field is defined as DateTime in the dataset table and as DBDate in the Update command that was created automatically by the wizard.

If you have any idea, please help

Alon

 

Making A Shape Follow A Shape
how can i make a shape follow another shape like it's exect path?

Back To Back Dependent Stored Procedures
I have two stored procedures that save data from an online credit application to a SQL Server 2000 database. The first procedure saves basic application data to an application table and outputs the application ID. The second procedure uses the resulting application ID and saves applicant data to an applicant table. I am using two tables since any one application can have two applicants (i.e., primary and co-applicant). The applicant table is the "many" relationship to the application table's "one" relationship.

The VB.Net code that I use to call the stored procedures is as follows (note: this is after I have set up the database connection and all the parameters, etc.):

' Execute the first stored procedure to save application data to the application table.

cmdApplication.ExecuteNonQuery()

' Obtain application ID from above stored procedure (paramAppID) and fill a declared temporary variable (tmpAppID).

tmpAppID = CInt(paramAppID.Value)

' Use the tmpAppID variable as the application ID for the second stored procedure.

Dim paramAppID2 As New SqlParameter("@AppID",SqlDbType.Int, 4)
paramAppID2.Value = tmpAppID
cmdApplicant.Parameters.Add(paramAppID2)

' Execute the second stored procedure to save the applicant data to the applicant table.

cmdApplicant.ExecuteNonQuery()

' Close the database connection.

conApplicaiton.Close()


If there is a problem saving data to either the application table or the applicant table, I want the entire transaction rolled back (as though it were never done).

************
Given the above scenario, what is the best method for rolling back the transaction upon failure? Please provide an example. Thank you in advance.

************

Note: I have seen the VB.Net "Try..Catch" method. However, I am not sure of how to rollback the transaction upon failure.


Game Over, Man!

Playing Mpg/avi Files Back To Back Seamlessly
Can anyone please tell me how I can play mpg (or avi it doesn't matter)
files in VB and also how to play two different mpg files one after the other
seamlessly so you can't see the join?

I want to create lots of animations in mpg or avi format of a spinning coin.
The coin will have a number from 0 to 9 on the face. As the coin spins it
will show a different number each time a face is presented to the viewer. I
am going to do this by creating little animations in Cinema 4D then use VB
as a random number generator and have the program select random numbers and
spin the coins to show a different random number from 0 to 9 each time it
goes around. Obviously as I will have 10 mpg files, each one an animation of
a spinning coin with numbers 0 to 9 on them I will need to play each one,
one after the other, without there being any delay in-between each file.

Can anyone tell me how this can be done, or if indeed there is another
solution?

Thanks,

Mike

Printing Report Back To Back
Hello,


   I use VB 6 and Crystal Reports 8.0. nad SQL 2K.

    I need to print pages from 1 to 50 on back to back, i,e., page1 on the front and page 2 on the back of page1 and page3 on the front page 4 on the back of page 3 ,so on.

   The printer is capable of print int back to back. Is there any specific coding in VB for doing this.
  
Thanks.
    

Shape-Shape Collision
It's been almost a full year since i last worked in vb and am i having difficulty with the collision of my ball with the blocks (both of which are shapes) in a breakaway style game.

my blocks are contained in a control array, and i tried placing my collision detection in side a For...Next loop. but my problem is getting it to detect which side it hit, so it knows which way to bounce off.

Anyone got any ideas?

"Send To Back" Or "Bring To Front" In Run Time
Hi,

i would like to know how to send to back or bring to front a frame in run time.

Thanks in advance.

Sending Image Over Winsocket Without Saving File.. (sending Directly)
I am trying to send images of the desktop to a remote computer for a while now... i managed to do it with bmp format but that is just to big.. i tried jpg but still isnt really fast.. is there anyway to send a part of the image without even saving the image?

i tried sending through a long value but can't seem to set the other picture to the long i recieved :S




btw i tried searching the board with no codes nor results answering my question :S

I Want My Data Back Data Back Data Back, Ribs.
The program i'm making is a data entry tool for a database. I want to be able to have about 30 fields that are textboxs that the user enters data into and then the click on a big pretty generate button and *poof the data appends to the database. I'm tinkering around with liking to an access database i've made and i have my text boxs set with the following features:


for the textbox called ' tester
DataField Tester
DataSource Adodc1

And of course i have adodc1 set to my database with a connection string. And i'm made sure that the text box isn't locked. It seems to me that the textbox is displaying data from the database. And all i want it to do is input from the user for appending to the database. Anybody know how to fix this?

How To Convert My GMT Time To U.S.Central Time And Daylight Saving Time
How to convert my GMT date and time to Central Standard and Daylight Saving Time.

For example I have GMT Time as:

02/29/2004 1:00:00 AM

I want as:
02/28/2004 8:00:00 PM

When I give date aswhich is falling under daylight saving time)
04/08/2004 1:00:00 AM

I want to get as 04/07/2004 9:00:00 PM

How to do that and how to determine wheather it is falling under daylight or standard time.
It should not do based on my Computer date and time though. If it is then it is going
to calculate everything based on daylight saving time because right now I'm under daylight
saving time.

I appreciate your help.

Thanks
VM

Shape Help
I have a shape sitting on a form. This form has an image completely covering it. I put the form and when I double cick the shape to enter into the code, it brings me to the general declarations section or the current form.....and if I manually type in
Private sub Shape1_click()
then put the code I want in there, nothing happens.
I think this is becuase of the picture on the form but im not sure

Shape
I've downloaded a worksheet with some cells containing shapes that choose options. I need to put a valid data (such as "Y" from YES) in the same cell where the shape appears to be able to import the worksheet to MS Access. It's not possible to replace the shape with "Y" in Excel because the replace command only works with data, not with shapes.
Any help with VBA or something else?
Thanks a lot
Renato

Shape
Hello
I can't use SHAPE to create my adodb.recorset cause it says that Select, DElete, Procedure, INsert or UPdate is nedded ...

Why!?

Need Help With SHAPE SQL
I have 2 tables(.mdb) - parent & child connected by Ado.RecordSource=SHAPE SQL. I need to retrieve specific records from the child-table so that parent-table changes as well. I tried to do it by WHERE command but changes don't apply to Parent-table. What is the problem? I'm pretty much a beginner in SQL

Ìîé SQL statement:
datPrimaryRS.RecordSource = "SHAPE {select * from A Order by City ASC} AS ParentCMD APPEND ({select * from B Order by Year} AS ChildCMD RELATE dddID TO dddID) AS ChildCMD"

(I work with VB6 & Access97)

Thanks

Dmitry

Shape - Qry
Hello,
I'm working with ADODB.recordset.
I use a Qry, with Shape command in order to have hierarchy recordset.
I wish to knonw if i can slide the fields:
If i use something like

for i = 1 to MyRecordset.fields.count
MyRecordset.fields(i-1).name
next

it works only for the first level of hierarchy, so how can i read the other fields?

thenks!

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