Search results for query: *

  • Users: PatM
  • Content: Threads
  • Order by date
  1. P

    can I display text from a related table in a datagrid?

    I've been looking all morning but I have no background with Datagrids so I'm probably looking for the wrong things anyway. I have a table that has a number to show the user's level. I have a related table that contains the text that I want to display rather than the number so basically user...
  2. P

    Database slower than datagrid it seems

    In a form I am displaying a datagrid with data from a users table. I have a delete button which works and after the deletion is done I redo the query and reset the itemssource to show the new contents. It seems that seldom is the row actually gone although very occasionally it is. If I leave the...
  3. P

    Dynamically adding dynamic buttons to <wrappanel> or <stackpanel> or whatever else?

    I've been searching all morning for examples of how to create dynamic buttons for a wpf control. I was thinking of a wrappanel at first but then thought a stackpanel would probably be better anyway. Lots of C# examples but nothing for vb.net
  4. P

    Datagrid index out of range but it is full and selectable etc

    When trying to set anything using datagridname.Columns(0) I get index out of range yet there are several rows with several columns showing. It works on other Datagrids in my project but not this one. Here is the code sqltext = " Select (select name from stock where stockid=stock.id) as...
  5. P

    Installed on client, program dies at setting a couple variables

    This runs fine on my development machine but dies without complaining when I build then run on a client. The offending code is below. I get a messagebox saying "Setting Globals" then after a few more seconds the program quits. I have tried just copying the exe from the release folder and using...
  6. P

    Stumped - what is wrong with this insert statement?

    INSERT INTO users (fullname,username,password,role) VALUES ('Sean Guy','sguy','password',2) Seems pretty simple. I tried the "2" with single quotes as well with no luck. I even checked letter case to make sure everything matches
  7. P

    Return rows from sqlite query function

    I used to be fairly proficient with vb and c# but haven't used either of them in 10 or twenty years. I have a need to use sqlite in vb.net (vs2015) but I simply cannot remember (or find out) how to have a generic function read the database and return a result containing multiple rows. Supplying...
  8. P

    Get visible points when zoomed (VB 2010 Exp)

    I've figured out how to use the chart cursor index to get the X axis label (date) and from there figure out which datarow in the datatable that is. What I can't seem to find is what the first and last indexes are for when the chart is zoomed. The CursorPositionChanged event args include...
  9. P

    Custom Combobox class - Line Weight Picker - item image problem

    I'm attempting to make some custom classes (comboboxes) for setting MSChart attributes and I'm stuck on line weights. I had done experiments in a sub where I'd create a bitmap/imagelist of different line weights and add that to the combobox. Once that was working I started on a custom class to...
  10. P

    Problem using Bindingsource - shows System.Data.DataRowView instead of Displaymember

    I have a Dataset and Datatable (which is typed but empty when I assign the bindingsource) and I'm trying to get that to show in a combobox. Here's the relevent sections: On the form I added BindingSource1 Declarations Dim dsetMySet As DataSet = New DataSet("MySet") Dim dtMyTable1 As...
  11. P

    Combobox filling and firing off events for other comboboxes

    I've got four bound comboboxes (configured as dropdown lists). I'm filling each from a dataset (which is the easy part) but the second combo depends on the first being set and the third and fourth depend on the second being set. So what I have to do is Fill #1 combo which is from an unfiltered...
  12. P

    create database file from coded dataset? compact sql

    Dunno if this is the right place for this as the only compact sql subject I could find was for mobile development and I'm using this in a desktop app... Anyway, I've seen tons of examples of creating datasets in code but never have I seen this used to create an on disk database file. I've...
  13. P

    Populate listview from custom class - selectedvalue always null...

    I know it'll be something dumb but I just can't figure out how to properly set the displaymember and valuemember. THis is what I have so far. Private Class cControllerListBoxEntry Private m_strName As String Private m_strSerial As String Public Property Name() As...
  14. P

    How to receive bytes through tcpclient or sockets?

    Under VB6 with winsock I spend half a day writing an app that receives a plain old byte array that was mostly text but also had control characters. Under VB.net I've been trying for four days to do the same thing without success. I stole a client server example from MS Windows Simple Multi-User...
Back
Top