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
  • accessing ini files

    question json
    4
    0 Votes
    4 Posts
    0 Views
    R
    thanx for ue concern "Notorious SMC" yes by file system I mean FAT32 or NTFS. how can i find out the filesystem on my harddisk along with the volume labels and partition size? rishabhs
  • how to assign variable

    help tutorial
    2
    0 Votes
    2 Posts
    0 Views
    N
    it depends on what type of variable is. If it is a string then it is pretty straightforward: Dim abc as String ... fsoStream.WriteLine abc However, if it's some other type, you would have to do some type casting: Dim abc as Integer ... fsoStream.WriteLine CStr(abc) Keep in mind however that some variables cannot be type-casted. Hope that helps Notorious SMC The difference between the almost-right word & the right word is a really large matter - it's the difference between the lightning bug and the Lightning Mark Twain Get your facts first, and then you can distort them as much as you please Mark Twain
  • passing a string array to a C dll

    help question data-structures json
    2
    0 Votes
    2 Posts
    0 Views
    N
    ns wrote: But how do I change MySTring(1)in the dll ? I think you can increment the address position, something like this, however I know the following doesn't work exactly how you need it to. This atleast provides the idea. Show(int* x) { int* y; cout *x << endl; y = x += sizeof(int); cout << *y << endl; } Nick Parker You see the Standards change. - Fellow co-worker
  • SetCursor

    question c++ help
    3
    0 Votes
    3 Posts
    0 Views
    M
    I have zero experience with vb for applications, but in regular dot net you don't need anything but this one line: Cursor.Current = Cursors.WaitCursor Then Cursor.Current = Cursors.Arrow Hope this helps, Mike "MC5" C
  • extracting new autonumber from database

    database question
    2
    0 Votes
    2 Posts
    0 Views
    N
    I'm not sure why the textbox is showing 0, but looking from your SQL Statement,"Select Max(OrderNumber) from OrderGenerate" ,would only return 1 row, the maximum(largest) OrderNumber.Then RS.RecordCount would only return 1, thus your textbox would always remain "2" Notorious SMC The difference between the almost-right word & the right word is a really large matter - it's the difference between the lightning bug and the Lightning Mark Twain Get your facts first, and then you can distort them as much as you please Mark Twain
  • Alternative to Timer object

    c++
    3
    0 Votes
    3 Posts
    0 Views
    R
    Thank you very much Richard, its working! Rui
  • Need help updating vb script

    help csharp tools announcement
    4
    0 Votes
    4 Posts
    0 Views
    R
    Well if all you have is VB.NET then you are goingt o be in a bind. I belive that you only get the option to upgrade older VB6 projects if you have the Enterprize Architect version. Sounds like maybe you only have Pro. You probably don't want to upgrade the project anyway. Changing the path in the bas file will only get you so far. You will have to recompile once the change it made. That will require that you have VB6. If you are in a pinch and don't have access to VB6 (There is a copy in the older MSDN CD's) You can send me the project, let me know what you need changed, and I can rebuild it for you. Provided that you don't reference any other components that I don't have things should be ok. 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."
  • Using Web Services and XML

    xml question csharp wcf
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • help me,about activex document

    tutorial com help
    2
    0 Votes
    2 Posts
    0 Views
    I
    I have project that I found on a Russian web site, that registers it self as a service and monitors the microsoft internet explorer. It will only work under windows 98. it suppose to work under 95 but it does not. email me at ilya@pokrovskiys.com if you want this project. It might be what your are looking for. You might find a way make it work under xp and 2000
  • 0 Votes
    2 Posts
    0 Views
    I
    I don't know how to do this, but make sure that windows does create short name for it. on 2000 and xp it is turned off by default. an there is no short names for the files. Die DOS die ...:)
  • command line parameters

    question
    2
    0 Votes
    2 Posts
    0 Views
    R
    In VB6 you use the Command$ function. It returns a string of the arguments passed into the app. You then have to parse it apart and act on each one. in VB.NET check this out: http://www.vb2themax.com/Item.asp?PageID=TipBank&ID=510[^] 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."
  • refreshing a datagrid with new data

    question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • displaying autonumber in a textbox

    database question
    2
    0 Votes
    2 Posts
    0 Views
    R
    I have doen this in the past by using a separate table that only contains the autonumber feild and a column for a username. I add a new record to the table (by writing the username), to get a new invoice number, then a run a querry that grabs the top 1 from the list with that username. I then use that number in the table that contains the invoice data. Seems to work quite cleanly. Not sure just how leagle it is with regards to DB theory, but it has worked in the past. 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."
  • VB.net & outlook

    help csharp tutorial question
    3
    0 Votes
    3 Posts
    0 Views
    N
    Thanks ! I'll look up the book Oh yeah, and Happy New Year Notorious SMC The difference between the almost-right word & the right word is a really large matter - it's the difference between the lightning bug and the Lightning Mark Twain Get your facts first, and then you can distort them as much as you please Mark Twain
  • how to create a configuration file??

    linux tutorial question workspace
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Remoting File Transfer

    help sysadmin
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • 0 Votes
    4 Posts
    0 Views
    T
    Sorry, I cant really help much more. I dont have any other ideas. Tatham Oddie (VB.NET/C#/ASP.NET/VB6/ASP/JavaScript) tatham@e-oddie.com +61 414 275 989
  • How to using the second IDispatch of a COM object

    question c++ com design tutorial
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Detect connection to the Internet.

    help question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Project file and exe file

    help question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied