473,387 Members | 1,798 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Wierd CommonDialog MultiSelect problem.

It works normally with one or a small number of files selected, but if I
try to select a lot (have't nailed down the exact number yet) I get
something like this:
C:\Program Files\Dink Smallwood\Junk\STORY\À”ü¿4Ž
That is, the correct path, but instead of the files names, just a small
blob of garbage.

Any ideas? (fixes, workarounds, or guesses on why it's doing this.)

--
As you become a more powerful and subtle programmer,
your errors, too, will become more powerful and subtle.
-- Mitchell Waite & Stephen Prata, New C Primer Plus.
Jul 17 '05 #1
4 3347

"ManaUser" <ma************@earthlink.net> wrote in message
news:3F***************@earthlink.net...
It works normally with one or a small number of files selected, but if I
try to select a lot (have't nailed down the exact number yet) I get
something like this:
C:\Program Files\Dink Smallwood\Junk\STORY\À"ü¿4Z
That is, the correct path, but instead of the files names, just a small
blob of garbage.

Any ideas? (fixes, workarounds, or guesses on why it's doing this.)


Make sure you DIM the string to hold the file name and not restrict it to a
certain size only.
Jul 17 '05 #2
Raoul Watson wrote:

"ManaUser" <ma************@earthlink.net> wrote in message
news:3F***************@earthlink.net...
It works normally with one or a small number of files selected, but if I
try to select a lot (have't nailed down the exact number yet) I get
something like this:
C:\Program Files\Dink Smallwood\Junk\STORY\À"ü¿4Z
That is, the correct path, but instead of the files names, just a small
blob of garbage.

Any ideas? (fixes, workarounds, or guesses on why it's doing this.)


Make sure you DIM the string to hold the file name and not restrict it to a
certain size only.


Thanks for the suggestion, but I even get that result directly off the
cdl control's filename property, so I wouldn't think my varable matters.

--
As you become a more powerful and subtle programmer,
your errors, too, will become more powerful and subtle.
-- Mitchell Waite & Stephen Prata, New C Primer Plus.
Jul 17 '05 #3
On Wed, 03 Sep 2003 03:58:45 GMT, in comp.lang.visual.basic ManaUser
<ma************@earthlink.net> wrote:
| Raoul Watson wrote:
| >
| > "ManaUser" <ma************@earthlink.net> wrote in message
| > news:3F***************@earthlink.net...
| > > It works normally with one or a small number of files selected, but if I
| > > try to select a lot (have't nailed down the exact number yet) I get
| > > something like this:
| > > C:\Program Files\Dink Smallwood\Junk\STORY\À"ü¿4Z
| > > That is, the correct path, but instead of the files names, just a small
| > > blob of garbage.
| > >
| > > Any ideas? (fixes, workarounds, or guesses on why it's doing this.)
| > >
| >
| > Make sure you DIM the string to hold the file name and not restrict it to a
| > certain size only.
|
| Thanks for the suggestion, but I even get that result directly off the
| cdl control's filename property, so I wouldn't think my varable matters.


You might want to right mouse click on the commonddialog control and
set the maxFileSize property to a large number. The default is 260
characters. I usually set this to 1024 or 2048.
---------------------------------------------------------------
jn****@yourpantsbigpond.net.au : Remove your pants to reply
---------------------------------------------------------------
Jul 17 '05 #4
Jeff North wrote:

You might want to right mouse click on the commonddialog control and
set the maxFileSize property to a large number. The default is 260
characters. I usually set this to 1024 or 2048.


That sounds like a good place to start. Thanks.

--
As you become a more powerful and subtle programmer,
your errors, too, will become more powerful and subtle.
-- Mitchell Waite & Stephen Prata, New C Primer Plus.
Jul 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Basil Fenix | last post by:
I use a commondialog control to open a file.It was working perfectly that is showing it in the center of the screen. I then added a toolbar and a imagelist. Now it shows it bottom left of screen.Is...
3
by: Joanny | last post by:
Hi, there, When I open a VB6 application on VB.net, it automatically upgrade to VB.net. But I got the error message said: "Upgrade failed: Exception occurred: The referenced components...
1
by: D Wigg | last post by:
Hello all, I'm using VB6.0 to write an application which prints a report. The problem I have occurs when I try to allow the user to select the number of copies and which pages to print. Using...
1
by: tod4 | last post by:
Hi, My problem: I have query with value klient and product. On my form Im using multiselect box as filter of klient value. Now I would like to use second multiselect on this form for product...
2
by: Patrick Blackman | last post by:
I want to create my own custom common dialog derived from the base class"CommonDialog" to display my custom form any ideas how to accomplish this with an example. Thanks Patrick
1
by: Simon | last post by:
Does anyone have the definitive snippet of code for how to inherit from CommonDialog? I want to add an extra control into the OpenFileDialog. I know you cannot inherit from this or from...
3
by: Michael C# | last post by:
Anyone know of a good resource that details how to inherit from CommonDialog? Thanks.
25
by: yanivoliver | last post by:
Hey, I'm using the CommonDialog object to load a dialog which allows the user to select the files they want to upload. This solution works perfectly on computers that have some Visual Studio...
1
by: DMc | last post by:
Hi, I have been searching for tutorials and tips on how to create my own Dialog box using the CommonDialog abstract class, and I have not been able to find anything useful. Can anyone have any...
3
by: kaosyeti via AccessMonster.com | last post by:
hey... i have an unbound multiselect listbox on a form that i want to use to populate text boxes on that form. so if a user selects the 3rd item in a list of 20, how can i have that item show up...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.