Software Development Network Logo
  • IE Development
  • Microsoft ISV
  • Visual C#
  • Smart Devicet
  • Visual C++
  • Visual Basic
  • SharePoint Products
  • Game Technologies
  • Windows Vista
  • SQL Server
  • Visual FoxPro
  • Audio and Video
  • VS Team System
  • Visual Studio
  • Windows Forms

Software Development Network >> henri.ks's Q&A profile

henri.ks

Member List

davelynas
Radith
Penny Ong
Sudip1
Wee Bubba
JRLiem
R. Muti
Yuki Chen
andrewds17
WinFormsUser13232
Aqua General
AndyC12345
Ldwater
Angry Coder
Ankini
NetPochi
alexmy5
Manash
big fish713
Lee Sibbald
Only Title

henri.ks's Q&A profile

  • Smart Device Development connecting data with MS Active Sync, howto?

    is there any way to connect a database (desktop) from PPC2003 to a desktop with Active Sync 4.1 I can't do it with this code: imports system.data.sqlclient Public Function GetConnectionString() Dim connectionstring As String = "Data Source=desktop;Initial Catalog=table-name;Integrated Security=True" Return connectionstring End Function Private Sub click() Dim connection As New SqlConnection(GetConnectionString) connection.Open() Dim queryString As String = _ "SELECT Layer FROM dbo.MasterLayer" Dim adapter As SqlDataAdapter = New SqlDataAdapter( _ queryString, connection) Dim mstmap As New dataset Dim mst As DataRow ...Show All

  • Windows Forms Problem Copying Data From Column to Another Column in Datagrid

    Hi All, I have a datagrid and have created a button which copies the data from column 2 into column 3. Column 3 is a template column with a text box to allow manual data entry. Though when I copy the data from column 2 to column 3 the textbox is removed from column 3. This is the code I am using to copy the column data: private void cmd_UpdatePull_Click( object sender, System.EventArgs e) { foreach (DataGridItem dgi in DataGrid1.Items) { dgi.Cells[3].Text = dgi.Cells[2].Text; } } Any ideas how to fix this problem Rgds, Paul i assume you are using c#. The following code copies from column2 to column1 for datagridview (available in vs 2005) and datagrid (available from vs 20 ...Show All

  • Windows Forms Highlight the cell with an error...

    Hello everyone! I've got a DataGridView and when the user forgets to enter a value into a required field I would like that field to get focus when the error occours. Also if invalid data is entered I would like the invalid data to be marked (highlighted). Any ideas on how I could do this Right now I'm only showing a messagebox in the DataError event. Thanks in advance! -Martin Thank you, however I've got 4 cells in a row and they are all Required. If I enter value in the first one and then try to finish the row I get an error message in the first cell which has a value and should be valid. I did dgv[e.ColumnIndex, e.RowIndex].ErrorText = "Error!";. Any idea why =) ...Show All

  • Visual C++ Simulating Left Mouse Button Click

    Hi, At the moment, I am running into a problem which is this: Every time I right-click on a TreeView item in my application, the selected item remains the item prior to right-clicking rather than changing to the right-clicked item. While this isn't exactly a BUG, it is quite an inconvenience. The most obvious solution to the problem, to me, is to simulate a left-button click in the right-click NM_RCLICK event that will in turn select the item prior to any further actions. Is there a better way to accomplish this If not, how can the left-click simulation be accomplished Thanks in advanced. ---Dan I'm running into a problem... I'm using straight Win32 SDK without MFC and am substituting some code...I am usi ...Show All

  • Visual Studio Express Editions help plz

    i made a small program which load a sqlserver express 2005 database. it is fine running on my computer,but when it runs on another computer, it can not connect to the database. the two computers' hardware configuration are the same,celeron 2.4g(maybe), 256m ram, window xp professional sp2. and i install frame work 2.0 on both computers. can anybodoy tell me the reason part of the error message: System.Data.SqlClient.SqlException: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specif ...Show All

  • Visual Basic A simple query about Left Shift (<<)

    Dim A As Byte () = New Byte () {231, 3} Call Test(A, 0) Private Function Test( ByVal Array As Byte (), ByVal StartAddress As Integer ) As Integer Dim A As Integer = Array(StartAddress + 1) << 8 Dim b As Integer = A << 8 Dim c As Integer = 231 Dim d As Integer = A Or c Stop End Function When the function Stops, the variables equal the following: A = 3 b = 768 c = 231 d = 231 3 << 8 = 768, but Array(StartAddress + 1) << 8 does not equal 768. Even though Array(StartAddress + 1) = 3. Why is this Also, is there anyway to view the code for System.Bitconverter to see how it's done Thank you, Troy L I have another question that may or may not be ...Show All

  • Visual Studio System.Runtime.InteropServices.COMException (0x80041004): Not enough memory for operation.

    Hi there, I have CS2003 and Crystal Reports XI R2 standard edition installed on my machine. Before CR XI installed, my application and reports worked fine. For some reason, I installed Crystal Reports XI R2 standard edition. I am not able to edit the report through VS, I have to change the existing reports through CR XI, luckly, my application still can load those reports if only with a little change. However, I wanna change all referenced CR assemblies in my project from 9.1.5000.0 to 11.5.3300.0 so that I do not have to worry loading problem with some new reports . But it did not work to me, the error message is: System.Runtime.InteropServices.COMException (0x80041004): Not enough memory for operation Can anyone tell me how to m ...Show All

  • Smart Device Development Linking Miracl library on smart device in visual studio 2005 with C#

    Hi, I must use Miracl ECC library with C# application in a smart device with PocketPC 2003 OS. I find information to do it. Yhank's for help, and sorry for bad English... Stefano You should contact " Miracl ECC library" manufacturer for that info. ...Show All

  • Visual Studio Express Editions Are todays leading games build in VC++?

    Does anyone know if the 'big guys' use VC++ or Express to build their games If not, what do they use And why From questions and feedback I receive I know that a number of the 'big guys' use Visual C++ - but I probably shouldn't name names. I can say that a lot of XBox games are developed using a version of Visual C++. ...Show All

  • Visual Basic Export problem

    Not sure if this goes here but its related. I have a vb.net 03 program to import some csv files into a database then im going to a different form that has a crystal report viewer on it. In that viewer im bringing up a report that pulls from the database fields that i imported to earlier. The report pulls up just fine and i can export the report to word, excell just fine, but it get a "Error Detected by export DLL" message when i try to export to a pdf. It isnt a huge problem for us to just use word but it would mean a change for the office people viewing it and im sure most of you know how well change goes over in a office. It appears my problem is that i have lines drawn on my crystal report ...Show All

  • SQL Server collation in sql 2005

    Does anyone know if there is a command in query analizer for sql server 2005 (Express) that changes the collation of all the char (varchar, nvarchar etc) in a table or in a database. And I don't mean to set the collation when creating a database, but to modify a database's collation seting. thank you This information might help: http://msdn.microsoft.com/library/default.asp url=/library/en-us/architec/8_ar_da_3zw3.asp Buck Woody ...Show All

  • SQL Server Reference the reports DataSet from Code

    Hi All, From my reports code I would like to do some things with the reports DataSet. Is it possible to reference this object from within the report code Thanks, Eric http://msdn2.microsoft.com/en-us/library/ms157274.aspx ...Show All

  • Software Development for Windows Vista Step by step installation instructions needed ...

    Hi all, I'm going through the documentation I'm finding but I'm having real trouble when I try to install all I need, to go through the Workflow Lab sessions. I have a clean Windows XP machine with Visual Studio 2005 installed and MSSQL 2005. As far as I understand to be able to develop and run workflow applications I have to installe on my PC the following parts in the following order: 1. .NET Framework 3.0 2. Windows SDK 3. Visual Studio 2005 Extensions for Windows Workflow Foundation Here are my questions: Is this list correct and complete Can anybody give me the links where I can download all the most recent versions When I try to run the "Visual Studio 2005 Extensions Visual Studio 2005 Extensions " ...Show All

  • SQL Server could not find stored procedure 'dbo.sp_MSdropfkreferencingarticle'

    Hi, I'm trying to generate a snapshot of a database (running on SQL 2005 SP1) prior to starting transactional replication to an SQL 7.0 server. After generating the snapshot, the agent fails with the error message 'could not find stored procedure 'dbo.sp_MSdropfkreferencingarticle' and suggests lookin at error number 2812 (which offers no help). I was convinced this worked prior to installing SP1, but that testing was done some time ago.... Andy, this is a bug we need to fix (I am guessing you are using "truncate" as the pre-creation command). To workaround for now, you can: 1) Use drop as the pre-creation command 2) Create a dummy procedure "sp_MSdropfkreferencingarticle" at ...Show All

  • Visual Studio SP1 ReportViewer: RenderingComplete event not firing if ReportViewer.Visible = false

    Hi all, In our product we use our own rendering progress screen, so when the RenderingBegin event fires we set the ReportViewer control Visible property to false so that our screen is visible. When the RenderingComplete event fires, we bring visibility back to the reportViewer control. The issue is that ever since installing SP1, the RenderingComplete event never fires if reportViewer.Visible = false. Has anyone else noticed this Thanks in advance, Jeremy Code snippet: private void _reportViewer_RenderingBegin(object sender, CancelEventArgs e) { this.ReportRendered = false; this._reportViewer.Visible = true; this._reportRenderInProgressCtrl.Visible = true; this._reportRenderInProgr ...Show All

©2008 Software Development Network