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...
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...
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
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...
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
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...
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
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...
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...
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...
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 ("{Tab}")
End Sub
Have a good one!
BK
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 "Ctrl+RightArrow pressed."
ElseIf KeyCode = vbKeyLeft Then...
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...
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...
Hi,
The controls that make up your user control are "hidden" 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: "label1".
Public Property Get Caption()...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.