So, I'm taking Intro to Programming and I'm working through the exercises in a chapter about String Manipulation and the For Next loop.We haven't gotten to arrays yet, so I'm trying to do this just with what's been covered.The exercise is to translate a word into pig latin.If it begins with a vowel, you add "-way" to the end of the string. If it doesn't, you add "-" and then the first character to the end until you reach a vowel and "ay" to the end of that. So "Chair" would become "air-Chay".[code]
I have found aa solution to a problem in one of my reports but its in VB.NET and I am not sure how to convert it to C#, I tried to do it online with one of the tools but it cant determine the events been used or something like that. If there is anyone savy at both languages maybe you can help me figure out its translation?
Here is the VB code:
Private Sub XrLabel1_BeforePrint(ByVal sender As Object, ByVal e As System.Drawing.Printing.PrintEventArgs) Handles XrLabel1.BeforePrint
I have this little function for forcing a download of MP3 files. I have it integrated into my VB app but would like it to be converted from C# to VB so that I can use other functions in my APP_Code directory.
Is there an English - Visual Basic dictionary thae translate my thoughts to code? I am taking courses at the local community college and having difficulty with this "foreign" language.
I have found the following code which can get the harddisk no in VB6.0.I would like to translate it into vb.net code.I have tried the auto upgrade function in vb2005 and translated the following code to vb.net, but the outcome did not run probably.Can anyone give me some help to translate the following VB6.0 code into vb.net code?
I am trying to translate some VB codes to C++. And I am not quite sure what this line does.
IIf (n& 1=1, 0.0005, -0.0005)
I know what IIf(logic, true_value, false_value) does, and I guess the & operator is supposed to concat two strings. But I am not sure what the intention of using "n & 1 =1".
In C, Pascal, and C++ it is possible to use the FormatMessage function to retrieve a "friendly" error message that corresponds to a COM HRESULT error code. This question contains sample code that demonstrates the C++ approach. Of course it would be possible to build a managed C++ assembly to perform this function for C# and VB.NET code, but I'm wondering: is there a way to translate COM error codes using the .NET system libraries?
I have an application written for the UK market that currently only supports English (UK) and a client wants to deploy part of the application out to a non UK site and syncronise the data back to the UK HQ.I can convert the application labels and messages using resource files and the loc culture information but was wondering how you would convert the database bound data.E.G.Here is the HQ based table
I have a module written in VB6, but I need this modue in VB 2005, how to translate the code in the VB 2005, or if you have time to translate the module in vb2005
Code: Attribute VB_Name = "FiscalModule" Public Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (ByVal dest As Long, ByVal source As Long, ByVal bytes As Long)
I've got a method I'm trying to translate from c# to vb, goes something like this .. x.For(typeof(IRepository<>)).Use(typeof(Repository<>)); VB doesn't seem to like the idea of a IRepository(Of ) ... what's the syntax on that?
I'm usually reasonably good at translating C# into VB, but I'm a bit stuck partially due to the ternary operator in this function and also because I don't fully understand what is happening with the "from x in dataSource.OfType<object>() select 1).Sum()"
I need to translate line 4 in the code snippet below into VB. For some reason I cannot get this done tonight. I am either too tired or having a brain drain.[code]
I am using VS2010 & Framework 4 with all the latest updates. I have written a small app to read/write 9 pieces of metadata from/to a photo. I have created a class using Robert Wlodarczyk's code. Everything works as expected. I am using the following GetQuery("System.Photo.DateTaken") which returns a
I have a list of color values encoded as signed integers (OLE I think) in a legacy INI file that I need to translate into (A)RGB values with .NET. [code]...
gives an alpha-blended version of a color that is not at all what I expect. I think that a value like -2147483633 is supposed to represent a system-defined, or named color like ButtonFace. Is there a .NET method for translating these legacy colors properly? Note that pInvoke to OlePro32.dll is not an option.
My apps are crashing on Vista and W7 laptops, they produce a "System.OutOfMemoryException: Out of memory." message.
How can i determine what code in the app is using the most memory or causing this?
I have downloaded "procexp.exe" which gives you a more detailed description of what is running compared to the "task manager" but i do not understand how to translate or determine what is using all the memory.
HTML
System.OutOfMemoryException: Out of memory. at System.Drawing.Graphics.FromImage(Image image) at App.MouseRuler.Painting(Object sender, PaintEventArgs e)
I followed suggestion from vb.net convert string to date.But, it did not work.the code is as follows:
Dim Dt As DateTime If DateTime.TryParse("Thu, 09 Dec 2010 16:03:24 EST", Globalization.CultureInfo.InvariantCulture, Globalization.DateTimeStyles.None, Dt) Then MessageBox.Show(Dt) End If
I need to have date populated in the format of "yyyy-mm-dd hh24-mi-ss".
What is in the English language the opposite of side?
First let me excuse myself not been able to find a relevant newsgroup for this. I am missing 'other general development'.
I am programming a machine that checks the content of a little bag with pills in it. They can be either on a 'normal' position, or they can be in there on laying on their side. How could I translate the 'normal' position? I've thought of 'flat', or (on their) 'back'.