ASP.NET Error When Updating from Gridview

Could Someone please assist me with this simple error I have been struggling with for the last couple of hours? I am at the point of just burning the laptop.... Error: [SqlException (0x80131904): Incorrect syntax near the keyword 'Group'.] Code: ...
more »

2017-10-16 12:10 (1) Answers

List the months between two dates asp.net

I had the below code to list the last day of every month between two dates but my problem is I did not get the last day from the months. for example : Date1: 31/10/2017 Date2: 31/3/2018 my Result : 31-10-2017 30-11-2017 30-12-2017 30-1-2017 28-2-...
more »

2017-10-01 08:10 (2) Answers

How to use an array of objects in vb

I'm trying to learn how to use an array of objects, but I don't understand very well. I have to export data from an Excel file to an Access db. Private Sub Import_XLS(ByVal fileData As String, ByVal dbEmpty As String, ByVal dbDest As String) If...
more »

2017-09-28 11:09 (1) Answers

vb memory mapped file Array of Integers

I am trying to create an array of Integers into a memory mapped file and read the file in C++, but I won't ask the c++ part here. MakeMem() has {"Not enough space available in the buffer."} Private Sub MakeMem() Dim integer2 = New Integer(31) {} For...
more »

2017-09-25 08:09 (0) Answers

Multi part line cannot be bound

I am creating a program in VB.net and in one form. I want to show the data of 2 tables in one Data grid view but it says that multi part cannot be found. Here is what I have tried so far sql = "select EntryNo.Student_Info, firstName.Student_Info, l...
more »

2017-09-19 16:09 (1) Answers

Chr(34) equivalent

I am converting VB.NET code to c# and I am stopped when I reached the following code snippet. I need someone's help to convert Chr(34). Please help me to convert it to c#. VB.NET Code Dim inputString As String inputString = "Some text ..." inputS...
more »

2017-09-19 13:09 (2) Answers

How to click WPF ScrollViewer down button

Following picture shows my project. Here is XAML code for your testing needs. <Window x:Class="MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainWind...
more »

2017-09-16 01:09 (2) Answers

Converting model class to XML

I have the next classes in vb.net: Class A Public Property Bs As New List(Of B) End Class Class B Public Property D As String Public Property E As String End class I wish to convert them in xml using next code: Dim sw1 = New StringW...
more »

2017-09-13 12:09 (1) Answers

RichTextBox create an empty file

I'm trying to save a report file to disk by using a RichTextBox but I'm getting an empty file. ReportRtb.Text = Report & Chr(9) & Source ReportRtb.SaveFile(FullReportPath, RichTextBoxStreamType.PlainText) I don't understand what I'm doing ...
more »

2017-09-05 16:09 (1) Answers

Why does rotation take abrupt jump?

This is a WPF desktop app. I'm using Thumb control to rotate my objects. While it works nice and smooth in general, there is an abrupt jump in the rotation angle every time I start rotating. After the initial jump, rotation works smoothly again. Ver...
more »

2017-09-04 15:09 (1) Answers

Context menu on any control on form

How would i display a context menu with a button in it by right-clicking on any element on form? The purpose of a button in a form would be: Displaying a x:Name of a control on which a right click(displaying a context menu )is performed. To summar...
more »

2017-08-21 12:08 (1) Answers

Save/Load full form

I am writing a program for a friend in my free time to use to document students for physical therapy and occupational therapy. I'm using visual basic and have created a basic form so far, but realized I'm not sure how to save/load the information tha...
more »

2017-08-16 17:08 (1) Answers