Type: Posts; User: DSJ
Search took 0.09 seconds.
September 10th, 2007, 09:41 AM
Here's the code for "Up" ("cm" is a contextmenu associated with the listview):
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
July 24th, 2007, 09:45 AM
The problem is that by showing the messagebox over the form your causing the event(s) to be fired again when you close the messagebox.
July 18th, 2007, 11:28 AM
Dim T As New TimeSpan(8, 0, 0)
You can lead a horse to water, but...
You need to configure "Microsoft .Net Configuration" to "trust" the network. It's not that you can't read the file, it's the .NET won't run the executable from an untrusted source. You can also...
Dim Files() As String = System.IO.Directory.GetFiles("C:\somedirectory", "*.jpg")
For Each file As String In Files
>there is no need to check the thread name
Correct. My suggestion about naming the threads was simply for debugging purposes so you can see what's going on. InvokeRequired is how you should...
>The Processing_Complete Event is thrown from a different thread, but it is caught by the forms thread isn't it?
Nope, the event handler runs on the same thread as it was thrown. You can prove...
The next few lines of the error message might be helpful.
That tells me the file either isn't there, or your program is running without sufficient permissions to see it.
>but it did not work.
So... what DID it do? Error?
When you stepped thru it in the degubber,
If FI.Exists Then
FI.Delete() '<----- Did this line execute?
April 30th, 2007, 03:56 PM
Try something like:
Dim FI as New FileInfo("c:\yourpathhere\yourfilename.whatever")
If FI.Exsists then
April 30th, 2007, 02:01 PM
Further... you can add handlers via code with the AddHandler statement.
April 30th, 2007, 11:59 AM
You need to add "Handles butCancel_Click" at the end of the declaration.
April 25th, 2007, 12:24 PM
My guess is that this for loop is never executed:
For intIndex = 100000 To intListCount
Put a break point on it and step thru with the debugger.
April 13th, 2007, 03:32 PM
Further, if you change it to MultiLine you can size it to any multiple of that size.
April 10th, 2007, 01:59 PM
If you're referring to the toolbar bitmaps, look here: C:\Program Files\Microsoft Visual Studio\COMMON\Graphics\Bitmaps\OffCtlBr
April 6th, 2007, 11:49 AM
Use the PictureBoxes MouseMove event, do whatever you want when the mouse is in your specified coordinates.
April 4th, 2007, 03:20 PM
I'd suggest you look into the Process and ProcessStartInfo classes build into .Net.
March 30th, 2007, 04:41 PM
Dim Retry as boolean = True
Do While Retry
Retry = False
Catch Ex as Exception
If MessageBox.Show("Retry?", "Error", MessageBoxButtons.YesNo,...
March 30th, 2007, 04:36 PM
Have a peek at Registry and RegistryKey .NET classes.
March 30th, 2007, 03:31 PM
What puzzles me is I thought the AllPaintingInWMPaint would not call the OnPaintBackGround, but obvisouly it does.
March 30th, 2007, 03:29 PM
Oh, that's just my "toolbox", Got a bunch of the Win API Delcares, etc. in there.
March 30th, 2007, 03:03 PM
Public Class MyTestLabel
#Region " Windows Form Designer generated code "
Public Sub New()
March 30th, 2007, 11:28 AM
>But, I'm guessing I can't as it seems you cannot make controls of a form have the Layered setting (applying WS_EX_LAYERED to the control).
A Form itself is nothing more than a container...
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!