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
  • Toolbar with Close Button & Title Bar

    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • datagrids

    question
    6
    0 Votes
    6 Posts
    0 Views
    G
    Your Welcome.
  • Disallow MBCS sets in VB text box

    help question
    3
    0 Votes
    3 Posts
    0 Views
    A
    USe StrCon() function ofVB. USe it to convert to any type. i.e VBWide,VBNarrow,VBKatakana,VBHiraGana. etc.. USeful-function,if u get it right. else VB stores strings in UNICODE format which takes 2bytes / character. So difficult to recognise single/multibyte otherwise. CIAO
  • database problem

    help database tutorial question announcement
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • graphing and page layout

    question data-structures
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • From VB to VB.net

    csharp visual-studio com regex
    5
    0 Votes
    5 Posts
    0 Views
    J
    That answered my question. Thanks Nick. Jon X-ZD Designs
  • VB precompiler Constants

    tutorial question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Replay certain events repetitively

    performance help question
    2
    0 Votes
    2 Posts
    0 Views
    P
    You can try using the SendKeys function (Lookup MSDN) You can send a specific key sequence using SendKeys (Eg Alt+H or Alt+F4)
  • Graphing Control?

    question
    2
    0 Votes
    2 Posts
    0 Views
    P
    Try the MSChart Control which comes with VB 6.0
  • How to transfer files using http

    tutorial question
    2
    0 Votes
    2 Posts
    0 Views
    P
    You can try using the inet control with GET / POST http commands
  • How to add multiple rows to Datagrid

    database tutorial
    4
    0 Votes
    4 Posts
    0 Views
    N
    Hi Anu, I don't think your request can be achieved as VB 6 does not support this dataset concept. The offline concept is only available in VB .NET or above. Which means this is a new thing in .NET FrameWork. Regards, Cherhan:):rose:
  • Sounds and Music

    learning csharp tutorial question
    3
    0 Votes
    3 Posts
    0 Views
    D
    an old example in .net i did for someone a few months ago , might give you a helping hand with the sound Private Declare Function sndPlaySound Lib "winmm.dll" Alias "sndPlaySoundA" _ (ByVal lpszSoundName As String, ByVal uFlags As Integer) As Long Const SND_SYNC As Integer = &H0 Const SND_ASYNC As Integer = &H1 Const SND_NODEFAULT As Integer = &H2 Const SND_LOOP As Integer = &H8 Const SND_NOSTOP As Integer = &H10 Dim SoundName As String, wFlags As Integer, x As String Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click SoundName = "C:\Documents and Settings\Den\My Documents\Visual Studio Projects\WindowsApplication1\beav_rap.wav" wFlags = SND_ASYNC Or SND_NODEFAULT x = sndPlaySound(SoundName, wFlags) End Sub Private void ExpectingTwins(string twins) { switch(twins) { Case ("twins on the way"): MessageBox.Show("for mr and mrs dynamic","twins on the way"); break; } }
  • Moving Multiple Labels

    question com data-structures security help
    6
    0 Votes
    6 Posts
    0 Views
    L
    np glad to have helped :cool: Private void ExpectingTwins(string twins) { switch(twins) { Case ("twins on the way"): MessageBox.Show("for mr and mrs dynamic","twins on the way"); break; } }
  • Problem calling DLL

    help question com
    3
    0 Votes
    3 Posts
    0 Views
    N
    vicknesh wrote: I was told that if a DLL is compiled in VB 6, it is highly likely to be compiled as a COM object. That is correct. -Nick Parker
  • access denied

    question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Enumerate Control Properties in .Net

    question csharp
    2
    0 Votes
    2 Posts
    0 Views
    J
    Use Control.GetType to get the Type of the control, and Type.GetProperties to get an array containing the properties of the control. "Blessed are the peacemakers, for they shall be called sons of God." - Jesus "You must be the change you wish to see in the world." - Mahatma Gandhi
  • ICON ON TITLE?

    question com tutorial
    2
    0 Votes
    2 Posts
    0 Views
    J
    After Google Searchin' http://www.angelfire.com/dc/html-webmaster/article07.htm[^]
  • Sound Question...

    csharp help question
    2
    0 Votes
    2 Posts
    0 Views
    J
    Can you do it in a macro? WindowEvents_WindowCreated? Oh wait .... in the application your writing(not the enviorment... Ughh) Yeah - Option One, in your main window load event, Making sure to play it only once. Option two, have a main function that plays the sound and then loads the form. Make sure you set the startup object to be the main function you just wrote. Just like in VB classic.
  • Overloads Problem

    help csharp tutorial question
    5
    0 Votes
    5 Posts
    0 Views
    M
    Thank you very much for helping me. You have given a better look at the way Contructors work. I just wish the book I bought had been better informative. I guess you get what you pay for. Thanks again!
  • Collections and Events

    asp-net tutorial question
    2
    0 Votes
    2 Posts
    0 Views
    C
    I must be missing something in your problem statement, but here's what I'm thinking. If you add an event handler to an object and that object fires the event, your event handler will execute. Subsequently adding the object to a collection has no impact on the event mechanism. Are you trying to work with events raised by the collection itself, such as when items are added or removed?