|
My best guess is that there is a variable in FG.someMethod that is causing the problem. Have you tried running your code in debug mode then stepping through line by line with the F11 key till you get to the line causing the error?
|
|
|
|
|
Unfortunately FG is a 3rd party COM object, so I can't debug it.
But it sounds like I'm not going nuts - if FG is "not set to an instance of an object" then (FG Is Nothing) would evaluate True.
Thanks for the help.
|
|
|
|
|
How to calculate the muliplication of 2 fields to next field
on the .NET data grid but run time? If I move up,down,left,right on the grid,it must calculate whenevere change takes place on the grid cell.
e.g There are 3 columns Units,Unit price and Total on the grid. I want to get Total = Units*UnitPrice. I have written some lines for this purpose under the CurrentCellChanged Event but its working in the same row. but I need If I edit the value of Units Column and go to Column other than these 3 by key down or key up.Its working for KeyRight and KeyLeft.
Here is the code that I have Written
dgOrderDetail is the Name of Data Grid.
Private Sub dgOrderDetail_CurrentCellChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles dgOrderDetail.CurrentCellChanged
If dgOrderDetail.CurrentRowIndex >= 0 Then
If Not IsDBNull(dgOrderDetail.Item(dgOrderDetail.CurrentRowIndex, 10)) And Not IsDBNull(dgOrderDetail.Item(dgOrderDetail.CurrentRowIndex, 11)) Then
dgOrderDetail.Item(dgOrderDetail.CurrentRowIndex, 12) = CInt(dgOrderDetail.Item(dgOrderDetail.CurrentRowIndex, 10)) * CInt(dgOrderDetail.Item(dgOrderDetail.CurrentRowIndex, 11))
End If
End If
I am much trapped in this probelm cuz I have to do it on urgent basis.
Plz help me in this regard
|
|
|
|
|
See DataColumn.Expression in MSDN Help.
|
|
|
|
|
Hey, im trying to get a powerpoint presentation to open in VB, so that it runs but the user cant edit it or stuff anything up. Any help would be appreciated. Thanks.
Court
|
|
|
|
|
how to design word document dynamically using microsoft.office.interop assembly?
as well require api refereces for that?
|
|
|
|
|
hi coders,
i'm perplexed with VB .NET DataGrid...
i can't find out how it is possible to remove a selected row from that control.
imagine we have a button "suppress a line" and the DataGrid from which the user is able to select a row. what i want is when the button is clicked, i'd like to suppress the selected item from the DGrid...
does anyone know how to do that ?
thanx in advance
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Hi,
You cannot directly delete/suppress a row from a datagrid.
You have to manipulat its datasource and then reassign the datasource.
eg:
dim dtable as new datatable
dtable = grid.datasource.
dtable.rows.removeat(index) (Use some logic here to pass the row no. i.e. the index)
reassign the table.
grid.datasource = dtable.
do let me know if this helps.
|
|
|
|
|
genius123 wrote:
You cannot directly delete/suppress a row from a datagrid.
You have to manipulat its datasource and then reassign the datasource.
yes, of course, but i didn't know how to catch the index of the selected lineto delete the associated item in my ArrayList...
so, thank you for your answer
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Catching the rowindex is pretty easy.
index = datagrid.currentrowindex()
if ur using a dataset, delete the row using
ds.Tables("tablename").Rows.RemoveAt(index)
or a datatable
then
dtable.rows.removeat(index)
and plz try elaborating problems a bit to get exact answers
|
|
|
|
|
Hi,
I have created a Windows Service in VB.NET. I need to install it another system. Pls tell me how to install it .
Thank You
Mahesh
|
|
|
|
|
|
Thank you very much. I have got some idea, i will try and then get back to you.
|
|
|
|
|
You can also use installutil.exe to install your service.
installutil nameofyourapp.exe
More info here :
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cptools/html/cpconinstallerutilityinstallutilexe.asp
sebastien.lachance.blogspot.com
|
|
|
|
|
from vb .net solution, I import some functions from c dll which is created using visual studio 6.0. I import by declare Private Declare sub subName lib "capp.dll"...
Is it possible to debug that capp.dll? when I tried to debug, I set a break point at the import function and did a step in, but it just step over the function. Any idea will be appreciated.
Thanks.
|
|
|
|
|
Compile your application in VB.NET. Use Visual Studio 6 IDE to debug the dll source code, using the compiled NET exe as the calling application.
Robert
|
|
|
|
|
We have one VB.net windows based application.It's installed on about 10 client machines.
Every time when we make any changes then we have to reinstall the application on each machine.
Can we add functionality in our application that if there is any modifcation in application then apllication installed on client machine check for update/changes and download the copy from server and installed it automatically.
I have seen this feature in most of the windows prodct but don't know how to add it.
Arvind Malik
|
|
|
|
|
|
|
I need to capture all the content of a non visible or partially visible window.
BitBlt works fine on the visible part of the window. Does anyone know how to capture the full content of the window when it is not visible and to display it at a smaller size on a new window.
Image capture is the fundamental problem. Thanks for your help.
|
|
|
|
|
Since the non-visible part of the form is never drawn, there's nothing to capture. In other words, you cannot capture what you cannot see. This will change in "Avalon", which is the new graphics package coming in Windows "Longhorn".
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
OK, i have written an App using SQL Server and Crystal Reports. I attempted a deployment on the program but it wasnt pretty. The crystal report does not load. Even bigger, there is no SQL connection between my program and another computer because i wrote my program to connect to My SQL on my machine. Where do i start? How do i configure my App so it attaches the database and connects automatically to client SQL? Any information at all will be helpful and appreiciated.
|
|
|
|
|
hello
I'm new to VB.Net and even to VB..
I'm building a multiform application which contains two forms - the main form (form1) and a sub form that can be called by pressing a button at form1.
my problem is that I have a textbox in form2 where the user is supposed to enter text. in addition to a button that I added to submit the text added by the user I want to enable the enter key to do the same submit action like the button submit.
the problem is: the KeyPress() event works only at form1 but not at form2 (again- called by pressing a button at form1)
help... please...
Abed Elkareem Barghouthi
E-mail: abedsb@yahoo.com
http://softlab.technion.ac.il/project/ProfilesPlatform/html/index.htm
|
|
|
|
|
Instead of using KeyPressed, try your code in the KeyDown event.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
hello Dave
thanks for the quick reply but I already tried all the related events including the KeyDown event.
that's why I believe there is something needed to be done like setting focus or caption or something like that because all these events work fine when I use it with the main form (form1)
Abed Elkareem Barghouthi
E-mail: abedsb@yahoo.com
http://softlab.technion.ac.il/project/ProfilesPlatform/html/index.htm
|
|
|
|