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
  • Corrupt Text Files

    csharp help question lounge
    3
    0 Votes
    3 Posts
    0 Views
    D
    I've seen the same thing. Is this text file that is being written to on a Novell server? I had cases where multiple machines writing to the same file at the same time would produce the problem your describing. There was no way around it because it was a problem in Client32 that wasn't fixed in the last 3 versions I saw. The problem NEVER appeared when I tested the clients in a purely Windows environment, including the server. I ended up rewriting my data collection software that ran on each machine to its information directly to an SQL server instead of writing to a text file. RageInTheMachine9532
  • listview + selecteditem

    question tutorial
    2
    0 Votes
    2 Posts
    0 Views
    D
    Anonymous wrote: msgbox lstArtikels.SelectedItem().Text You can use SelectedItems.Count to see how many items are selected, then you can put up the Message Box: If lstArtikels.SelectedItems.Count > 0 Then For X = 0 to lstArtikels.SelectedItems.Count - 1 MsgBox lstArtikels.SelectedItem(X).Text Next End If RageInTheMachine9532
  • Firewall HELP

    csharp help tutorial question lounge
    2
    0 Votes
    2 Posts
    0 Views
    D
    zoodayz wrote: How would I allow my app to run behind a Firewall and NAT???? I am not able to turn it off and I fell others sould not have to also or port forward but lets say with a code like this as a example I got from here Also how about set it up to use random port would that have to do with.. Private Shared port As Integer = 44 ???? Are you telling us that the code you included in your post is the server running behind the Firewall/NAT? If so, then you MUST use port forwarding to get to the server from the WAN side of your router. Since there is no direct IP route between the Internet and your local network, the router must be told what ports on the WAN side of the router to forward to which server (IP and port) on the local side. Therefore, you can't use a random port number, unless your app is going to reconfigure the router every time the port number changes. RageInTheMachine9532
  • NEED HELP: Reference error when using subclasses

    help question tools announcement
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • dividing two polynomials

    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • client server

    question csharp java sysadmin
    2
    0 Votes
    2 Posts
    0 Views
    M
    It sounds like you're starting brand new to VB.NET, yes? If so, you may want to review the QuickStart tutorials for WinForms. It's a good place to start. http://samples.gotdotnet.com/quickstart/winforms/[^] If you're looking for socket-type programming, the .NET Framework contains classes in the System.Net namespace that you can investigate. If you're looking to create a Client/Server database application, you may be fine with the ADO.NET support in the Framework. The QuickStart tutorials introduces ADO.NET.
  • 0 Votes
    2 Posts
    0 Views
    K
    Hi I am a software consultant presently working on .NET technologies. Pls email me for further details. Thanks, Keshav.
  • How to select an Item in a Listview

    tutorial question
    2
    0 Votes
    2 Posts
    0 Views
    M
    Would something like this work? (Assuming a control on the form called ListView1) Private Sub ListView1\_DoubleClick(ByVal sender As Object, ByVal e As System.EventArgs) \_ Handles ListView1.DoubleClick '-- get the item selected following the double-click Dim sel As ListViewItem sel = ListView1.SelectedItems(0) '-- display the selected item text If Not (sel Is Nothing) Then MessageBox.Show(sel.Text) End If End Sub
  • Exit Code From VB application

    csharp question
    3
    0 Votes
    3 Posts
    0 Views
    A
    Thanks I read this and picked up alot. It works though if anyone is curious the VS.IDE debugger always returns a 0 in that window. I had to use the windows scheduler to see the return code. Thats again :cool:
  • Locking files in VB6

    question help
    4
    0 Votes
    4 Posts
    0 Views
    D
    Well, the locking is the only "sure" way to control file access and you don't have to deal with renaming stuff back when you crash. The problem you have is this: When AppInstance1 checks for the availability of File1.tif, it's there. The next step, is for it to rename File1.tif to File1.locked. But, What if AppInstance2 found that File1.tif was available at (nearly) the same time, say, between AppInstance1 finding the file and renaming it? In this case, BOTH instances will find the file, but only one will succeed in renaming it. How is this case handled? It's too much of a pain to write your own file locking scheme when Windows has locking built in. It also has the advantage of being "thread safe", where your custom scheme does not. RageInTheMachine9532
  • connecting to access project

    database question csharp sql-server sysadmin
    3
    0 Votes
    3 Posts
    0 Views
    U
    well, first of all I dont have rights to access a server machine where the sql server database is... so i have to go to thru this machine here they have set ms access project... and secondly this is what a client has requested to do... I can ask him if it is not at all possible to connect to sql server via access project in vb .net
  • Events-Application Idle -Help?

    help question
    2
    0 Votes
    2 Posts
    0 Views
    G
    Use a timer on your app and reset it when the mouse moves or the user presses a key. When the timer reaches a certain point, the timer event is triggered and you can do whatever you want. Grtz, Guus
  • vss automation with VB/VBA

    tools com testing help
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • accessing form member from another form

    tutorial question
    3
    0 Votes
    3 Posts
    0 Views
    A
    I'm sorry for not being more specific. You're rite, there is no problem doing that to the form before or when you instantiate it. What I should have been more cleare about was that I needed to access the childforms objects and properties for specific child forms that enheritted from that form and were currently showing. Someone on google helped me out on this though and frankly I am ashamed at how simple it is. You use DirectCast e.g DirectCast(me.mdiparent.ActiveMdiChild, _ form2).textBox1.WordWrap = true to turn wordwrap on for the textbox in the currently active child form of type form2. 2 U.S. coins equal 30 cents and one is NOT a nickle. Hmm..
  • Multi-Page Web Form

    question help
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Drag And Drop

    question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • IExplorer Bar

    question javascript html
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • MDI problem

    help question
    5
    0 Votes
    5 Posts
    0 Views
    A
    Well, i don't move the form myself ... I just show the form that has to be displayed within the MDI parent itself. So it has to behave like an MDI child but it needs to be displayed modally. I'll explain situation. I have a menu in the MDI parent .. When i click a menu option .. i want a form to display that is not mdi child. So the form is not shown within the mdi child, but minimised. Because i don't know well what you meant Greetings Jens
  • data connectivecty with coding

    help question
    3
    0 Votes
    3 Posts
    0 Views
    G
    Or when you are using a connection string in VB go to http://www.connectionstring.com Grtz Guus
  • Pls help me!!

    help
    2
    0 Votes
    2 Posts
    0 Views
    G
    Your question puzzles me slightly. But from what i understand is that you need to produce some sort of chart. Excel is equipped with a wide range of charts. Use code to populate an Excel spreadsheet and open it. Grtz Guus