Search results for query: *

  1. S

    Question Advice Needed - WPF with VB.net or C#

    Thanks. I was thinking from a self development point of view. I was thinking since I am tackling WPF, I may as well learn C#, as well. It is always good to have a basic understanding of another language. I was just wondering if it was worth the effort.
  2. S

    Answered Detecting Null Values in a DGV

    I am aware that is is using the Data Table and not the DGV. I have a fairly good idea what he is doing. I am an idiot. After your comment, you got me thinking. I went and looked at my Data Table. The problem was Data Table Column was defined as a String and not a Boolean. I changed it to...
  3. S

    Answered Detecting Null Values in a DGV

    Thanks for the reply. I tried your code. The problem is one of the Columns in the DGV is a CheckBox column. Your code does not detect this and sets the data to a String. An Exception is thrown on this column. Seems CheckBoxes do not like been treated as Strings ?
  4. S

    Question Advice Needed - WPF with VB.net or C#

    I found this on the net. I smiled when I read it. https://www.red-gate.com/simple-talk/dotnet/net-framework/10-reasons-why-visual-basic-is-better-than-c/
  5. S

    Question Advice Needed - WPF with VB.net or C#

    I am busy learning WPF and am going to tackle a new project soon. I know VB.Net and like working with it. But, most books and references use C#. I have dabbled with C#, and I can learn it if needed. Is it worth the effort to learn C# with WPF, or do I stick with VB.Net and WPF. Your thoughts?
  6. S

    Answered Detecting Null Values in a DGV

    I struggled with this for a while. When a Excel Spreadsheet is imported into a DGV, some blanks cells (in Excel) are imported as Null values. This causes exceptions with some code. So, my idea was to replace all Null values with default values, depending on the data type ("" for Text or False...
  7. S

    Answered Binding a TextBlock to a Radio Button

    I solved the problem using a Boolean conversion: <!--Radio Button IsChecked to Boolean Conversion --> <Window.Resources> <BooleanToVisibilityConverter x:Key="RadioButtonVisibilty" /> </Window.Resources> <TextBlock...
  8. S

    Answered Binding a TextBlock to a Radio Button

    I would like to Hide/ Display text in a TextBlock depending on the Checked Status of a Radio Button. But I cannot get it to work. Any advice is welcome. Radio Button Code: <StackPanel Grid.Column="0" Grid.Row="0" Margin="8,0,0,5"> <RadioButton Content="mA to...
  9. S

    Need Some Pointers on Performing a Simple Calculation Using a Function in C#

    Thanks... The syntax is what I an trying to learn. It a big mind shift for me, as I have coding in VB.Net for a long time. Thanks for the link.
  10. S

    Need Some Pointers on Performing a Simple Calculation Using a Function in C#

    I am moving from WinForms & VB.Net to WPF & C#. My question is related to C#. I have no idea of how to begin. I have trolled several forums for an idea of how to go about it, and get more confused as I go a long. The Function takes 3 string inputs from text boxes, converts them to real values...
  11. S

    Resolved Error when trying to install Microsoft Code Analysis 2017

    Thanks. After reading this, I installed the NuGet Package for this. Works fine.
  12. S

    Answered Please help me understand the following Code Analysis Error

    Thanks. None do. I will supress the warning.
  13. S

    Resolved Error when trying to install Microsoft Code Analysis 2017

    I am trying to install "Microsoft Code Analysis 2017" on Visual Studio 2019. I get the following error: I recently updated Visual Studio from Visual Studio 2017 to Visual Studio 2019. What is the problem? Please assist.
  14. S

    Answered Please help me understand the following Code Analysis Error

    I do not understand the following Warning when running a Code Analysis in Visual Studio 2019: Relevant section of code: '~~> Equipment Generate Parameters - OLEDB Connection Dim sFilePath As String = gThisApplicationRunFolder & "\UserData\Template\DBF Files\equip.dbf"...
  15. S

    Question [VB2017] Late Binding Error - Option Strict on

    Thanks. List(Of String) fixed it. The string is long, and has several sections to it. I am grouping portions of the string into separate lists, to be used later. strParameterText = DGVScadaEquipmentGeneration.Rows(r).Cells("Param").Value.ToString Dim...
  16. S

    Question [VB2017] Late Binding Error - Option Strict on

    When compiling, with Option Strict on, I get a Late Binding Error on the following code. I have looked for an answer and tried several options to try and fix it, with no success. Dim strParam1 As String() Dim arrayParameters As ArrayList = Nothing Dim...
  17. S

    How do I import and Display this Existing XML File?

    I have an existing XML file that I would like to add to a data set and display on a form, in data grid view. It is not in the normal format of Table and Table Columns. I have no idea on how to do this. Please assist. <?xml version="1.0" encoding="utf-8"?> <template desc="Digital01 - Siemens">...
  18. S

    How do I Return a Value from a DataSet after a ComboBox Selection

    I got it, thanks. Working now.
  19. S

    How do I Return a Value from a DataSet after a ComboBox Selection

    Hi. I am new to the Forum and new to VB.Net. I have had extensive programming with VBA Excel and other proprietary software (PLC & Scada in the Automation fields). :wavey: My problem is as follows: I have a Windows Form Application. I have created a XML DataSet, which has a table in it. This...
Back
Top