I'm making some snippets and i want to position the cursor. I've come acros "$end$" but all examples i see are in c#. Since recently i've started programming in vb.net again and it seems $end$ isn't recognized or doesn't work here. Is there another keyword in vb to do the same?
thanks in advance.
To the best of my knowledge, no. MSDN doesn't do the best job of documenting the meta-languages of snippets so reverse engineering tends to be the best way to figure things out. Looking through all of the VB snippets I can't find any usage of $selected$ or $end$. When I insert Microsoft-created snippets in VB I also can't press enter to go to the inside of my snippets like I can in C#.
If you install SharpDevelop, it has a translator that will convert C# code to VB.NET.
Just open a .cs file and then Tools->Convert to->VB.NET
Related
I'm converting a project which started life as a PHP application to a Windows Forms Application in VB.Net, and am not sure how to go about formatting my output. The original, of course, simply outputs in HTML, and I've thought of using a WebBrowser control, but is there a better/more standard/any other way to display formatted output?
I'm new to Visual Studio, and Windows application programming in general. I've done a fair amount of work with VBA, so I'm familiar with the basics of the language, but still trying to figure out a lot of things. I think my question is beyond asking how to display output in VB.NET, as I'm familiar with the various form controls, such as label and textbox, but I googled extensively before posting here, and could not find what I was looking for. VB tutorials I've found are along the lines of "A variable is...." which I don't need. This site, while pretty basic, does have some interesting stuff, and is where I came across the WebBrowser control, but I'm just wondering if that's the best or only way to do what I want.
Is there any way in visual basic to display any of this information about memory(like in the link below)?
Something like Module Name,Serial Number,Module Type,Memory Speed,Timings etc. ?
As Damien_The_Unbeliever stated your best bet would be to look at the Win32_PhysicalMemory WMI Class. You can experiment around WMI by downloading the WMI Code Creator from Microsoft, it will generate code in C#, VB.Net and VB script which you can run through the program and see what the results are.
I believe what you are asking is how to retrieve information about hardware components (namely main memory) using VB.
Please see this thread on VB forums on some example of accessing hardware information.
You might also be interested in this a bit more as it seems to cater to your needs a bit more.
Good luck.
I'd like to create an IDE for a language and I'm wondering how to implement some features. In particular syntax highlighting and content assist are troubling as they must work even when editor content is not valid (when user is typing syntax hightlight should not disappear just because parser fails).
I am wondering how to approach this problem (and others as well). I've found this: How does code completion work? with a description of a solution to this problem, but it's rather brief.
I can come up with a way to implement all features I want at some point, but I'm not the first one and someone has done it already ;) (and reading source code of Eclipse is not that easy)
So, my real question is there a book discussing problems related with creating IDE? A detailed article discussing how to parse invalid code? Any source of information I should see?
Ah, and by IDE I don't mean a new application, just a set of plugins for eclipse.
The following link will help you further..
Syntax Highlighting:Fast Colored TextBox for Syntax Highlighting
an OpenSource IDE:SharpDevelop
an eBook How to create IDE:[Dissecting a C# Application: Inside SharpDevelop]
I have found this amazing control that does exactly what I need, only problem, its in C#.
Does anyone know of a VB version of this code? I've tried using converters, but all of them have failed in successfully converting the project. Maybe one of you guys knows how to convert it?
Anyway, here is the control:
http://www.codeproject.com/KB/edit/FastColoredTextBox_.aspx
Apreciate any help!
Could you compile this into its own assembly and then reference it as a control? That way, you wouldn't have to port it to VB.net.
We have used Instant VB to convert tens of thousands of lines of code from C# to VB and they are pretty helpful if you run into conversion issues.
My work dropped a vb.net program in my lap that I need to modify. Die vb. Die.
Anyway, I work in Netbeans and can't find a module that will allow for syntax highlighting of vb. Is there a creative solution out there for this that doesn't involve using a different IDE?
Thanks guys.
As mentioned in the accepted answer to this question, there is a tutorial for setting up custom syntax highlighting in Netbeans here (direct link to tutorial instead of link to FAQ provided in linked question).
I think you might well find that it's less hassle to just install Visual Studio than to set up Netbeans to highlight VB.Net syntax, but that's up to you. Good luck.