Search results for query: *

  1. T

    Possible to cast a dataview to a dataset type?

    No, not saying it's a good practice or the way to do it, just wanted to know if there was a way to cast a dv as a ds.
  2. T

    Possible to cast a dataview to a dataset type?

    Thanks, I tried out what you're saying about the table property and it works, but it returns the dataset pre filtered - Maybe I'm doing it incorrectly but I'd like to get just the ones the dataview pulls out of the dataset. Would this be possible? Thanks again...
  3. 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...
  4. T

    server explorer

    I had the same question, was not able to create a new view from server explorer. I am able to create new views inside SQL Server though. Any other thoughts on this?
  5. 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...
  6. T

    Newbie question... 'me' and other keywords

    sorry, but 1 more follow up question... If the 'me' represents the current instance of the class, in this case since the the 'me' is in the button's click event, wouldn't the button be the current class and not the form?
  7. T

    Newbie question... 'me' and other keywords

    ...I guess what confuses me still is -why is it when I type 'me.', the IDE will enumerate the BindingContext property(and many others) but if I just type 'form1.', it will not list BindinContext or quite a few others. Is form1 not refering to an actual form at that point?
  8. T

    Newbie question... 'me' and other keywords

    Just asking what specifically the 'me' refers to in the code above.
  9. 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...
  10. T

    Question about constructor of extended control...

    ...but I am coding in the inherited class for the textbox, not in the form code at this point, so the 'me' would refer to the textbox still, I think. So, would I have to get rid of the default control name text in the form's code, or could it be done in the textbox class itself? I would have...
  11. 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...
  12. T

    Using Resource files in VB.NET

    I was looking for the same thing and found a small example of how to recall the image... www.dotnet247.com/247reference/msgs/26/134098.aspx Hope it helps...
  13. 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...
  14. 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...
  15. 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