How can I include the control as a resource on the project?

PS: I'm using NSBasic/CE 7.0
--- In [email protected], "George Henne" <g...@...> wrote:
>
> Have you included the control as a resource in your project?
>
> I'll bet it is not on your device.
>
> >
> >
> >Thanks for the help, but now I'm getting errors when the program
launch.
> >My code is like this:
> >Option Explicit
> >ShowOKButton True
> >
> >AddObject "NSBasic.ComDlg","dialog",0,0,0,0
> >If Vartype(dialog)<>9 Then
> >   MsgBox "Common Dialog control not installed. Please check the
ReadMe
> >file's section on ""Install Device Components"" for more
information."
> >   Bye
> >End If
> >
> >Sub mnu_About_Click
> >  MsgBox "2bp Converter", NULL, "About..."
> >End Sub
> >
> >Sub CommandButton1_Click
> >  openDialog
> >End Sub
> >
> >Sub openDialog()
> >  dialog.DialogTitle = "Pick a BMP to Convert"
> >  dialog.InitDir = "\"
> >  dialog.Filter = "JPG|*.nsb"
> >  dialog.FilterIndex = 1
> >  dialog.Flags = &H1000 Or &H800 'path and file must exist
> >  dialog.filename = "" 'initialize
> >  'Generate error if cancel is pressed
> >  dialog.CancelError = True
> >  'On Error Resume Next
> >  dialog.ShowOpen
> >  'Determine action to take after dialog is dismissed
> >  If Err.Number = 0 Then
> >    txtFileName = dialog.filename
> >    MsgBox txtFileName                                  
'<-----------------
> >  ElseIf Err.Number = 32755 Then
> >    'The user canceled the dialog, so do nothing
> >    MsgBox "Canceled"                                   
'<-----------------
> >  Else
> >    MsgBox "Error in Common Dialog ShowOpen" & vbCrLf & vbCrLf & _
> >    Err.Number & ": " & Err.Description, vbCritical, "Common Dialog
ShowOpen"
> >  End If
> >  KillFocus
> >End Sub
> >And when I launch I get this:
> >
> >Best Regards.
> >
> >--- In [email protected], "michiman56" rriemersma@ wrote:
> >>
> >> You should find an example project CommonDlg.nsb in the NSBasic
Samples
> >\CE folder under your Documents (My Documents) folder. It uses
AddObject
> >I believe.
> >>
> >> --- In [email protected], "Nathan" eeepc904@ wrote:
> >> >
> >> > Hello,
> >> > I'm a Visual Basic devel oper and now I'm on the mobile platform
> >using NSBasic 7.0, but I have a question: How can I show a Open
Dialog,
> >because on VB I will add a CommonDialog control and do a
> >CommonDialog1.ShowOpen. On NSBasic I don't know how to include the
> >control at the form(because I can't see it on the Control Tab).
> >> >
> >> > Best Regards,
> >> > Nathan Paulino Campos
> >> >
> >>
> >
> >
> >
>

-- 
You received this message because you are subscribed to the Google Groups 
"nsb-ce" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nsb-ce?hl=en.

Reply via email to