Skip to content

Visual Basic

Visual Basic Questions

This category can be followed from the open social web via the handle visual-basic@forum.codeproject.com

34.4k Topics 120.1k Posts
  • looking at CPU time for a process

    question
    2
    0 Votes
    2 Posts
    0 Views
    D
    You can get the TotalProcessorTime and UserProcessorTime using the Process class. Docs for which can be found here[^]. RageInTheMachine9532
  • activity timestamp on a file?

    question
    2
    0 Votes
    2 Posts
    0 Views
    D
    Not reliably. You don't have to actually run the executable to change its 'Last Accessed' attribute. Just getting properties on the file will change it. A better method would be to poll and watch the process list, look for the name you want and get its process ID when it shows up, then monitor that ID for CPU usage. You could get those statistics from the Process class. RageInTheMachine9532
  • Kill Window

    csharp json question
    4
    0 Votes
    4 Posts
    0 Views
    D
    I haven't been able to come up with a VB.NET sample of the same thing, but there is no reason why the sample cade can't be converted into VB.NET using calls into the Win32 API. RageInTheMachine9532
  • class / property description

    visual-studio csharp help tutorial announcement
    5
    0 Votes
    5 Posts
    0 Views
    S
    Anonymous wrote: searching in the help for Visual Basic.NET This didnt help me much.. thats why I was trying to get help from CP I was born intelligent Education ruined me!.
  • Tree view control

    question css data-structures
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • causesvalidation sticky field

    help question
    3
    0 Votes
    3 Posts
    0 Views
    U
    Sorry. I am using vb.net
  • Need Ideas: develop a shopping cart

    design tutorial question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Sedurity

    question
    2
    0 Votes
    2 Posts
    0 Views
    A
    Unless your using the Code Repository, you can't. The Code Repository is like a library, where you check code in and out to work on it. If your not using the Repository, then you'll have to depend on NTFS folder rights on your project to keep other users out of the folder.
  • Generics in Visual Basic Whidbey

    com
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • properties for custom control

    csharp design hardware help
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Call to C++ DLL from VB???

    c++ help question
    2
    0 Votes
    2 Posts
    0 Views
    C
    This might help, but the final five parameters are to be pointers and the only way to have VB pass a pointer would be in the function definition to use the clause 'ByRef' instead of using 'ByVal'. Having said that though, I suspect that 'String' types in VB are not the same as the 'string' types in C++. AFAIR I had to declare my C routine in the DLL as "pointer to a pointer to a type" in order to get things to work properly. Also I'm not sure whether the WINAPI is a std_call or not. The calling convention is pretty important to get correct for all these things to work. Chris Meech It's much easier to get rich telling people what they want to hear. Chistopher Duncan I can't help getting older, but I refuse to grow up. Roger Wright I've been meaning to change my sig. Thanks! Alvaro Mendez
  • Word automation

    testing tools help tutorial
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Dynamic statements / simple parser (VB.NET)

    question csharp winforms json
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • About Images convertion

    csharp learning
    3
    0 Votes
    3 Posts
    0 Views
    A
    Thanks for reply, I'm going to try it.:)
  • Creating A vc++ hook dll used in VB6

    question c++ help performance
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Application Data Path for VB 6

    csharp question workspace
    2
    0 Votes
    2 Posts
    0 Views
    H
    GetSystemDirectory API to get system directory GetWindowsDirectoryAPI to get windows directory GetTempPath API to get temp directory SHGetSpecialFolderLocation,SHGetFolderLocation are also useful look msdn for details
  • 0 Votes
    2 Posts
    0 Views
    D
    You can add your descriptions using attributes directly in your code. But, you still might want to include a documentation file of some kind to be complete. Search in the help for Visual Basic.NET for 'Attributes and Design-Time Support' for how to add descriptions and whatnot to your code. RageInTheMachine9532
  • GetFileOpen

    question
    2
    0 Votes
    2 Posts
    0 Views
    D
    I'm assuming this is code for an Office application... The short version is you can't set that in the control directly. But, you might want to try launching the file that contains your worksheet or database from that folder first to see if that takes care of it. The long version is you could write your own Open File dialog to get the exact functionality you want. RageInTheMachine9532
  • Hide an inherited property

    visual-studio help
    5
    0 Votes
    5 Posts
    0 Views
    A
    I tried it. It actually got more confusion. The property is still available in Intellisense, it calls something that I can't even tell. I assume it calls the property in the parent class, but it doesn't seem to change the behavior of the control. Thanks for try. Tao
  • rtf text flash...

    question adobe json
    2
    0 Votes
    2 Posts
    0 Views
    D
    Simple, rtf doesn't support blinking text. But, displaying a web page in your form does... RageInTheMachine9532