Search results for query: *

  1. T

    Possible to cast a dataview to a dataset type?

    I'm trying to set up and XmlDataDocument based on the contents of a datagrid, so I can use the .Writeto method to put the data into an xml file. The XmlDataDocument constructor takes a dataset(Im using datagrid.datasource which works with a ds, but not a dv). Im using a dataview as the...
  2. T

    Easy way to change selected row based on user key press?

    Does the datagrid provide functionality similar to a listbox wherein if the user hits the letter x on the keyboard, the datagrid will scroll to the first occurance of this letter in a particular column? Thanks...
  3. T

    Newbie question... 'me' and other keywords

    Given the following code... Public Class Form1 Inherits System.Windows.Forms.Form 'Create array of vendor objects... Dim maVendors(3) As Vendor ... Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'Init...
  4. T

    Question about constructor of extended control...

    I created a simple extended textbox control by using Inherits System.Windows.Forms.TextBox and then just added some of my own functionality. I did not use the visual designer at all. My question is, when I instantiate the control, it has the standard 'Textbox1' as the default text. I tried...
  5. T

    Easiest, fastest way to store images? (VB.NET)

    What is the best real world method of storing small images, and being able to save and retrieve them? I am doing a VB.NET app that has a SQL Server backend. Should they be stored in the database? In a resource file? I am trying to avoid a graphics folder where they could be corrupted or...
  6. T

    Simple OO Design Question...

    Sorry if this is posted in the wrong forum, not sure where else to look... I am working on a VB.NET program to catalog my video collection. I have designed a class called VideoTitle. One of the methods I believe this class should implement is an Add Video method. When a video gets added, it will...
  7. T

    OOP Newbie Question... DB read/write, from where?

    Hey all, If I am instantiating an object from code, and that object will be populated by(or saved to) a database, where should the code reside that actually makes the connection to and reads from the DB? Do best practices dictate the connection is made in the code that calls the object or in...
Back
Top