Click here to Skip to main content
15,899,754 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionColor of a Pixel in a image in a pictureBox Pin
charchabil0316-Feb-07 23:13
charchabil0316-Feb-07 23:13 
AnswerRe: Color of a Pixel in a image in a pictureBox Pin
Guffa17-Feb-07 1:12
Guffa17-Feb-07 1:12 
GeneralRe: Color of a Pixel in a image in a pictureBox Pin
charchabil0317-Feb-07 3:52
charchabil0317-Feb-07 3:52 
AnswerRe: Color of a Pixel in a image in a pictureBox Pin
Guffa17-Feb-07 9:31
Guffa17-Feb-07 9:31 
AnswerRe: Color of a Pixel in a image in a pictureBox Pin
The ANZAC17-Feb-07 14:11
The ANZAC17-Feb-07 14:11 
QuestionHow do i store my font and return back. Pin
.NetRams16-Feb-07 22:30
.NetRams16-Feb-07 22:30 
AnswerRe: How do i store my font and return back. Pin
Dave Kreskowiak17-Feb-07 10:37
mveDave Kreskowiak17-Feb-07 10:37 
QuestionHow to use AddressOf with a Function in an API into VB.Net Pin
MammadAlimoradi16-Feb-07 22:04
MammadAlimoradi16-Feb-07 22:04 
How to use a AddressOf a Function with long type in an API. VB.Net return this error :"'AddressOf' expression cannot be converted to 'Long' because 'Long' is not a delegate type.". There are API and Function in under:

Public Declare Function EnumResourceNames Lib "kernel32" Alias "EnumResourceNamesA" (ByVal ghmodule As Long, ByVal lpType As ResType, ByVal lpEnumFunc As Long, ByVal lParam As Long) As Long

------------------------------------------------------------------------------

Public Function EnumResNameProc(ByVal ghmodule As Long, ByVal lpszType As ResType, ByVal lpszName As Long, ByVal lParam As Long) As Long
Dim sNumber As String, IsNum As Boolean

If (lpszName > &HFFFF&) Or (lpszName < 0) Then
sNumber = PtrToVBString(lpszName)
IsNum = False
Else
sNumber = CStr(lpszName)
IsNum = True
End If

' 16x16
arIcon(SIZE_16, COLOR_4) = 296
arIcon(SIZE_16, COLOR_16) = 1384
arIcon(SIZE_16, COLOR_24) = 872
arIcon(SIZE_16, COLOR_32) = 1128
' 24x24
arIcon(SIZE_24, COLOR_4) = 488
arIcon(SIZE_24, COLOR_16) = 1736
arIcon(SIZE_24, COLOR_24) = 1864
arIcon(SIZE_24, COLOR_32) = 2440
' 32x32
arIcon(SIZE_32, COLOR_4) = 744
arIcon(SIZE_32, COLOR_16) = 2216
arIcon(SIZE_32, COLOR_24) = 3240
arIcon(SIZE_32, COLOR_32) = 4264
' 48x48
arIcon(SIZE_48, COLOR_4) = 1640
arIcon(SIZE_48, COLOR_16) = 3752
arIcon(SIZE_48, COLOR_24) = 7336
arIcon(SIZE_48, COLOR_32) = 9640



If IsNum Then
If lpszType = ResType.RT_ICON Then
LoadIconRes(lpszType, sNumber, giSize, giColorDepth)
End If
End If
EnumResNameProc = 1
End Function

Private Function PtrToVBString(ByVal lpszBuffer As Long) As String
Dim Buffer As String, LenBuffer As Long
LenBuffer = StrLen(lpszBuffer)
Buffer = String.Equals(LenBuffer + 1, 0)
StrCpy(Buffer, lpszBuffer)
PtrToVBString = Left(Buffer, LenBuffer)
End Function

------------------------------------------------------------------------------

For tRes = ResType.RT_FIRST To ResType.RT_LAST
Application.DoEvents()
EnumResourceNames(ghmodule, tRes, AddressOf EnumResNameProc, 0)
Next

Please help me!
AnswerRe: How to use AddressOf with a Function in an API into VB.Net Pin
Dave Kreskowiak17-Feb-07 10:33
mveDave Kreskowiak17-Feb-07 10:33 
QuestionHow do i know my control have Set BringtoFront? Pin
.NetRams16-Feb-07 21:57
.NetRams16-Feb-07 21:57 
AnswerRe: How do i know my control have Set BringtoFront? Pin
Dave Kreskowiak17-Feb-07 10:26
mveDave Kreskowiak17-Feb-07 10:26 
QuestionControls created on one thread cannot be parented to a control on a different thread. Pin
charchabil0316-Feb-07 20:39
charchabil0316-Feb-07 20:39 
AnswerRe: Controls created on one thread cannot be parented to a control on a different thread. [modified] Pin
TwoFaced16-Feb-07 22:15
TwoFaced16-Feb-07 22:15 
GeneralRe: Controls created on one thread cannot be parented to a control on a different thread. Pin
charchabil0317-Feb-07 6:09
charchabil0317-Feb-07 6:09 
QuestionAdding additional text to Dropdown list Pin
Praveen 12316-Feb-07 17:41
Praveen 12316-Feb-07 17:41 
QuestionCreating a new row. Pin
v45030516-Feb-07 15:09
v45030516-Feb-07 15:09 
AnswerRe: Creating a new row. Pin
_mubashir17-Feb-07 8:37
_mubashir17-Feb-07 8:37 
GeneralRe: Creating a new row. Pin
v45030518-Feb-07 4:45
v45030518-Feb-07 4:45 
AnswerRe: Creating a new row. Pin
GoodID19-Feb-07 22:49
GoodID19-Feb-07 22:49 
QuestionPopup dialog in a screensaver Pin
jim_taylor16-Feb-07 9:56
jim_taylor16-Feb-07 9:56 
Questionpdf read files Pin
haggenx16-Feb-07 8:11
haggenx16-Feb-07 8:11 
AnswerRe: pdf read files Pin
Dave Kreskowiak16-Feb-07 8:36
mveDave Kreskowiak16-Feb-07 8:36 
GeneralRe: pdf read files Pin
haggenx20-Feb-07 8:25
haggenx20-Feb-07 8:25 
AnswerRe: pdf read files Pin
KreativeKai16-Feb-07 9:17
professionalKreativeKai16-Feb-07 9:17 
AnswerRe: Calculating the number of days Pin
Stefan Troschuetz16-Feb-07 5:09
Stefan Troschuetz16-Feb-07 5:09 

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.