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...
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()...
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...
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...
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
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...
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...
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...
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
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
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
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.
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...
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.