Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
B

Billypon

@Billypon
About
Posts
20
Topics
9
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How to output a web control so that it can be postbacked from the page?
    B Billypon

    No, it doesn't it! At last, the server output the HTML's code like Test. So the LinkButton cannot be clicked!!!

    ASP.NET html tutorial question

  • How to output a web control so that it can be postbacked from the page?
    B Billypon

    How to output a web control so that it can be postbacked from the page? I write the code like this: LinkButton btnTest = new LinkButton(); btnTest.Text = "Test"; btnTest.Click += new EventHandler(btnTest_Click); StringWriter sw = new StringWriter(); HtmlTextWriter htw = new HtmlTextWriter(sw); btnTest.RenderControl(htw); lblTest.Text = sw.ToString(); Now the control could be outputed by HTML code, but it cannot be postbacked from the page. It be outputed like a normal text, not a LinkButton. I want it can be clicked, and raise the click event. So, what can I do for it?

    ASP.NET html tutorial question

  • Could I get a Function Address in a Remote Process
    B Billypon

    No! It means both of the two process are run in the local machine which i say

    Visual Basic question

  • Could I get a Function Address in a Remote Process
    B Billypon

    Now I have to use a API to do something. It need a address of function, which in the third process.

    Visual Basic question

  • Could I get a Function Address in a Remote Process
    B Billypon

    Could I get a Function Address in a Remote Process? And how could I do?

    Visual Basic question

  • How to get the Instance Handle from a Process ID?
    B Billypon

    Because I want to get some way with it either in VB or in VC

    Visual Basic json tutorial question

  • How to get the Instance Handle from a Process ID?
    B Billypon

    How could I get the Instance Handle from another Process ID? Maybe the Process has no any windows, so I can't use the GetWindowLong API. And I know nothing about the Module Name of the third Process, so I can't use the GetModuleHandle API,too. So,how could I get the Instance Handle from another Process ID?Or how could I get the Module Name of the third Process,that I can use the GetModuleHandle API for it?

    C / C++ / MFC json tutorial question

  • How to get the Instance Handle from a Process ID?
    B Billypon

    How could I get the Instance Handle from another Process ID? Maybe the Process has no any windows, so I can't use the GetWindowLong API. And I know nothing about the Module Name of the third Process, so I can't use the GetModuleHandle API,too. So,how could I get the Instance Handle from another Process ID?Or how could I get the Module Name of the third Process,that I can use the GetModuleHandle API for it?

    Visual Basic json tutorial question

  • How to use the function "CallByName" in asp?
    B Billypon

    How to use the function "CallByName" in asp Pay attention to it,please! It is in asp,not in asp.net!! Thanks!!!

    ASP.NET csharp asp-net tutorial question

  • How to use the function "CallByName" in asp?
    B Billypon

    How to use the function "CallByName" in asp? Pay attention to it!It is in asp,not in asp.net! Thanks!!!

    ASP.NET csharp asp-net tutorial question

  • Is there anybody could tell me how to read/write data from/to USB Serial by Visual Basic
    B Billypon

    "MSComm" control is not use for USB Port

    Visual Basic tutorial

  • How to display the image in VB 6.0
    B Billypon

    Add this API declare to the Module which I told you. Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (Destination As Any, Source As Any, ByVal Length As Long) And the write down this function into the Module. Public Function PictureFromPointer(Pointer As Long, Length As Long) As IPicture     Dim hMem As Long     Dim lpMem As Long     Dim IID_IPicture As GUID     Dim istm As stdole.IUnknown     Dim ipic As IPicture     On Error GoTo Out     If Pointer > 0 And Length > 0 Then         hMem = GlobalAlloc(GMEM_MOVEABLE, Length)         If hMem Then             lpMem = GlobalLock(hMem)             If lpMem Then                 CopyMemory ByVal lpMem, Pointer, Length                 Call GlobalUnlock(hMem)                 If (CreateStreamOnHGlobal(hMem, CTrue, istm) = S_OK) Then                     If (CLSIDFromString(StrPtr(sIID_IPicture), IID_IPicture) = S_OK) Then                         Call OleLoadPicture(ByVal ObjPtr(istm), Length, CFalse, IID_IPicture, PictureFromPointer)                     End If                 End If             End If         End If     End If Out: End Function Now you can use the function like this: PictureFromPointer(YourPointer,LengthOfPointer) I was test nothing about this function,so I can't promise it will work fine.. Luckly!!! -- modified at 22:31 Friday 1st June, 2007

    Visual Basic question tutorial

  • Is there anybody could tell me how to read/write data from/to USB Serial by Visual Basic
    B Billypon

    Oh,I see! I guessed I can not read/write data to the port,too! But my friend need to do it,and she tell me nothing about the device. Thanks a lot! Let me try another way to do it, or if somebody has another good idea,tell me,please!

    Visual Basic tutorial

  • Is there anybody could tell me how to read/write data from/to USB Serial by Visual Basic
    B Billypon

    Is there anybody could tell me how to read/write data from/to USB Serial by Visual Basic

    Visual Basic tutorial

  • adding textbox in the datagridview
    B Billypon

    You should add textboxes as you adding images in the datagridview

    Visual Basic question

  • How to display the image in VB 6.0
    B Billypon

    Example like this: Create a form within a PictureBox control. Type the code: Dim arrayPic() As Byte Open "testpic.jpg" For Binary As #1 ReDim arrayPic(LOF(1)) Get #1, , arrayPic Close #1 Picture1.Picture = PictureFromBits(a) Create a module and type the code: Public Enum CBoolean CFalse = 0 CTrue = 1 End Enum Public Const S_OK = 0 Declare Function CreateStreamOnHGlobal Lib "ole32" _ (ByVal hGlobal As Long, _ ByVal fDeleteOnRelease As CBoolean, _ ppstm As Any) As Long Declare Function OleLoadPicture Lib "olepro32" _ (pStream As Any, _ ByVal lSize As Long, _ ByVal fRunmode As CBoolean, _ riid As GUID, _ ppvObj As Any) As Long Public Type GUID dwData1 As Long wData2 As Integer wData3 As Integer abData4(7) As Byte End Type Declare Function CLSIDFromString Lib "ole32" (ByVal lpsz As Any, pclsid As GUID) As Long Public Const sIID_IPicture = "{7BF80980-BF32-101A-8BBB-00AA00300CAB}" Public Const GMEM_MOVEABLE = &H2 Declare Function GlobalAlloc Lib "kernel32" (ByVal uFlags As Long, ByVal dwBytes As Long) As Long Declare Function GlobalLock Lib "kernel32" (ByVal hMem As Long) As Long Declare Function GlobalUnlock Lib "kernel32" (ByVal hMem As Long) As Long Declare Sub MoveMemory Lib "kernel32" Alias "RtlMoveMemory" (pDest As Any, pSource As Any, ByVal dwLength As Long) Public Function PictureFromBits(abPic() As Byte) As IPicture Dim nLow As Long Dim cbMem As Long Dim hMem As Long Dim lpMem As Long Dim IID_IPicture As GUID Dim istm As stdole.IUnknown Dim ipic As IPicture On Error GoTo Out nLow = LBound(abPic) On Error GoTo 0 cbMem = (UBound(abPic) - nLow) + 1 hMem = GlobalAlloc(GMEM_MOVEABLE, cbMem) If hMem Then lpMem = GlobalLock(hMem) If lpMem Then MoveMemory ByVal lpMem, abPic(nLow), cbMem Call GlobalUnlock(hMem) If (CreateStreamOnHGlobal(hMem, CTrue, istm) = S_OK) Then If (CLSIDFromString(StrPtr(sIID_IPicture), IID_IPicture) = S_OK) Then Call OleLoadPicture(ByVal ObjPtr(istm), cbMem, CFalse, IID_IPicture, PictureFromBits) End If End If End If End If Out: En

    Visual Basic question tutorial

  • Please tell me how to use the API Function to get the ProcessId of the appointed process
    B Billypon

    Oh! Thanks eveybody! It has been done!

    Visual Basic json tutorial

  • I dont't want anyone close my process,what can I do?
    B Billypon

    I dont't want anyone close my process,what can I do?

    Visual Basic question

  • Please tell me how to use the API Function to get the ProcessId of the appointed process
    B Billypon

    No! It's wrong. I want to get the ProcessId of the appointed process,no current ProcessId

    Visual Basic json tutorial

  • Please tell me how to use the API Function to get the ProcessId of the appointed process
    B Billypon

    Please tell me how to use the API Function to get the ProcessId of the appointed process

    Visual Basic json tutorial
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups