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: *

  • Users: mattscotney
  • Order by date
  1. mattscotney

    Disable listview column resize?

    Hi all, How can I disable the users ability to resize columns in a listview control? Disabling the whole listview control, or setting the column headers to nonclickable are not options as when the user clicks the column headers I sort the columns. Thanks, Matt Scotney
  2. mattscotney

    Ms Access date format?

    Nope, #'s around the date didn't work either. When quering a date eg. SELECT...WHERE...#" & mydate & "#... you have to use the #'s, not when updating / inserting though. I finally fixed it simply by putting [] around the word date. Sql does not appreciate you using reserved...
  3. mattscotney

    Ms Access date format?

    Hi again, I tried your code and I still get the same error. Thanks, Matt Scotney
  4. mattscotney

    Ms Access date format?

    Hi all, I am trying to update my Access database through vb.net using the following sql statement: Dim myDate As Date = Date.Now selectString = "INSERT INTO Purchase(ClientID, Date) VALUES (50, '" & mydate & "')" updateDB(selectString) The Date field in access is...
  5. mattscotney

    Browse Button?

    You have to use the openFileDialog control. Lots of examples here: http://www.google.com.au/search?q=openfiledialog+vb.net&ie=UTF-8&oe=UTF-8&hl=en&meta=
  6. mattscotney

    Play system sounds

    'Not sure if there are any vb.net classes to handle it, but its pretty easy with the windows api: Private Declare Function PlaySound Lib "winmm.dll" Alias "PlaySoundA" (ByVal lpszName As String, ByVal hModule As Long, ByVal dwFlags As Long) As Long Private Const SND_ASYNC =...
  7. mattscotney

    Rotate an ellipse?

    Hi all, I can draw an ellipse like this: myGFXobject.drawEllipse(myPEN, x, y, width, height) How can I draw an ellipse rotated around its center by a 45 degree angle? Is it possible to draw an ellipse using a series of points? (Simular to drawing a diamond using the drawPolygon method)...
  8. mattscotney

    Disable control events or disable procedure

    Thanks Sunaj, you set me on the right track. All I have to do is: 'Turn off the event: RemoveHandler "object.event", AddressOf Me."Name of event procedure" 'Run some code, procedure, or function" msgbox("hello World") 'Turn the event back on: AddHandler...
  9. mattscotney

    Disable control events or disable procedure

    Hi all, Is it possible to disable specific events of a control while another procedure is running? eg. Disable a the valueChanged event of a Horizontal scroll bar. I am not trying to disable the actual control itself, only disable specific events while another procedure is running. Another...
  10. mattscotney

    Can scroll bar store decimals?

    Hi all, How do I change the type of a horizontal scroll bar value type (hsb.value) so it can accept decimal numbers? I have tried assigning decimals to the hsb like this: hsb.value = 3.5 but the value that gets stored in the hsb is 4. How can I make the hsb store decimal numbers? Thanks :)
  11. mattscotney

    Convert HSB to RGB

    Hi all, I can get the hue, saturation and brightness of a color using the following code: hue = Color.FromArgb(r, g, b).GetHue() sat = Color.FromArgb(r, g, b).GetSaturation() bri = Color.FromArgb(r, g, b).GetBrightness() But how do I convert the hue, saturation and brightness levels back to...
  12. mattscotney

    Naming array index

    Yes Tony, I am after a way to have names I can use as the indices in an array. Anyone know how? Thanks.
  13. mattscotney

    Naming array index

    Thanks Jooky, Will that work if I want to use 2D or 3D arrays and require completly different index's for each? example: dim myArray(x, y) Different indexes for both x and y. x index may be name, color, weight, length. y index may be dog, cat, mouse. Thanks again.
  14. mattscotney

    Naming array index

    Hi all, Is there any way to name the array index? example: dim myArray(3) myArray(0 := a) myArray(1 := b) myArray(2 := c) myArray(3 := d) Then to assign elements using the created index: myArray(a) = "apples" myArray(b) = "bananas" myArray(c) = "cherries&quot...
  15. mattscotney

    Use Like "*a*" in case statement

    Hi all, How do I use the like statement within a case statement to catch wildcards? This is how I think it should be done but it does not work: Select Case docTypes Case Like "*egg*" 'Do something.... Case Like "*tea*" 'Do something else.... End Select Thanks...
  16. mattscotney

    Color Dropper Tool

    How do I create an color dropper tool? The user clicks a button, the mouse cursor changes to an eye dropper tool, a panel changes to the color of the pixel at the mouse position as the mouse moves around the screen. I need the code to get the color of the pixel at the position of the mouse...
  17. mattscotney

    Tab control item on all pages?

    Hi all, How do I make the one panel or picture box visible on all pages of a tab control? Thanks in advance, Matt Scotney
  18. mattscotney

    Corrupt file - please help

    Hi all, I have just finished reinstalling all my applications after a hard drive meltdown. Everything is now back to normal, well almost. When installing Visual Studio .net from the CD I get a major error with the msvcp70.pdb file, the application then rolls back the installation. If I try...
  19. mattscotney

    Assign status bar text to a variable?

    Hi all, How do I assign the status bar text to a variable? I tried the logical way but it does not work: x = window.status; alert(x); Any help would be greatly appreciated. nb: I am not after a method to change the status bar text. Thanks in advance, Matt Scotney
  20. mattscotney

    Php live support solution

    Hi all, Does anyone have a spare copy of the Php live support script: http://www.phplivesupport.com/ or any simular script to provide real time customer support? Thanks in advance, Matt Scotney

Part and Inventory Search

Back
Top