commondialog VB 6.0

I need help in VB

Page 1 of 1

4 Replies - 1463 Views - Last Post: 17 October 2010 - 07:10 PM Rate Topic: -----

#1 gdatay  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 8
  • Joined: 06-October 10

commondialog VB 6.0

Posted 13 October 2010 - 01:17 AM

i need help... i would like to open the ftp files once they input the id number at text1 any one can help me with this?


Private Sub ReadTemplate_Click()
Dim blob() As Byte

CommonDialog1.Filter = "Fingerprint Template File|*.ftp"

CommonDialog1.InitDir = App.Path & "\SpeaknSmile\fingerprint\"
Open CommonDialog1.FileName = CommonDialog1.InitDir + (Text1.Text + ".ftp") For Binary As #1
ReDim blob(LOF(1))
Get #1, , blob()
Close #1

If Templ Is Nothing Then Set Templ = New DPFPTemplate

Templ.Deserialize blob

End Sub

Is This A Good Question/Topic? 0
  • +

Replies To: commondialog VB 6.0

#2 thava  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 172
  • View blog
  • Posts: 1,560
  • Joined: 17-April 07

Re: commondialog VB 6.0

Posted 13 October 2010 - 07:37 AM

please post your problem clearly, then only we can help you
Was This Post Helpful? 0
  • +
  • -

#3 gdatay  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 8
  • Joined: 06-October 10

Re: commondialog VB 6.0

Posted 14 October 2010 - 01:26 AM

View Postthava, on 13 October 2010 - 06:37 AM, said:

please post your problem clearly, then only we can help you


i would like to open the ftp or bmp file without using commondialog in vb how can i do it?
Was This Post Helpful? 0
  • +
  • -

#4 Somyagupta  Icon User is offline

  • D.I.C Head

Reputation: 6
  • View blog
  • Posts: 85
  • Joined: 05-August 10

Re: commondialog VB 6.0

Posted 14 October 2010 - 06:56 AM

From what I understand, you want to take the file name provided in the textbox by the user and open the file without using the commondialog.

Well you can directly open the file using the open command
Dim variable1 As String
Open Text1.text For Input As #1
Input #1, variable1 


But in this case you have to ask user to provide the complete file path. Or you can just keep all the related files that need to be opened within the project folder and say something like:

Dim variable1 As String
dim variable2 as string
variable2=App.Path & Text1.text
Open variable2 For Input As #1
Input #1, variable1


Hope this help you.
Was This Post Helpful? 1
  • +
  • -

#5 gdatay  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 8
  • Joined: 06-October 10

Re: commondialog VB 6.0

Posted 17 October 2010 - 07:10 PM

View PostSomyagupta, on 14 October 2010 - 05:56 AM, said:

From what I understand, you want to take the file name provided in the textbox by the user and open the file without using the commondialog.

Well you can directly open the file using the open command
Dim variable1 As String
Open Text1.text For Input As #1
Input #1, variable1 


But in this case you have to ask user to provide the complete file path. Or you can just keep all the related files that need to be opened within the project folder and say something like:

Dim variable1 As String
dim variable2 as string
variable2=App.Path & Text1.text
Open variable2 For Input As #1
Input #1, variable1


Hope this help you.



thank you so much.
i just make some changes and it works fine...
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1