Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I'm trying to make a simple background program that runs in the background using VB.NET to change anything I type to a hexadecimal value. For example, if I'm writing an email and I press "h" then it would erase the "h" and replace it with it's hexadecimal value(h's is 68). I have no clue how to do this could someone please explain?
Yes, you're looking for the Asc() and AscW() functions in Visual Basic. Combine that with String.Format() to display the number as a hexadecimal value, and key it all off a keypress event of some kind.
For best results, stick with WinForms over WPF for such an app.
If what you want is to make the thing run in the background over literally everything you may be out of luck; Windows' process separation and message passing systems will get completely in your way.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I want to create a simple Visual Basic.NET solution using LUCENE.NET, indexing files in a folder.
I have searched all day, but the example code that I find is in C#.
Can someone please help?
Thanks
I wish I had a better answer for you but I suspect the best approach is to use a C# to VB.Net code conversion tool. Like you, I have never seen a VB code example for using Lucene.Net. With one of these tools, you can paste the C# code into a text box, hit the convert button and it will display the theoretically equivalent VB.Net code.
Here are a couple code converters that may be useful for you:
https://converter.telerik.com/
https://codeconverter.icsharpcode.net/
https://marketplace.visualstudio.com/items?itemName=SharpDevelopTeam.CodeConverter
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 years ago.
Improve this question
I'm doing my first VB.NET console application. I have some experience making VB.NET "non-console" applications.
My guestion is, how can i make my own commands to my console application. For example if user types to console "Hello World" and then the application would answer back to the user. I dont want it to be like "Press any key to continue..." nothing like that. I just want to make my own commands.
I've already tried to find some help from YouTube or Google but i couldn't find anything that would help even little. So i'm asking from you guys.
I also would like an answer soon as possible.
Console.ReadLine will block execution until the user has pressed the enter key. It then returns the full string of whatever the user typed on that line. You can then write conditional code which acts on whatever that returns. So, for instance:
Dim input As String = Console.ReadLine()
If input = "Hello World" Then
Console.WriteLine("Hello to you too")
End If
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I don't know where to start with this. If there is a way, all I need is an object name or collection name, so I can look up the feature on Microsoft's site, and go from there. But, searching there directly didn't turn anything up.
You're probably looking for the VBE Extensibility Library.
However note that depending on what you're actually trying to do ("modify other VBA code"), it may be very hard, if not impossible to implement.
The library will let you iterate modules, locate their members, pull the actual code into strings (from entire modules or just a given procedure)... but that's as granular as it gets.
If you're trying to do anything that requires understanding of the code's semantics, the VBIDE API won't be enough: you need a lexer and a parser for that... and I've yet to see a successful lexer/parser for VBA, written in VBA.
Good luck!
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
How would I be able to make a program like words WORDART that has 3d text and text effects? Would I need pictures for each letter with the cool effects of is there a different way to to it?
That seems like a good idea to have pictures for each letter or number but that's a lot of pictures for capital letters and regular letters, you also would have to load each file which can take some time, so it doesn't sound so practical to do. A better option would be to make a user control that makes a picture at run time with the word art in it wand has the cool effects, a example is here
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=70216&lngWId=1
aanother example is at http://www.xtremevbtalk.com/word-powerpoint-outlook-and-other-office-products/101964-import-ms-word-art-object-visual-basic.html
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I want to write software in visual basic that reads the barcode of various items into my program. Any suggestions for how to do this?
If you have a hardware barcode scanner to hand it will almost certainly imitate a keyboard, and send the barcode as keystrokes (no special code required, just a textbox and it will put it in there once it is focused).
If you go to the manufacturers website, you will find exactly what it does, and even special barcodes for programming your scanner (such as sending newlines at the end of barcodes, etc).
Otherwise, see my comment to your question above.
You don't need code to read the barcode scanner. It usually comes into the system exactly like it came from the keyboard. Make your app work for the keyboard and you are there.