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
  • Help needed with oshell.FindFiles...

    question help
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Problem In Msgbox And InputBox

    question help
    3
    0 Votes
    3 Posts
    0 Views
    D
    The short answer is you can't! The long answer is to write your own MsgBox function. RageInTheMachine9532
  • 0 Votes
    1 Posts
    0 Views
    No one has replied
  • MySQL / Crystal Reports for VS.NET Problem

    csharp visual-studio help database
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • VB MS Soap 3.0

    help wcf security xml json
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Clean Build

    visual-studio debugging help question announcement
    3
    0 Votes
    3 Posts
    0 Views
    J
    Simon Yes it still happens with Rebuild Solution - note its one of these intermittent problems, sometimes happens sometimes doesn't. I've just got into the habit of doing a build before a run - but its still very irritating. Regards Jeremy
  • Granting "Logon As Service Rights"

    question windows-admin tutorial
    5
    0 Votes
    5 Posts
    0 Views
    A
    Thanks for looking Rage, I can only assume you too are flummoxed! I'm probably going to have to fall back on the security template method, assuming i can get 'secedit /export' to work so that I incorporate any previous security rights in the newly modified ones.
  • Random Number Maths Quiz

    question lounge
    3
    0 Votes
    3 Posts
    0 Views
    C
    Sorry, I posted that in C#. Here is VB: Randomize (Timer) Dim number1, number2, sum As Integer number1 = (Rnd() * 49) + 1 number2 = (Rnd() * 49) + 1 sum = number1 + number
  • Help with WM_GETTEXT

    csharp json help
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • which way to "autotab" from textbox ?

    help question learning
    2
    0 Votes
    2 Posts
    0 Views
    R
    Put in a KeyPress handler for the edit control, and add the following code: if (KeyAscii) = 13 then ' Enter Key SendKeys "{TAB}" Endif This will trap the Enter key, and send a "Tab" to the form. Need to ensure that next control in the tab order is the next control youwant to go to.... Just out of interest - are you sure this is what you want to do? Not really standard windows behaviour, and precludes the use of enter as OK... "Now I guess I'll sit back and watch people misinterpret what I just said......" Christian Graus At The Soapbox
  • need simple text editor

    question
    2
    0 Votes
    2 Posts
    0 Views
    R
    COuld try Textpad - excellent editor, and Shareware - will pop up with licence warnings every now and then, but otherwise exactly same as full version.... Just one question - why the FUNK do you want to use a text editor for VB???? Otherwise - if what you are asking is HOW to launch the editor, declare the ShellExecute function, and pass the filename in....(see MSDN or give me a shout if you want an example. "Now I guess I'll sit back and watch people misinterpret what I just said......" Christian Graus At The Soapbox
  • .Net Windows service time out

    help csharp workspace
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Trigger a Windows Form Notification

    database sql-server sysadmin question announcement
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • MAJOR PROJECT

    help learning
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • How do I export a registry hive?

    question tutorial csharp windows-admin
    2
    0 Votes
    2 Posts
    0 Views
    D
    wobblervb wrote: I am using VB.net I am looking for a way to export a registry key like HKLM\System\CCS\Control\Services (the whole key and all subkeys). I would like to use the same methods that Regedit uses. It looks like RegEdit has its own enumerator built in. There is no function in the .NET framework that does the exact samething, so it looks like your going to have to write your own exporter. wobblervb wrote: How do I determin the data type of a registry key. I understand how to read the value name and value but not the data type. The .NET framework doesn't offer a function to do what your want. Your probably going to have to write a C++ component to return that info. RageInTheMachine9532
  • saving icon to hard drive

    graphics html help tutorial question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • 0 Votes
    2 Posts
    0 Views
    D
    There is an example of this very topic on the samples for VB.NET: Private Sub DoesKeyExist Dim regVersion As Microsoft.Win32.RegistryKey regVersion = Microsoft.Win32.Registry.CurrentUser.OpenSubKey("SOFTWARE\\Microsoft\\TestApp\\1.0", True) If regVersion Is Nothing Then regVersion = Microsoft.Win32.Registry.CurrentUser.CreateSubKey("SOFTWARE\\Microsoft\\TestApp\\1.0") End If End Sub This will check to see if a key exists, then if not, creates it. Oh yeah! It also needs a reference to the Win32 namespace. RageInTheMachine9532
  • About Shaped forms in vb.NET

    csharp com tutorial question
    5
    0 Votes
    5 Posts
    0 Views
    J
    Whoops regionPath is actually the variable Path of the type GraphicsPath... Sorry! ;) Keep experimenting! - Johannes Hansen
  • getting icon location

    help tutorial html question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • XP Accelerators and Focus Rects

    question
    7
    0 Votes
    7 Posts
    0 Views
    P
    Good gumba gumba! The whole SDK will take over 10 hours to download on my 56K! I'll spring 10 bucks for the CD by mail. Thanks for the insight! :-D