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
  • wininet.dll and FTP

    com
    2
    0 Votes
    2 Posts
    0 Views
    D
    No. FTP servers normally don't support that functionality unless it is an implementation specific extension, and I don't know of any that do. Normally, FTP servers don't support exclusive access to files being downloaded. The problem is the status of the file can change in between the request for the locked status and the start of the actual download. So with that in mind, by the standard specification, when you start the file transfer, the server can respond with a '450-File unavailable' error. But you have to try and start the file transfer to find that out. RageInTheMachine9532
  • modifying image files

    csharp sysadmin question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Activating a Vb app via a URL

    csharp business tutorial question
    4
    0 Votes
    4 Posts
    0 Views
    D
    Monikers are used to tell a browser what application to launch based on the contents of the html page. For example, a PDF file moniker will tell the browser to launch AcrobatReader to render the content PDF content. You can setup links to launch various programs, like Kazaa, but Kazaa won't return anything back to your browser since it's not written to do so. Also, your windows app would have a difficult time determining which browser launched it, unless there was only one browser window open. Telling the existing browser to navigate to another URL would not be a trivial task. RageInTheMachine9532
  • transfer variable in different forms

    question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • datareport controls being underlined

    design help question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Does Size Matter ?

    question csharp graphics game-dev
    3
    0 Votes
    3 Posts
    0 Views
    D
    Colin Angus Mackay wrote: I would recommend you would be better splitting it up in to logically separate DLLS so you can load and unload them as the game progresses Unloading a .NET assembly isn't an easy thing to do. Even if you load it into a separate AppDomain, this will hurt performance, as all calls will need to go through remoting. The resulting code can be much slower than loading everything on memory. Perl combines all the worst aspects of C and Lisp: a billion different sublanguages in one monolithic executable. It combines the power of C with the readability of PostScript. -- Jamie Zawinski
  • VB.Net for PocketPC

    com question csharp hardware
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • How to insert lines of text into an existing text file?

    help tutorial question
    5
    0 Votes
    5 Posts
    0 Views
    D
    Open the file for Append and start writing. Dim myFile As New FileStream( "filename.txt", FileMode.Append ) myFile.WriteLine( "Text I want to append..." ) myFile.Close() RageInTheMachine9532
  • Email Server Source Code

    sysadmin question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • start my application in Windown NT service

    2
    0 Votes
    2 Posts
    0 Views
    J
    VB6: I suggest the NT Service Toolkit from Desaware. VB.NET: there are several examples in the MSDN library, and perhaps here on CP as well. What a piece of work is man, how noble in reason, how infinite in faculties, in form and moving how express and admirable . . . and yet to me, what is this quintessence of dust? -- Hamlet, Act II, Scene ii.
  • Web Form Newbie

    csharp winforms
    2
    0 Votes
    2 Posts
    0 Views
    J
    "View in Browser" isn't meant to allow you to run and debug a web form. If you have it running in Debug mode, and you need to release it on the Intranet: * Compile in release mode * Install .NET on the server * Create a new virtual directory on the server * Copy the \bin directory and *.as?x and web.config to the server * Cross your fingers... What a piece of work is man, how noble in reason, how infinite in faculties, in form and moving how express and admirable . . . and yet to me, what is this quintessence of dust? -- Hamlet, Act II, Scene ii.
  • How to do a binary search on a dataset?

    visual-studio tutorial question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • How to specified datagrid's row backcolor

    tutorial
    3
    0 Votes
    3 Posts
    0 Views
    B
    I have solved my problem by your hints.Perhaps I didn't express my problem very well. Anyhow,thanks a lot. Following are my code: :-O:-O Sub dgArticles_ItemDataBound(ByVal sender As Object, ByVal e As DataGridItemEventArgs) Dim item As DataGridItem For Each item In dgArticles.Items 'put your judge condition here 'assumed it return 1 and 2 Select Case CurrentStatus Case "1" item.BackColor = Color.Coral Case "2" item.BackColor = Color.Beige Case Else 'do nothing End Select Next item end sub I hope I can get your help when i am in need on program. May you happy!
  • FtpCommand Problem in VB6

    help question json
    2
    0 Votes
    2 Posts
    1 Views
    D
    The '500 Invalid Command' is comming back from the server your trying to talk to. This means you've sent a command the server didn't recognize. Even though it looks right in VB6, what the API got from VB wasn't right, apparently. This is evidenced by the fact that none of the FTP commands are working. Post the code your using for setting up the call to FTPCommand and the declaration for FTPCommand so we can see whats going on. RageInTheMachine9532
  • Questions about releasing handles.

    graphics help announcement
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Opening a website when button pressed

    3
    0 Votes
    3 Posts
    0 Views
    G
    thank you very much Gary
  • Scan IP and Computer Name on LAN?

    help question
    3
    0 Votes
    3 Posts
    0 Views
    D
    "The code is 42"... what is it?... I need a real source code which write by Visual Basic 6. hic... pls...
  • Postback & VB script

    html com tools question
    2
    0 Votes
    2 Posts
    0 Views
    J
    There are three ways that you could achieve this (at least these are those methods that occur to me...): 1) Using Classic ASP, you set the post action of the form to the name of the same ASP page that generated the form. 2) Using ASP.NET, this happens by default. 3) Using JavaScript, handle the fields of the form in a JavaScript function that is called from the onClick of a button on the form. There's one more possibility -- that I don't understand your question... What a piece of work is man, how noble in reason, how infinite in faculties, in form and moving how express and admirable . . . and yet to me, what is this quintessence of dust? -- Hamlet, Act II, Scene ii.
  • Running Other Office Applications w/ Excel Visual Basic

    help tutorial
    2
    0 Votes
    2 Posts
    0 Views
    P
    Found this link on MS Support, running a Access Macro from Excel, it uses DDE (Dynamic Data Exchange): http://support.microsoft.com/default.aspx?scid=kb;en-us;131921
  • Printing to the printer using WIN32 API

    help json
    3
    0 Votes
    3 Posts
    0 Views
    S
    Well I am printing a page directly to the printer bypassing the driver. WritePrinter is one of the APIs used just to do that job.My collegue calls it DOS printing; if that sounds familiar. Printing with Printer object wouldnt give a draft mode print....would it???? I came across SelectObject API ,but still I dont get the required output. -SimSan