Answer Questions
ashish tiwari Window size?!?!
I work on a 17" Widescreen LCD monitor with a resolution of 1920 x 1200. How will I know if the Windows application I develop will fit on a 15" screen with a resolution of 1024 x 768 In VB6 there used to be the "Form Layout Window", is there anything similar in .NET 2003 Thanks Screen real estate typically refers to the number of pixels you have (e.g. a 1024x768 resolution has more 'screen real estate' than ...Show All
olmich Updating Databases
How do I prevent duplicate entries when working with ultrawingrid in VS 2005 I'm using a SQL database. You can filter the duplications in your query, this is the best practise. Like SELECT DISTINCT. I'm not fimiliar with ultrawingrid..but from a database perspective...a primarykey field keeps duplicate entries from being made.....so if I set up column 0 as a primary key field then the db will not allow a ...Show All
Ludy MenuStrip shortcuts
Hi, I have a normal form with a menustrip docked at the top and also a richtextbox. The problem is whenever the richtextbox is in focus, some of the menustrip shortcuts don't work (Ctrl+R for example). The richttextbox seems to be "stealing" certain key events so the menustrip doesn't process them. Could someone please tell me how to correct this. Thanks, Alex Hi Nick, Take a look at the ProcessCmdK ...Show All
cmd_skywalker Manipulating an object
I’m wondering if it’s a reasonable approach to manipulating an object where I store some data by passing it as a reference to another object that displays the data and enables me to modify the data as needed, rather then putting all of the code to store, display, and modify the data all in the first object. I’m also puzzled as to how to pass the reference within the second object. I can use ByRef to get the “address” of the data object into t ...Show All
tachikoma Is it possible to Debug VB.NET 2003 Interop project after installing VS 2005
We have a mixed code application which has a VB6 front end, calling a VB.NET (currently 2003) middle which has some calls to other VB6 COM dlls. This project was working and we were able to debug it in code but since installing VB.NET 2005 we can not run the project in code - neither can we run a converted version of the VB.NET 2003 to 2005 project in code. How are you meant to force the VB6 application to call the appropriate VB.NET appli ...Show All
Beysim Sezgin Connection String To Northwind
Since I have been trying for some time to populate a treeview with a database, I am excited to see this thread. As cited above, I am working with the linked article ("HOW TO: Populate a TreeView Control from a Dataset in Visual Basic .NET" - http://support.microsoft.com/ kbid=320755 ), but not yet able to get it to work. The problem seems to be in "modifying the connection string to point to the Northwind database on your SQL server." When I ...Show All
Avnish Kumar Sharma Question about moving an app from vb.net 2003 to vs 2005
I'll be getting my copy of vs 2005 this week and had a question about EnableVisualStyles and how that will work. I just recently learned about enablevisualstyles and have started to apply this to my app. However, vs 2005 has this turned on by defualt and draws the controls to correctly include this be default. Does anyone know what happens to visual styles when bringing an app from vb.net 2003 into vs 2005 I'm hoping that it will apply the co ...Show All
th0 Unit testing for beginners?
I haven't found any beginner articles on how to use unit testing in VB. I'm not even sure exactly what it is (well, I understand the general idea). I'd love for some info or pointers for how to use this technology to help me write more robust code. Can anyone out there help me Keep in mind that I'm not a enterprise developer working on an n-tier scalable system, in a large scale team environment, blah, blah. Just an intermediate level coder that ...Show All
Babu Krisnaswamy-MSFT what is the instead of sub main? in 2005
I have built my application my application need first to check if some configuration have been done then go to form2 else go to form1 how can I do this without disable framework options to use sub main!! what I did now is make form1 as start up abd then set it hide=true ...etc is there another soltuion In the project properties if you enable the application framework there is a application startup event. You will s ...Show All
batman900 How to Move from a tabel to another (VB6-Ado)
Good Day.. I have a small problem in vb6 ... I Programed a program that use Ado to read and write to DataBase(Access97)..In the base there are 4 tables(A-B-C-D)..and have the same Fields I want The code to Move From The table A (for example) to table B or C..That the the names appeares in the same TextBoxes. And Thank you(Please in hurry Because the code not for me...) Notic: I used the Wizard Not code connection.. That some ...Show All
Brandon Hamm Updating underlying table
I have a form based on a BindingSource. The text controls' Data Source Update Mode are set to OnPropertyChanged. The FormClosing method (I almost said "event") has the line Me.nameBindingSource.EndEdit() Changes to the data in the fields on the form are not saved when the form is closed. How can I do this I placed the following lines in the OnClosing method of my form: Me .Validate( ...Show All
VladSoft Windows Forms Problem
Am I going mad I have a form with a bindingNavigator bar and a bunch of text box controls. It appears that Click events on the bindingNavigator buttons fire before the control that loses focus fires the Leave and LostFocus events Is this behaviour by accident or design or am I doing something wrong Unlikely....Code sample please! The order of events posted is fro entering and leaving the same control... I would suggest moving your ...Show All
qaiser Inserting sounds for when a message box appears
How do you insert a sound so that it plays when a message box is supposed to appear Like lets say I have a BIG button in my program that when clicked, says "Awesome!!!", and l have a audio file on my computer that says the exact same thing, and I want it to play when this message box comes up. How do I do that If you are using VB 2005, you can use the My namespace, ie: My.Computer.Audio.PlaySound("Awesome.wav") &nb ...Show All
Xanfere SQL Select Statements for database
I have a database that contains Zip Codes and Cities. The Zip Code is the primary key. I am using VB .Net 2003 and Access 2003 for this project. I want the user to be able to type in a portion of a city name and the program to display in its datagrid all the cities that begin with the string the user typed in. My code looks like this: Private Sub btnZip_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles bt ...Show All
Larry T How do you use sound in your project?
Ok, I'm trying to make a cool project but I can't put sound in. Can sombody tell me what's wrong dim soundengine as new media.soundplayer soundengine.load("explode.wav") Just to correct your code : Dim soundengine As New System.Media.SoundPlayer ( "explode.wav" ) soundengine.Play() He might have imported system... hey anyone here know if it is possible to make it play m ...Show All
