|
You can edit the row within the datagrid, or you can remember a primary key for the row, use it to do an UPDATE, and then rebind.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I have an application using sql server database. Now i want to ship database along with my application.
First I thought of running a script on the client machine, but then the data would not be copied. Also I have assigned a job on that database, that would not be copied either.
Is there a way that I can create an application which can DETACH and ATTACh database and the JOB assigned to the database.
Thanx in adv
|
|
|
|
|
nitin_ten wrote:
but then the data would not be copied
You can export the data into text file, and then import it from the client's machine. This can be done by creating DTS package.
For attach and detach. [^]. You can execute stored procedure.
<italic>Work hard, Work effectively.
|
|
|
|
|
|
But the default users are the same for every database is'nt it?
|
|
|
|
|
So your database has no security at all then ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
|
Bingo!
This is something i've not been able to achieve, and also how to replicate the job assigned to the database
|
|
|
|
|
How can i programatically create user, assign roles and create job for the database
|
|
|
|
|
|
|
hello there
If you want to do it all programatically then the best way is to use SQLDMO type library and with this you can do every thing on the server.
for this I am not sure it will work with vb.net or not. but it works fine with vb6 where I tested long time back..... here is the link which will help you
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnacc2k/html/msdedeploy.asp
|
|
|
|
|
Is it possible in visual basic if we have a checkbox and on click of a checkbox a combobox is set visible true and this combbox automatically dropdown showing all the values. i just want that combox should open automatically when a checkbox is checked to show all the list. i donot want the user to click on the combo to see what is in the combo.
Is this possible ????????
Any help will be highly appreciated
Thanks in advance
Monica
|
|
|
|
|
hi,
u can directly call click event of combo like
combo1_click
in the click event of checkbox
might be helpful to u.
atul.
|
|
|
|
|
thanks for the help But that does not open the combo it just set focus in that combo .
Monica
|
|
|
|
|
Another of controls for VBNET... anyone knows about a control like the properties tab of VStudio?
Thanks in advance
|
|
|
|
|
Visual Studio ALWAYS has custom controls in it. It keeps GUI component companies in business.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Anyone know how to insert or delete a text box to MS word by VB.net??
thanks..
|
|
|
|
|
Hi! This is my first post, so thanks to everyone in advance.
I need to use a TabControl as a kind of Wizard, so I need to disable the click on the tabs in order to make them change programatically. Anyone knows how to disable or manage the click event to do that, or something that allows me to do that?
Greetings!
|
|
|
|
|
If you don't want to let the user control the tabs, why do you want to use the tabcontrol, do you need to do it that way ?
If you derive a class from the tab control class, you can catch and ignore click events.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I remember seeing an article here in CodeProject about a control that helped create wizards quickly. Search it here and you will probably find it.
|
|
|
|
|
I have an example where I have a client and a server. Via remoting I am instantiating a remote object (singleton mode), calling a method on the remote object, which fires an event (using a delegate) back to the client machine. I have created a tcp channel on both the client and the server for bi-directional communication.
If I start the server, then start the client, everything works fine and calls to the server result in an event being fired and sent back to the client.
If I keep the server running, shutdown the client, restart the client listening on the same port, I get the following error:
System.Runtime.Remoting.RemotingException: Requested Service Not Found
I have a feeling this has to do with the remote object lease, but I'm not sure what I need to do in this case.
If anybody could help me, I'd greatly appreciate it.
|
|
|
|
|
Howdy...
VB is not my domain -- but I am trying to understand a "problem" I am running into.
I've got this EXE -- written in VB6.
I've got this DLL -- written in C++ (.net 2003) (compiled for UNICODE).
I need to pass UNICODE strings from VB to my C++ DLL. But it seems that the strings are coming across as ANSI strings.
Am I seeing things? I thought VB was UNICODE?
Anyhow -- the external declaration for the DLL function declares every string "as string" -- is there something I can do here to make that better?
I NEED UNICODE.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
<A HREF="http://www.santacruznetworks.com">Santa Cruz Networks</A>
|
|
|
|
|
I'll reply to myself -- since I figured out part of the answer.
It seems that VB6 passes args to other functions as ANSI. And in order to change this I should change how the external args are declared.
Changing "as String" to "as Any" will do it. (This MSDN article refers to this method for calling reg functions with UNICODE).
Great -- now it get's a little more interesting -- I want to return a few strings as a result. The DLL refers to this parameter as "ByRef Ihandle As String" -- will "ByRef IHandle As Any" work? And what will the C++ parameter be? (bstr_t *)?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
<A HREF="http://www.santacruznetworks.com">Santa Cruz Networks</A>
|
|
|
|
|
Peter Weyzen wrote:
And what will the C++ parameter be?
A BSTR, I would have thought. _bstr_t is a class to convert strings between char * and BSTR for you.
However, the way to find out is to debug and let the IDE tell you.
Christian Graus - Microsoft MVP - C++
|
|
|
|