Click here to Skip to main content
15,921,905 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionGetTypeFromProgID: Invalid class string Pin
DaveC42691329-Aug-05 6:28
DaveC42691329-Aug-05 6:28 
QuestionAccessing data within datagrids...... Pin
daviiie29-Aug-05 6:27
daviiie29-Aug-05 6:27 
AnswerRe: Accessing data within datagrids...... Pin
Anonymous29-Aug-05 7:06
Anonymous29-Aug-05 7:06 
QuestionVBA Excel 2003 Pin
PHDENG8129-Aug-05 2:46
PHDENG8129-Aug-05 2:46 
AnswerRe: VBA Excel 2003 Pin
Dave Kreskowiak29-Aug-05 4:36
mveDave Kreskowiak29-Aug-05 4:36 
GeneralRe: VBA Excel 2003 Pin
PHDENG8129-Aug-05 5:02
PHDENG8129-Aug-05 5:02 
GeneralRe: VBA Excel 2003 Pin
Dave Kreskowiak29-Aug-05 9:49
mveDave Kreskowiak29-Aug-05 9:49 
QuestionImageList with too many items Pin
MohammadAmiry29-Aug-05 2:14
MohammadAmiry29-Aug-05 2:14 
Hi I had recently posted this, but I did not get the answer. Because I DO really need this problem to solve, I repeat it.
In vb6 I have an ImageList that a ListView is bound to it. It works quite fine when dealing with small (up to 1000) number of images. but when the number of images becomes larger, my program suddenly crashes: "This program has performed an illegal operation."
The code I used, is here:
<br />
It's in vb6.<br />
It is in a function that gets FilePath and adds it's icon to the ImageList.<br />
<pre><code><br />
hIcon = ExtractAssociatedIcon(0, LCase(FilePath), 1)<br />
If IsNull(hIcon) Then<br />
'Error <br />
Else<br />
Set Pic.Picture = Nothing<br />
DrawIcon Pic.hdc, 0, 0, hIcon<br />
Pic.Picture = Pic.Image<br />
End If<br />
ImageList1.ListImages.Add , , Pic.Picture<br />
GetImageLisIconIndex = ImageList1.ListImages.Count<br />


It is in a function that gets the FilePath and adds its icon to the ImageList.

Thanks in advance.
AnswerRe: ImageList with too many items Pin
Dave Kreskowiak29-Aug-05 4:29
mveDave Kreskowiak29-Aug-05 4:29 
GeneralRe: ImageList with too many items Pin
MohammadAmiry29-Aug-05 11:55
MohammadAmiry29-Aug-05 11:55 
GeneralRe: ImageList with too many items Pin
Dave Kreskowiak29-Aug-05 13:05
mveDave Kreskowiak29-Aug-05 13:05 
GeneralRe: ImageList with too many items Pin
MohammadAmiry30-Aug-05 8:42
MohammadAmiry30-Aug-05 8:42 
GeneralRe: ImageList with too many items Pin
Dave Kreskowiak30-Aug-05 11:50
mveDave Kreskowiak30-Aug-05 11:50 
GeneralRe: ImageList with too many items Pin
MohammadAmiry30-Aug-05 20:31
MohammadAmiry30-Aug-05 20:31 
GeneralRe: ImageList with too many items Pin
MohammadAmiry30-Aug-05 9:24
MohammadAmiry30-Aug-05 9:24 
QuestionFarsi Language Support in Visual Basic Pin
alex120529-Aug-05 0:45
alex120529-Aug-05 0:45 
AnswerRe: Farsi Language Support in Visual Basic Pin
MohammadAmiry29-Aug-05 2:09
MohammadAmiry29-Aug-05 2:09 
GeneralRe: Farsi Language Support in Visual Basic Pin
alex120529-Aug-05 14:31
alex120529-Aug-05 14:31 
GeneralRe: Farsi Language Support in Visual Basic Pin
MohammadAmiry30-Aug-05 8:51
MohammadAmiry30-Aug-05 8:51 
GeneralRe: Farsi Language Support in Visual Basic Pin
alex12052-Sep-05 20:45
alex12052-Sep-05 20:45 
QuestionFreeze columns in a datagrid Pin
directred28-Aug-05 23:56
directred28-Aug-05 23:56 
AnswerRe: Freeze columns in a datagrid Pin
_mubashir29-Aug-05 0:23
_mubashir29-Aug-05 0:23 
AnswerRe: Freeze columns in a datagrid Pin
Anonymous29-Aug-05 9:04
Anonymous29-Aug-05 9:04 
QuestionPopup Dialer Pin
nitin_ion28-Aug-05 23:44
nitin_ion28-Aug-05 23:44 
QuestionRedirecting by IP Pin
delicious-code28-Aug-05 22:01
delicious-code28-Aug-05 22:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.