0

hello guys, can any1 help with this error? i searh through all the website and i still cannot find a cure to it.

i have a picture and this is a form_load of it

Private Sub Form_Load()
    Picture1.FillColor = Form1.BackColor
    Picture1.FillStyle = 0
    prevX = 0
End Sub

and a RFID form_load

Private Sub Form_Load()
With MSComm1
'make sure the serial port is not open (by this program)
If .PortOpen Then .PortOpen = False
'set the active serial port
.CommPort = 3
'set the badurate,parity,databits,stopbits for the connection
.Settings = "9600,N,8,1"
'set the DRT and RTS flags
.DTREnable = True
.RTSEnable = True
'enable the oncomm event for every reveived character
.RThreshold = 1
'disable the oncomm event for send characters
.SThreshold = 0
'open the serial port
.PortOpen = True
End With 'MSComm1
With Text12
'set the properties for the displaying textbox
.BackColor = &HFFFF00
.Locked = True
.Text = ""
End With 'Text12
With Text13
'set the properties for the 'send' textbox
.BackColor = &HFFFF00
.TabIndex = 0
.Text = ""
End With 'Text13
With Command3
'set the properties for the 'send' command button
.Caption = "&Send"
.Default = True
.TabIndex = 1
End With 'Command1

End Sub

how can i let this 2 form load work together ? is there anyway to fix or combine it together ?
please help me guys!
Thanks !!

2
Contributors
5
Replies
8
Views
4 Years
Discussion Span
Last Post by Jx_Man
Featured Replies
  • 2

    Why you don't put it in one form_load? Make a procedure or function for each code and call it on form_load. [CODE]Private Sub waveform_picture_code () 'waveform picture code End Sub Private Sub rfid_code () 'rfid code End Sub Private Sub Form_Load() waveform_picture_code rfid_code End Sub[/CODE] Read More

0

What you mean two form load work together? these two from load are coming from same Form or different Form?

0

What you mean two form load work together? these two from load are coming from same Form or different Form?

i got this Complie error : Ambiguous name detected : Form_load
it says that i have 2 form load..
i tried to combine a waveform picture code and rfid code together..
can it be combine and work together without the Complie error : Ambiguous name detected : Form_load ?

2

Why you don't put it in one form_load?
Make a procedure or function for each code and call it on form_load.

Private Sub waveform_picture_code ()
  'waveform picture code
End Sub
Private Sub rfid_code ()
  'rfid code
End Sub
Private Sub Form_Load()
    waveform_picture_code
    rfid_code
End Sub
Votes + Comments
Good
useful and work!
0

Why you don't put it in one form_load?
Make a procedure or function for each code and call it on form_load.

Private Sub waveform_picture_code ()
  'waveform picture code
End Sub
Private Sub rfid_code ()
  'rfid code
End Sub
Private Sub Form_Load()
    waveform_picture_code
    rfid_code
End Sub

AHAHAHAHA!!!! it works!!! thanks you so much jx_man!!! u rocks!!!

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.