Can VB.NET be forced to initialize instance variables BEFORE invoking the base type constructor?

If you have virtual members that are going to be invoked during construction (against best advice, but we’ve already agreed on that), then you need to move your initialization into a separate method, that can protect itself against multiple calls (i.e. if init has already happened, return immediately). That method will then be invoked by … Read more

How to insert values into VB.NET Dictionary on instantiation?

If using Visual Studio 2010 or later you should use the FROM keyword like this: Dim days = New Dictionary(Of Integer, String) From {{0, “string”}, {1, “string2”}} See: http://msdn.microsoft.com/en-us/library/dd293617(VS.100).aspx If you need to use a prior version of Visual Studio and you need to do this frequently you could just inherit from the Dictionary class … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)