Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. BlackKnight

    VB.NET 2010 and datagridview contrl

    Nevermind...it seems tha this code works if datgridview1.Rows.Count > 0 Then datgridview1.Item(0, 0).Selected = False end if
  2. BlackKnight

    VB.NET 2010 and datagridview contrl

    Hi, I am using VB.NET 2010 and the datagridview control. When I set the selectionmode property to fullrowselect and the rows are displayed the first row is automatically highlighted. I understand that this may be default behaviour for the datagridview control but is there a way to stop it? I...
  3. BlackKnight

    Double Click Gridview on WebPage to Open Quote

    Hi, I am using VB 2005, ASP.net 2.0, javascript, and a gridview. I have these quotes listed in a gridview and I would like to be able to double click on a row to open one. I can trap a double click on the gridview in javascript but I can't get the gridview's selected row in the javascript...
  4. BlackKnight

    how can this be done?

    Hi, My solution doesn't need arrays and uses far less code and gives all of the correct results using your test data but to each his own. <g> Have a good one! BK
  5. BlackKnight

    how can this be done?

    Hi, You could try something like this: Private Function MyFormat(ByVal Fmt As String, ByVal Number As String) As String Dim NumberPos As Integer, FmtPos As Integer If Fmt <> "" And Number <> "" Then 'Break when either string runs out of characters. Do While NumberPos < Len(Number) And FmtPos...
  6. BlackKnight

    pupulating listbox in different form

    Hi, Change you if-then statement to: If File1.Selected(i) Then frmDone.List1.AddItem File1.List(i) Have a good one! BK
  7. BlackKnight

    A Form in an ActiveX DLL or in a Standard EXE

    Hi, Juga: Thx for the link it may help someone who doesn't know how to open a form in a VB6 ActiveX DLL. I was hoping that Zarkon4 or yourself would answer my previous question even if it is 3 months old. <g> Have a good one! BK
  8. BlackKnight

    A Form in an ActiveX DLL or in a Standard EXE

    Hi, Ok...I'll bite why isn't it advisable to put a form in a DLL? Have a good one! BK
  9. BlackKnight

    A Form in an ActiveX DLL or in a Standard EXE

    Hi, I have a form in an ActiveX DLL project and a form in a standard EXE project. Is there a difference in any way between the two in making the form visible? In a standard EXE I would use: form1.show In an ActiveX DLL I would have a class' method to show the form. The reason I ask is aside...
  10. BlackKnight

    Combine two tables into one recordset?

    Hi, You can use an UNION query like: SELECT * FROM Income UNION SELECT * FROM Expense Have a good one! BK
  11. BlackKnight

    Validating data in a Text Box

    Hi, LPlates: Actually, no error occurs from calling an event sub (validate). I see you are trying to reinvent the validate event as well. <BG> BB: Yes, I agree but LPlates started. ROFL! Have a good one! BK
  12. BlackKnight

    Validating data in a Text Box

    Hi, LPlates: I agree that the menu validation is not needed since the validate event is what does the work I was merely following the given specs. <g> Without the mnuclick my code is far better than yours since you have reinvented the wheel for nothing when VB functions do it, as well as you...
  13. BlackKnight

    Validating data in a Text Box

    Hi, Judging from your code you are using a menu click to validate your textboxes so try this: Private Sub mnuDataValidate_Click() Const conBtns = vbOK + vbExclamation + vbDefaultButton1 + vbApplicationModal Dim Ndx As Integer Dim Cancel As Boolean For Ndx = txtWheel.LBound To txtWheel.UBound...
  14. BlackKnight

    Getting Values of any object's properties using TypeLib

    Hi, I am trying to retrieve the property values for a passed object. I am using the typelib example from a thread here which allows me to get the property names but I receive an error when trying to get the property's value. Thanx in advance. Dim Obj As New class1 Dim myTLI As...
  15. BlackKnight

    Enter Key

    Hi, Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer) 'Be sure to have the form's keypreview property set to true. If KeyCode = vbKeyReturn Then SendKeys (&quot;{Tab}&quot;) End Sub Have a good one! BK
  16. BlackKnight

    Trying to Capture Ctrl+RightArrow

    Hi, vbrocks: There is no need for it but I didn't feel like hitting the backspace key. <g> Have a good one! BK
  17. BlackKnight

    Trying to Capture Ctrl+RightArrow

    Hi, Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer) Dim CtrlDown As Integer CtrlDown = (Shift And vbCtrlMask) > 0 If CtrlDown Then If KeyCode = vbKeyRight Then MsgBox &quot;Ctrl+RightArrow pressed.&quot; ElseIf KeyCode = vbKeyLeft Then...
  18. BlackKnight

    Classes and Defined Types ...Errors!! Pls help!

    Hi, Forri: Yes, as I previously mentioned the project group has 3 projects. The problem is due to the fact you have a reference to the DLL and it is also in your project group!!! Remove either one of them. BTW if your DLL project hasn't been compiled and made then DEFINITELY remove ir from...
  19. BlackKnight

    Classes and Defined Types ...Errors!! Pls help!

    Hi, In your standard exe project you mentioned that you had 3 projects in it (a DLL, an OCX, and the standard EXE). You mentioned that you had a reference to the DLL as well. If this is correct try: 1) Remove the DLL from your project group. 2) Remove the refererence to the DLL. 3) Save the...
  20. BlackKnight

    Modifying userconcrol on Form (How to??)

    Hi, The controls that make up your user control are &quot;hidden&quot; from outside of itself so you will need to create a user control property (LET and GET) for the caption. 'Insert code into your usercontrol. Assumes your label is 'named: &quot;label1&quot;. Public Property Get Caption()...

Part and Inventory Search

Back
Top