Bryan St. Amour's Q&A profile
Visual Studio Express Editions question about Visual Basic 2005 Express Edition Beta
Hi there, I recently downloaded Visual Basic 2005 Express Edition Beta in order to create an application that is vital for an assignment that I am undertaking. I need to create an application with a user interface that enables the user to insert some basic details about him/her and then the application displays a number of MPEG video clips in order for the user to rate these videos having as a criterion the videos' quality. The application must then store the user details and ratings in a file for later analysis. I don't have any previous knowledge of programming with Visual Basic. Can somebody please explain to me how it is possible to ...Show All
Visual Studio 2008 (Pre-release) Implementing annotations for FixedDocuments shown in DocumentViewer
Hi, I'm using a DocumentViewer control to show a fixed document with multiple fixed pages. Individual fixed pages actually contain UI elements (DockPanel, TextBox, TextBlock etc) loaded from different Xaml files using XamlReader. But I cannot select the contents of the textblock shown inside a fixed page. My question is whether it is possible to implement annotations for the static text displayed in TextBlock controls If not what are the other options available for implementing annotations for UI content shown through DocumentViewer Thanks. You cannot select text within a text block. You might want to ...Show All
SQL Server SMO Connection String conversion
Hi, I am using SMO in my application to retrieve data from SQL Server in order to display it in the UI (such as DB list, tables list, etc.). Eventually the user has a connection definition screen, in which he inserts his data. The thing is that in the background my application needs to use this data to connect via OLE DB. Is there a way to convert the connection string generated by SMO to an OLE DB connection string Thanks. Hi, sorry, AFAIK the conversion from sqlconnection to oleddconnection is not implemented by default, although they share a common interface, the IDBConnection. Perhaps you can bu ...Show All
Smart Device Development Port number for the Core Connectivity
For one of my target machine (RNDIS enabled), the IP address is 169.254.2.1. I can create two screams with different port numbers successfully: one port is 9002 and another is 9004. For another target machine (RNDIS disabled), I also try to create two screams. However, it seems that I can only use 9002 as the port number. For example, I created a stream ("ip=127.0.0.1 port=9004") on the target side. When I try to create a stream ("ip=127.0.0.1 port=9004) on the host side, an error message is reported: (0x8007274d)No connection could be made because the target machine actively refused it I am not sure if this issue is ...Show All
Windows Forms I need help about drawing rectangle on htmldocument
hey All, I want to draw a rectangle on Html document using mouse event(mouse move,mouse down,mouse up). Infect i am developing a form which contains Webbrowser Control , when this control shows some web site in it , means after documentComplete event. i need to draw a region on this document just like drawing region for capturing some part of screen in many softwares. help me ASAP. Thank you in advance. Actually i am developing a window form which uses webbrowser control. so i need to draw a rectangle on opened document in this browser. so that i can use getElementFromPoint method to grab the html from that portion ...Show All
Windows Forms save Object's Property at design time
I have a collection object and use Object Collection Editor to add new object and edit property value. but How to save these new values Thanks Your class needs to Implement ISupportIntialize. Look at the EndInit() Method. Sam ...Show All
Visual C# How to develop a password protected Windows Application?
Hi all, I am trying to develop a password protected windows application. All that I require is a simple prompt for password whenever the application is started. The program should be able to detect if the application is started for the first time. If it is, the application should prompt for the user to set a password instead. If the password is correct, then the application will go on to show the starting startup screen. I am not really sure how to start or go about creating this application, i.e. password protected part. Q1) How do I store the password that is set. Do I create a static variable string and store the password using this stat ...Show All
Visual Basic Const ByRef?
Is it possible in VB 2005 to pass procedure parameters as a reference and also as a constant so that the value cannot be changed by the procedure or are we still stuck with either ByRef or ByVal I don't think it is but would like to see if anyone has come up with anything. Thanks A reference and 'const' would be the equivalent for ‘input only’ by ref param. VB doesn’t have yet in/out byref parameter passing. However, you can pass a ‘readonly’ field as a byref parameter. Even when the invoked method writes on the byref argument, the original field remains unchanged. This is because the compiler will not pass the addre ...Show All
Visual C# Operation must use an updateable query
I had created a windows application. The application will pull data and insert to an access database. But while running the application half way through, it will gives me the above error message "Operation must use an updateable query" I had read through some of the forum, most of them mentioned that it is due to permission settings and they are using asp. But I had check my table permission. It is read and write. Moreover , I am running as an application. Can anyone please help How do you call your insertquery Show some relevant code of how you do the insert, and on which ...Show All
Visual Studio Team System Timeout during unit test
Greetings. I've recently been introduced to VSTSs integrated unit testing abilities, and quickly decided to adopt them and write an extensive suite of tests for some software component or another. Much to my regret, however, I soon stumbled upon a rather annoying problem as some of my tests take a relatively long time to perform. I'd tell you how long, but unfortunately I can't quite tell since the testing framework decides to terminate the tests on its own account with the following message: "Test on Agent, X, exceeded execution timeout period" where X is the agent on which the test had run. I would expect that nasty little timeout to ...Show All
.NET Development Typed DataSet TableAdapter Wizard problem
Hello, I have this problem. If i try to create a new TableAdapter using wizard, it is imposibble to automaticaly generate Ins, Upd and Del methods, because the radiobutton "Create methods to send updates directly to the database (GenerateDBDirectMethods)" is disabled (greyed out). Also checkbox "Refresh the data table" in Advanced options is disabled. I couldnt find out where is problem. Im using VS2005 and Oracle XE via ODBC Thanks for any help ...Show All
Visual FoxPro Memo File Corruption on VFP9 ONLY
I am just beginning work for a new client. This client wanted a VFP5 app upgraded to VFP9..they're using Novell (lastest version). After the conversion (very little changes needed to be made), they started getting file and memo corruption errors as well as indexing errors. I took a copy of the data and tried a recopy using SCATTER MEMO MEMVAR to a new fresh data file (using GATHER MEMO MEMVAR) in VFP90. I got the same errors. (Running XP Professsional) So, just to be sure (my version of VFP9 is new), I tried the same thing on VFP8. NO ERRORS! Then I took the new data file (8.0) and ran it through the same ...Show All
Visual Basic Problem wiring click action to a button
I have just installed VB 2005 Express (first time user!) and am trying to follow the example of creating a simple web browser which starts at page 60 in the PDF Manual 'Build a Program Now!' I have followed the examples without a problem until I hit page 65 headed 'To wire the click action to a button.' The Manual states 'Close the running application and go back to the IDE. Double-click the button control. You'll see the code window as shown in Figure 4-3'. The problem is that the code shown in the example is: Private Sub btnGo_Click ( ByVal sender As System.Object, ByVal e As System.Event.Args) Handles ...Show All
SQL Server MSDE & SQL Server 2005 Mobile Server Tools problem
After installing MSDE(with SP4) and SQL Server 2000 SP4 Replication Components, the SQL Server 2005 Mobile Server Tools installation fails when running the System Configuration Check with a SQL Server requirement Error. "You must first install the Replication Components for SQL Server 2000 SP 3a or higher or the SQL Server 2005 Replication Components" Am I getting this error because I'm using the Desktop Engine version of the SQL Server 2000 We have NOT tested SQL CE/Mobile Merge Replication with MSDE. And, we dont know the problems you may face. Thanks, Laxmi Narsimha Rao ORUGANTI, ...Show All
Visual Studio 2008 (Pre-release) No hit results from 3D models with no material in Feb CTP
In Dec CTP I was using a 3D sphere with no Material (Material = null) as a trackball for my scene. I have ported the code to Feb CTP and it seems that the sphere is not hit anymore. I just wanted to ask if this is a voluntary change and if it is the intended behaviour in the final version WPF and I should implement another trackball (probably the one from Daniel Lehenbauer). It is the intended behavior. See my reply to this same question on the newsgroup for more information. ...Show All
