|
You can't. There is no code you can write that will disable it.
And reposting the same question over and over will not change the answer.
|
|
|
|
|
hi,
I am trying to create a custom installation package that won't take my end users very many steps.
Currently there are
-- Install .dot net (which I am not worried about because most of the machine have it already (and it runs with the setup.exe that I created from Visual Studio)
-- Install SQL Server Express with management studio Create the database by running the sql scripts within Management Studio and install the software itself. Though this process does work, I would like to make it a little easier. Our end users aren't exactly technically expert and will run into problems. Also with my limited experience of SQL Server, it is hard to rectify created instances, etc without a lot lof work that they won't understand.
my question is can we have a custom package, which consists of all the above and runs in single step.
|
|
|
|
|
For various reasons I want to be able to bind customer business objects to a DataGridView rather than use Datasets. I have developed a class that implements IBindlingListView so that I can sort and filter them, however, I also want to be able to provide RowState functionality similar to that provided by Datasets. I will add a RowState property to my customer business object, however, I need to understand how to properly update this property using the DataGridView events. If anybody has some thoughts on which events would be useful I would appreciate any input
Thanks!
Jim
|
|
|
|
|
I beleive there are celledit/cellenter events that will allow you to identify the rows to be flagged as dirty, set the state of the object.
There is also a beforecelledit I think that may be usefull. Seems the real trick is to pick the correct event to use!
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
hi,
i have a datagridview on a usercontrol "products" hosted from a form "productsform".
my grid shows a dataset by using a bindingsource bsproduct with nearly 500 records.
by clicking a row in the grid i want to show a detailform "productdetailform" with a usercontrol "productdetails" that has textboxes and displays the values.
after changing the data, the row in the dataset should be updated, and the productdetailform should be closed.
how can i handle this ?
i thought i can deliver the bindingsource bsproduct to the productdetailform and bind my controls to the Usercontrol productdetails.
delivering the bindingsource to productdetailform is ok, but how can i access the bindingsource in the code of the userontrol productdetails ??
bye jo
|
|
|
|
|
Hi,
i show products in a datagridview with a dataset as source.
now i want to show a detailform by clicking a datagrid row.
the changes in the detailform should be transfered to the dataset an shown in the datagrid.
how could this be handled ?
i use C# with VS2008
by jogi
|
|
|
|
|
jogisarge wrote: how could this be handled ?
Well you could have handled it by doing this[^]
led mike
|
|
|
|
|
Hello Friends..
I am working on one project in VB.NET Desktop Application..
I am not satisfied with visual studio inbuilt controls.
For rich functionality of my application i need to
third party controls.
can u give me a list of third party controls.
I want to know much about this third party cotrol..
can u suggest some sites which provides free download of this
third Party controls.
Thanks in advance
|
|
|
|
|
You'll find loads on google.
Infragistics[^]
devexpress[^] - They also do some free components if you search around their site a bit.
devcomponents[^]
telerik[^]
syncfusion[^]
If you are looking for open source, you need to search for specific stuff that you are looking for. There are lots of open source / free controls around you just have to be prepared to look a bit harder for each specific control that you want.
Simon
|
|
|
|
|
Thank u Simon
Can u give me a names of thord party cantrol so that i can
search directly and download..
|
|
|
|
|
Rahul Say hiiiii wrote: Can u give me a names of thoird party control
Umm...I just did. I even gave you links so you don't have to search.
What kind of control are you looking for?
What do you need it to do?
Simon
|
|
|
|
|
|
|
You are welcome
Regards,
Lev
|
|
|
|
|
I have to do migration from VB6 to VB.net where i need to convert one portion of the code to vb.net using multithreading.That portion of the code in VB 6 is calling a function from the dll(which is having lot of parameters)I need to convert the code to vb.net by passing 10 threads.When i googled i came to know that it is difficult to pass parameters for the procedure.
My question is that is it very difficutl to pass parameters while multithreading?In my migration where i convert one portion of the code (in which a function is referrenced from dll)will i be able to implement the passing of parameters do i need to think of some other solutions.Can we pass the parameters using delegates inside a class where the thread is passed?
|
|
|
|
|
You should look into the BackgroundWorker class that was introduced in .Net 2.0. This class provides some intuitive events that you can handle that allow multi-threaded activities to occur. You can have as much or as little control as you need. Here's an example in C#, just because that's the language I work with:
public void DoBackgroundWork(string stringParameter, int intParameter)
{
bgWorker = new BackgroundWorker();
bgWorker.WorkerReportsProgress = false;
bgWorker.WorkerSupportsCancellation = false;
bgWorker.DoWork += new DoWorkEventHandler(DoWorkAsync);
bgWorker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(DoWorkAsyncCompleted);
bgWorker.RunWorkerAsync(new object[] { stringParameter, intParameter }); <--- pass parameters here
}
public void DoWorkAsync(object sender, DoWorkEventArgs e)
{
object[] parameters = (object[])e.Argument; <--- unpack the parameters here
string stringParameter = (string)parameters[0];
int intParameter = (int)parameters[1];
<... do work tasks here ...>
bool boolResultValue = ...; <--- prepare result values for WorkCompleted handler
string stringResultValue = ...;
object[] results = new object[2];
results[0] = boolResultValue;
results[1] = stringResultValue
e.Result = results; <--- pass result data to WorkCompleted handler
}
public void DoWorkAsyncCompleted(object sender, RunWorkerCompletedEventArgs e)
{
object[] results = (object[])e.Result; <--- unpack the result data here
bool boolResultValue = (bool)results[0];
string stringResultValue = (string)results[1];
<... do result tasks here ...>
}
Note that when calling bgWorker.RunWorkerAsync() there is an override that allows you to pass an object ; this object is then available in the DoWork handler as the e.Argument property. Since you can pass an object to RunWorkerAsync you can make a custom parameter object or you can do as I did and pass in an object array. Regardless of how you pass the data, you'll have to cast to the proper types in the DoWork handler; what I referred to as 'unpacking' the parameters. In a similar manner, if the RunWorkerCompleted handler is setup it will be called once the DoWork handler finishes execution. You can pass result data into the RunWorkerCompleted handler by setting the e.Result property in the DoWork handler as I did in the example. You can also handle cancelling and errors in addition, but I didn't provide examples of either. One other benefit is that the BackgroundWorker handles all the low-level details so you can access the UI thread in the events (to allow you to have progress indicators, etc.). Here's a really good resource for multi-threading information which has a section on the BackgroundWorker :
http://www.albahari.com/threading/[^]
Keep It Simple Stupid! (KISS)
|
|
|
|
|
Thank You Ben for ur reply.Am not much familiar nor i worked with background worker class .I will try to implement this and see
|
|
|
|
|
Hi,
I am getting this error 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception.
can anybody help me to resolve this. I am getting this error while loading the crystal report form
|
|
|
|
|
Any other details? What code exactly throws an exception?
Regards,
Lev
|
|
|
|
|
What version of CR are you using? (Help - About Crystal Reports)
What service pack(s) have been applied?
When I have seen this error the file as edited in a newer version than the one currently opening it and the only way to solve the problem was to update to that version or re-create the file, but more info is needed to be effective in helping.
../../DarkkMan
|
|
|
|
|
What version of CR are you running? What Service Packs have been applied?
More info is needed before any useful assistance can be given.
../../DarkkMan
|
|
|
|
|
I have a problem with the performance of the application in case of huge volumes of data. I have two tables. Each of them has 30+lakhs of records. I have to extract data from one table and store these records in a temporary table. next I have to extract data from the second table and update the temporary table for each and every record. For this purpose I have to write a update command in a loop of roughly 3 lakh records. Means the loop executes 3 lakh times. As a result of this the performace is getting effected very badly. can some one let me know the points to be taken care when working with huge volumes of data.
|
|
|
|
|
Uma Kameswari wrote: can some one let me know the points to be taken care when working with huge volumes of data
Your question isn't very specific so some general notes:
- correct design flaws
- use efficient indexing
- use features in SQL language
- try to get rid of middle steps
- optimize the database
- optimize the hardware
Uma Kameswari wrote: Each of them has 30+lakhs of records
I don't know what 30+lakhs means. It could be millions of rows, but if it's only for example 30000 that's not much.
|
|
|
|
|
Mika Wendelius wrote: I don't know what 30+lakhs means.
30+lakhs is more than 3 million; that is a lot of rows...
|
|
|
|
|
Luc Pattyn wrote: 30+lakhs is more than 3 million
Thanks, good to know
Luc Pattyn wrote: that is a lot of rows...
It depends. If the logic OP described is executed continuously, then it's a lot, but then again I would say it's a design problem in that case.
If the operation is executed for example once a day and the desired throughput time is, let's say less than 1 minute, it should be doable (of course depending on the overall logic).
|
|
|
|