It's interesting that the VB syntax has the first column as 0 when VB is a one-based array language. Have you tried a 1 there instead for the 2nd parameter?
On Wed, Jun 1, 2022 at 7:55 PM Paul Newton <paul.newton.h...@gmail.com> wrote: > Hi > > It's a few years old now, but I have the Sky Software Shell Megapack > suite (V8) which contains the two (ActiveX) controls above as well as a > drive combo control. I have used these successfully in the past but > have run into a problem. The Fileview control has a Public Read-Write > Property ColumnWidth which, according to the help file, "Gets/Sets the > width of the column in pixels". The VB syntax in the help is: > > Public Property ColumnWidth(ByVal ColumnName As String, ByVal > ColumnIndex As Long) As Long > > ? MyFileView.ColumnWidth("Name",0) and ? > MyFileView.Object.ColumnWidth("Name",0) both work fine and return 120. > > Trying to set the column width as follows > > MyFileView.ColumnWidth("Name",0) = 240 gives "Function argument value, > type or count is invalid" > > and MyFileView.Object.ColumnWidth("Name",0) = 240 gives "Syntax error" > > Am I missing something (I have checked and there is no method or event > on the control which references ColumnWidth). > > Alternatively, can anybody suggest affordable (aka cheap, preferably > free) alternatives to these controls which are designed to closely mimic > the behaviour of Windows Explorer? > > Many thanks > > Paul Newton > > --- StripMime Report -- processed MIME parts --- > multipart/alternative > text/plain (text body -- kept) > text/html > --- > [excessive quoting removed by server] _______________________________________________ Post Messages to: ProFox@leafe.com Subscription Maintenance: https://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: https://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: https://leafe.com/archives This message: https://leafe.com/archives/byMID/CAAwxvUkKHeAPAf8f7cFE74JctydO6kr4jkUdc=q+kh5xzfr...@mail.gmail.com ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.