Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.basic.visual.misc > #937

Re: Common Dialog Function

From "Mike Williams" <Mike@WhiskyAndCoke.com>
Newsgroups comp.lang.basic.visual.misc
Subject Re: Common Dialog Function
Date 2012-03-13 16:51 +0000
Organization A noiseless patient Spider
Message-ID <jjntt8$dbb$1@dont-email.me> (permalink)
References <ZFJ7r.7894$_N4.2103@newsfe07.ams2>

Show all headers | View raw


"Ivar" <ivar.ekstromer000@ntlworld.com> wrote in message 
news:ZFJ7r.7894$_N4.2103@newsfe07.ams2...
> My lil App (VB6) wants to import Excel or csv files
> Behind the Browse button is code based on AllAPI's
> GetOpenFileName All Works Well. However!
> Just can't get my head around making the windows _
> common dialog list multiple file types
> Can anyone supply a function where the common
> show open dialog can list xls, xlsx and csv files in it's
> names list.

You would normally use a short descriptive string followed by a Chr$(0) 
followed by the desired file extensions each separated by a semicolon and 
then a final Chr$(0), something like:

OFName.lpstrFilter = "Ivar Files (.xls .xlsx .csv)" & Chr$(0) & 
"*.xls;*.xlsx;*.csv" & Chr$(0)

> All the common dialog boxes called by my lil app are maximized and
> are full screen, even covers the task bar, This also applies to VB6
> dialog boxes such as Make Exe, Add New Form\Module\Class or
> save project As etc All the controls are the same size as they used
> to be (With The VB6 dialog boxes), but are all in the top left
> corner of the form.

Not sure what you've done there. Does this apply only when you run your 
program in the IDE and are the dialog boxes called by your app the correct 
size when run as a compiled exe? Also, does this problem persist even after 
you have restarted your machine?

Mike

Back to comp.lang.basic.visual.misc | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Common Dialog Function "Ivar" <ivar.ekstromer000@ntlworld.com> - 2012-03-13 15:26 +0000
  Re: Common Dialog Function "Mike Williams" <Mike@WhiskyAndCoke.com> - 2012-03-13 16:51 +0000
  Re: Common Dialog Function Deanna Earley <dee.earley@icode.co.uk> - 2012-03-13 16:58 +0000
    Re: Common Dialog Function Deanna Earley <dee.earley@icode.co.uk> - 2012-03-13 17:38 +0000
  Re: Common Dialog Function "Mike Williams" <Mike@WhiskyAndCoke.com> - 2012-03-13 17:41 +0000
    Re: Common Dialog Function "Bob Butler" <bob_butler@cox.invalid> - 2012-03-13 11:13 -0700
      Re: Common Dialog Function "Mike Williams" <Mike@WhiskyAndCoke.com> - 2012-03-13 20:31 +0000
        Re: Common Dialog Function "Bob Butler" <bob_butler@cox.invalid> - 2012-03-13 15:54 -0700
        Re: Common Dialog Function ralph <nt_consulting64@yahoo.net> - 2012-03-13 19:01 -0500
        Re: Common Dialog Function Deanna Earley <dee.earley@icode.co.uk> - 2012-03-14 10:03 +0000
          Re: Common Dialog Function "Mike Williams" <Mike@WhiskyAndCoke.com> - 2012-03-14 11:07 +0000
            Re: Common Dialog Function "Mike Williams" <Mike@WhiskyAndCoke.com> - 2012-03-14 11:28 +0000
          Re: Common Dialog Function "Bob Butler" <bob_butler@cox.invalid> - 2012-03-14 05:51 -0700
            Re: Common Dialog Function "Mike Williams" <Mike@WhiskyAndCoke.com> - 2012-03-14 13:46 +0000
              Re: Common Dialog Function "Bob Butler" <bob_butler@cox.invalid> - 2012-03-14 07:23 -0700
                Re: Common Dialog Function "Mike Williams" <Mike@WhiskyAndCoke.com> - 2012-03-14 15:10 +0000
                Re: Common Dialog Function "Bob Butler" <bob_butler@cox.invalid> - 2012-03-14 11:20 -0700
                Re: Common Dialog Function "Mike Williams" <Mike@WhiskyAndCoke.com> - 2012-03-14 18:46 +0000
          Re: Common Dialog Function ralph <nt_consulting64@yahoo.net> - 2012-03-14 08:22 -0500
  Re: Common Dialog Function BeeJ <nospam@spamnot.com> - 2012-03-13 11:24 -0800
  Re: Common Dialog Function "Ivar" <ivar.ekstromer000@ntlworld.com> - 2012-03-13 21:53 +0000

csiph-web