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
  • 0 Votes
    5 Posts
    0 Views
    Q
    Yes. But the path would be like this "WinNT://DomainName/GroupName". I tried the following codes and I can see the GroupName there but I cannot see the members contain inside the group. Dim DEntry As New DirectoryServices.DirectoryEntry("WinNT://DomainName") Dim UserGrp As DirectoryServices.DirectoryEntry For Each UserGrp In DEntry.Children If UserGrp.Path = "WinNT://DomainName/GroupName" Then MessageBox.Show(UserGrp.Path) End If Next There, you can try it out. Again, many thanks, Ray.
  • HamCode needed to keep link active online/offline

    html help question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Null value with VB.NET

    help question csharp database
    2
    0 Votes
    2 Posts
    0 Views
    D
    Try using DBNull.Value when writing to your database. My latest article: GBVB - Converting VB.NET code to C#
  • 0 Votes
    5 Posts
    0 Views
    B
    Thanks for the Info, Yes, I've seen some examples of that QueryInterface and I didn't believe it could be so difficult.... what a pity..., well let's hope that VBasic .net it's completly different that 6.0 :-)
  • I need some help about Vb Object printer

    help
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Terminate A VB6 ActiveX Control

    question com
    2
    0 Votes
    2 Posts
    0 Views
    J
    Why do you want to destroy it before the document closes? "Do unto others as you would have them do unto you." - Jesus "An eye for an eye only makes the whole world blind." - Mahatma Gandhi
  • I am lost

    question tools help
    3
    0 Votes
    3 Posts
    0 Views
    J
    Using VBScript and the Windows Scripting Host, it is possible to control a variety of things through "animation" of standard Windows applications. In your case, you could do something like the following: ' myScript.vbs -- Dim wshell Set wshell = WScript.CreateObject("WSCript.shell") wshell.run "calc.exe" WScript.Sleep 30000 wshell.run "notepad.exe" Enter the commands into a file using Notepad or your favorite editor and save it with a file extension of ".VBS". Double-click on the VBS file to execute the script. On 99% of desktops equipped with IE5.5+, this will function correctly. For more information, see MSDN > Platform SDK > Tools and Scripting > Windows Script Host.
  • 0 Votes
    3 Posts
    0 Views
    J
    Events are handled in a good new way in .NET. When you want to listen to an event, you do this: button.Click += new System.EventHandler(buttonClick) where button.Click is the event, and buttonClick is a method with the correct arguments. When handling multiple controls' events, use the "Sender As Object" argument of the method you assigned to the event to find out which object fired the event. "Do unto others as you would have them do unto you." - Jesus "An eye for an eye only makes the whole world blind." - Mahatma Gandhi
  • How to check if file existe?

    tutorial question
    4
    0 Votes
    4 Posts
    0 Views
    Q
    Here is another way. If IO.File.Exits("FileName") Then 'Do something End If
  • VB interview

    question career learning
    3
    0 Votes
    3 Posts
    0 Views
    S
    Thanks I was born intelligent Education ruined me!.
  • Windows Message Queue

    csharp data-structures
    3
    0 Votes
    3 Posts
    0 Views
    J
    Thanks Vilas ;) Jim
  • RE: URLdownloadToFile

    help csharp html com json
    2
    0 Votes
    2 Posts
    0 Views
    J
    How about using the .NET framework WebRequest and Stream to read the data from the URL, then use a FileStream to write it out to a file? There's and example of the read step on GotDotNet, http://samples.gotdotnet.com/quickstart/howto/doc/WebRequests/clientGET.aspx And as for writing it to a file, the .NET library sample: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemIOFileStreamClassTopic.asp
  • 0 Votes
    2 Posts
    0 Views
    J
    How does the WebCam stream data, via HTTP (or ...)? If so, suggest checking out the System.Net and System.IO classes & interfaces in the .NET framework.
  • date functions

    question
    2
    0 Votes
    2 Posts
    0 Views
    J
    In VBA/MS Access Macro code, something like this should place today's date into a string: Dim myDate As Date Dim myDateString As String myDate = Date myDateString = CStr(myDate) MsgBox myDateString Hope that helps.
  • bit array (BSTR)

    data-structures tutorial
    5
    0 Votes
    5 Posts
    0 Views
    N
    Pombo wrote: bit array (BSTR) A BSTR is different than a bit array. A BSTR is a string data type that stored the length of the string is stored with the data. -Nick Parker
  • getting a String from a Table?

    question database help tutorial
    2
    0 Votes
    2 Posts
    0 Views
    R
    Anonymous wrote: How can I get the data in this field without opening the table? :confused: Aaaaaa you can't. You have to at least open it to run a querry on it and get the data out. Paul Watson wrote: "At the end of the day it is what you produce that counts, not how many doctorates you have on the wall." George Carlin wrote: "Don't sweat the petty things, and don't pet the sweaty things." Jörgen Sigvardsson wrote: If the physicists find a universal theory describing the laws of universe, I'm sure the asshole constant will be an integral part of that theory.
  • Windows Comman Taks in VB.NET

    csharp help question
    10
    0 Votes
    10 Posts
    0 Views
    J
    villly wrote: Could you please send me some sample how i shall achieve the same? Soon I might be able to do this, but for now, look at the code in the file "folder.htt" in your Windows directory. This code deals with selecting, deleting, etc, of files/folders in the list view in explorer and the folder view. "Do unto others as you would have them do unto you." - Jesus "An eye for an eye only makes the whole world blind." - Mahatma Gandhi
  • User Authentication

    database security question
    5
    0 Votes
    5 Posts
    0 Views
    G
    Thank you very much! That would be extremly helpful!
  • Compiling question

    question visual-studio workspace
    4
    0 Votes
    4 Posts
    0 Views
    R
    If you have VB6 installed yourself anyway, wouldn't it be easier to just build it on your machine and use the resulting images - and in any case, simply copying files from one machine to another will NEVER work for anything more complicated than a standalone .exe - will need to register all sorts of components, ensure that the runtime files are present - big headache! "Now I guess I'll sit back and watch people misinterpret what I just said......" Christian Graus At The Soapbox
  • Custom Drawn Controls

    csharp wpf graphics architecture
    2
    0 Votes
    2 Posts
    0 Views
    M
    I'm sorry that I cannot be of any help, but I would be very grateful for anything you may have learned in changing the border color of a textbox. Many thanks Matt:confused: