-
Find a way to deal with it:
Check whether the filename is an empty string, if it is, do not perform the following operations.
for ii = 0 to 4
filename = getfromini("l" & ii, "Path", inipath)
if trim(filename)<>"" then
total = extracticon(, filename, -1)
Get the total number of icons.
for i = 0 to total - 1
p(i) = extracticon(, filename, i) 'Read each icon.
next i
drawicon , l(ii).left + 30, l(0).top - 50, p(0)
print filename
print ii
end if
next ii
-
getfromini("l" & ii, "Path", inipath)
Is the above a function that you wrote yourself? Does it encapsulate the API function of ini file operation?
If yes, your problem is"l"& ii here l string and ii is an integer. You should convert ii.
It seems that the function is inttochar(ii).
-
icon =
Replace this 1 with your icon number. However, it should be noted that this ** must be in regular ICO format, otherwise it cannot be used in the icon attribute.
-
pixels). The icons under XP are special, colorful and mostly 48*48. VB only supports 256-color icons, so if an icon does not contain ** in 256-color format, it cannot be used in VB.
2.You must use one of the form icons in the program. Specific steps:
Menu "Project" "xx properties", xx refers to the name of your project, click "Generate" item on the pop-up property window, find the drop-down list corresponding to "icon", the list is all forms, select one of them.
3.First, double-click on a form, if the properties window is open, then find the "icon" item in the properties window, click on it, you can see "..Click the button to open the file button, and select the icon you want.
If the properties window is not open, it can be opened here: menu "View" "Properties Window". Satisfied.
-
I would like to ask you where the icon is placed? If the icon is placed in a separate folder, you may not add the folder where the icon is located when compiling, and the program can still find the icon you want when you run it locally, but it will not work when you send it to others.
-
Landlord, you can use 16*16 24*24 32*32 charts.
Upstairs said that all the charts in the form will be changed, if only one or a few are changed, use the following method.
Modify the chart of form1:
private sub form_load()= loadpicture( +ico")end sub
-
2.Use the icon of the main form in the program, the specific method: first set the icon property of the main form, specify an icon file for it (the extension is ICO or CUR), note that VB does not support dynamic cursor (ANI) files, then click the "Project" menu, select "Project Properties", click the "Compilation" tab, select an icon for the main project, and use your main form on it.
3.Probably the same answer to the second question.
-
If it's VB6, it supports up to 24-bit true color ICO, you find a conversion tool to convert it.
-
1. All your ICO files are not standard ICO files, they may be disguised, such as a BMP, JPG or something, and directly change the suffix name or something. A normal ICO, VB would not have rejected it so ruthlessly. You can send me your icon with hi.
-
It is not a standard ICO file, the standard is 256 colors, 32*32
-
This must be a non-standard icon file.
Try it with Format Factory format conversion.
-
That's because the icon attribute doesn't directly support high color bits, and large sizes don't support it directly. You need to convert.
Size 48 Color 256 bits.
-
In VB6, the maximum bit depth of the icon attribute is 24, and 32-bit icons cannot be used.
Convert BMP to ICO in the following webpage to make the VB icon attribute.
Together!! Thank you very much!! I like it so much!!
You can rotate the nib while drawing the line, so you can draw subtle tones with the sharpest part of the pencil, and sharpen the pencil without being too sharp, preferably with multiple edges. Hope it helps.
I forgot what the ascii code is.,You just look for it.,This ** is very simple.,It's a case of imitation keyboard.。 >>>More
a = "n c hundred du q49232 ah ah ah pp"
mid(trim(a), 9, 5) 'From the 9th character from left to right (spaces are also counted), count 5 characters you want. >>>More
It's pretty big, but if you're a beginner, it's nothing, and it's going to change quickly at the beginning.