Answer Questions
cehor Hex values in textbox to send out serial com1 using an array.
I am trying to write an application that sends serial data out com1. The data is entered in to a 'textbox' then you press the send button. An example would be send: 1f ff af 01 55 // These are all hex values. I have a string of hex values to send out the port to turn on a LCD projector but I want the ability to change the string, that is the reason for the textbox. I can setup an array and load the values manually then compile but like I said I want to be able to edit. My problem is with the array load. The method I am using is: byte [] myArray = { byte .Parse(textBox4.Text, NumberStyles .HexNumber) }; This will load the first byte but I can't load any other data or I get a format error. I need to be able to load e ...Show All
Jan Kučera problem adding menu items
heres what im trying to do: make it so that a user can supply a name,path, and category for a new dropdown menu item ex: if user puts this into 3 diffrent textboxes : name = bob path = C:/bob.exe category = help and clicks "add item" a dropdown menu item is added to the "help" button on the menu and the name is "bob" and the on_click is "process.start("c:/bob") " i got it to work but when i close the app and re-open it the item is not there, i want it to stay there. thanks in advance, Menu options are not retained automatically. You'll need to store the information somewhere - like a database or file. Then when the user re-opens the application, you'll need to rea ...Show All
William Xie Fill an array from a text file.
Sir/Madam, I need to fill an array from a text file. My text file looks like this for different people. First Name|Last Name|Address|Phone First Name|Last Name|Address|Phone First Name|Last Name|Address|Phone First Name|Last Name|Address|Phone First Name|Last Name|Address|Phone Do you know of any way to put these into an array from a text file where the "|" symbol seperates the columns Any help would be greatly appreciated! I propose a different route. An array is not a good collection object for information like this. Visual Basic has built-in support for parsing files like yours. Try this: Imports Microsoft.VisualBasic.FileIO Module Module1 Public Structure Perso ...Show All
Rob Epler the application configuration is incorrect. Reinstalling this application may fix this problem..........
the application configuration is incorrect. Reinstalling this application may fix this problem. What does this mean and how do I fix this. It happens when I try to run my application on another computer, but works on the one where the visual basic is installed on. The visual basic I run is Visual C++ 2005 Express Edition. Thanks for all your help in advance... I am a complete C++ Novice and i am having the same problems with my first "Hello World" application, my project is a Win32 Console Application. I did not understand any of that runtime c++ stuff SvenC explained, so if anyone can give me more detail on how to get my application to work on another windows opereated computer. You mea ...Show All
flash.tato NumericUpDown Control (ValueChanged event)
I have an assignment and I am stuck on one thing. A part of the assignment is to make the NumericUpDown and have the value changes in the NumericUpDown control, change the average using the ValueChanged event of the NumericUpDown control. Basically, as the arrows are clicked up or down, the average needs to change automatically. This program is a Grade Average Calculator for testing 3 Grade scores and then testing to get another average after the lowest is dropped. It also displays a letter grade. I am currently using VB Express 2005 and I think it is a great program. A quick response would be greatly appreciated. My code is as follows: Public Class Form1 Private Sub BtnReset_Click( ByVal sender As System.Objec ...Show All
nightwish CTP6 - Cannot create project
I've just installed CTP6 and cannot create a 2005 project. I am getting the following error: "An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections". I have specificed a local instance of SQL Server 2005 ('localhost\SQLServer2005' is the value I put in the Tools | Options | Data Connections page and Tools | Options | Design-time Validation database page). My local instance does allow remote connections and I can connect to it without any problem from Management Studio. Thanks for your help - Amos. Alle, I have SQL S ...Show All
razerredblue Custom Controls - anyone working with these?
Firstly, does anyone else think it would be a good idea to have a forum devoted to TFS Custom Controls Secondly, I'm using Naren's excellent article on custom controls to start building an example, but the IWorkItemControl does not have the same interface as mentioned here (so the code sample does not build). He mentions an AfterUpdateDatasource event and there is no mention of the FlushToDatasource method. Has anyone else been building custom controls How have you implemented the FlushToDatasource method Looks like for some people the new dlls are not getting installed, but it seems to work fine for some others. Can you check versions of Microsoft.TeamFoundation.WorkItemTracking.Controls.dll and ...Show All
pjascol a question
didnt rly know how to name the thread subject, anyway how do i make it impossible to have a certain number in a label i have my numbers generated by a Random () and if MyInt = 1 i want that 5 doesnt appear even if it says it has to appear (from my random list) i hope u know what i mean thx in advance MyInt is just some integer that is 1 after i click a button but i only want 5 not to appear if it is 1, and my random() goes from 1 to 15 and it puts it numbers in the label, but after i clicked the button(MyInt is now 1) once the random() goes 5, i want to not have it come on the label(everytime the random() has 5) i dont rly understand what youre saying, but i dont think thread.sleep wou ...Show All
tr_sreedhar how to build?
Hi all, can u plz tell me how to write a c# program to do this.. -> I am having one VC++ application. -> This vc++ is application contains 2 projects. -> how to write a c# program to build that VC++ application. plz give me reply.. Thanks --hanu Hi, Simply compiling work is easy to do. If you mean to build a complex and huge project, it may be a big question to answer. Thank you Hi, When I run the C# project it means to use VC++ compiler to compile the project. plz reply.. thank u Hi Figo Fei Can u give me one example for ur proposed concept.. plz And I tried for ur previous concept and I am getting two errors The code is using System; using S ...Show All
Anil Narayanan displaying formatted text in editbox in vc++
Hello Sir, i want to display some formatted text in editbox control. example:---- ********************************** //(LINE1) MUNISH GUPTA) //(LINE2) ********************************** //(LINE 3) i have some problems in inserting a new line (line carriage) character. i have tried it with "\n" but it is not working properly. it just displays a solid vertical line just like cursor. Pls help in doing the same. Thanks and Regards Munish Gupta For Windows controls, the \n doesn't automatically get converted to the proper sequence like the CRT. So you need to do it yourself. To do a new line in a Windows control, first you must be sure that the style is set ...Show All
Nadia_86 Regarding Database client supported by Express Edition
HEllo , Everyone , On my Desktop ,I have installed Express edition ( C# & Web Developer) with no Express edition of SQL-Server 2005 also dont have Sql- Server 2000 ,Instead I have Oracle 8i installed When I use any data control e.g. Datagrid for connection with data base it is showing only two data base client one - for access & other for sql server Can Any one please tell me how many clients are supported by Express version. Can I use Oracle 8i with Express Edition as Database. Please reply Thanks abh_pat Try installing the .NET Provider for Oracle . Thanks Thanks nobugz !!! You really just need a provider like above mentioned, although you can work on several ...Show All
Okugops Navigating and filling out IE fields
I have the following module as an .exe file that I run to open our daily websites and fill out usernames and passwords. It works great but not always. Often the sendkeys strings are sent to the wrong window. I guess there is some problem with sensing when IE is ready. Any help to solve this issue Thanks, Antonio Module Module1 Sub Main() Dim ie As Object ie = CreateObject( "InternetExplorer.Application" ) ie.navigate( "http......./" ) Do While ie.busy And Not ie.readystate = 4 System.Windows.Forms.Application.DoEvents() Loop ie.Visible = True System.Windows.Forms.SendKeys.SendWait( "xxxxx" ) System.Windows.Forms.SendKeys.SendWait ...Show All
JHarjung Check in Now
Hi , I used to be able to right-click an item in the VS 2005 solution window to 'check in'. I would check it in with a comment. Somehow, I have managed to change the menu to say 'Check in Now'' and I cannot add a comment. Does anybody know of a way for me to get the original behaviour. Thanks Hank Hi Martin, I am using Source Safe, but was able to reset with Tool-Options (It was hidden, but now that I know it was there, I was able to show it!). Thanks Hank This is the actual correct answer. Go to VisualStudio menu Tools/Options; make sure Show All Settings is checked; drill down to Source Control/Environment, and on the right, uncheck the set ...Show All
William Lowers Windows Form Timer and elapsed event
In VB.net 2003 I had a piece of code that used a timer. In that code, the timer I dragged onto the form was created as a System.Timers.Timer and had the elapsed method which got fired when the timer.interval had been reached. With VB 2005 Express, the timer control is a System.Windows.Form.timer, which does not have the elapsed control. What I want to do is fire a piece of code when the timer value has been reached. I found a number of examples, but they fire on every tick -- which doesn't do it for me. The code tells the user how long until the next event, (approximately) i.e. next event in 8 minutes 10 seconds.... The old code still works, but I am fixing the design of a number of things so I am more or less starting over. (It i ...Show All
aramka New project creation fails
Hello, We're trying to create a new project on a TFS which has been upgrade from an Evaluation version to RTM (Workgroup). The TFS already has a project on it (so this is the second project we are creating). However, when we try do to this - we get the following error: TF30162: Task "SharePointPortal" from Group "Portal" failed and further down in the dialog box: Exception Message: The operation has timed out We've tried creation a couple of times, and the error is reproducible. What coudl be the problem Below are some of the lines from the log file generated. I can post more lines if required. regards Oz 2006-09-15 12:56:59Z | Module: SccTask | Thread: 10 | User chose to create new empty folder ...Show All
