Search results for query: *

  • Users: gchq
  • Order by date
  1. gchq

    Question Getting an image into a DataGrid

    The Answer Turns out the answer is to leave the 'image' as Byte()... Case "System.Byte[]" Dim ImageTemp As New DataTemplate Dim ImageCol As New DataGridTemplateColumn Dim vFactory As New...
  2. gchq

    Question Getting an image into a DataGrid

    I have tried every which way to get an image into a DataGrid... Any ideas where I am going wrong? Thanks (I know the variable is called DGV - winforms habit, but it is a WPF DataGrid) Public Class DGVx Inherits DataGrid Public Overrides Sub BeginInit()...
  3. gchq

    Question Adding item from a ResourceDirectory

    This one is driving me bonkers... I want to add a status bar to the last row on a dynamically build grid . I think I have found the method for accessing the Resource Directory Dim vResource As New ResourceDictionary With vResource .Source = New...
  4. gchq

    Question Clearing selected rows in DataGrid

    This was resolved by moving the code from Loaded to Initialised :-) - This is more like writing asp.NET
  5. gchq

    Question Clearing selected rows in DataGrid

    The code below works fine the first time it is loaded, but if the navigate back button is used the selected row remains the same as the last input - I have tried a myriad ways to clear it, but sadly nothing seems to work.... Try Mouse.OverrideCursor = Cursors.Wait...
  6. gchq

    Question Access of shared member, constant member...

    Sussed it - replaced the Grid Name with Grid... Still like to know if DataGrid is slower than DataGridView and if there is a way of resolving it though
  7. gchq

    Question Access of shared member, constant member...

    Hi there We will probably be moving from WinApps to WPF soon so I getting my head around a few elements. When using Grid.SetColumn and Grid.SetRow I get the following error - it works OK, but.... Access of shared member, constant member, enum member or nested type through an instance...
  8. gchq

    how to add chart to mortgage calculator

    You could add FusionCharts to your app. We use it for our apps (screenshot below)
  9. gchq

    Question StartupNextInstance - e.BringToforeground not firing

    Hi I have ClickOnce app that is set as a single instance app. In ApplicationEvents there is this Private Sub MyApplication_StartupNextInstance(sender As Object, e As Microsoft.VisualBasic.ApplicationServices.StartupNextInstanceEventArgs) Handles Me.StartupNextInstance...
  10. gchq

    Training

    If you are going to approach a developer to help they will need to get a handle on the size of the project - 'lots' will not really help much If you go to the DPack site and download their add-on for VS you get get all the statistics at the click of a button (like the screenshot below). I once...
  11. gchq

    Referring to a datatable by string

    If you just want to get the table name into an ArrayList, then.... Dim i As Integer = 0 For Each Table in DS.Tables MyArrayList.Insert(i, DS.Table(i).TableName) i += 1 Next
  12. gchq

    Referring to a datatable by string

    If you are trying to extract the tables from the DataSet then Dim dtInvoice as DataTable = dsMain.Tables(0).copy
  13. gchq

    Referring to a datatable by string

    Is this what you mean? For Each table In DS.Tables If table.TableName = "dtInvoice" Then 'do whatever you are going to do with the data from this DataTable End If Next
  14. gchq

    Question Convert String to DateTime in DGV

    With DGV .Columns(3).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight .Columns(3).DefaultCellStyle.Format = "###,##0.00" End With
  15. gchq

    Training

    :nevreness: You're welcome.. By the way - what size is the project (how many lines of code)?
  16. gchq

    Question SetDelimiters as variable

    This was set to string originally - it was just the character literal (c) that was causing me to run round in circles. Thanks again to both of you for your patience
  17. gchq

    Question SetDelimiters as variable

    Thanks to both of you. It was the character literal thown into the mix that was causing the pain - lack of sleep probably didn't help... You can bat off thousands of lines of code without an issue, then get stumped on the smallest thing.
  18. gchq

    Question SetDelimiters as variable

    First we look at the csv file and determine what the field delimiters are (usually a comma) - so "," (without quotes) would be entered into the text box. If the field delimiter is something else that would be entered into the textbox. For Tab we could use a checkbox and then set as vbTab The...
  19. gchq

    Question SetDelimiters as variable

    So it's Dim vChar as Char = textbox.text Reader.SetDelimiters(vChar & c) ??? I know that comma delimited should be a comma in a csv file, but in theory it could be set to "@" or any number of other variables Thanks ====Edit===== I have just tried it via the third post. Dim vChar as Char...
  20. gchq

    Training

    I understand that - I won't ask anyone in the organisation to do something I can't do (or haven't done). From a personal point of view I don't like the designer in VB but prefer to build everything code-behind - usually because the apps can get so complex designer becomes a total mess. As you...
Back
Top