Loanarranger's Q&A profile
Visual Basic Add text to a text box from a module
I'm upgrading a program I wrote in VB6 to VB2005 and am having a problem with updating a text box. I have a module that manages serial port communications. When data is received in the serial port buffer, it should update a text box (txtSerialIn) on a form (frmSerialInOut). Here's the code: Public Sub Handler( ByVal strInMessage As String ) frmSerialInOut.txtSerialIn.Text = strRXData & vbCrLf & frmSerialInOut.txtSerialIn.Text End Sub The text box is not updating with the text that the variable strRXData contains (checked!). This worked fine in VB6. Any help would be appreciated. Thanks. ...Show All
Windows Forms Dynamic User Controls, Custom Properties
I created a User Control under VB.net and I want to add the control dynamically. Thats all working. I get the control added and I have managed to access the standard properties, however I am not able to access the Custom Properties I have defined on my User Control. It has to do with the way I access the User Control. Here is&nbs ...Show All
Smart Device Development Suspending your app?
How and what do I need to do to make my app be able to resume its' last state correctly My app basically has a main form which creates other forms depending on user input. So lets say I'm in a new form, and then I hit the home button, I will be sent to the homescreen. When I return to the application it will return the the last form I was on, but when I click say "cancel" and close() the form it will close this current form and go back to the homescreen instead of returning the the main form. So, could someone explain to me exactly what is happening is my app actually exiting when I hit the home key and when returni ...Show All
Visual Basic Would like to know how to fill a textbox when the value of a dropdown list changes.
Hello, I am working on a webapplication, I have a dropdown list which is filled up using a dataset. There is also a textbox right next to it. The end user should select a value from the dropdownlist, and then I would like the textbox to be filled with a value depending on what item was selected from the dropdown list. I tried using the SelectedIndexChanged but it doesnt do anything, and I do not see any other event that would let me fill that textbox depending on what is selected. If anyones has a suggestion, Thanks. ...Show All
Visual C++ winnt.h(222): Error C2146 ...
All, line 222 in winnt.h reads like this: typedef void * POINTER_64 PVOID64; and creates the error message Error C2146: syntax error: missing ';' before identifier PVOID64. I am trying to throw VC++ 2005 Express on Windows 2000 Pro SP4 at a modifed version of the amcap sample program of DirectShow. This is the version I have downloaded with DirectX 9.0b on 11 Oct. 2004 and have successfully used with VC++ 6 SP5 on the same program. (The DXSDK involved is (one of) the last issue of DirectX that included DirectShow.) I have the platform SDK downloaded, and putting i ...Show All
Visual Studio Team System How to enable NTLM V1 in TFS?
Since I need to access TFS through Teamprise eclipse plugin, and the plugin only support NTLM v1, I need to enable the NTLM v1 in TFS. That's a setting that you'll have to tweak in Windows. You can find a description and links regarding NTLM at http://mit.edu/ist/topics/windows/server/winmitedu/security.html . Buck ...Show All
Visual Studio Team System Team System Beta 2 install error 26105
Hello, I Get an error 26105 during installation. Can anyone help me Do either of these threads help http://forums.microsoft.com/msdn/ShowPost.aspx PostID=20753 http://forums.microsoft.com/msdn/ShowPost.aspx PostID=19660 Buck ...Show All
.NET Development using()
hi, What is the best way to rewrite this method with the keyword using() I know I can use it for the connection and command. public int EmployeeDetailsAdd( string strFirstName, string strLastName, string strTitle, DateTime dtBirthDate, string strNotes) { string strSQL = "usp_EmployeeDetailsAdd"; string strConn = clsDataHandler.GetConnectionString; try { SqlConnection oCon = new SqlConnection(strConn); SqlCommand oCmd = new SqlCommand(strSQL, oCon); oCmd.CommandType = CommandType.StoredProcedure; oCmd.Parameters.Add("@FirstName", SqlDbType.NVarChar, 10); oCmd.Paramete ...Show All
Visual Studio 2008 (Pre-release) JOINS
Having installed and now run the 101 examples, I'm pretty impressed, and also seen the actual SQL going to SQL 2005! I believe now<S> However in the JOIN examples I see the 'joins' are done using the old SQL 89 syntax. I.e. in the WHERE clause, which is perfectly valid for INNER JOINS but a surprise because of the limitations where it comes to OUTER JOINs An OUTER JOIN with constraint that is applied before the JOIN has no equivalent. E.g. Table 1 ...Show All
SQL Server MS Time Series: Absurd predicted number when stdev = 1
I have noticed that for the prediction of MS Time Series, the number is usually absurdly large when the standard deviation is 1. I always get a bunch of them. Does anyone have any clue about what this means If you can share some data that causes this, I'd be glad to take a look. --Alex-- http://www.research.microsoft.com/users/alexeib/ http://www.sqlserverdatamining.com/DMCommunity/ ...Show All
Visual Studio Query Builder Re-use
Hello, I have been trying to find the interface or Factory that would allow me to interact with the Query Builder that is used when adding a query to a DataSet. I have been looking in the Microsoft.VisualStudio.Data namespace but have mainly found the DataConnectionDialogFactory or the DataConnectionFactory... But I haven't been able to track down the Query Builder.... It looks like the Query builder is a reusable interface that has a connection string and query passed to it, but I can't find it for the life of me.. Anyone know how I can create an instance of the Query Builder from my code Thanks for any help Tim ...Show All
SQL Server Which approach is better? Using Wizard to generate SqlDataAdapter/Data set or Write Data accessing using ADO.NET in classes?
Hi, all I have to develop an application using Visual Studio 2005 with data access and data manipulation with SQL Server. I've found 2 approaches to develop the application: 1. Use the Wizard to generate SqlDataAdapter/Data Set/SqlConnection and bind the result to the dataGridView with writing only several line of code. Studio generate automatically the controls. 2. Write classes to handle data access using ADO.NET by myself. And bind the UI object to the class method by coding. More coding work but seems easier to control. My question is that, in terms of easy to maintenance, object sharing, inheritance ...Show All
Visual Studio Team System Problem with LiteralsShouldBeSpelledCorrectly
I am having some difficulty with this rule and am wondering whether there might be a bug in the parsing algorithm or the Custom Dictionary. I am using FxCop version 1.35 beta. FxCop raises this error regarding my use of "NUM" as the text in a status bar panel. I have tried adding NUM to the custom dictionary as a recognised word, to no effect. I have also tried defining NUM as an acronym, also to no effect. I did succeed in getting a nonsense word recognised, so I'm confident that I'm using the custom dictionary correctly. I think in this case it might make more sense if I apply a SuppressMessage anyway, rather than making ...Show All
.NET Development Resource limitation.
I am trying to search a resource table and it works with the exception of a couple of resource ids. My best guess is that these ids are too long. I can see the resource using VisualStudio but when I go to retrieve it using the resource manager and GetString I get a null response. Is there a limitation in the length of the resource id or a limitation in that it must be unique to a set number of characters I have been unable to find anything reported in the knowledge base so far. Thank you. Kevin Burton What are you storing in the resource Are you storing binary data And if so, is it serializable data Also, ar ...Show All
.NET Development Converting a VS 2003 solution to VS 2005
What type of problems I should expect Depending on the language you use: - warnings about unused variables - errors about bad references (if you decide to switch from 1.x to 2.0) - in very special cases of C# compiler errors due to the new generics support ...Show All
