There are a lot of ways for telling things but calling people "idiot" is offal. You call him idiot before knowing why he wrote twice the same thing. So what, big deal!
I think that you should first apologize and instead the site administrator I was giving you a warning.
If OpenFileDialog1.ShowDialog = Windows.Forms.DialogResult.OK Then
Dim myfile As New System.IO.FileInfo(OpenFileDialog1.FileName)
textbox1.text = myfile.Name
textbox2.text = myfile.Length
textbox3.text = myfile.CreationTime
'and so on
"I love deadlines. I like the whooshing sound they make as they fly by." (DNA)
Got an app that calls a shell to run tracert.exe using a user inputed destination. That works fine, but the shell disappears before you can see the results. Is there any way to keep the shell window open longer or is there a better way of doing the trace route?
Not a specific answer, but you can pipe the results of a command execution back to your program so you can then show it or do whatever with it. I think this[^] is VB6 code but it should get you in the right direction.
You might want to check out this excellent article[^] instead of calling tracert.exe.
You may use Process and ProcessInfo class to achieve the desired scenario:
Dim process1 As New Process
Dim processInfo As New ProcessStartInfo
processInfo.UseShellExecute = False
processInfo.RedirectStandardOutput = True
processInfo.Arguments = "10.64.1.40"
processInfo.WorkingDirectory = "C:\windows\system32"
processInfo.FileName = "tracert"
process1.StartInfo = processInfo
My app was displaying each and every one of the 16 reports (crystal) I have. Suddenly, reports no longer appear on screen (reportviewer). The code has not been modified at all in months. All sub-routines seem to work and my try..catch structures do not detect any errors
I really do not know where to start. Can anybody offer some help?
Do your procs return data
Presumably you are running a database - check Profiler to make sure the proc is being called correctly
Make sure the proc returns the correct data (error may be date related).
Shoot Crystal Reports - sorry but it is really a crappy program.
Never underestimate the power of human stupidity
I decided to post this as a Different post, because i might be confusing people by tryying to tackle two problem in one thread. Am using VS2003, if i create a new Project i can debug and the Green button to Debug is enabled, but i have an Existing Solution with Multiple Projects in it and the Green button is Disabled. What is wrong in my Solution Settings, because the only option is "Start without Debbuging"
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
i have one problem while searching.if i enter letters from the starting of the textbox then i am able to search.
....if i leave the starting of the textbox blank,and then enter letters then i can't able to search.
A space is a recognised character (Chr 32) so your application is searching for a string that starts with a SPACE. To counter the problem you need remove the leading and or trailing white space by using the String.Trim() method. It removes all the spaces that are not between other Characters. So " this and that " will be changed to "this and that"