Calls the method "IsMatch" on the Regex class (from the "System.Text.RegularExpressions" namespace), with the arguments of the current keycharacter (provided by an event you did not copy/paste) and a RegEx. Then it inverses the outcome.
Not very helpful, is it? It compares a key with a RegEx and reports whether they match. You'd have to look up the "\\d+" part on this page[^] from MSDN, I don't know the regex-code from my head.
my youtube video downloader app was working but it stopped working due to Dec-2012 YouTube changes. my code is unable to load the download format.
Currently, the video info loads but the application is unable to load the available download formats and download the video.
Download the VB6 Source here http://www.abhisoft.com/misc/UTubeVB6.zip
I hope anyone is able to take a look at the code and see what's wrong?
I think the error is in here:
It's my first question in this forum...just read a response to another guy that helped me a lot.
I am working for some project in my university and they asked me to make an application in vb.net. Then I had to save different data for every user in order to check his own work, so I used SQL management studio to import some information to arrays there.
The big problem that I face now, it that they would like to work this project online, so as users can open it through their website. I have no idea if all the code I wrote in vb.net and connections between VISUAL studio and SQL studio could be transfered online ! Maybe I could convert most of them so as to run the project online.
Can anyone help me ????
I would really appreciate every advice or help !!! I am searching for a solution so as not to lose my project( that I almost finshed ).
Aw, sorry for using C#-terminology; it's called "Overridable" in VB.NET.
We have several programs with multiple forms that we need to do this on.
Can you please give concrete examples?
Take an empty form, and modify it like below;
' This call is required by the designer.
' Add any initialization after the InitializeComponent() call.
Next, change your existing form to Inherit from the BaseForm like below;
PublicClass Form1 : Inherits BaseForm
This would give you a method that's called when the form is constructed (just like InitializeComponents), and give you the option to override it's implementation for a specific form;
I wonder why you wouldn't just call your customized initialization from within the Load event in your source code for each Windows Form. Doing so, you don't have to touch the Windows Form Designer generated code file (*.Designer.vb).
Your code is essentially correct but what you haven't done is to read the type of data stored in each name-value pair so that the correct cast can be applied.
The raw data obtained from GetValue(valueName) is typed as Object and the ToString() conversion gives a correct representation in most cases, the exceptions being when the actual type is an array (REG_BINARY, REG_MULTI_SZ)
The technique is read the type via GetValueKind(valueName) and then apply a cast to the Object returned from GetValue(valueName). The incomplete method below shows the basics and in your case formatting the values ready for display should be done in the gaps left as "do something appropriate".
PrivateSub InterpretValue(rawValue asObject, interpretAsType as RegistryValueKind)
' REG_BINARYDim byteArray AsByte() = DirectCast(rawValue, Byte())
' Do something appropriateExitSelectCase RegistryValueKind.DWord
' REG_DWORDDim signedValue32 AsInteger = DirectCast(rawValue, Integer)
' Do something appropriateExitSelectCase RegistryValueKind.QWord
' REG_QWORDDim signedValue64 AsLong = DirectCast(rawValue, Long)
' Do something appropriateExitSelectCase RegistryValueKind.Unknown, RegistryValueKind.String, RegistryValueKind.ExpandString
Dim stringValue asString = rawValue.ToString()
' Do something appropriateExitSelectCase RegistryValueKind.MultiString
' REG_MULTI_SZDim stringArray AsString() = TryCast(rawValue, String())
' Do something appropriateExitSelectEndSelectEndSub
Last Visit: 31-Dec-99 18:00 Last Update: 23-Apr-17 0:22