Paulo Cardoso'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
Visual C++ Problem in setting PATH,LIB and INCLUDE environment variables through script for 32 and 64 bit plateforms.
Hi, I'm using Visual Studio 2005 Professional Edition. I have a script file (batch file) to launch the devenv by using /useenv. Through this script some environment variable are being set for both 32 and 64 bit plateforms. if, I need different values for both 32 and 64 plateforms,I use two variables in the script e.g. A32 and A64 otherwise only one environment variable. This is required, So, that I can compile code for both 32 and 64 bit plateforms on the same IDE, which was launched by the script. Now, the problem comes to set the standard environment variables e.g. PATH, LIB and INCLUDE a ...Show All
Visual Studio Express Editions Import Existing Pages
I want to create a new ASP NET 2.0 (VB) project that will (hopefully) use code (both HTML and VB) from some old asp and aspx pages as a starting point. What is the best way to accomplish this e.g. should I create a new page in VWD and then copy/past the code I want to use inline code (no code-behind pages) Thanks for any advice. Hi Wayne, You should be able to open the ASPX or ASP pages directly in Visual Web Developer. You can either do this by opening pages individually using File > Open File, or you can open a folder and edit pages in it using File > Open Website. Hope this helps. Omar (msft) ...Show All
Architecture Tools for Architects Blog
This blog contains a current discussion of tools for .net architects and I thought it may prove to be interesting the the readers of this forum. ...Show All
Windows Forms How to change the mousepointer
How do I chage the mousepointer to the HourGlass shape (and back to the default) in VB.Net In VB6, the form has a mousepointer property but, I can't find an equivalent in VB.Net try{ Cursor = Cursors.Wait; }finally { Cursor = Cursors.Default; } ...Show All
Visual Basic Adding button to an API dialog?
Is there a way in VB to add a button onto an API dialog box (more specifically DoOrganizeFavDlg) and tap into the dialog's events If that's not possible, can anybody point me to some VB code that approximates the functionality of the DoOrganizeFavDlg API call It may or may not be possible. I'm not sure. It would probably take you less time to make a form, add some buttons and code, and re-create your own. Dustin. ...Show All
Windows Forms ADO.net Connection Error
I am unable to register a SQL Server in Studio.net. I am SA on my SQL Server. However, when I attempt to register the server I get a DBNETLib (Connection Open) error. I need this to do some ADO.net with my Windows Form. I don't see how it can be permissions. I have Enterprise Manager installed and can h ...Show All
SQL Server Problem with Failure Constraint
Hi, As part of my SSIS package I have a script task, that set its result based on the value of a package variable. From this task I have two precedence constraints, a sucess constrain and failure constraint that lead to two different tasks. When the script task ends with a success result, the task that is connected by the success constraint is initiated, but when the script task ends with a failure result, it is marked with red color and the execution of the whole package stops (the next task that is connected by the failure constraint is not initiated). All tasks are assigned with False to the properties: FailPackageOnFailure & ...Show All
Visual Basic random file access data conversion.....
hello, i am converting basic application into visual basic. At the time of reading data from .SYS file using random file access method, the data coming into variable required to convert into integer. In basic we are used CVI() function for conversion. what is the equivalent for this conversion of string to int.(actually i unable to recognize type of string present in file because it's a binary SYS file). Is any problem due to 16 to 32 migration or any thing wrong in it please help me resolve this problem. Give me equivalent of CVI() ...Show All
SQL Server Web Synchronisation Using RMO
hi every body please help me out on this issue , since i am at final stage in finishing up the module. Previously i had done web synchronisation using RMO it is working fine at my office where i have an 2003 server which is an domain controller , publisher i have configured on the 2003 server , and i had subscribers on xp Machines where it was well working fine, clients were not on the domain , it is an independent Machine. we had an security error which was resolve by this same forum, ie the client windows login id should exists on the server too. only then synchronisation is happening at our office, Now the problem is i have an ...Show All
Software Development for Windows Vista Problem: Install Vista 5308 on Virtual PC?
I need to install Vista on a Virtual PC to test installation and running of some current apps I've developed. When I try to install Vista, it boots from the DVD I provide but when I "Install Now (->)", I get an error dialog box: Also, The latest Beta 2 installs without any problems at all and works fine under Virtual PC (so far as I can determine). ...Show All
Smart Device Development "destroying" notification
I want to have a Notification that dissapears after 2 seconds. =ok, I have BUT when I close my application, I still can access the notification, this is not what I want, after disappearing once, I want it to be gone. Thus: Appearing for 2 seconds, then "destroyed" ...Show All
SQL Server How to mimic replmerg.exe in vb.net
Hello, On an existing Merge Pull Subscription (Subscriber: SQL Express) via websync how can we start replication via vb.net We can use the cmd line replmerge.exe and all works fine however we would like this to be cleaner as it's going to be on demand sync. I saw in BOL about the RMO and how to create pubs/subs but nothing telling me how to actually start the replication process. Is there a sample of how to start the replication process in vb.net for websync Thanks in advance. John See if these code examples help which are listed in: http://msdn2.microsoft.com/en-us/library/ms147890.aspx ...Show All
Visual Studio 2008 (Pre-release) SVCUTIL SSL Could not establish trust relationship
I am trying to generate a proxy for a service that is using SSL for transport security. The problem is that the certificate is not signed. Is there anyway to tell SVCUTIL to ignore any certificate errors This is the error I am receiving. I can view the Service Endpoint only after IE throws security warnings at me. Thanks Attempting to download metadata from 'https://localhost:4443/' using WS-Metadata Exchange or DISCO. Error: Cannot obtain Metadata from https://localhost:4443/ WS-MetadataExchange Error Uri: https://localhost:4443/ Metadata contains a reference that cannot be resolved: 'https://localhost:44 43/'. Cou ...Show All
SQL Server Need a function to return a comma delimited string from multiple columns and rows
Columns in a rows are ClaimID,LineNo, Code1, Code2, Code3, Code4 A claim id can have multiple detail lines. I want to return a comma delimited string for all the codes found for a claim id. I have not created a function before. How do I loop thru a table similar to this While Table.claimid = @ClaimID Set @MyString += Code1 +"," + Code2 + "," + Code3 + Code4 Loop You do not need a UDF to generate the CSV string. You can use expression below: select Claimid, substring(coalesce(',' + adj_cde, '') + coalesce(',' + adj_cde2) + coalesce(',' + adj_cde3) + coalesce(',' + adj_cde4) + coalesce(' ...Show All
