Jump to content
Xtreme .Net Talk

Gregory

Members
  • Posts

    17
  • Joined

  • Last visited

Everything posted by Gregory

  1. Yes it work with "Me.cursor". Here is the code : Private Sub DataGrid1_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles DataGrid1.MouseMove Dim hti As System.Windows.Forms.DataGrid.HitTestInfo hti = DataGrid1.HitTest(e.X, e.Y) If hti.Type = System.Windows.Forms.DataGrid.HitTestType.Cell Then If hti.Column = 0 Or hti.Column = 1 Then Me.Cursor = System.Windows.Forms.Cursors.Hand Else Me.Cursor = System.Windows.Forms.Cursors.Default End If Else Me.Cursor = System.Windows.Forms.Cursors.Default End If End Sub
  2. i saw the post with the keycodev2.dll error but not the problem with the Windows 2000 user. I don't find a solution....
  3. This is Cr with visual studio 2002. I want to change the color at the design time (or programaticaly if i can't at the design time)
  4. I'm deploying an application (which use Crystal reports )on Windows 2000 machines where the user haven't got all the permissions (there are users with rights and not administrator). When we install the application on this machine (log as user with rights), the reports work good. But if the user restart his windows 2000 session, we have the famous "keycodev2.dll is missing" error. I think there is a problem with the registry (maybe the user can't access all the registry) but i'm not sure......
  5. ComboBox1.Items(ComboBox1.SelectedIndex)
  6. Do you know how to change the color in a Crystal report's chart ? I don't know how to change the default color (blue, red, green). I know it's possible because I saw an example of Crystal where the color was different (brown, ....). thanks
  7. you have a good example in this thread : http://www.xtremedotnettalk.com/t49447/s.html Or you can have a user control here : http://www.codeproject.com/vb/net/multicolumncombo.asp I stop binding my combo to a datasource for multiple reasons and now i use the items.add to fill my combo. just a little problem with multicolumn combobox : i have an ID and a description (string). i want to see the id and description when the combo is dropdown and only the id when the combo is not dropdown. The size of the combo must be the width of the id but we must see the description when the combo is dropdown (not the same width). sorry but it's difficult to explain my problem not in my language...
  8. The code work (me.cursor work fine !!) thank you.
  9. I have seen a lot of code for multicolumn combobox but i don't find any code for multicolumn combobox binding to a database. If someone know how ....
  10. Hi, I want to change the mouse cursor when i am on the first column of a datagrid. I tried the code below but it doesn't work. If you know why .... Private Sub DataGrid1_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles DataGrid1.MouseMove Dim hti As system.Windows.Forms.DataGrid.HitTestInfo hti = DataGrid1.HitTest(e.X, e.Y) If hti.Type = System.Windows.Forms.DataGrid.HitTestType.Cell Then If hti.Column = 1 Then DataGrid1.Cursor = System.Windows.Forms.Cursors.Hand Cursor.Current = System.Windows.Forms.Cursors.Hand End If End If End Sub
  11. Thank you very much.
  12. Hello, I made a .NET Application with a deployment project. Everything work fine. But now, i'm coding a new version of my application. After, i would deploy this new version to upgrade (or replace the old). For the moment, the user must first uninstall the first version and after install the second. Is there a solution for make a deployment project which upgrade (or replace) an old version of the application without uninstall it ?? Thank you Sorry for my bad english
  13. Yes , just before the dataset update.... Happy to see that somebody understand me ! Thank you.
  14. I have a problem with a datagrid. The user can edit and add new rows in a bound datagrid. I update the dataset binding to the datagrid when the current cell of the datagrid change. The problem is if the user change a value in a row without after move to an another rows of the datagrid, the dataset don't detect a change (and the update doesn't work). The dataset don't detect the changed on a row if we don't navigate on another row of the datagrid !! Have you the same problem ????? and a solution ? I hope you understand my bad english. Thank you
  15. The code below open a second form when the user click on the first column of the datagrid of the first form. Private Sub DataGrid1_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles DataGrid1.MouseDown Dim hti As System.Windows.Forms.DataGrid.HitTestInfo hti = DataGrid1.HitTest(e.X, e.Y) If hti.Type = System.Windows.Forms.DataGrid.HitTestType.Cell Then If hti.Column = 0 Then Cursor.Current = System.Windows.Forms.Cursors.WaitCursor Dim Prog As New Form4() Prog.MdiParent = Me.MdiParent prog.Label1.Text = ComboBox1.Text prog.Label2.Text = TextBox1.Text prog.Label4.text = DataGrid1.Item(hti.Row, hti.Column) prog.Label5.text = DataGrid1.Item(hti.Row, 1) If Not DataGrid1.Item(hti.Row, 2) Is DBNull.Value Then prog.Label6.text = DataGrid1.Item(hti.Row, 2) End If Prog.Show() End If Cursor.Current = System.Windows.Forms.Cursors.Default End If End If End Sub
  16. Hello, i want to change the mouse cursor (default to hand) when i am on the first column (only the first) of my datagrid. i try this code and it don't work : Private Sub DataGrid1_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles DataGrid1.MouseMove Dim hti As system.Windows.Forms.DataGrid.HitTestInfo hti = DataGrid1.HitTest(e.X, e.Y) If hti.Type = System.Windows.Forms.DataGrid.HitTestType.Cell Then If hti.Column = 1 Then DataGrid1.Cursor = System.Windows.Forms.Cursors.Hand Cursor.Current = System.Windows.Forms.Cursors.Hand End If End If End Sub Thank you
×
×
  • Create New...