|
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
|
|
|
|
|
I am not sure I understand your problem well enough, but maybe the following will help.
All forms have the properties "AcceptButton" and "CancelButton". Set these properties to each corresponding button on your form.
|
|
|
|
|
Rudy is correct. You can use the AcceptButton property to get ENTER to click the submit button. But it too won't work if the form doesn't have the focus.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
hello Dave and Hello Rudy
It really didn't work.. as I said it works only when I use it with form1 but not when I use it with form2 (which appears as I press a button in form1)
maybe it would help you if add that while form2 is active on the top level form1 still also active but at the background
Abed Elkareem Barghouthi
E-mail: abedsb@yahoo.com
http://softlab.technion.ac.il/project/ProfilesPlatform/html/index.htm
|
|
|
|
|
From your descriptions, what you're saying isn't possible. There's something in your code and how your code is written that doesn't match your description of the problem. Without seeing your code for BOTH forms, we really can't tell you what's going on.
Only one form/control can have the focus at any one time. So when you say that both forms are "active", we don't know what you talking about.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
You should be able to create an event or use a delegate.
For example, if Form1 creates Form2 then add an event in Form2 and subscribe Form1 to that event.
Ex:
in Form2:
Event Form2Event(text as string)
when enter key pressed in Form2 :
RaiseEvent Form2Event(text)
in Form1:
AddHandler myForm2.Form2Event, Addressof SubmitPressed(text)
|
|
|
|