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
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...
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...
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=
'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 =...
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)...
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...
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...
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 :)
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...
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.
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"...
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...
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...
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...
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
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
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.