Search results for query: *

  • Users: VonEhle
  • Content: Threads
  • Order by date
  1. V

    SelectedValue coming up blank in listbox

    When I run my program, it fills up the listbox properly, but when I try getting the SelectedValue, it comes back empty. I tested it by having a msgbox pop up with just the SelectedValue. Can someone tell me why the value wouldn't work? Public Class frmCourseList Public strStudents As...
  2. V

    Serialization Problem

    This is my first time trying to serialize something. I'm getting an error that says: Type 'System.Windows.Forms.Form' in Assembly 'System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' is not marked as serializable. The class is marked serializable, so I'm...
  3. V

    Creating listboxes "on the fly"

    Let's say I ask the user for a number between 1 and 10, then they click a button. How would I then create that same number of listboxes to appear on a form? I know I could create them and make them visible after the number is entered, but I'm pretty sure that will create a ton of unnecessary...
  4. V

    Trouble sizing datagrid column

    I'm trying to resize some columns on a datagrid, but keep getting an error. Here's the code I'm trying to use... dim dgColumnStyle as DataGridColumnStyle dgColumnStyle = dgBooks.TableStyles(0).GridColumnStyles("Title") 'Error on this line dgColumnStyle.Width = 200 I get an...
  5. V

    Connecting to a database

    I am trying to do a little practicing. The following code was supplied from a book, but it doesn't work for me. I always get an error saying "login failed for GATEWAY/owner". I'm guessing it is ignoring the login info on the OdbcConnection. Imports System.Data.SqlClient Imports...
  6. V

    Looping Problem

    I am attaching a school project I am working on. The problem I'm having is when I add an item to the cart, it always doubles the quantity. I have figured out that the problem is that the program is looping, causing it to do several steps twice. I cannot figure out why it is looping. Obviously...
  7. V

    Array Problem With Datatable?

    I have a datatable that keeps a running cost total of all items in the table. I'm trying to make it so I can also keep track of each individual line for future purposes. When I run it as shown below, I get an error that says "Object reference not set to an instance of an object." The error...
  8. V

    Putting data in a database VB2005

    I have a webform that contains a shopping cart. A datagrid is created on the fly as the user selects items. Once the user clicks a "complete" button, the items they selected should be dumped into a Access database. I've had projects that pulled data into a table from a database, but never...
  9. V

    DataGrid Update problem

    I have a webpage I made that contains a datagrid. I added the Edit & Delete buttons automatically through the properties of the datagrid. Anytime I make a data change and click the automatically updated "update" link, I get the following error: Updating is not supported by data source...
  10. V

    Changed from VB 2003 to 2005?

    This line gives me an error on the ToChar in VB2005, saying ToChar is not declared: Dim chrDelimiter() As Char = {ToChar(",")}
  11. V

    Having ASP.Net find a .txt file

    I put some .txt files in the App_Data folder of my ASP.Net solution. How can I direct the stream reader to look for the files in this folder (or even the bin if necessary). I don't want to have to use an OpenFileDialog.
  12. V

    Passing info to a custom class library.

    I have a school assignment that requires me to create a class library. The form for this solution has a text box that you can type anything you wish in. You can then push a button and have four different labels show how many characters, words, sentences, and paragraphs the text box contains...
  13. V

    Viewing VB code of a .exe file

    If all I have is a .exe file from a program I know is written in VB.net, is there a way I can view the code?
  14. V

    Combining Solutions

    3 different people have been working on a VB solution. What is the easiest way to combine our 3 solutions into one? We need to combine all our forms, crystal reports, etc... I tried just cutting and pasting the forms into the solution folders, but the don't come up on the solution explorer.
  15. V

    Finding a record in a dataset

    I'm trying to figure out a way to find a row record in a dataset. There is a field in the table called "ID". I want to be able to give it a number and have it display the info from that row. Here's what I've been trying... Me.BindingContext(DsResults1, "tbl_Results").Position = 0 Do...
  16. V

    StreamReader

    I am taking a VB.Net class in school right now (college level). We are working on reading text files into an application. I am stuck on something and for the life of me can't figure out how to proceed. I know this should not be difficult... I'm obviously making it too hard. Following is the...
Back
Top