Vb 2008 Roman Numeral Converter?
Oct 19, 2009Public Class Form1
Dim Character As String
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
[code]......
Public Class Form1
Dim Character As String
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
[code]......
[Code]...
i cant figure out how to tie it all together, just trying to find a way to include all of the numbers rather than the ones i listed without writing them all out..
this is what i have in the convert button. I know I'm missing a few things but I'm not quite sure what to put
I know it has to do IF and THEN.
Also I need to enter a error message if the user inputs a number less than 1 and greater than 10
Private Sub btnConvert_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnConvert.Click
Const NUMBER_1 As Integer = I
Const NUMBER_2 As Integer = II
[Code]...
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
End Sub
End Class
I haven't got the code, however I got the physical part of the program done with a label called Numeric Number and another called Roman Numeral, with text boxs next to each label. I also have a button called "convert" so when you enter a numeric number in, it'll convert it to a roman numeral. I need it to only convert from 1 to 10, but not accept a number less than 1 or more than 10.
I am new at VB 2010 and am trying to covert 1-10 into roman numerals so that when you input a 1-10 the roman numeral I-X comes up, this is what I've got so far,and it won't display
Public
Class
Form1
[Code]......
get VB 6.0 to Visual Studio 2008 converter?
View 1 Repliesi am new to VB and am trying to make a metric to imoerial unit converter in VB 2008. I have created a form with 2 list box's with MM, CM, KM etc ....... and the other Inches Miles etc I have added 2lables with convert from and convert to and also 2 blank text box's the first one to choose the number i would like to convert and another to show the converted unit, I have also added a convert button.I am really struggling to find the correct code to make this work.
View 2 RepliesIt is possible to make a video converter using VB .Net? If yes with what I should start?
View 2 RepliesSo i decided to make a units converter for my term's project and my teacher insisted on including the combo box in this project. I'm not really familiar with the combo box as i am still a beginner in visual basic. I've looked around and learned a bit about using the combo box but later i faced a problem. First i created a Main combo box and placed it in the middle of the form. I managed to use the select case command to make other combo boxes appear and disappear as i wish. I don't really know how to describe the problem, i want to make it that if i choose the input as a unit and the output is any other unit from two different combo boxes, the value in the input text box would be multiplied by a certain conversion factor and the result will be shown in the output text box.
View 1 RepliesI'm trying to create a program that takes 7 numbers and converts them to Letters. To do this I have created a TextBox to enter the 7 digit number in , a CONVERT Button, and a LIST BOX to display the thousands of results. This is created using a Windows Application Form.
[Code]...
At the moment im tryng to create a celcious to fahrenheit i already got the formula and so i put it into visual basic. My goal is to create a programm with two textboxes
one celcious and the other one fahrenheit.[code...]
THen i realized that loop is created because if i write 12 in celcious it outputs to fahrenheit which outputs back to celcious ecc.. infact when i debug it says
Make sure you do not have an infinite loop or infinite recursion .I would like to have a programm with 2 textboxes. If in one i put 12 then the respective fahrenheit comes out; If in fahrenheit i put 55 then the respective celcious comes out.
I'm a bit new to these forums but anyways let me get to the point. I'm trying to make a Unit Conversion Program on VB 08 and I am trying to make it so I don't use too many radio buttons, however I may use it if there is no other option. And I also have to make the program do it both ways
For Example I want to convert Fahrenheit to Celsius and Celsius to Fahrenheit in the same textbox or some sort of box.
after numerous google searches and comparing excerpts from different peoples' various codes I could not get this program to work, though I came quite close. I'm attempting to make a program that will tell me the time in different parts of the world, a personal use program that I thought would help me exercise my vb skills.
The problem I'm having, however, is that when it should be showing my time it is either 5 hours ahead or 5 hours behind. I tried adding variables and deleted them again time and time again trying to make adjustments but all I managed to do was make the timer get stuck at 12:00:00 AM.
[Code]...
I've encountered an incredibly frustrating problem during my work with a function to extract META-data from images.
When reading data from a file created under Windows in any kind och charset there is no problem at all, but when reading from files created under OS X i can't convert it to utf8.
The problem only occurs on chars like 'å','ä', 'ö' and some other chars that i rarely use.
Is there any way of converting chars on-the-fly serverside?
I guess i need a function to determine the actual charset as well.
I've tried numerous ways of converting with HTMLEncode/Decode and URLEncode/Decode without ANY result at all.
what code i could use to convert american number 1-10 to roman numericals. It says i have to use a select case statement to identify which roman numeral is the correct translation of the integer.
View 12 RepliesI'm trying to make a simple character converter i.e. (A converts to O) or (C converts to V) I need to make defined parameters for the entire alphabet.I have two text boxes set up and a command button. I'm trying to make it so the text inputted into the first textbox is converted (using the defined parameters) Into the second textbox with a click of the button.
View 5 RepliesI wrote a program to convert numbers to roman numerals but something in my code is making every number I put in return a ""I" roman numeral. Here's my code.
[Code]....
I need to write a program to convert in a textbox a number to its roman numeral and written english equivalent. I can write everything except how to get the program to recognize the numbers and convert it into what I need it to.
This is what I have so far, and I'm not completely sure if this is even right, but I can't figure much else out. I've talked to other people who know about this and they aren't sure how to go about it, and my book isn't a big help either.
I would really appreciate any and all help than anyone could give me. I just don't know what else to do and I've been stuck here for a few days trying to learn how to do this...
Option Strict On
Public Class Form1
Private Sub btnRoman_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnRoman.Click
[Code].....
Anyways, i have coded a video downloaded and i want to include a converter as a separate exe file. But obviously people may have different file directories so a simple piece of code i have used won't work. This is what i have: Also where would i place the exe file?
View 3 RepliesDoes anyone have a nice sample of a unit convertor handling multiple unit types that I can integrate in my application? I have found this one, but it is only handling one type of unit. For example I want to convert weight as well as volume from and to imperial units.
View 8 RepliesSub Sort()
ReDim RollsCC(NumOfPlayers - 1)
For N As Integer = 0 To (NumOfPlayers - 1)[code]....
Here I am creating a temp single dimensional array, merging my 2d array into it, and then attempting to sort it by Rolls(N,1), which is a integer 1-6, Everything seems to be working right with the exception of this.
RollsCC.Sort(RollsCC, 0, 1)
How would one specify a numeral sort based on the first character in the string? im aware that I am switching Rolls(n,1) and Rolls(n,0) information during the sort.
I have made simple design for the program
2 texboxes
2 forms
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
how to convert a project from VB6 to VB.NET using this method below ?
Visual Studio >> File >>Open >>Convert..
Had some plug in or even executable to tell me?
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.
View 6 RepliesShow me a site where there is good conversion available from vb.net to c#?
View 8 RepliesMy 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.
View 6 Repliesexisting tool which converts VB.NET Code to Java.
View 1 RepliesI 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
View 3 Repliesi wanted to know if there is any code converter around that can translate from the ruby language to vb.net.
View 14 Replies