|
As far as I know, you don't. Those are secondary data files and, combined with the master, make up the database. You do not manipulate the data in the files through anything other than the interfaces provided by the database. There is no supported method that I know of for getting at the data in the secondary files without going through the database.
This question belongs in the General Database forum, not VB.NET.
|
|
|
|
|
Hello Experts,
I am using Printdialog it's working fine but in VISTA X64 bit. Printdialog box is not showing?
Please help for this issue.
Thanks
If you can think then I Can.
|
|
|
|
|
Is there an exception or some sort of information other then 'my code is not working as expected?'
|
|
|
|
|
It's not generate any exception.
My code is given below.
Dim pdl As PrintDialog = New PrintDialog
If pdl.ShowDialog = Windows.Forms.DialogResult.Cancel Then Exit Sub
If you can think then I Can.
|
|
|
|
|
I've got the same problem in win vista 64bit home sp1! )
|
|
|
|
|
It's in ALL 64bit versions. I wrote this some time ago here. I hope it will work fine with the new version
Jan
|
|
|
|
|
hi jan,
It's OK
|
|
|
|
|
This Code gen No Ex, it alway return DialogResult.Cancel without display dialog.
|
|
|
|
|
How Can we use vb.net timer contol in vb6 application?
Thanks in advance
|
|
|
|
|
Wrap it as an ActiveX control, and create an instance in VB6. Search for "VB6 Interop Toolkit" if you want to use more/other controls/forms in VB6.
I are Troll
|
|
|
|
|
Thanks
|
|
|
|
|
I would say don't do it.
Why not just use the VB6 Timer control[^]. It does exactly the same job and it is already there for you to use without any messing about.
If you have knowledge, let others light their candles at it.
Margaret Fuller (1810 - 1850)
www.JacksonSoft.co.uk
|
|
|
|
|
There's multiple levels of stupidity in this, but the part where you still use VB6 definitely takes the cake.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Christian Graus wrote: There's multiple levels of stupidity in this, but the part where you still use VB6 definitely takes the cake.
Wow, that's definitely signature material
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
Hi friends,
If you like 3D Graphics programming, I have some interesting code which deals with adding light to a 3D scene.
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=72519&lngWId=1
Hope it is informative.
Regards.
|
|
|
|
|
Very interesting, but this is not a Visual Basic question. Please use a more appropriate forum for this type of post.
|
|
|
|
|
I was going to reply that you should write an article until I noticed it is VB6 compatible, so don't bother, writing an article gor a language that has not been supported for a number of years is sort of stupid.
|
|
|
|
|
Is there any way to detect if the computer is going to restart using visual basic?
Thanks
|
|
|
|
|
in the form's closing event one of the close reasons is windowsshutdown. not sure how accurate it is but...
If e.CloseReason=CloseReason.WindowsShutDown Then
...
End If
'Never argue with an idiot; they'll drag you down to their level and beat you with experience.' ~ anonymous
'Life's real failure is when you do not realize how close you were to success when you gave up.' ~ anonymous
|
|
|
|
|
Yea that works however, i believe if you logoff, it still triggers that event. For my application, i need to detect a logoff vs a restart.
|
|
|
|
|
Hey, I'm a very beginner so please don't laugh
I want to validate a date user inputs:
Dim scr_time As Date
dim ok as boolean
System.Console.WriteLine("Enter screening date & time [DD/MM/YYYY HH/MM]")
scr_time = System.Console.ReadLine()
ValidateDate(scr_time, ok)
Sub ValidateDate(ByVal scr_time As String, ByRef bol_isvalid As Boolean)
If IsDate(scr_time) Then
bol_isvalid = True
Else
bol_isvalid = False
End If
End Sub
When entered 'notdate' the error says "Conversion from string "notdate" to type 'Date' is not valid."
Is that because I declared scr_time as date, instead of string? If I declare the date as string is
now >= scr_date
going to work fine?
Second question regarding validation of number:
Dim cnt_adult As Integer
System.Console.WriteLine("How many adult tickets required?")
cnt_adult = System.Console.ReadLine()
ValidateNumber(cnt_adult, ok)
If ok Then
System.Console.WriteLine()
Else
System.Console.WriteLine("Incorrect value. Press any key to try again.")
System.Console.ReadKey()
GoTo sale
End If
Sub ValidateNumber(ByVal text As String, ByRef bol_isvalid As Boolean)
If IsNumeric(text) Then
bol_isvalid = True
Else
bol_isvalid = False
End If
End Sub
"Conversion from string "t" to type 'Integer' is not valid."
I know the solution would be to declare the variable cnt_adult as string, by I need it as integer so I can multiply it with another integer later.
modified on Wednesday, October 7, 2009 3:41 PM
|
|
|
|
|
Use the TryCatch structured error handling, it will help you wonders, or you can also use Int32.TryParse[^] to convert a string to a numeric.
|
|
|
|
|
I don't want to convert entered by user letters to equivalent numbers, I just want program to make sure the user inputs only numbers where asked, if he enters anything else I will ask him to enter it untill its numbers only [loop].
|
|
|
|
|
If you read the documentation for ReadLine you will see that the very first line states:
Reads the next line of characters from the standard input stream.
**NOTE** it says characters. Not numbers. Not hieroglyphics. Characters.
Therefore you will have to use int.TryParse and DateTime.TryParse (the last of these will fail incidentally given your code. Use HH:MM not HH/MM) to get the data into the form that you want.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Actually characters include numbers.
|
|
|
|