I am creating a text converter, that allows the user to input text to a multi-line textbox, called "Input".The text to input in the box is like this: "CreateObject(3524, 213.53, 1748.10, 17.00, 0.00, 0.00, 0.00);".Then I want the application to read all the coordinates insidde the () and output it in another textbox called "output".
The output is supposed to have this format: "CreateDynamicObject(3524, 213.53, 1748.10, 17.00, 0.00, 0.00, 0.00, 0, 0, -1, 200);". Note the coordinates inside the () are the same as in the input format, but "CreateObject" is replaced with "CreateDynamicObject", and ", 0, 0, -1, 200" is added after the coordinates inside the ().I already created all the boxes etc, only thing needed is the coding.
Module Module1 Dim Bf, Bt, Lgt, Total, Pwr, Valu, Val2 As Integer Dim InNum, Temp, OutNum As String
[code]....
I, will just explain a few areas of this to ease the process of understanding it:
1-The conversion Subs are to be used for values such as A7 in Hexadecimal
2-The Err Boolean will hopefully be used to link back to the top in the event of an error
3-Apollogies for the abreviated variable names, it simplifies things in my mind but winds my fellow students and teacher up no end.
This code is not fully functional yet, however I believe it should give an answer for my test value of 800 Base 10 to Base 8 (1440), however when the program runs in debug mode I can enter the three inputs but then it leaves two lines and gives an unresponsive flashing cursor.
im currently doing B.E....final year...i wanna do a project on speech to text converter in vb.net.....i request u to plz guide me where should i start first
i have a form that looks like this:can convert a file at a time, no problem. what i'm having problems with, is converting the entire folder. in a previous sample project, i used a timer to go down one list by adding the files to the textboxes and then saving the files to the other listbox's temp folder.
Form1 has:C# to VB converter 2 textbox (where they will put the code from C# or VB ):1 that will put info: other that will apeear the converted text 1 button
I need source how to make when its press button1 to show them in new texbox the souce code that he selected
Form2: VB to C# converter. i need the same and for VB to C# code when its pressed button for Form2
i am a beginner and trying to write a program that can convert .dwg file into .xml file format.i am familiar with visual studio 2008, vb.net and autocad 2007.
My boss has given me a new task of converting his old vb projects to new new .net projects. He wants me to convert both windows as well as web applications to the latest versions. As I am new to programming, I am having difficultly in converting the codes.w if 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.
I have a project for school where I am to create some form of security for an application, our brief was to basically to create and hide a text file in the applications program files (not all that secure really, but heh I don't write the briefs) So I have created the code and form to check that a users security key is valid it all works perfectly in the debugger, it writes the file to the specified directory, however when I run the application on a computer (after deploying it with the correct directories being set up, it never creates the .txt file to write the information created during "Authentication" - I am really confused and I am not sure if this is part of the "problem" I am supposed to be solving for school, or whether this is just some crazy exception that has been thrown up
I am a beginner in vb 10 (vb.net). I am trying to create a text file "something.txt" and write a long string to the file. My string contains formatting chars newline and carriage return, which I want to keep.
I tried: FileToSave.Write("test" & Chr(10) & Chr(13) & "test2", RichTextBoxStreamType.RichText)
using the System.IO.StreamWriter method but the line feeds and carriage returns are lost and all the text is just streamed together with no formatting.
Where 'FileToSave' is the path and name of the file. Note: I know I can use the vbnewline instead of chr(x) but this is not the issue.
I have a button that i basically want to either show or hide it based on if a certain string has a value or not. I create the buttons in code so i was trying to used databindings with a converter but i can't seem to get the converter on the binding after the value changes. I'm not sure if I'm going after this correctly or not... Here is what i have for creating the button and the binding and the converter. "sFileLocation" is a string inside my class "QuestionsFile". This works for initialization but its just when the value of the string changes, this binding doesn't see the change and doesn't run the converter and all that for me...
Dim btn2 As New Button Dim b2 As New Binding("sFileLocation") b2.Mode = BindingMode.TwoWay
[code]....
The thing I don't understand too is that the binding works fine if i just binding the property to the Button.Content. So the property is updating correctly when it gets changed, and the buttons content changes accordingly.
.NET converter (either C# or VB.NET)? I've inherited a bunch of Delphi code, never seen Pascal before and rather than learn it, I'd rather just try to use an automated converter, if available, and clean up the code after that. Can't seem to find this kind of tool anyway I search
i'm trying to make a converter, i have 4 textboxes, 2 of them are encode, the other 2 are decoders. on the encode process i use: [code...]
I want it to be decoded when a button is pressed, because I cant use the KeyPress or KeyDown function because it will most likely be copy-pasted.
how would i do that, for instant the char A Will be converted from "W11" to "A". Now i know there is a function called Convert, but i have no idea on how it works or if it even is proper for this task.
Ive tried to make my converter to work but the XAML doesn't know where it is.. but its there in a folder called Converters. Here how my XAML are setup..Fill="{Binding RequestStatus, Converter={StaticResource converters:StatusToColorConverter}}">
How can I create a separate class that has the function that adds dynamic text box, so that I will just call that function to my main form. I have the code below that does add dynamic text box but it is already inside the button of my main
I am trying to write a program that writes information from texts boxes to a text file on the users hard drive. I would like to create a new text file if one already exists, for example if text1.text exists, it creates a new text file called text2.text, then if text2.text exists it creates text3.text and so on. Here is what I have so far:
[Code]...
I've tried fooling around with if statements to create a new file but it doesn't seem to be working. Additionally, How can I write to a new line in a text file. For example there are 4 text boxes and each string from each text box gets its own line.
i have created a program , that uses a few text files.i am currently using the file paths of these text files which will obviously error when i move the text files..is there a way to create a text file where the exe is located , this could be anywhere?
im trying to get my streamwriter to create a new file with its name derived from textbox1 but i also need to add loads of other text from buttons and textboxs in my form. At present the code sometimes says part of file path not recognised, think it looks like the textbox1 text. but when i get to this point where it works it wont create a new file.
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Using SW As New System.IO.StreamWriter("C:documentsandsettingsliamDesktop" & TextBox1.Text & ".txt") SW.WriteLine(TextBox1.Text)
I am trying to create a text file with more than line, but its not quite working. I am new to programming, so I dont know what everything is yet (but I am learning).
send the values of my form to a text file upon submission? I need to create the file if it has not been created and append the file if the form has been created. I will then need to display the text file on the second tab of my form.Firstly, I need to know how to send the values of the form to the text file.
I am using save file dialogue box and i am saving the contents of richtextbox which is in the form. So i used the coding below. It only creating the empty file but not the text which i typed in the richtextbox.
Private Sub Button1_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click