Answer Questions
lidiya VB.NET Language Translator
Hi, How can I write a program that translates text from English to another language by using Google Translate I think you misunderstood. I would like to make a VB.NET application that translates text into different languages. How do I do it Hi, See also.>> http://www.freetranslation.com/ for a free web and a free text translator. Currency conversion usng current rates too at.>> http://www.xe.com Regards, S_DS. Please re-read my initial post. I do not want to create my own language dictionary, I want to write a program that uses an existing online dictionary to translate text. Any ideas There isn't an API available for Google Translate, so if you really want to ...Show All
Bradley Reynolds VB2005 Typed DataSet connection string
I have Typed DataSet (ABC.XSD) and the Setting information (strCON) appears in the Property page as "User Id=AAAA;Password=BBBB;Server=CCCCC.WORLD" This places the information in the exe.config file where it is visible. What I'd like to do is remove the strCON in the Settings and place the connection string in a class (i'm guessing a partial class of the ABC.XSD) What do I place in the partial class rSchild, There are many ways to put your ConnectionString of database in your project. Write the connection string in config file is one commonly used method. However, you can also write your strCON in the program, such as a class file like your project: a partial class of the ABC.XSD. The ...Show All
Jim Aksel Trouble parsing text to a treeview
I am making a program that can parse a textfile to display in a treeview. I can figure out how to get it to show properly in the treeview. I am trying to make a way to edit the treeview and am having some problems. Here is a sample of what a textfile looks like Block One 00000000.0 Name Optional Text Description Now, the first line is a toplevel node with the text "One". The second line is the text of a child of "One" without the Description part. When the node is selected I want the description part to appear in a textbox. I cannot figure this out. Also, is there a way to move a specific node up or down in a treeview Thanks, Troy Hi Troy, Let's see if this ca ...Show All
SnowJim Error Trap Failure
Hi All, I trust that you all had a very merry Christmas and I wish you all a Happy New Year. I have just come across an error in my program that is baffling me and I don't know why this should be happening. I have 4 Combo boxes which have drop down lists too choose from. They refer to minimum and maximum diameters/speeds. If the minimum diameter or speed is greater than the maximum diameter/speed then an error message is called and when cleared the program jumps back to the offending Combo box and 'Sets Focus' on it. This works fine for the diameters but when the error occurs for the speeds the program runs on after the error is cleared. My coding is as follows: Tall Dude, It is strange that this kind of problem happens because the co ...Show All
ashoka1008 kill explorer.exe
I can use task manager to kill explorer.exe, case use following code to restart it Process.Start( "explorer.exe" ) But why doesn't the following code kill it It seems to kill it for a brief second, than it automaticaly start back up Dim myProcesses() As Process Dim myProcess As Process myProcesses = Process.GetProcesses() For Each myProcess In myProcesses If myProcess.MainModule.ModuleName = "explorer.exe" Then myProcess.Kill() Exit For End If Next that is true, Windows will automatically restart explorer. Question is - why on earth do you wish to kill explorer Why does Explorer continue to ...Show All
Melvinsb rfi library
i am currently doing a project on rfid. I am suppose to do programming in vb.net 2003/ 2005 to connect the computer to the reader.which is a AR400 reader. Can i know whether i need to add libraries into vb.net before i can actually use vb.net to communicate with the reader if there is a need. where can i find this libraries thanks There are two questions to ask. Does the vendor of the reader provide any SDK or COMor .NET libraries to use there equipment. If they do then definately use these. Otherwise it may be possible to access them through the use of something like the SerialPort class ( http://msdn2.microsoft.com/en-us/library/system.io.ports.serialport.aspx ) But classes like this are abl ...Show All
Peter Peng Runtime error '5' (ascb)
Hello, i've made a program in visual basic 6 using the mscomm. The program works good on Windows 2000 And Windows XP(sp1) But when I try it on Win xp Sp2 then the program does'nt work. The problem is this code: binnen = AscB(MSComm1.Input) I can't use AscB in winxp sp2 visual basic code: These forums are for .NET questions only...VB6 is considered off topic for these forums..Please see any of the folowing links for more help: Useful Links Visual Basic 6.0 on MSDN Library Visual Basic 6.0 Help and Support Visual Basic 6 Support on Windows Vista VB 6 Service Pack 6 Microsoft Visual Basic 6.0 Common Controls Visual Basic 6.0 Upgrade Guidance Visual Basic 6.0 Code Advisor Visual Basic 6.0 Up ...Show All
Rahul Saxena Cross-Threaded ComboBox???
Alrighty... I feel like I am losing my mind. I have programmed in VBA for over a decade. Custom Access Apps, Word Code, etc... I am switching over to VB.Net on some work projects, and I am hitting the WEIRDEST brick wall I have ever hit. In my MAIN FORM... I have a combobox called cmb_References All I want to do is ADD and CLEAR items from this combobox... but I can't ! I keep getting some error saying: System.InvalidOperationException was caught Message="Cross-thread operation not valid: Control 'cmb_References' accessed from a thread other than the thread it was created on." Source="System.Windows.Forms" StackTrace: at System.Windows.Forms.Control.get_Handle() at System.Windows.Forms.Control.Se ...Show All
baztheman How to use DLLs or APIs after you reference them?
Referencing DLLs and APIs seems to be quite easy, but I have forgotten how to actually use them. I tried assigning them to a variable(after having it referenced as a type), but It didn't seem to work... Help Please :( dim myObject as SomeObject myObject = new SomeObject OR dim myObject as new SomeObject then use code like... myObject.method If you have add a dll as a reference you need to be aware of namespaces. You could fully qualify a name dim x as new system.windows.forms.textbox or you could put in Imports system.windows.forms Dim x as textbox By default some namespaces are included in you project - example being system.wi ...Show All
Penicillin Can't save changes made through Combobox
Hello everybody, I am very very new to VB2005. But I love the designer. My problem is the following: I have a form: form1 based on Table1 through a Dataset, Bindingsource, etc... all set in the designer. On that form I have some fields: -ID -Item_ID I also have a comobox on the form that is bound to another table: Table2 I set the following properties of that Combobox: Datasource: Table2 Displaymember: Table2_DescriptionField ValueMember: Table2_ID When I start the form and I navigate through the records it works fine. But when I hit the save button I get the following Error message: "Update requires a valid UpdateCommand when passed DataRow collection with modified rows." I hope I descriped My problem good enough. ...Show All
SimonS_ ping IP/host
hey i have now somewhat succesfully made an ip-tracker. how do i make it able to "ping" an IP og host sa it will send out 4 packets or something and then count how many returns you know what i mean im sure. and is it possible to get a "whois" thing build in to it im using Visual Basic xpress 2005. //Martin See if this helps: http://www.gotdotnet.com/Community/MessageBoard/Thread.aspx id=374255 WOW! that did the trick, i used a Rich Textbox berfore. now another question. is it possible to show the ping progress in an progressbar and: p.StartInfo.WindowStyle = ProcessWindowStyle.Hidden does not work ): it still shows the black prompt window ): //Martin ...Show All
Pat Brickson not getting the output on my screen help
I am puzzled why am I not seeing the progress in my cmd screen This one works: Dim PSI As New ProcessStartInfo() Dim P As Process Dim SR As StreamReader Dim SW As StreamWriter Dim OutPut As String Dim x As Integer Dim xx As Array ratio = "" filename = "d:\MediaInfo.exe -f """ + filename + """ |find ""Aspect ratio""" PSI.UseShellExecute = False PSI.RedirectStandardInput = True PSI.RedirectStandardOutput = True PSI.FileName = "cmd" PSI.CreateNoWindow = True P = Process.Start(PSI) SW = P.StandardInput SW.WriteLine(filename) SR = P.StandardOutput SW.WriteLine("exit") OutPut = SR.ReadToEnd P.WaitForExit() I will see everything for this one... N ...Show All
Martin Mason anything that resembles Gosub?
Can you make something in a sub that works almost like the gosub command I dont want to make a new sub and call that, cause i use a datareader and different variables in the current sub ( and i also would like to use a gosub command in the printdialog sub) Can you make a sub or fuction in the sub or something Any ideas While .Net does not have support for GoSub, there is still support for GoTo with some limits. Also, it's use is not recommended. Instead, it is much better from a program flow stand point as well as a maintenance standpoint to extract your sub routines into methods (that's why they are called "Sub"s). While VB does allow you to do the following, the compler might not gen ...Show All
MattWilkinson2006 why won't this work?
I want a list box to be filled with the data from an array but i can't do it. the listbox it titled listbox1 and the array is called title i used the following line: listbox1.DataSource = title and that didn't work so i tried this: ***keep in mind tt is the variable that contains the maximum amount of used strings in the array*** dim i as integer for i = 1 to tt listbox1.DataSource = title(i) next each time i run either of these i get an exception can anyone give me the right code Hmmm. Works for me. Here is the code I used: Private NameArray(5) As String Private NameArrayIndex As Integer = 0 Private Sub AddButton_Click( ByVal sender As System.Object, ByVal e As System ...Show All
vivek.athalye Beginners question.
Hi, when I use the HelloWorld example from the interop forms toolkit, everything is fine except if I try to add a new Public Sub. 1) E.g. I add the following code (while VB6 IDE is closed): in class HelloWorldForm after # Region "Public Methods" : <InteropFormMethod()> _ Public Sub newPosition( ByVal x As Integer , ByVal y As Integer ) Me .Left = x Me .Top = y End Sub 2) I open the vb6 IDE and start the main app. I press the "launch .NET form" button and see a modified .NET form, because I modified the form earlier in the .NET environment. 3) But if I edit the vb6 code re browse the objects in the object browser, I can not see the new Public Sub. What is the reason that ...Show All
