i have vb10 and i maid a form that contains richtextbox and button1 and label1
i want to type something in the richtextbox1
when i press the button1 i want it to take a litter by litter and convert each one to other character or numbers which the modified text will be in label1
the problem is i could change except the last command in the button1
for example :i but this code , which is in button1_click:-
An application I maintain has been around since VB6 days - ported to .Net 1.1, and now being updated/rewritten across to .Net 3.5 The application provides a mechanism to run VBScripts - this was done in a highly integrated way - allowing the program to parse multiple .vbs files and produce a list of all of the subroutines and functions - which were then available within the application alongside core functions.
Previously this was an embedded msscript.ocx - in the first .Net conversion, this was wrapped in Interop.MSScriptControl.dll, however, on Windows 7 this just isn't working. It looks like this is really not the way to be doing this anyway - Microsoft seem to be trying to kill vbscript.
Is there a 'supported' way of using VBScript, or is it time to move on? and if so, where is there to move to that provides the same sort of functionality?
my project was intially mandated to be done in c#.however a large contributor to the project wrote much of the business logic, which he knows well, in vb.net.How difficult would it be to convert the following c# code into vb.net.
1. In the old VBScript, there was a compareMethod (binary or text, which with text, I could compare case) but I don't find anything like that in the new .Net Replace method. I know I can use the old way, but I'd like to use the new Replace method. I just need a choice of comparing case or not?
2. Let's say I have a long string, and I am using the Replace method - - it would be nice to get the count of instances replaced, and I'm sure that if I read line by line, I could actually get that count, but it would take to long.Is there a way, using the Replace method, to get a count of how many actual replacements were made?
This code was posted in Chit Chat and everyone is saying how great it is. I just have Visual Studio 2010 and no familiarity with VB6 so I thought it would be good to convert the code to Visual Basic 2010.
Dim wiaManager As WiaClass = Nothing ' WIA manager COM object Dim wiaDevs As CollectionClass = Nothing ' WIA devices collection COM object Dim wiaRoot As ItemClass = Nothing ' WIA root device COM object Dim wiaPics As CollectionClass = Nothing ' WIA collection COM object[code]....
I had the following code:[code]How can I convert this code to listbox code? Because the above code is using datagridview but I would like to change it to listbox.
convert both windows as well as web applications to the latest versions.there is any free VB6 to VB.Net Converter which can convert all code. And also let me know if there is any good way to manually convert VB6 code to VB.Net code.
Is there a library that I can use to convert VB.Net code into C#? There is http://codeconverter.sharpdevelop.net/ but i don't want to use it from a web service.
private void Form1_Load(object sender, EventArgs e) { //// if you want to generate a click event for all submenu of a specific main menu //foreach (ToolStripItem subMenu in allMailFieldsToolStripMenuItem.DropDownItems) //{
using System; using System.Web; ///***************************************************************************** /// <summary>Open Web page and set Window attributes using Javascript</summary>
I have been trying to get the following VB code running in C# for hours now. I keep getting a Value does not fall within the expected range. exception on the CreateStroke() call. Also, here is the Microsoft documentation with a C++ version as well.
Option Explicit Dim theInkCollector As InkCollector Private Sub Form_Load()
I'm having trouble converting this piece of code (originally in VB) to C#. In particular, how does one apply a negative to an int.
Private Declare Function GetWindowLong Lib "user32" Alias _ "GetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long) As Long Private Const GWL_STYLE = (-16) Private Const WS_MAXIMIZEBOX = &H10000
I have a 3rd party control with a c# sample that works, but my vb conversion doesn't the c#...
private void MainForm_Load(object sender, EventArgs e) { // Load layout from plain XML file string fName= Path.Combine(Path.GetDirectoryName(Application.ExecutablePath), "Layout.xml");
[code].....
The layout of the DockPanel can be saved to and loaded from XML data by calling SaveAsXml(String) and LoadFromXml(String, DeserializeDockableForm). When saving, the system will persist the IDockableForm object to a string by calling its GetPersistentStringCallback property; when loading, the system will call the DeserializeDockableForm callback to get the instance of IDockableForm object.
If you derive your class from DockableForm, the default implementation of GetPersistentString() returns the type name of the DockableForm class. You can overwrite this method for your own implementation. which it has been
If you implement your own IDockableForm, you can pass a delegate to the constructor of DockingHandler class, and provide this object for the interface implementation. You always need to provide a DeserializeDockableForm callback when loading the layout.