.Net Person's Q&A profile
Windows Forms unbound datagridview
vs 2005 I have an unbound datagridview with a column as a combobox when I read my data in I set the value as:- Dg.Rows[intRow].Cells[1].Value = dr[4].ToString(); However this doesn't actually 'select' the item Is there such a way as 'findstring' - or how can I set the index. ...Show All
Smart Device Development Serial Port
Hi all, I'm trying to write an application for my Pocket PC. The only thing I need to do, for the time being, is to read data from a Bluetooth GPS connected on COM7 of my Pocket PC (Dell Axim X50V). I've got some experience in C# programming (mostly for Microcontrollers) but I know very little about Visual C#. Looking at some samples in this forum I've managed to create an application that reads data from the Serial Port every time I press a button. It can also send data. What I haven't been able to do is to figure out how to use the DataReceived event. I just cannot make the event to trigger. I would like to use it so I only read data when it is actually received. Bellow you can find the code I'm using. Could anyone tell me wh ...Show All
Game Technologies: DirectX, XNA, XACT, etc. vector2 and tecture2d arrays
I've been trying to make arrays with vector2 and tecture2d but i just cant figure it out can someone please help me out and show me how its done. I'm assuming that you want two seperate arrays, one for vector2 values and one for texture2d values. This can most easily be accomplished with the following: Vector2[] myVector2Array = new Vector2[myMaxArraySize]; Texture2D[] myTexture2DArray = new Texture2D[myMaxArraySizeTwo]; myVector2Array and myTexture2DArray are the identifiers while myMaxArraySize and myMaxArraySizeTwo are the number of values that the arrays can hold. These are zero-based (0 is the first array index while myMaxArraySize-1 is the last array index). You would assign myTexture2D ...Show All
Smart Device Development VS2003 to VS2005 conversion
I'm attempting to upgrade an application developed using VS 2003 for a device to VS 2005. When I open the application in VS2005 the conversion wizard runs and informs me that the conversion was OK. However on opening the forms the desigh and layout has been lost, the forms also have many additional properties, those of standard windows forms. Also in the project menu there's no indication that its a mobile device application. I tried starting a new project in VS2005 and importing the forms. This did n't work either. Its been suggested that deleting the .resx file associated with the form is the solution but I have found this to be only a partial solution as any data stored in the .resx file such as embedded images is lost. Does anybo ...Show All
Visual Studio Team System Assigning roles in Visual Studio 2005 Team Suite (VS2005 Team Suite)
Hi, I am new to this forum so please condone any errors or poor protocol on my part. I am appraising visual studio 2005 Team Suite to see how we can use it to configure various roles. The questions I have are as follows: Is it possible to install VS2005 Team Suite onto a server and then assign our development team different privileges so that they can access it as architects or developers or testers or project managers etc. If it is possible, then how is it done Does anyone have any tips or literature on how to go about doing the above What are the potential pros and cons of accessing VS2005 Team Suite across a network. Of course the alternative is to have VS2005 Team suite installed on the developers host workstations. T ...Show All
Windows Forms Filter Listbox problem
Dear All, I'm using the following code to filter list box but there is an error. rivate Sub FilterListboxProducts( ByVal searchString As String ) lstProducts.SelectionMode = SelectionMode.MultiExtended Dim x As Integer = -1 If searchString.Length <> 0 Then Do lstProducts.Items.Clear() x = lstProducts.FindString(searchString, x) If x <> -1 Then If lstProducts.SelectedIndices.Count > 0 Then If x = lstProducts.SelectedIndices(0) Then Return End If End If lstProducts.Items.Add(x, True ) End If Loop While x <> -1 End If End Sub Private Sub cmdFind_Click( ByVal sender As Object , ByVal e As S ...Show All
Visual Studio Team System Visual studio crashed 4 times after parameterisation
Visual studio keeps crashing after parameterisation. This happened 4 times in last 24 hrs. I had to reboot the machine each time it happened. The following was discovered in the VSTestHost.exe.config file [W, 760, 5, 2006/10/24 10:33:23.185 13606305149] vstesthost.exe: WebLoadTestAdapter: Stack trace for error: at Microsoft.VisualStudio.TestTools.WebStress.WebTestInstrumentedTransaction.UpdateBindingSites(String preBoundString) at Microsoft.VisualStudio.TestTools.WebStress.WebTestInstrumentedTransaction.PerformRequestDataBinding() at Microsoft.VisualStudio.TestTools.WebStress.WebTestInstrumentedTransaction.Execute(WebTestCaseContext testCaseContext, AsyncCallback completion ...Show All
Visual Studio source safe plugin installation with visual studio 2005
This is the scenario. Visual source safe was installed first before vs2005. The result is vss plugin did not run on vs2005. how do you manually enable the vss plugin to work with vs2005 Thanks You can install VSS before or after VS In VS go to Tools->Options->SCC->Plug-in selection and select SourceSafe If you do not see SourceSafe in the list of SCC plug-ins then you can either register dlls in VSS install folder using regsvr32 or reinstall VSS ...Show All
Visual C# from dataTable to database
hi! is it possible to do a select command on a dataTable after selecting can i insert it into a database if it is, how could this be done The best way I've found to do this so far is with a loop, a compound key in the database, and two stored procs. In my application I have to store a list of loan accounts for each of our clients, who are applying for loans through us. I have a stored proc I use to send the data in. I have to call this proc once for each row in my DataGrid. Here's the stored proc: create proc dbo.store_cust_equity @row_id int = null, @loan_num int = null, @holder_name varchar(100) = null, @amount money = null as if (@row_id = 0) begin --all rows are sent in by the ap ...Show All
Windows Forms This operation cannot be performed while an auto-filled column is being resized
When attempting to perform a ShowDialog to another form in the CellClick event in a DataGridView I am getting the error System.InvalidOperationException: This operation cannot be performed while an auto-filled column is being resized. at System.Windows.Forms.DataGridView.PerformLayoutPrivate(Boolean useRowShortcut, Boolean computeVisibleRows, Boolean invalidInAdjustFillingColumns, Boolean repositionEditingControl) at System.Windows.Forms.DataGridView.SetColumnHeadersHeightInternal(Int32 columnHeadersHeight, Boolean invalidInAdjustFillingColumns) at System.Windows.Forms.DataGridView.AutoResizeColumnHeadersHeight(Boolean fixedRowHeadersWidth, Boolean fixedColumnsWidth) at System.Windows.Forms.DataGridView.OnColumnHeadersGlobalAutoSize ...Show All
Visual Studio Express Editions How Can I use Label Edit for List View Subitems?
I would like to use the LabelEdit on subitems as well, but I am unsure howe to do this. I did a search and found one topic but there were no responces. I'm sure there is a way, but I'm just a simple self tought hobbiest programmer. I'm hoping that this would be an easier approach than to Load a new Form and then replace the Listview1.FoucsedItem, which how I have been doing it. Can any one help me or point me to a site Thanks. Me . ListView1 . Items (0). SubItems (1). Text = "NewText" For Each i As ListViewItem In Me . ListView1 . SelectedItems For Each si As ListViewItem In i . SubItems si . Text = "NewText" & si . Index Next Next ...Show All
Visual Studio Tools for Office VSTOSE 2005 (8.0.50727.816). Deployment Issue
Hi, I have created a VSTO SE based Outlook Add-In ( Not COM Add-In) It works fine on development machine and couple other test machines. At the same time there are lot other machines which it does not work well. I need this add-in to work on Outlook 2003 base version, SP1, SP2 and Outlook 2007 configurations. I tested the installation on Outlook 2003 SP2 machine and it worked fine. From development machine which does has only Outlook 2003 base version, it worked. I tried here not by installer but during development.Since I deployed on couple other machines I have not skipped anything in the installer. I am using Windows XP as the OS. I am using Install Shield to deploy the solution to client machines. I have packaged the follwoing: ...Show All
Windows Forms help with arrays
Can somebody help me understand arrays. How do you declare an array if you don't know how many elements are going to be in it, for example I thought the following code would work, but I get a null reference exception when I run it. Dim conns() As SqlConnection conns(0) = New SqlConnection("yadayadayada") conns(1) = New SqlConnection("blahblahblah") conns(2) = New SqlConnection("something") any advice on how to use arrays in a manner similar to this, or should I use another type of container Thanks, smtraber Here is an example in C#. Please see if this helps. List < SqlConnection > sConList = new List < SqlConnection >(); sConList.Add( new SqlConnection ( "yadayadayada& ...Show All
.NET Development USB Communictaion
Hi, I have worked with Serial and TCP communication.However i've never worked with USB communication.Have anyone worked with the same,I have read some documents that mentions abt Vendor Id and Product Id necessary for USB communication.As I don't have a USB device for communication can anybody suggest how to try out samples of USB communication.For Serial u have Hyperterminal for testing.I do have a Usb stick is it anyway useful for testing usb communication.Pls suggest ...Show All
Visual Studio Team System Code Analysis has dissapear from automatic build in release mode
When I have changed the compilation mode from debug to release, Code analysis don't apply to automatic build process. it's correct or musn't happen this. Thank you. Regards. Separate project settings control whether FxCop rules run or not in the various configurations, so ... Set you Configuration Manager into 'Release' mode ... On the Code Analysis tab of the project check that code analysis is enabled and that the rules you want to run are selected. There is also a project setting which controls whether the pdb file is generated or not. (As I understand it FxCop relies on the pdb file in order to 'look' at your code.) When you switch to 'Release' mode the pdb file may n ...Show All
