|
Thanks a lot A*****, it was great, worked fine.
Regards.
Scorpion.
|
|
|
|
|
I've populated my DataGridView in which first column in a checkbox(System.Boolean) column. I want to select rows if a checkbox cell is clicked causes the Checkbox.Checked to true.
Private Sub gd1_CellClick(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles gd1.CellClick
If e.ColumnIndex = 0 Then
Me.gdFeePlan.Rows(e.RowIndex).Selected = Me.gd1.CurrentCell.Value
End If
End Sub
gd1 is the DataGridView
and column(0) is checkboxcolumn
Above code doen't works. When I select a row in Grid. I want to select all rows which holds first Checkbox Column Checked to true.
Can you help me?
|
|
|
|
|
Can i write a vb 6.0 client for a webservice, if yes can anyone provide me with any links for that.
Thanks in advance.
----------------------------------
where there is a will there is a way
|
|
|
|
|
When it's loaded I can't really do anything with it. I'm trying to register this copy and when I goto Help/About, nothing comes up. Same thing happens with New Project and any other file menu. Anyone know whats going on?
|
|
|
|
|
Hai,
How can I split a "SINGLE TIFF IMAGE FILE TO MULTI TIFF IMAGE FILE" using vb.net 2003 or vb.net 2005.
Regards,
G.Manivannan M.Sc.,[IT],
Software Programmer (VBA),
AKUVA Infotech, Bangalore.
|
|
|
|
|
|
Hai,
Thanks for your Help.
Regards,
G.Manivannan M.Sc.,[IT],
Software Programmer (VBA),
AKUVA Infotech, Bangalore.
|
|
|
|
|
I tried this the other day. I now have more information that I did not have before.
I have a DLL called spoem.dll
I Have a LIB called spoem.lib
In C++ there are the lines:
#define SPOEM_API __declspec(dllimport)
#pragma message("automatic link to spoem.lib") // <== add this line
#pragma comment(lib, "spoem.lib")
This last line I guess calls a linker the the LIB file. My understanding is that
the DLL has no entry points. Each function in C gets linked intot he program calling
this line.
#pragma comment(lib, "spoem.lib")
Is there any way in VB.NET to mimic this same behavior . I need to link
this LIB file into my VB.NET project.
Thanks
|
|
|
|
|
No, there isn't. A lib file is used during the linking of the C++ object files to get an .EXE. The lib files can ONLY be used with C/C++. They're of absolutely no use to your VB/VB.NET code. You can only use the .DLL version calling the functions it exposes.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
So to dot my I's and cross mt T's.
Since I did not write this DLL, and have no control over it. This DLL cannot
be used in a VB.NET application. Whenever I use
|
|
|
|
|
mlauahi wrote: Since I did not write this DLL, and have no control over it. This DLL cannot
be used in a VB.NET application.
That's not what I said. I said the .LIB file was useless. I didn't say the .DLL couldn't be used. The problem with the entry points is because the name you're using doesn't match the name in the .DLL. You can see the function exports if you open the .DLL in the Dependancy Walker utility. You can find it at http://www.dependencywalker.com/[^]
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
my project is about problem reporting,, n im new to he world of vb.net, so i don't know anything,,, please help me out guys
post me on abbss.gaurav@gmail.com ,,,,,,
thanku
gaurav garg
|
|
|
|
|
If you have specific questions about a networked application then please ask them, nobody here will email you for this.
CleaKO
"I think you'll be okay here, they have a thin candy shell. 'Surprised you didn't know that.'" - Tommy (Tommy Boy) "Fill it up again! Fill it up again! Once it hits your lips, it's so good!" - Frank the Tank (Old School)
|
|
|
|
|
abbss.gaurav wrote: im new to he world of vb.net, so i don't know anything
Buy a book. No-one can answer your question, you have not asked one. If you have specific questions, ask them. If you're totally lost, buy a book and learn the basics.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
There was no query to answer in this message.
|
|
|
|
|
Hello,
Can anyone please help me. I am new to VB.Net. I want to do a program that lists all the comm ports and the device name if any connected to those ports. For eg. we have a credit card reader connected to a port and it shoud display Comm1 : Moneris Credit Card Device. This is to help users to setup their initial settings for the program.
Thanks
|
|
|
|
|
There's no way to ID the device attached to the port. There was never a specification to identify serial devices. You can TRY certain commands that you know the device will respond to, and how it will respond, but most devices won't just plain old tell you "I'm a whatever" with a single well-known command. It just doesn't work that way.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
|
|
Could someone help me? I am trying to pass optional dates via a function.
I have VB.Net 2003.
What am I doing wrong? I keep getting asquibbly line under the zeros.
Here is a sample of the code.
Public Function myFunction(ByVal sSQL As String, Optional ByVal dToDate As Date = 0, Optional ByVal dFromDate As Date = 0) As Boolean
|
|
|
|
|
My first gut reaction is that 0 is not a valid date. I would try putting a valid date in. I would try something like #3/28/2007#
Hope that helps.
Ben
|
|
|
|
|
IS_Assessor wrote: I keep getting asquibbly line under the zeros
Asquibbly: The new word of the day!
Like kubben said, for Optional Paramaters you need a default value and 0 (Zero) isnt a valid date value
SELECT * FROM Users WHERE Clue > 0
ERROR: 0 Rows Returned
|
|
|
|
|
hi
i have a windows application. I am select the folder or file name
from the folderbrowserdialog box and to delete the folder or file i am
calling the following code.
Public Function DeleteFile(ByVal path As String) As Boolean
'Delete a specified file
Try
If File.Exists(path) = True Then
File.Delete(path)
Return True
End If
Catch ex As Exception
Throw ex
End Try
End Function
Public Function DeleteFolder(ByVal path As String) As Boolean
'Delete a specified folder
Dim objFileInfo As FileInfo
Dim objFolder As DirectoryInfo
Dim objSubFolder As DirectoryInfo
Dim dirInfo As DirectoryInfo = New DirectoryInfo(path)
Try
If Directory.Exists(path) = True Then
objFolder = New DirectoryInfo(path)
For Each objFileInfo In objFolder.GetFiles()
objFileInfo.Delete()
Next
If dirInfo.GetDirectories.Length = 0 Then
Directory.Delete(dirInfo.FullName)
Return True
Else
For Each objSubFolder In
objFolder.GetDirectories()
DeleteFolder(objSubFolder.FullName)
Next
End If
DeleteFolder(objFolder.FullName)
Return True
End If
Catch ex As Exception
Throw ex
End Try
End Function
but i have to show the progress bar during the files or folder
deletion.
so plz tell me what should i do.
Pankaj
|
|
|
|
|
You need first to get a count of the files and folders you're going to delete, then you just increment the progress bar after every delete call. Directory.GetFiles will give you a string array of files without that DirectoryInfo stuff. File.Delete will delete them. You should store the paths as you're counting them, so you don't need to get them twice.
It would work better to use a BackgroundWorker to do the deleting, and call it's ProgressUpdated event to update your UI, but calling Application.DoEvents() whenever you update the progress is easier and should work fine.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I'm really stuck on this one.
I've got an mdi parent (with a single menustrip) + one mdi child (with no menu strips).
When I maximize the mdi child, it separates the mdi parent title bar and mdi parent menu bar, inserting a new line between them containing only the child icon and child control box.
Even stranger, when I close the app while a child is maximized, it distorts the size and location of the mdi parent (saved in My.Settings) by the height of this new "strip". So, repeatedly opening and closing the app with a child maximized causes the mdi parent to "creep" - the height decrements by the height of this mysterious "strip."
I have a tiny sample app to demonstrate the problem.
Can anyone help me out of this?
(I'm using VS 2005, vb.net 2.0)
Thanks.
Pat
|
|
|
|