Delegate Test

 

Imports Microsoft.VisualBasic.CallType

Public Class TestJump
Inherits Test

Delegate Sub T()

Public Overrides Sub RunTest()

Try
'Call TestBack()
Dim st As New StackFrame
Me.Name = st.GetMethod.ReflectedType.Name
Dim op As T = AddressOf TestBack
op.Invoke()
Call TestDelegate(AddressOf TestMe.TestBack)
Me.Result = True

Catch ex As Exception
Me.Result = False
Me.FailMessage = ex.Message
End Try

End Sub

Private Sub TestDelegate(ByVal op As T)
op.Invoke()
End Sub

End Class

Module TestMe
Public Sub TestBack()
Debug.Print("Here123")
'Debug.Close()
End Sub
End Module

Talking about NULLABLE datagridviewcomboboxcolumn (vbnet 2005)

 
 
Unresolved
Untried
How to allow used to remove an entry from a DataGridViewComboBoxColumn
 
Possibly try
 
 

Talking about 7-Zip

 

Quote

7-Zip

RAR files etc.

Talking about Scott Hanselman’s Computer Zen – Scott Hanselman’s 2009 Ultimate Developer and Power Users Tool List

Refactor: Anonymous Type to Class

 

Dim RCO As Object = New With {.ID = 1, .Name = "ABC", .Value = 0.123}

Then use Refactor to name the anonymous type and create a class based on it.

 
 

Forms Designer does not show: Value does not fall within the range expected

 
Very frustrating bug this one.
May be that the .resx file is corrupt. In particular the "Other" section, which is the tray locations
 
A way of getting the form back is to close Visual Studio and then reopen
 
Have not tried this.
 
This suggests
1. Go to Windows Explorer and make a copy of the bad forms .RESX file.
2. In the Solution Explorer, click the Show All Files button.
3. Your form should have a + beside it.  Click it and the .resx should show. Make a copy of the .resx file.
4. Right click on the .resx and delete it.
5. Close the IDE.
6. Restart VS and load your project, the .resx should be ok.
 
 

sp_rename

 
 

B. Renaming a column

The following example renames the TerritoryID column in the SalesTerritory table to TerrID.

USE AdventureWorks;
GO
EXEC sp_rename 'Sales.SalesTerritory.TerritoryID', 'TerrID', 'COLUMN';
GO

 

Report Data Sources

 
When designing a report there is an extra top menu. So use Report > Data Sources.
Ideally DataSource is in same project. Possibly use Objects in future if not in same project. Seems awkward.
 
Error "The source of the report definition has not been specified"
 
Dim ds As New dsA
Dim ta As New dsATableAdapters.ATableAdapter
ta.Fill(ds.A)
Dim bs As New Windows.Forms.BindingSource(ds, ds.A.TableName)
 
Dim ReportDataSource1 As ReportDataSource = New ReportDataSource
ReportDataSource1.Name = "dsA_A"    'Important to use datasource name as used on report
ReportDataSource1.Value = bs
 
With Me.ReportViewer1.LocalReport
    .DataSources.Add(ReportDataSource1)
    .DataSources(0).Value = bs
End With
 

Cannot create an instance of OLE DB provider “VFPOLEDB” for linked server “Opera”.

Unsolved

Msg 7302, Level 16, State 1, Line 1
Cannot create an instance of OLE DB provider “VFPOLEDB” for linked server “”.

Click here for one part of solution Social.msdn

in Server Objects > Linked Servers > Providers > VFPOLEDB > General tab > Provider options > Allow inprocess. Also, you can
change the InProcess setting with the following code:

USE [master]
GO
EXEC master.dbo.sp_MSset_oledb_prop N’VFPOLEDB’, N’AllowInProcess’, 1
GO

Then get a new message
OLE DB provider “VFPOLEDB” for linked server “Opera” returned message “Invalid path or file name.”.

Cannot initialize the data source object of OLE DB provider “VFPOLEDB” for linked server

 

Edit and Continue: Changes are not allowed when the debugger has…

 
Edit and Continue
Changes are not allowed when the debugger has been attached to an already running process or the code being debugged was optimized at build or run time
 
Probably more than one issue:
  1. Check that running in Debug mode